agent-tracing

Inspect execution snapshots and render agent trace details from stored JSON.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/kingheu0818-sketch/lobehub_yu --skill agent-tracing-kingheu0818-sketch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-tracing
Source: https://github.com/kingheu0818-sketch/lobehub_yu/tree/main/.agents/skills/agent-tracing
Command: npx skills add https://github.com/kingheu0818-sketch/lobehub_yu --skill agent-tracing-kingheu0818-sketch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Agent executions can be hard to debug because the inputs, context engine payload, LLM messages, tool calls, and runtime events are not always visible after the fact.

Core Features & Use Cases

  • Inspect execution snapshots: Read complete ExecutionSnapshot JSON files and drill into step-level details.
  • Analyze context engine behavior: View context engine input/params and the final LLM payload produced after processing.
  • Review tool calls and results: Compare available tools vs what the agent actually invoked, including arguments and outputs.
  • Explore raw runtime events: Check low-level events such as llm_start and llm_result for deeper diagnosis.
  • Work with partial snapshots: List, inspect, and clean in-progress partial traces to troubleshoot interrupted runs.

Quick Start

Run agent-tracing inspect latest to immediately view the newest agent execution trace overview.

Frequently Asked Questions about agent-tracing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug agent execution and inspect LLM calls?

Debug agent execution by reading stored execution snapshots to inspect step-level LLM calls, tool invocations, and context engine inputs. The skill renders detailed JSON artifacts locally, providing complete visibility into what was sent to the LLM after processing.

What is an execution snapshot in agent tracing?

An execution snapshot is a deterministic local JSON artifact recording multi-step LLM workflows, runtime events, and context engine payloads. It captures tool calls, messages, and low-level events like llm_start, enabling post-execution analysis for troubleshooting.

How do I view the newest agent execution trace?

Run the command `agent-tracing inspect latest` from your repo-root working directory to immediately view an overview of the newest agent execution trace. The CLI reads stored JSON files to render step, message, tool, and context engine details.

Can I inspect partial snapshots from interrupted agent runs?

Yes, you can list, inspect, and clean in-progress partial snapshots to troubleshoot interrupted agent runs. The CLI provides commands to manage these incomplete traces, ensuring interrupted context engine payloads and tool calls are accessible for diagnosis.

Does agent tracing require any external dependencies?

No, agent tracing has zero external dependencies. It records and stores deterministic snapshot artifacts locally as JSON files, then provides a standalone CLI that renders execution details directly from the repo-root working directory.

How do I analyze context engine behavior during agent workflows?

Analyze context engine behavior by viewing its input parameters and the final LLM payload produced after processing. The skill compares available tools against what the agent actually invoked, including arguments and outputs, for deeper diagnosis.