rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Ardig24/dsh-trajectory-ablation
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A debugger that finds the actual cause of an agent failure, instead of guessing.
A plugin for DeepSeek Harness that reconstructs exactly what your agent saw before a given step, diffs that against another step, and — most importantly — proves which piece of context actually caused a decision by removing it and replaying the same model call for real.
See trajectory-ablation.md for the full design rationale.
When an agent does something wrong, most tools show you a transcript and let you guess, or ask the agent to explain itself — which is just the same model generating a plausible-sounding story about its own past decision, not a verified fact. This plugin replaces both with something checkable:
Mount it in your DeepSeek Harness profile ($DSH_HOME/cordis.patch.yml):
- insert:
- id: trajectory-ablation
name: 'dsh-trajectory-ablation'
Then pnpm install in your profile directory and restart. See cordis.patch.yml.example for a fuller walkthrough.
Once mounted, four commands are available in any session:
/context-reconstruct <turn> <step> — what did the model see before this step?
/context-diff <turnA> <stepA> <turnB> <stepB> — what changed between two steps?
/ablate <turn> <step> [k] [maxCalls|inf] — which block actually caused this decision?
/ablate-interactions <turn> <step> [trials] [maxCalls|inf] — run this when /ablate finds nothing: is it a pair?
/ablate and /ablate-interactions both refuse to run past an estimated 50 real model calls unless you raise maxCalls (or pass inf to disable the cap) — every call is a real, billable request, so cost should never be a surprise.
Or use it programmatically — reconstructContext and diffContext need only a session's event log (no live model connection required); ablateStep and screenForInteractions need a live ctx.llm:
import { reconstructContext, diffContext, ablateStep, screenForInteractions } from 'dsh-trajectory-ablation'
npm install
npm run demo
Runs the full pipeline against a scripted example (a stale README misleading an agent into editing the wrong file) with no API key required.
npm install
npm run build # compile
npm run typecheck # type-check only
npm test # run the test suite
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。