dshplugin-me/dsh-precedent0

dsh-precedent

DeepSeek Harness 基于证据的工作区记忆账本插件

AI 分析

从历史会话日志中提取并注入已验证可行的命令账本。适合需要提升 Agent 在当前工作区操作准确性的用户。

包名
dsh-precedent
版本
0.1.0
许可证
NOASSERTION
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dshplugin-me/dsh-precedent

Configuration

- id: precedent
  name: dsh-precedent
  config:
    maxEntries: 40        # ledger lines injected per session
    minRuns: 2            # ignore commands seen only once
    lookbackDays: 90      # ignore sessions older than this
    maxSessions: 200      # upper bound on logs read in one build
    buildTimeoutMs: 5000  # stop blocking the first step after this
KeyDefaultMeaning
maxEntries40Hard cap on injected ledger lines, so the section stays a fixed, small token cost. /precedent is never capped
minRuns2A command seen once is an anecdote, not a precedent
lookbackDays90A convention from six months ago may no longer be true
maxSessions200Newest sessions first; a workspace with years of history stays cheap to read
buildTimeoutMs5000A slow build releases the first step and lands on a later one instead

Scope is not configurable: sessions are matched on exact cwd string equality, the same conservative rule DSH's own cross-session authorization uses — a symlinked path is a different workspace.