Preface¶
Before building new features or plugins in DSH, the common practice is to search GitHub in your browser yourself, open READMEs one by one, and then decide based on impression whether to read the source code. An idea is often just a single sentence, yet you have to come up with several sets of search terms; the search results need to balance comprehensible relevance with stars and activity. Below we introduce the community plugin dsh-find-ideas (maintainer tianyao2003), which turns “search for similar projects → weighted ranking → pick a few repos to read structure” into a set of built-in tools, automatically chained by the agent based on the conversation.
What This Is¶
dsh-find-ideas is a networked plugin for DeepSeek Harness: you describe a development idea, the agent parses keywords, searches GitHub for similar projects, sorts them by a relevance-and-star weighted formula, and produces a fixed-format candidate card; you then specify several repositories, and the plugin reads README, dependency manifests, directory trees, and key files, organizing them into architecture notes you can draw upon. The README positions it as: “Before you build it, check whether it already exists.”
- Repository: github.com/tianyao2003/dsh-find-ideas
- Community directory: skillhub.cn plugin page
- License: MIT; current package version 0.4.0 (per
package.json) - Runtime requirements: Node ≥ 22; compatible with DSH release lines
0.2.0-rc.2/0.2.1-rc.2etc. (peer:@deepseek-ai/dsh-toolssince0.1.0-rc.6)
The four tools are independent of one another and share no state: scout_projects → rank_candidates → inspect_projects → read_repo_files. The 0–10 relevance score is judged by the agent; the tools only handle searching, computing, ranking, and reading, and do not adjudicate semantic similarity.
Core Features¶
Search and Ranking¶
scout_projects: Breaks an idea into multiple GitHub search queries and returns a candidate pool sorted by stars (deliberately not sorted by relevance here). If the idea contains no Latin letters, it first translates the idea into English search terms; if the caller provides no Latinkeywordsand no LLM is available, it returnsplan_failed.rank_candidates: Scores the candidate pool and generates cards. The formula is:
relevance × (1 + log10(max(stars, 10) + 1)) / 2
Each card has a fixed eight columns in an unchanged order: rank, project, last updated, relevance, stars, score, language, description.
Repository Deep Dive¶
inspect_projects: Reads up to 5 repositories at a time — README, dependency manifests, directory tree summaries, and selected key files. The returned card is capped at a fixed 24 KB; when exceeded, it trims from the lowest-cost evidence first — “manifest → README → single-file excerpts → signature skeleton” — and notes in the card what was omitted and how to recover it (useread_repo_filesto read specific files, or reduce the number of repositories in this call). There is no adjustable budget parameter.read_repo_files: Reads up to 4 specific files from a single repository at a given commit, returning line windows (focuscan target lines matching keywords) and permalinks with commit and line range; the read volume does not exceed the return budget.
Cards and Error Semantics¶
relevanceis the agent’s 0–10 score;scoreis computed by the formula, and the ordering cannot be altered via natural language.- Unmeasured query items display as “Unknown (not measured)”; missing archive counts display “Data missing” — unmeasured numbers are never written as
0. - Repository raw text is cited as data and does not masquerade as card structure; links are only
github.comorraw.githubusercontent.com. - Tools do not throw exceptions: failures return
reasonanddetail; partial successes explain the reason.
Cache and Outbound Traffic¶
- In-memory: up to 64 results, 5 minutes.
- On disk: search results 24 hours, source reads 10 minutes, total cap approximately 64 MB, swept roughly hourly; the directory is
$DSH_HOME/cache/dsh-find-ideas/, and deleting this directory is always safe. - Search terms and repository paths are sent to
api.github.com;inspect_projects/read_repo_filesonly read repository content on GitHub and do not upload local code. Apart from models already used by DSH, the idea is sent for translation only when “the idea has no Latin letters and the caller has not provided Latinkeywords”; a purely English idea will not trigger outbound traffic for translation.
Installation and Activation¶
The plugin runs with the current dsh process permissions; before installing, review the repository source code and the MIT license yourself. Installation commands follow the README:
# from npm (recommended)
dsh plugin --profile web add dsh-find-ideas
# or from GitHub
dsh plugin --profile web add github:tianyao2003/dsh-find-ideas
# or from a local directory
dsh plugin --profile web add /path/to/dsh-find-ideas
The npm package is approximately 391 KB to download, 805 KB unpacked, 28 files, with no runtime dependencies. Installing from GitHub runs a build once during installation, which requires pnpm to allow build scripts; the npm package already ships compiled artifacts and skips this step.
After installation you must restart dsh.
Configure a GitHub Token (Recommended)¶
Unauthenticated search: 10 requests per minute per public outbound IP (shared quota). With a token configured, this rises to 30 requests per minute (account-based). The plugin reads GITHUB_TOKEN via the DSH credential store:
export GITHUB_TOKEN=ghp_... # bash
$env:GITHUB_TOKEN = 'ghp_...' # PowerShell, current session
It can be used without a token, but inspect_projects will reject the entire batch operation if it estimates more than 10 anonymous requests.
Typical Usage¶
After restarting dsh, just describe your idea in natural language and the agent will automatically call the tools above. README examples:
- “I want to build a local-first Markdown note app — what’s out there on GitHub?”
- “I want to build a UI-enhancing DSH plugin. Which projects exist?”
Following the steps above, you will first see a ranked card, then get an architectural summary of the selected repositories; when you need specific files, the agent uses read_repo_files to read them.
Use Cases and Caveats¶
Suitable for: Prior-art search before starting a new project, comparing similar open-source implementations, and quickly understanding the dependencies and directory structure of several candidate repositories — without manually piecing together multiple sets of GitHub search terms.
Caveats:
- GitHub API rate limits and token quotas are described above; be mindful of the anonymous cap for high-frequency or large-batch
inspect_projectscalls. - Starting from 0.4.0,
inspect_projectshas a fixed 24 KB cap; large repositories require splitting into multiple calls with fewer repositories or targeted file reads. - Community directories (such as SkillHub) have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem is “everything is a plugin,” and this plugin is classified as a networked tool.
Conclusion¶
dsh-find-ideas consolidates “idea → GitHub candidates → weighted cards → pick repos and read architecture” into a reusable agent toolchain, suitable for confirming before you start coding “has someone already done this, and what structure can I draw upon.” For more information, visit the community directory page and the GitHub repository.