123caiji/dsh-memory-toolkit--packages-lean-context ↗★ 0
@123caiji/dsh-lean-context
DeepSeek Harness 的降 token 编排插件,提供纪律、收敛、路由、审计、重建五个可独立开关。
AI 分析
适合长上下文与预算敏感场景。部分能力依赖上游插件配套启用。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:123caiji/dsh-memory-toolkit#02da7b847f1998858daf4b00bd564b05e6c98845&path:packages/lean-context说明文档
阅读完整 README ↗Usage
discipline (auto)
No action needed. The Six-Mode decision table is injected into the system prompt at order 160 (after tool schemas). The agent self-budgets context depth and output length per turn.
Tell the agent "省 token" to enforce ZeroToken mode (shortest executable output, skip non-essential exploration); say "详细解释" to exit.
audit (tool)
Call the context_audit tool in any session:
context_audit(cwd=".", includeSkillBodies=true, maxSkillBodies=50)
Returns per-file byte/token cost of AGENTS.md / CLAUDE.md / .agents/skills/*/SKILL.md, plus duplicate-body detection across skills. Read-only; safe to run anytime.
convergence / routing / rebuild
When enabled and their upstream plugin is installed, these layers take effect automatically. See each plugin's README for tool-level usage. dsh-lean-context only owns the unified config toggle.