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
HarnessTrajectory
A local viewer for agent sessions. It scans the transcripts that Claude Code and Codex write on this machine,
Agent Receipts
Turn Claude Code & Codex session logs into reviewable receipts for agent-authored PRs: verification verdict, r
Trajectory Panel
Agent 轨迹可视化面板(开源 demo 版)— 将 pi / Claude Code / Codex 的 session 时间线可视化:用户消息、思考块、工具调用+结果、token 用量
Claude Session Viewer
Session Explorer: a local web app for browsing Claude Code and OpenAI Codex CLI session histories, built with
Agent Trail
Local web viewer for Claude Code and Codex CLI session history across multiple profiles.
Cc Log Viewer
Web interface for browsing, searching, and auditing Claude Code conversation logs.
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