From agent-harness
Use during retrospective or when trying to understand recurring failure patterns across sessions, based on historical learnings data in .agent-harness/learnings.jsonl.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-harness:trace-analysisWhen to use
[feedback] Triggered during retrospective or when analyzing cross-session failure trends.
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Trace analysis turns historical learnings into actionable signal for skill improvement. Uses `scripts/trace-analyzer.sh` to classify failure patterns from `.agent-harness/learnings.jsonl`.
Trace analysis turns historical learnings into actionable signal for skill improvement. Uses scripts/trace-analyzer.sh to classify failure patterns from .agent-harness/learnings.jsonl.
Core principle: Data over intuition. Run the analyzer before deciding what to improve.
retrospective skill).agent-harness/learnings.jsonl for trendsbash "${CLAUDE_PLUGIN_ROOT}/scripts/trace-analyzer.sh" [project_root]
The analyzer classifies learnings by keywords in key and insight fields:
| Pattern | Meaning | Address With |
|---|---|---|
loop | Re-editing same file without converging | loop-detection |
drift | Wandering away from task goal | writing-plans with explicit task boundaries |
oversight | Missing steps or requirements | verification-before-completion checklists |
scope-creep | Adding work beyond what was asked | sprint-contract to lock scope |
verification-gap | Claiming success without evidence | computational-sensors for deterministic verification |
other | Unmatched failure mode | Investigate manually |
loop appears, that's urgent. Doom loops waste the most time.Pressure scenario: agent conducting retrospective, learns failure patterns exist but ignores data, "improves" based on gut feeling instead of analyzer output.
Baseline failures: agent skips trace-analyzer.sh, rationalizes "I know the patterns", does not cross-reference with skill improvement actions.
Match analyzer recommendations to skill invocations:
agent-harness:loop-detection — ensure tracking is activeagent-harness:computational-sensors — configure sensorsagent-harness:sprint-contract — lock scope before next implementationagent-harness:verification-before-completionagent-harness:writing-plans — plan before next multi-step task| Mistake | Fix |
|---|---|
| Treating one learning as a pattern | Need 3+ occurrences to confirm a real pattern |
| Skipping analysis because learnings are sparse | Even sparse data shows direction |
| Acting on every pattern at once | Address top pattern first, then re-run |
| Excuse | Reality |
|---|---|
| "I know my failure modes" | Feelings are not data. Run the analyzer |
| "The patterns are obvious" | Obvious patterns would have been fixed already |
npx claudepluginhub evanfang0054/agent-harness --plugin agent-harnessSets up isolated workspaces using native worktree tools or git worktree fallback. Use before starting feature work to protect the current branch.