by sodiumsun
Local observability map for AI coding agents. Watch Claude Code, Codex, and Cursor plans, tool calls, file changes, and progress in real time.
# Add to your Claude Code skills
git clone https://github.com/sodiumsun/agenttrailagenttrail is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by sodiumsun. Local observability map for AI coding agents. Watch Claude Code, Codex, and Cursor plans, tool calls, file changes, and progress in real time. It has 76 GitHub stars.
agenttrail's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/sodiumsun/agenttrail" and add it to your Claude Code skills directory (see the Installation section above).
agenttrail is primarily written in HTML. It is open-source under sodiumsun on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agenttrail against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Know what your coding agents are doing, while they are doing it.
Your coding agent has been working for half an hour. Is it making progress? Is it stuck? Did it quietly reopen the part it already called done?
agenttrail is a local, open-source observability layer for AI coding agents. It turns plans, tool calls, file changes, and progress from Claude Code, OpenAI Codex, Cursor, or any agent that edits files into a live project map.
Start an agent, walk away, and come back to this:

cd your-repo
npx agenttrail --open
That's it. No account, no global install, no telemetry. agenttrail opens on localhost and starts watching the repo.
A plan says what the agent intends to do. The filesystem says what it actually touched. agenttrail shows both.
| Signal | What it tells you |
|---|---|
| Declared | The component and task the agent says it is working on |
| Observed | The files it is changing right now, including revisions to finished work |
When those signals disagree, you know where to look. A completed card lights up when its files change again. A live run sits on the component it is touching. The map moves as the work moves.
Instead of replaying a transcript, agenttrail shows the shape of the work, updated live.
The first command works with any repo. You immediately get the live file tree, activity state, and Claude Code run cards when local hooks are present.
For the full component map, run this once:
npx agenttrail init
init adds the agenttrail convention to CLAUDE.md and AGENTS.md, creates a starter PLAN.md, and installs additive local Claude Code hooks. Then click Copy backfill prompt on the board and paste it to your agent.
The agent studies the code first, git history next, and planning prose last. It draws the repo as 5–9 components with real dependencies and verifiable statuses. You do not maintain a project-management board. Your agents maintain one small Markdown file as they work.
| Agent | Live activity | Run cards and todos | Maintains the map |
|---|---|---|---|
| Claude Code | ✅ file watcher | ✅ local hooks | ✅ CLAUDE.md |
| OpenAI Codex | ✅ file watcher | — | ✅ AGENTS.md |
| Cursor or anything else | ✅ file watcher | — | ✅ AGENTS.md |
The daemon is one dependency-free Node file, about 470 lines. The interface is one static HTML file. There is no database, build step, cloud service, account, or telemetry.
It binds to 127.0.0.1 only. Claude Code hooks live in the repo-local .claude/settings.local.json and relay events to the local daemon. While it runs, agenttrail only observes. It never sends a prompt or edits your code.
The entire model comes from two sources:
PLAN.md, the durable map curated by your agentsRead the core: bin/agenttrail.mjs.
# my project
## Capture the audio {#capture}
tech: coreaudio tap + ring buffer
files: [src/audio/**]
- [x] Grab the mic feed {#capture-mic}
by: claude
- [~] Keep the last 30 seconds ready {#capture-ring}
by: claude
## Decide what matters {#classify}
needs: [capture]
links: [notify]
- [ ] Score events by urgency {#classify-score}
from: roadmap
## decisions
- 2026-08-21: dropped redis for summaries; in-process queue instead
{#id} values and concrete, owner-readable namesfiles: connects observed writes to the component they belong to[~] means working, [x] means done, and [!] means stuckneeds: draws dependency arrows; links: draws dashed connectionsby: records who did the work; from: separates agent intent from roadmap intentDoes it work without PLAN.md? Yes. The live tree, activity feed, and run cards need no plan. The map appears when your agent writes one.
What does coding agent observability mean here? LLM observability usually focuses on traces, latency, tokens, and cost. agenttrail focuses on the work happening in a repo: which component an agent is in, what tool it is running, what files it is changing, and whether its plan is moving.
Which AI coding agents does agenttrail support? Claude Code has the richest live view through local hooks. OpenAI Codex, Cursor, and any agent that edits files work through the repo watcher and can maintain the map through AGENTS.md.
Does agenttrail control my agent? No. It observes and draws. It never sends a prompt. init prints the optional backfill prompt, and the board can copy it to your clipboard.
What does init change? It creates the starter plan, appends the convention to the repo's agent instruction files, adds .agenttrail/ to .gitignore, and installs local Claude Code hooks. The running dashboard itself is read only.
What about a huge repo? agenttrail has been tested on a 78k-file repo. It reads the tree breadth first with per-directory caps, sends tiny SSE activity ticks, and tells you when the tree is abridged.
What if the plan goes stale? Tell any agent: re-verify PLAN.md against the code. The board updates as the file does.
MIT