markelayan/billion-context-relief ↗★ 0
billion-context-relief
Agent-requested context relief for DSH — companion to billion-context-dsh (ACP). context_export moves a range to a temp file and leaves a path pointer (the model never reads it); context_delete drops a range with a DELETED REFERENCES marker; context_large_blocks lists oversized items; context_exports manages export files by name. Every replacement is a normal ACP block. Nothing runs automatically except an inform-only advisor notice. 适合需要按需导出或删减超长上下文的用户;提醒不会自动修改上下文,需配合billion-context-dsh。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:markelayan/billion-context-reliefドキュメント
README 全文を読む ↗Configuration
Defaults ship in this package's cordis.patch.yml. Override them with a same-id row in your profile's cordis.patch.yml (~/.dsh/profiles/ /cordis.patch.yml):
- id: billion-context-relief
config:
largeMessageTokens: 4000 # single message
largeTurnTokens: 12000 # one completed turn
largeBlockTokens: 3000 # one ACP summary block
minUsagePct: 0.4 # advisor stays silent below this usage (0–1)
advisorEnabled: true # inform-only notice; never modifies context
advisorCooldownSteps: 8 # min steps between notices per session
maxItems: 5 # items per advisor notice
deleteConfirmTokens: 8000 # context_delete above this needs confirm:true
reasonMaxChars: 120 # max length of the delete reason in the marker
exportRoot: '' # '' → /billion-context-relief
Unknown keys are ignored. Values of the wrong type fall back to the default.