trace-analysis
Skill0 starsChanged 4 months agoMITView on GitHub
Use when the user wants to understand or debug a run of an agent built with this repo's core.trace.Run — e.g. "why did this run cost so much", "did this agent loop", or "why did this fail". Reads the JSONL trace files under runs/ and produces cost, loop, and failure diagnostics.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- ai-analyst-lab/ai-analysttheir own version, first seen Sep 10, 2026
- gabriellst/codmtheir own version, first seen Aug 26, 2026
- zl3311/alpha-miningtheir own version, first seen Jul 25, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- ai-analyst-lab/ai-analyst★ 304same name
- gabriellst/codm★ 4same name
- zl3311/alpha-mining★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- agent-architecture-advisorSkill
- business-intelligenceSkill
- compliance-reviewSkill
- data-correlationSkill
- document-analysisSkill
- extractionSkill
- financial-analysisSkill
- legal-contract-reviewSkill
- research-methodologySkill
The file
Files
Trace analysis
Reading runs/*.jsonl traces produced by core.trace.Run — the playbook's observability principle applied to debugging this specific repo. "You need visibility into prompt chains, model decision paths, retrieval contexts, token consumption, and the entire reasoning workflow" — this skill is how you actually get that visibility after a run completes.
Workflow
- Run
scripts/summarize_trace.py <path>first rather than reading the raw JSONL by eye — it gives outcome, total cost, per-step cost breakdown, and loop detection in one pass. - Check the outcome field before anything else.
ok,error, orbudget_exceededchanges what you're looking for — anerroroutcome means read theerrorfield and find the last event before it;budget_exceededmeans look at which step's cost climbed fastest. - Find cost hotspots by step, not by call count. A step called once at BALANCED tier can cost more than twenty FAST-tier calls — the per-step cost breakdown (not the step count) tells you where to optimize.
- Treat any step repeated more than ~5 times as a suspected loop, especially in
patterns/agent_looporagents/*traces — check theinput_preview/output_previewfields across those repeats to see if the model is actually making progress or stuck retrying the same thing. - For multi-agent traces, reconstruct the interaction order from timestamps, not from event order alone — concurrent specialists' events interleave in the file; sort by
tsand look for overlapping windows to confirm parallelism actually happened. - Compare against a baseline run when diagnosing "why did this cost more." A single trace in isolation tells you what happened; two traces of the same task on different patterns (see
evals/) tell you whether the cost is expected for this pattern or an anomaly.
Composition
Stand-alone diagnostic skill. Its output (cost/loop/failure findings) is exactly the kind of structured input business-intelligence can turn into a "here's what to fix" recommendation if the audience needs that framing.
Quality bar
- The outcome field and any error message are checked and reported first.
- Cost is broken down by step, not just given as a single total.
- Any step repeated more than 5 times is explicitly flagged as a possible loop, with evidence (not just a raw count).
- Claims about concurrency are checked against actual timestamps, not assumed from the pattern's design intent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

