A Week Reading DSH's Source: The Two Rules That Won Me Over
说明与用途
DSH 通过插件化架构和完整的运行追踪,支持轻松切换模型、工具和环境,便于调试和扩展。
问题
Choosing an agent framework that is modular, traceable, and easy to extend was difficult; many frameworks lock in models or require deep code changes to swap tools.
结果
DSH’s plugin‑centric design and full run traceability allow developers to swap models, tools, and sandboxes via configuration, debug agent behavior step‑by‑step, and extend functionality with community plugins without modifying core code.
工作流
- 1. Read DSH source and docs to understand plugin architecture.
- 2. Verify that swapping a provider (e.g., filesystem) only requires changing config.
- 3. Confirm that every model interaction is logged and reconstructible.
- 4. Install DSH via npx or clone repo and run pnpm dsh web.
- 5. Handle Node version and build traps (Node ≥22.19, run pnpm run build).
- 6. Add plugins with pnpm dsh plugin --profile web add
<plugin>and restart server with --patch. - 7. Verify plugin activation with pnpm dsh web --dump-config.
- 8. Explore marketplace plugins like dsh-web-ui, dsh-auto-mode, modlens, dsh-memory.
证据
everything is a plugin and every run is traceable
swapping out one fs provider moves the entire Bash / PTY / LSP stack into a remote sandbox
- 记录日期: 2026-09-10T01:15:23.536Z