fritzprix/libr-agent/agent-trace-debugger

Claude Code and agent skill by fritzprix/libr-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Parse .trace.json files and correlate with backend events and tool calls. Use when debugging agent behavior, investigating tool call patterns, or validating concurrency limits.

Install

npx vskill@latest install fritzprix/libr-agent/agent-trace-debugger

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/agent-trace-debugger.

Agent Trace Debugger

Parse and analyze LibrAgent agent session trace files (.trace.json).

Trace File Location

Trace files are typically stored in:

  • ~/.libragent/traces/<session_id>.trace.json
  • Session-specific directories under the app data folder

Analysis Workflow

1. Load Trace File
typescript
import { readFileSync } from 'fs';
const trace = JSON.parse(readFileSync('session.trace.json', 'utf-8'));
2. Extract Tool Call Sequence
typescript
const toolCalls = trace.messages
.filter((m) => m.role === 'assistant' && m.tool_calls)
.flatMap((m) => m.tool_calls);
3. Correlate with Backend Events

Match trace tool calls with agent:event payloads:

  • agent:thinking - LLM reasoning phase
  • agent:tool_start - Tool execution start
  • agent:tool_end - Tool execution complete
  • agent:error - Error during execution
4. Identify Workflow Phases

LibrAgent uses Think-Act-Observe loop:

  • Think: LLM generates reasoning and tool calls
  • Act: Backend executes tools via MCPServiceProxy
  • Observe: Backend adds results to conversation, loop continues
5. Detect Issues
  • Failed tool calls without retry
  • Long-running tool executions
  • Missing tool results in conversation
  • Cross-session state leakage (check session IDs)

Key Patterns to Look For

json
{
"session_id": "uuid-here",
"messages": [
{
"role": "user",
"content": "Task description"
},
{
"role": "assistant",
"content": "Reasoning...",
"tool_calls": [
{
"id": "call_123",
"function": {
"name": "planning_create_task",
"arguments": "{\"title\": \"Task\"}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_123",
"content": "Task created"
}
]
}

Integration with Other Tools

  • extract-log-debug skill: Extract matching log entries for the same session
  • trace-analyzer skill: Deep analysis of trace file structure
  • sqlite-analyzer skill: Verify database state matches trace expectations

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fritzprix/libr-agent/agent-trace-debugger/badge)](https://verified-skill.com/skills/fritzprix/libr-agent/agent-trace-debugger)

Something wrong with this skill or its page? Tell us.