READMESource: plugin/dsh@d4753c57
dsh-context-budget
Trim LLM chat history to a token budget for DeepSeek Harness: keep the persona, drop oldest turns in pairs.
Community plugin. Not affiliated with DeepSeek.
Port ofcanyueY/context-budget.
Install
dsh plugin --profile web add github:canyueY/dsh-context-budget#plugin/dsh
Tools
| Tool | Purpose |
|---|---|
trim_context |
Trim {role,content}[] to budget |
estimate_context_tokens |
Rough token estimate (char/2) |
Also sets ctx.contextBudget for peer plugins.
License
AGPL-3.0-or-later
No comments yet. Be the first to write one.