dsh-plugin
DayuanJiang/next-ai-draw-iodsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
English | 中文
AST-based structural code search and outline plugin for DeepSeek Harness (DSH), powered by ast-grep.
Provides structural code searching and outline inspection capabilities for coding agents, dramatically outperforming traditional regular expression search (grep) in token efficiency and semantic accuracy.
ast_search: Search code structures using AST patterns and meta-variables ($NAME, $$$).
function_declaration, interface_declaration, class_declaration).smart, relaxed, ast, cst).ast_outline: Extract an ultra-compact structural outline (functions, classes, types, interfaces, exports) from a source file.
This plugin requires ast-grep CLI installed on your machine:
npm install -g @ast-grep/cli
pip install ast-grep-cli
cargo install ast-grep --locked
brew install ast-grep
Verify with:
ast-grep --version
Tip for custom installations: If
ast-grepis installed in a non-standard location or custom npm prefix, the plugin will automatically probe directories in yourPATH. You can also set theAST_GREP_PATHenvironment variable to its full path directly.
Once published and indexed, search for dsh-tool-ast-grep in Settings → Plugin Market and click Install.
Or run in terminal:
dsh plugin --profile web add dsh-tool-ast-grep
In your agent configuration (e.g. ~/.dsh/.agent-presets/your-agent/agent.cordis.yml):
id: my-agent
name: My Agent
tools:
- id: tool-ast-grep
name: dsh-tool-ast-grep
config:
maxResults: 50
timeoutMs: 60000
ast_search| Parameter | Type | Description |
|---|---|---|
pattern | string | AST pattern, e.g. function $NAME($$$) { $$$ } or $OBJ.push($ITEM) |
kind | string | AST node kind, e.g. class_declaration, function_declaration |
path | string | Directory or file path to search in (defaults to workspace root) |
lang | string | Language override (ts, tsx, js, jsx, python, rust, go, etc.) |
globs | string | File glob pattern to include/exclude (e.g. src/**/*.ts) |
limit | integer | Max matches to return (default: 50) |
ast_outline| Parameter | Type | Description |
|---|---|---|
file_path | string | Path of the file to inspect |
lang | string | Language override (auto-detected if omitted) |
depth | integer | 1 for top-level only (default), 2 to include class methods |
TypeScript (ts, tsx), JavaScript (js, jsx), Python (py), Rust (rs), Go (go), Java (java), C (c, h), C++ (cpp, hpp, cc).
MIT © Jaylor Wang (Jaylor-Wang)