Trace analyzer

From fritzprix/libr-agent · View interactive version

Trace analyzer is an AI agent skill from the GitHub repository fritzprix/libr-agent. Analyzes LibrAgent agent session trace files (.trace.json) to understand what an AI agent actually did during a session. Use when a user shares a .trace.json file, asks "what did the agent do?", wants to debug agent behavior, investigate tool call patterns, validate concurrency limits, or review ses

How to use this skill

Skill file

Trace Analyzer

Analyzes .trace.json files produced by LibrAgent agent sessions.

Quick Start

Run the bundled script against the trace file:

python .agents/skills/trace-analyzer/scripts/trace_dump.py <path-to-.trace.json>

The script outputs:

What to Look For

Concurrency Gate Validation

listProcesses results during a load test reveal the active slot count:

Common Agent Errors

| Pattern | Meaning |

| --------------------------------------- | -------------------------------------------------------------- |

| ✗ Unknown tool: <name> | Agent hallucinated a non-existent tool name |

| ✗ Timeout waiting for process | waitForProcess default 30s expired; agent used wrong timeout |

| ✗ Process '<id>' not found in session | Cross-session ID leak or stale ID from prior session |

| ✗ Scratchpad item ... already exists | Agent tried duplicate scratchpad write |

Planning Behavior

Good agents: createGoal → addTodo → work → checkTodo → clearGoal

Confused agents: repeated addTodo for same item, getCurrentState spam, never clearGoal

Tool Call Frequency

High pauseAndThink / getCurrentState ratio relative to actual work calls = agent overthinking.

Healthy ratio: ≤1 planning call per 3 work calls.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.