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。

패키지
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.