YYTbit/dsh-plugin-jev-compaction ↗★ 1
dsh-plugin-jev-compaction
Jev-scored context compaction for DeepSeek Harness -- keep the messages that matter, compact the ones that do not 适合长对话用户,能在保留关键信息和近期消息的同时,压缩不重要的上下文以节省Token。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YYTbit/dsh-plugin-jev-compactionConfiguration
- 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
| Option | Default | Meaning |
|---|---|---|
targetBytes | 262144 | Output byte budget |
keepRecent | 4 | Trailing messages kept verbatim whatever they score |
batchSize | 8 | Messages per Jev request |
minConfidence | 0.35 | Below this, a message is kept out of caution |
summaryBytes | 1024 | Cap on the digest that replaces dropped messages |
summaryRole | system | Role of the digest message |
stateMessageBytes | 2000 | Bytes of each message included in the Jev state |
pinPatterns | [] | Extra pin patterns, appended to the built-in five |
enablePinning | true | Set false to disable pinning |
pinFlags | i | Flags used to compile pin patterns |
endpoint | JEV_API_URL | Jev endpoint |
apiKey | JEV_API_KEY | Jev API key |
timeoutMs | 15000 | Per-request timeout |
levels | none, low, medium, high, critical | Ordered score labels sent to Jev |
pricePerMillionTokens | 0.1 | Input price used for the cost estimate |
receiptPath | disabled | JSONL decision receipt path, also read from DSH_JEV_COMPACT_RECEIPT |
task | generic continuation prompt | Task description sent to Jev |
runId | generated | Identifier written into receipts |
The API key is not published to the shell environment.