markelayan/billion-context-relief ↗★ 0

billion-context-relief

提供由Agent调用的上下文导出、删除及大消息检查工具 适合需要按需导出或删减超长上下文的用户;提醒不会自动修改上下文,需配合billion-context-dsh。

套件
billion-context-relief
相容性
待驗證
版本
0.1.2
授權
MIT
最近更新
2026年10月4日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:markelayan/billion-context-relief

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.