xarleyn/dsh-plugins--plugins-dsh-user-correction-miner ↗★ 1
@yadsh/dsh-user-correction-miner
Mine durable project-rule candidates from user corrections in DeepSeek Harness sessions 适合长期优化行为规则的团队,需接受纠偏证据留存并按隐私参数收敛。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xarleyn/dsh-plugins#fd3cdd95651ec4eafe52d510751ba3aba3c9248d&path:plugins/dsh-user-correction-minerドキュメント
README 全文を読む ↗Configuration
- id: dsh-user-correction-miner
config:
enabled: true
retention:
maxRecordsPerWorkspace: 1000
live:
maxPendingSessions: 256
maxPendingEventsPerSession: 32
pendingTtlMs: 1800000
analysis:
maxContextEvents: 20
maxContextBytes: 32768
privacy:
redactSecrets: true
persistRawMessages: false
maxStoredTextChars: 512
privacy.maxStoredTextChars counts Unicode code points, including the
ellipsis added when stored text is truncated. analysis.maxContextBytes
counts UTF-8 bytes, also including any truncation ellipsis.
retention.maxRecordsPerWorkspace bounds durable evidence independently for
each workspace. After an insert, the oldest records in that workspace are
deleted until the limit is met; records belonging to other workspaces are not
counted or removed. The storage-domain API currently has no secondary index,
so retention performs a workspace-filtered table scan when a record is
inserted. Status counting is a single pass and does not materialize or sort
records.
Live candidates are also bounded. At most live.maxPendingSessions session
IDs and live.maxPendingEventsPerSession matching event IDs per session are
kept in memory. Entries expire after live.pendingTtlMs without a session
event. Capacity and TTL evictions emit metadata-only warnings; pending state
is cleared when the plugin is disposed.