rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ruaibeite/dsh-provenance
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Line-level provenance and a decision ledger for agent edits. Answer "who wrote this line — which session, which model, which tool?" for every file the agent changed on this machine, then pin the important changes as decisions and export an audit trail as Markdown or JSON.

Screenshots are taken from a demo profile seeded with synthetic sessions; no user data is shown.
DSH marketplace: install @ruaibeite/dsh-provenance from the community plugin catalog (requires the dsh-plugin topic).
From source: clone this repository, then add the plugin to your profile's layer stack:
git clone https://github.com/ruaibeite/dsh-provenance.git
Add @ruaibeite/dsh-provenance to your web profile's dsh.profile.bundles (or symlink the directory into the profile's node_modules/@ruaibeite/), then restart DSH. The page appears in Settings → Provenance (id provenance, order 5).
A single Settings page with a master-detail browser:
write / edit call: #seq · time · model · tool, a copyable snippet, the line delta, before/after content hashes, and a Pin as decision button.The three panes adapt to the narrow Settings dialog: the workspace and file lists share the first row, the record timeline spans the full width, and long snippets wrap inside their card instead of being clipped.
It also normalizes relative paths against the session's working directory and keeps records that point outside it (with no relative path).
ctx.sessionQuery.listSessions() + readSession(id). When the session service is unavailable it falls back to scanning $DSH_HOME/sessions/**/session.v4.jsonl.zstd directly, decoding every Zstandard frame (the JSONL backend appends one frame per flush batch, so single-frame decoders would miss most events).tool/call events whose tool is write or edit become records. The model route is taken from the most recent assistant/message source, the turn/step from the tool call, and calls whose tool/result reports ok:false are dropped.$DSH_HOME/cache/provenance/index.json. The index is rebuilt when older than 5 minutes (background, single-flight) or when you press Refresh. Per-file history keeps the newest 200 records; the whole index is capped at 20k records. Decisions live in $DSH_HOME/cache/provenance/decisions.json and never trigger a rebuild.GET|POST /dsh-provenance/api); it imports nothing from @deepseek-ai/* and uses theme tokens only.$DSH_HOME/cache/provenance/index.json and decisions.json (atomic temp file + rename).write / edit tool calls are tracked. Changes made through shell redirection, formatters, external editors, git or other tools are not visible.tool/result carries ok:false; an interrupted session may still list attempted edits.path.resolve; symbolic links are not resolved.delegationDepth > 0) are skipped to keep the ledger readable.sessionQuery (or present as local logs) are indexed; at most the newest 200 sessions / 50k events per session are scanned.cd dsh-provenance
node --check index.js && node --check client.js
npm test # host.mjs (31 tests) + render.mjs (14 tests), no browser / no network / no real ~/.dsh
The tests use inline fixtures and temporary DSH_HOME directories only.
MIT.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。