Bundle
dsh-step-trace
Record every step the agent took, and walk through it forwards and backwards to find where it went wrong.
- Source
- hj01857655
- License
- MIT
- Updated
- Updated 2 days ago
Readme
# dsh-step-trace [](https://www.npmjs.com/package/dsh-step-trace) [](https://www.npmjs.com/package/dsh-step-trace) [](https://github.com/hj01857655/dsh-step-trace/actions/workflows/ci.yml) [](LICENSE) [](package.json) [](https://github.com/hj01857655/dsh-step-trace/stargazers) [](https://github.com/topics/dsh-plugin) Record every step the agent took, and walk through it forwards and backwards to find where it went wrong. ## Install ```sh dsh plugin --profile web add dsh-step-trace ``` ## What it does - **Record.** Every model response and tool call is stored as a trace step in `.replay/<session-id>.jsonl`. - **Step through.** Inspect the full input and output at each step, forward and backward. - **Branch.** Fork a new session from any step — "what if the agent had done X instead?" - **Divergence detection.** Given two sessions for the same task, find the first step where they diverge. - **Panel.** Session list with step-through viewer. ## CLI ```sh dsh-step-trace list # list recorded sessions dsh-step-trace trace <id> # show all steps in a session dsh-step-trace step <id> <n> # inspect step N dsh-step-trace diverge <a> <b> # find where two sessions diverge ``` ## License MIT
Install
dsh plugin --profile web add github:hj01857655/dsh-step-trace#b3f45a78698f19a09dd3822afd69698b3994ca5b
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-step-trace from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.