YYTbit/dsh-plugin-jev-compaction ↗★ 1

dsh-plugin-jev-compaction

基于Jev评分的上下文智能压缩与摘要 适合长对话用户,能在保留关键信息和近期消息的同时,压缩不重要的上下文以节省Token。

包名
dsh-plugin-jev-compaction
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年10月3日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YYTbit/dsh-plugin-jev-compaction

Configuration

- id: jev-compaction
  name: dsh-plugin-jev-compaction
  inject: []
  config:
    targetBytes: 262144
    keepRecent: 4
    batchSize: 8
    minConfidence: 0.35
    summaryBytes: 1024
    enablePinning: true
    receiptPath: ~/.dsh/jev-compaction/receipts.jsonl
OptionDefaultMeaning
targetBytes262144Output byte budget
keepRecent4Trailing messages kept verbatim whatever they score
batchSize8Messages per Jev request
minConfidence0.35Below this, a message is kept out of caution
summaryBytes1024Cap on the digest that replaces dropped messages
summaryRolesystemRole of the digest message
stateMessageBytes2000Bytes of each message included in the Jev state
pinPatterns[]Extra pin patterns, appended to the built-in five
enablePinningtrueSet false to disable pinning
pinFlagsiFlags used to compile pin patterns
endpointJEV_API_URLJev endpoint
apiKeyJEV_API_KEYJev API key
timeoutMs15000Per-request timeout
levelsnone, low, medium, high, criticalOrdered score labels sent to Jev
pricePerMillionTokens0.1Input price used for the cost estimate
receiptPathdisabledJSONL decision receipt path, also read from DSH_JEV_COMPACT_RECEIPT
taskgeneric continuation promptTask description sent to Jev
runIdgeneratedIdentifier written into receipts

The API key is not published to the shell environment.