Preface¶
In DSH (DeepSeek Harness), when agents need to modify code or perform refactoring, they often need to know “which line this symbol is defined on.” Relying on the IDE or manual grep works, but the interaction is inconsistent; relying on remote code indexing requires extra services and synchronization. Below is the community plugin dsh-plugin-code-search: it searches for functions, classes, exports, constants, etc., by symbol name within the local project and returns the file and line number. It targets JS/TS, Python, Go, Rust, and does not depend on external indexing.
What is it¶
dsh-plugin-code-search is a workflow-type plugin in the DeepSeek Harness (DSH) ecosystem, maintained by thegabopacheco-sudo. The project currently has 0 stars on GitHub, uses the MIT license, and the npm package version is 0.1.0.
The plugin’s positioning is summarized by the original README text: searching for symbols (functions, classes, exports, constants) in a local project, providing file and line, supporting JS/TS/Python/Go/Rust, without external indices. In a Chinese context, this means: local, symbol-based, with position, multi-language, no third-party index libraries.
The DSH community directory is hosted on the independent site SkillHub, with no official affiliation with DeepSeek or Huafan; installation and usage follow the repository README.
Core Features¶
The plugin exposes capabilities through MCP tools. The tools listed in the README are two:
| Tool | Description |
|---|---|
status |
View status |
search |
Search symbols |
search corresponds to the plugin’s main value: finding a symbol within a specified local project and locating the file and line. Specific parameters and return fields should be based on the tool schema after installation or the repository docs/; this article does not elaborate on usage examples not captured in the scraped README.
Runtime environment requires Node.js >=20 (see engines in package.json).
Installation and Enablement¶
Choose one:
- Install
github:thegabopacheco-sudo/dsh-plugin-code-searchin DSH → Settings → Plugins and allow script execution. - Add the plugin to a specified profile in the terminal:
dsh plugin --profile <perfil> add github:thegabopacheco-sudo/dsh-plugin-code-search
Replace <perfil> with your actual DSH profile name. Installation triggers the postinstall script; the plugin accesses local files with the current dsh process permissions. It is recommended to review the GitHub repository source code and MIT license before installing.
Security and Audit¶
The README’s “Seguridad” (Security) section states:
- Default is read-only; write operations require
confirm:trueand explicit request. - Environment variable
DSH_CODE_SEARCH_MODE=read-onlycan disable related write operations. - Whitelist and audit logs are located at
<DSH_HOME>\cache\code-search\audit.jsonl(the separator in the path follows the original README text; on Linux it usually corresponds tocache/code-search/audit.jsonlunder$DSH_HOME).
If you only want the agent to query definition locations without triggering writable paths, you can set DSH_CODE_SEARCH_MODE=read-only before enabling the plugin.
Typical Usage (Workflow Level)¶
The README does not provide a complete search input example. In actual use, after enabling the plugin in DSH, the agent calls search to retrieve by symbol name, then jumps to read or modify based on the returned file and line numbers. You can call status to check if the plugin is ready.
Suitable scenarios include: tracking symbol definitions across files, quickly locating exports/class names in an unknown repository, and using a single set of tools to complete the “find definition” step in a mixed-language repository without deploying Elasticsearch, Sourcegraph, or other external indices.
Notes¶
- The plugin scans projects under local paths; permissions are consistent with the user running DSH; do not blindly enable on untrusted directories.
- Search accuracy and language support depend on the implementation; version 0.1.0 is an early release, behavior may adjust according to the CHANGELOG.
- The community directory categorizes this as “workflow,” focusing on embedding “symbol location” into the Agent process rather than replacing specialized IDE indexing.
Conclusion¶
dsh-plugin-code-search consolidates local symbol search into DSH-callable search / status tools, emphasizing multi-language support and no external dependencies, accompanied by a read-only default and audit configuration. Directory page: https://www.skillhub.cn/plugins/thegabopacheco-sudo/dsh-plugin-code-search; Source code and installation instructions: https://github.com/thegabopacheco-sudo/dsh-plugin-code-search.