
This is a zero-config CLI that records agent execution snapshots to disk during development and lets you inspect them step by step. It captures everything: LLM calls, tool invocations, context engine payloads, user memory, and the full message chain sent to the model. Runs from your repo root, drops JSON files in .agent-tracing/, and gives you flags to drill into specific steps, diff system roles between turns, or see exactly why the agent picked a particular tool. Built for LobeChat's agent runtime but the approach works for any multi-step LLM system where you need forensics on what actually happened versus what you thought would happen.
$ npx -y skills add lobehub/lobehub --skill agent-tracing --agent claude-codeInstalls into .claude/skills of the current project.
@lobechat/agent-tracing is a zero-config local dev tool that records agent execution snapshots to disk and provides a CLI to inspect them.
In NODE_ENV=development, AgentRuntimeService.executeStep() automatically records each step to .agent-tracing/ as partial snapshots. When the operation completes, the partial is finalized into a complete ExecutionSnapshot JSON file.
Data flow: executeStep loop -> build StepPresentationData -> write partial snapshot to disk -> on completion, finalize to .agent-tracing/{timestamp}_{traceId}.json
Sponsors