Technique
Inspect AI agent session traces after non-trivial coding runs so you can see where the assistant spent time, burned tokens, retried tools, or got stuck before you start the next iteration.
How I use it
After a Claude Code, Codex CLI, Gemini CLI, Aider, Cursor export, or similar run, I open the local session log in a terminal dashboard and check:
- token and cost spikes
- long gaps or hanging steps
- repeated tool failures and retries
- shallow or anomalous sessions
- session-to-session diffs when comparing two attempts
One concrete workflow:
agenttrace --demo
agenttrace --overview
agenttrace --overview -f json
For CI or team workflows, the same idea can become a lightweight health gate:
agenttrace --overview --fail-under-health 80 --fail-on-critical
Why it is valuable
AI coding assistants can produce a final diff that looks plausible while hiding the actual process: retry loops, stalled tool calls, context waste, or expensive sessions. A short post-run trace review makes the next prompt more grounded: you can ask the assistant to avoid the failing tool path, split the task, reset context, lower cost, or add missing logs/tests.
Tool used
agenttrace: https://github.com/luoyuctl/agenttrace
It is a local-first TUI/CLI for AI coding agent observability across Claude Code, Codex CLI, Gemini CLI, Aider, Cursor exports, and related logs.
Technique
Inspect AI agent session traces after non-trivial coding runs so you can see where the assistant spent time, burned tokens, retried tools, or got stuck before you start the next iteration.
How I use it
After a Claude Code, Codex CLI, Gemini CLI, Aider, Cursor export, or similar run, I open the local session log in a terminal dashboard and check:
One concrete workflow:
For CI or team workflows, the same idea can become a lightweight health gate:
Why it is valuable
AI coding assistants can produce a final diff that looks plausible while hiding the actual process: retry loops, stalled tool calls, context waste, or expensive sessions. A short post-run trace review makes the next prompt more grounded: you can ask the assistant to avoid the failing tool path, split the task, reset context, lower cost, or add missing logs/tests.
Tool used
agenttrace: https://github.com/luoyuctl/agenttrace
It is a local-first TUI/CLI for AI coding agent observability across Claude Code, Codex CLI, Gemini CLI, Aider, Cursor exports, and related logs.