mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-12-06 00:07:21 +00:00
Agents answer questions about their own earlier work from memory, and memory drops the failed test run, the file a sed one-liner rewrote and the edit made after the last green run. Claude Code and Codex already record every call, result and exit code on disk; this plugin reads that record instead. - trace_finder.py: find the run by repo, window, touched file or command text - trace_timeline.py: numbered steps, --files with SILENT changes, --why STEP with every causal edge labelled recorded or inferred by a named rule - claim_checker.py: typed claims vs the run; STALE, PARTIAL, CONTRADICTED - UserPromptSubmit hook names the session transcript for questions about the past; fail-open, AGENT_RUN_FORENSICS_HOOK=0 disables it - secrets redacted in every output, no off switch Idea from PR #1016, rebuilt without the proposer's npm tool (no-vendor rule). Bundle engineering-advanced-skills 2.14.10 -> 2.14.11; G12 baseline raised by the new skill's 272 characters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L8KYFLjaj5gnwaZdF3RyDn
26 lines
1,003 B
Markdown
26 lines
1,003 B
Markdown
---
|
|
disable-model-invocation: true
|
|
description: Answer a question about a past agent run from its recorded transcript - find the run, walk back from the step, separate recorded from inferred.
|
|
argument-hint: "<question> [--session ID | --trace PATH]"
|
|
---
|
|
|
|
# /cs-run-forensics
|
|
|
|
Answer `$ARGUMENTS` from the recording, not from memory.
|
|
|
|
```bash
|
|
S=${CLAUDE_PLUGIN_ROOT}/skills/agent-run-forensics/scripts
|
|
python3 $S/trace_finder.py --since 7d # add --touched PATH or --grep TEXT; skip for this session
|
|
python3 $S/trace_timeline.py --trace <path> --files
|
|
python3 $S/trace_timeline.py --trace <path> --grep <TEXT> # or --errors, --file PATH
|
|
python3 $S/trace_timeline.py --trace <path> --why <STEP>
|
|
```
|
|
|
|
If the finder exits 2, say the run is not recorded here and stop.
|
|
|
|
## Report
|
|
|
|
1. The run: session id, harness, time, source path.
|
|
2. The answer, from recorded steps only, each with its step number.
|
|
3. The likely cause, labelled inferred, with its rule.
|
|
4. What the trace cannot answer.
|