@anionex/dsh-tool-pruner
v0.1.1
Published
Hide DSH read, grep, and glob tools and their prompt guidance so agents use bash instead
Maintainers
Readme
@anionex/dsh-tool-pruner
这是一个精简的 DeepSeek Harness Bundle。它从模型可见工具面移除
read、grep 和 glob,让 Agent 改用 bash 检查和搜索文本文件。
插件本身不会新增任何模型工具。它会为每个运行中的 Agent:
- 添加 Agent 作用域的工具限制,隐藏
read、grep和glob; - 在每次最终提示词组装时移除这些 schema,以及对应的
tool:read、tool:grep和tool:glob专用提示词段; - 在插件卸载时恢复这些工具和提示词。
这是提示词和工具面的精简措施,不是文件系统安全边界。拥有 bash
的 Agent 仍然可以读取和搜索文件。
安装
dsh plugin --profile desktop add @anionex/dsh-tool-pruner重启对应 Profile,然后新建或恢复会话。下一次模型请求仍会包含 bash,
但不再包含 read、grep、glob 的 schema 和专用指导。
卸载
dsh plugin --profile desktop remove @anionex/dsh-tool-pruner卸载后重启对应 Profile。
本地开发时,将安装命令中的包名替换为仓库路径。
开发
pnpm install
pnpm test
pnpm pack --dry-run