Agent Trajectory — Development skill for Claude Code
Turn Claude Code and Codex session logs into an interactive agent trajectory viewer.
How to install Agent Trajectory
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ezra-y/agent-trajectory and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Trajectory does
Turn Claude Code and Codex session logs into an interactive agent trajectory viewer.
Alternatives in Development
- Understand Anything — Graphs that teach graphs that impress 80.7k ★
- Understand Anything — Claude Code skills that turn any codebase into an interactive knowledge graph you can explore, search, and ask 2.5k ★
- Claude Code Viewer — A full-featured web-based Claude Code client that provides complete interactive functionality for managing Cla 984 ★
README
agent-trajectory
English | 中文

See what your AI agent actually did — turn by turn, tool by tool, token by token.
Interface and interaction model based on the trajectory view in DeepSeek Harness.
`agent-trajectory` turns a Claude Code or Codex session log (or normalized `agent-trajectory/v1` JSON from another host) into a trajectory viewer: a per-turn ledger of every tool call with its arguments, result, duration and status; a zoomable timeline with a context-window usage curve; and an optional **learn tier** where an AI annotates every step — what the turn set out to do, why each pivotal call was made, and a short storyline of what actually happened, failures included.
Built for people learning how agents work under the hood, and for anyone who wants to review what an agent did on their machine.
Highlights
- Two tiers. Raw is pure log parsing — no model calls, instant. Learn adds AI-written annotations (per-turn goal, per-step why, per-turn storyline), grounded strictly in the parsed events so it can't invent steps.
- Live mode.
scripts/serve.pywatches the session log and updates the page while the agent works. Real-time, local, zero dependencies. - Ask AI. Hover any step, press 问AI — the question lands in a notebook
drawer. In live mode it's answered in-page by a local CLI (
claude -p/codex exec/ anything via$AGENT_TRAJECTORY_ASK_CMD); in a static page it's copied for pasting into any chat. - Self-contained output. One HTML file, no network, no build step, light and dark, print-to-PDF ready. Send it to anyone.
Quick start
# live view of your current session (run inside your project directory)
python3 scr
Related Skills
Claude Session Viewer
Session Explorer: a local web app for browsing Claude Code and OpenAI Codex CLI session histories, built with
Claude Code Token Meter
Local-first dashboard for Claude Code token usage. Parses ~/.claude/projects/.jsonl and serves an interactive
Claude Plugin Cxdb Integration
Claude Code plugin that records every session as structured turns in cxdb via lifecycle hooks, enabling trajec
Agent Insights
Agent session insights, stats, and interactive dashboards for monitoring performance. Codex, Claude code, Gemi
Hindcast
Browse, search & replay every Claude Code session on your Mac. Local-first session viewer, timeline scrubber &
Claude Compaction Viewer
View and analyze Claude Code conversation history and compaction events with a TUI and CLI tool for clear sess
Related Agents
Viz Frontend
Use when experiment data needs a custom dashboard, comparison surface, or trajectory viewer.
3D Scene Developer
Web 3D visualization specialist who creates immersive 3D scenes, terrain models, point cloud visualizations, a
Retro Reviewer
Reviews one prior session through ax's normalized cross-harness Turn view and emits a structured retro (tried