{"_id":"agenttrail","_rev":"5-5cd867307658026fc4e84fafbeb4f4d9","name":"agenttrail","dist-tags":{"latest":"0.4.1"},"versions":{"0.1.0":{"name":"agenttrail","version":"0.1.0","keywords":["claude-code","codex","coding-agents","agent-observability","live-map","plan","monitor"],"license":"MIT","_id":"agenttrail@0.1.0","maintainers":[{"name":"sodiumsun","email":"yk3559@gmail.com"}],"homepage":"https://github.com/sodiumsun/agenttrail#readme","bugs":{"url":"https://github.com/sodiumsun/agenttrail/issues"},"bin":{"agenttrail":"bin/agenttrail.mjs"},"dist":{"shasum":"0ae1dd1ecdcfc7a28f55bcdb58c9d3d9bd85f237","tarball":"https://registry.npmjs.org/agenttrail/-/agenttrail-0.1.0.tgz","fileCount":6,"integrity":"sha512-hdrJtLsuunhZAvkKL2vJ1TRgP6GJ2Sov40FlAhhOk9Qldy0PeOUVi5RVIB+OUZf6LdaGtqaT4m6GPNWLhOVahQ==","signatures":[{"sig":"MEYCIQCgV+Gt9+yyvcsXiyU+TIuicYEm5SbhHWnHVzBzGx5B0QIhANhPX3sGvxAEN8f1riSAwuLXSnRUg9TAVEqrWES2HAvR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5375340},"type":"module","engines":{"node":">=20"},"gitHead":"ed751a8090a33f42cbcfc9b7ce0389bdf2e8f024","_npmUser":{"name":"sodiumsun","email":"yk3559@gmail.com"},"repository":{"url":"git+https://github.com/sodiumsun/agenttrail.git","type":"git"},"_npmVersion":"11.12.1","description":"A live map of what your coding agents are doing. Plan and position, watched in real time.","directories":{},"_nodeVersion":"25.9.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/agenttrail_0.1.0_1787532065625_0.4123441475707281","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"agenttrail","version":"0.2.0","keywords":["ai-agents","claude-code","codex","openai-codex","cursor-ai","coding-agents","ai-coding-agents","agent-observability","agent-monitoring","coding-agent-monitoring","live-map","live-dashboard","local-first","progress-tracking","file-watcher","plan","monitor"],"license":"MIT","_id":"agenttrail@0.2.0","maintainers":[{"name":"sodiumsun","email":"yk3559@gmail.com"}],"homepage":"https://github.com/sodiumsun/agenttrail#readme","bugs":{"url":"https://github.com/sodiumsun/agenttrail/issues"},"bin":{"agenttrail":"bin/agenttrail.mjs"},"dist":{"shasum":"1dc5476b0f50967d1346bf79bf5a067249d5aca3","tarball":"https://registry.npmjs.org/agenttrail/-/agenttrail-0.2.0.tgz","fileCount":6,"integrity":"sha512-mnkObFLWdomGhp2XoI8HkxduUc7c2cj4BlxKR3ATxDdFvMabRv6ohXiTTxc6w1MkLnwkowqjk7hv8re+++Typw==","signatures":[{"sig":"MEYCIQDTptuUUOkX06L4jsywRNQSWIEIwogkIkLwke4Rhm8MjQIhAP9pAEEqa3JSYQpLLiTjgRxSCPfi/SewIA7i9Z4Hpw2S","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4495856},"type":"module","engines":{"node":">=20"},"gitHead":"0fd041c77442383f5f06249fc95e53c9dbf07048","_npmUser":{"name":"sodiumsun","email":"yk3559@gmail.com"},"repository":{"url":"git+https://github.com/sodiumsun/agenttrail.git","type":"git"},"_npmVersion":"11.12.1","description":"Local observability map for AI coding agents. Watch Claude Code, Codex, and Cursor plans, tool calls, file changes, and progress in real time.","directories":{},"_nodeVersion":"25.9.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/agenttrail_0.2.0_1787873975051_0.6670395290247093","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"agenttrail","version":"0.3.0","keywords":["ai-agents","claude-code","codex","openai-codex","coding-agents","ai-coding-agents","agent-observability","agent-monitoring","coding-agent-monitoring","live-map","live-dashboard","local-first","progress-tracking","file-watcher","plan","monitor"],"license":"MIT","_id":"agenttrail@0.3.0","maintainers":[{"name":"sodiumsun","email":"yk3559@gmail.com"}],"homepage":"https://github.com/sodiumsun/agenttrail#readme","bugs":{"url":"https://github.com/sodiumsun/agenttrail/issues"},"bin":{"agenttrail":"bin/agenttrail.mjs"},"dist":{"shasum":"34dfd2a6886dda270d4bdbc3f4abbf45ff6e19f0","tarball":"https://registry.npmjs.org/agenttrail/-/agenttrail-0.3.0.tgz","fileCount":12,"integrity":"sha512-2l6PgsDSNh1Cw88ifBdigcEWjHZLzC0n19vYStQlAOGR1iDbQqW51Q37cBfc4Exp16UxnfguArxhYnNKzgVBqQ==","signatures":[{"sig":"MEUCIQCxpoCubvO7oOejeRiSqb0nS0+bjwOUXZUCpXmsbXSmCAIgZBWJG7iWYxARxv2pFDr9f6QkAu4vWQC+/jAJVMn+w28=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIE6aXnm49pa0tynx6Qx9q7a/nZd78iflOMRv2vyv3mHoAiBTYlNqGXgdPejyZdADa5QM1Tn6mnu9qzHWaZGHOKmweg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4576797},"type":"module","engines":{"node":">=20"},"gitHead":"a9b69593559183641f691472358aa4b04b1e3b7f","scripts":{"test":"node --test test/*.test.mjs"},"_npmUser":{"name":"sodiumsun","email":"yk3559@gmail.com"},"repository":{"url":"git+https://github.com/sodiumsun/agenttrail.git","type":"git"},"_npmVersion":"11.20.0","description":"Local observability for AI coding agents: a live project map from PLAN.md, file activity and local Claude Code and Codex logs, with optional Claude Code hooks.","directories":{},"_nodeVersion":"26.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/agenttrail_0.3.0_1793818685211_0.8558260466657268","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"agenttrail","version":"0.4.0","keywords":["ai-agents","claude-code","codex","openai-codex","coding-agents","ai-coding-agents","agent-observability","agent-monitoring","coding-agent-monitoring","live-map","live-dashboard","local-first","progress-tracking","file-watcher","plan","monitor"],"license":"MIT","_id":"agenttrail@0.4.0","maintainers":[{"name":"sodiumsun","email":"yk3559@gmail.com"}],"homepage":"https://github.com/sodiumsun/agenttrail#readme","bugs":{"url":"https://github.com/sodiumsun/agenttrail/issues"},"bin":{"agenttrail":"bin/agenttrail.mjs"},"dist":{"shasum":"7d57c2dfc7ba4e138fb422f5b053f9c1ac8bc937","tarball":"https://registry.npmjs.org/agenttrail/-/agenttrail-0.4.0.tgz","fileCount":15,"integrity":"sha512-UqRSX7KWChSHcS8OyTmqMsLPAEUjgCn/EVaLOaC4BQQqjMtJ5CpklErWUTLrS2ClBm+R+cr9CedRN3bemF8RMQ==","signatures":[{"sig":"MEQCIH2a0v7LW7PutcfmHMi07zOXozOXNlyeZLBUMDfduX2/AiAzifiO3rNafd9tcmx/mV2Cg5c3v33aUowf9awnoliI9w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDv0Ij1b9E0pWZ+zwZ7kx2+gM+kefowwWn3bxAN6m0W0QIgO92nrn9dIvvZmG5evq6JZ8mifhlaI5rQr2aZovnUkxc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4617009},"type":"module","engines":{"node":">=20"},"scripts":{"test":"node --test test/*.test.mjs"},"_npmUser":{"name":"sodiumsun","email":"yk3559@gmail.com"},"repository":{"url":"git+https://github.com/sodiumsun/agenttrail.git","type":"git"},"_npmVersion":"11.20.0","description":"Local observability for AI coding agents: a live project map from PLAN.md, file activity and local Claude Code and Codex logs, with optional Claude Code hooks.","directories":{},"_nodeVersion":"26.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/agenttrail_0.4.0_1793858230160_0.18252243699614557","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"_id":"agenttrail@0.4.1","bin":{"agenttrail":"bin/agenttrail.mjs"},"bugs":{"url":"https://github.com/sodiumsun/agenttrail/issues"},"dist":{"shasum":"77c40d5907555b84fa78aedfe9f63f4e17712292","tarball":"https://registry.npmjs.org/agenttrail/-/agenttrail-0.4.1.tgz","fileCount":15,"integrity":"sha512-RPgvko+G/1FNF3UpaCLpMyNa0llmMhSsp6MHO2FCBUpH4T+OJAQKJYAfT+SSgcmTlmgpGFyWo2aAUUc4B3fjpQ==","signatures":[{"sig":"MEYCIQCc+AW+YFekot6vLdWgSNxTDgJOwv79kMed0N9LzAk3IwIhAJ9AITjh8CflkuL0IgCpBsMwaigF/IhyVRoXyPGYvMEm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIELAc4esjzsyy7SDs+q30UVRkTDNib5j5xMCpZyaGE5OAiEAtUBTzRGW3q4V4qwBLOXJJylZ/b6IZ8mICm1mRalTRD4="}],"unpackedSize":4617009},"name":"agenttrail","type":"module","engines":{"node":">=20"},"license":"MIT","scripts":{"test":"node --test test/*.test.mjs"},"version":"0.4.1","_npmUser":{"name":"sodiumsun","email":"yk3559@gmail.com"},"homepage":"https://github.com/sodiumsun/agenttrail#readme","keywords":["ai-agents","claude-code","codex","openai-codex","coding-agents","ai-coding-agents","agent-observability","agent-monitoring","coding-agent-monitoring","live-map","live-dashboard","local-first","progress-tracking","file-watcher","plan","monitor"],"repository":{"url":"git+https://github.com/sodiumsun/agenttrail.git","type":"git"},"_npmVersion":"11.20.0","description":"Local observability for AI coding agents: a live project map from PLAN.md, file activity and local Claude Code and Codex logs, with optional Claude Code hooks.","directories":{},"maintainers":[{"name":"sodiumsun","email":"yk3559@gmail.com"}],"_nodeVersion":"26.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agenttrail_0.4.1_1793981549505_0.6182002201751662"}}},"time":{"created":"2026-08-24T00:41:05.562Z","modified":"2026-11-06T16:12:29.895Z","0.1.0":"2026-08-24T00:41:05.888Z","0.2.0":"2026-08-27T23:39:35.313Z","0.3.0":"2026-11-04T18:58:05.584Z","0.4.0":"2026-11-05T05:57:10.370Z","0.4.1":"2026-11-06T16:12:29.746Z"},"bugs":{"url":"https://github.com/sodiumsun/agenttrail/issues"},"license":"MIT","homepage":"https://github.com/sodiumsun/agenttrail#readme","keywords":["ai-agents","claude-code","codex","openai-codex","coding-agents","ai-coding-agents","agent-observability","agent-monitoring","coding-agent-monitoring","live-map","live-dashboard","local-first","progress-tracking","file-watcher","plan","monitor"],"repository":{"url":"git+https://github.com/sodiumsun/agenttrail.git","type":"git"},"description":"Local observability for AI coding agents: a live project map from PLAN.md, file activity and local Claude Code and Codex logs, with optional Claude Code hooks.","maintainers":[{"name":"sodiumsun","email":"yk3559@gmail.com"}],"readme":"<div align=\"center\">\n\n<picture>\n  <source media=\"(prefers-color-scheme: dark)\" srcset=\"assets/brand/agenttrail-mark-dark.svg\">\n  <img src=\"assets/brand/agenttrail-mark-black.svg\" alt=\"agenttrail\" width=\"96\">\n</picture>\n\n# agenttrail\n\n**Local observability for AI coding agents.**\n\n[![Map on npm](https://img.shields.io/npm/v/agenttrail?color=e9a23b&label=npm)](https://www.npmjs.com/package/agenttrail)\n[![Map checks](https://github.com/sodiumsun/agenttrail/actions/workflows/map.yml/badge.svg)](https://github.com/sodiumsun/agenttrail/actions/workflows/map.yml)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n</div>\n\nAgenttrail draws a live map of your project and shows where your coding agents are working on it: which part is changing, which tasks each session has reported, and what it is doing now. You see that in one browser tab instead of piecing it together from several terminal windows.\n\nYour agents keep running in tools such as Claude Code and Codex. Agenttrail reads local files, your plan and the agents' local logs, and shows that evidence. It does not run agents, assign their work or decide that a task is finished.\n\n![Agenttrail Map showing live sessions, component progress and file changes](docs/demo.gif)\n\n## Run it in your repo\n\nYou need **Node.js 20+** and a local project folder.\n\n```bash\ncd your-repo\nnpx agenttrail\n```\n\nThe map opens in your browser at **localhost:5330**, or the next free port. Keep working in your coding agent. Claude Code and Codex sessions in this repo appear as run cards from their local logs, with nothing to install. File changes appear as they happen.\n\nWatching does not change your repo. In an interactive terminal, starting without a `PLAN.md` offers to set one up, and you can decline.\n\n## Draw the component map\n\nFile activity and run cards work on their own. With no plan, the map is inferred from git, read-only and across every branch and worktree: the handful of branches and worktrees with recent work, drawn as the plan's cards flowing from the trunk by what grew out of what. Each card shows the folders it touched, its latest commit, a bar of its commits in the window against the busiest branch, any agent session in it, and more commit subjects underneath. Commit subjects stay on your machine. A repo with one branch shows code areas only, and a folder with no commits keeps the plain Watching view. Add a plan for real tasks and progress.\n\nRun `npx agenttrail init`, review the setup, then give your agent the backfill prompt from the board. It adds the convention to `CLAUDE.md` and `AGENTS.md`, creates a starter plan, offers local Claude Code hooks, and adds `.agenttrail/` to `.gitignore`. **Setup writes these files; normal watching does not.** Noninteractive `init` assumes yes, so run it only when you intend to configure the repo.\n\nThe map combines declared intent in `PLAN.md` with observed file changes. A completed component lights up when its files change again. It also has a live file tree, dependency links, session trails and an overview of multiple repos. `npx agenttrail up` relaunches saved boards after a reboot; `npx agenttrail autostart` configures startup at login.\n\n<details>\n<summary><b>The PLAN.md convention</b></summary>\n\n```markdown\n# my project\n\n## Capture the audio {#capture}\ntech: coreaudio tap + ring buffer\nfiles: [src/audio/**]\n- [x] Grab the mic feed {#capture-mic}\n  by: claude\n- [~] Keep the last 30 seconds ready {#capture-ring}\n  by: claude\n\n## Classify the alerts {#classify}\nneeds: [capture]\nlinks: [notify]\n- [ ] Score events by urgency {#classify-score}\n  from: roadmap\n\n## decisions\n- 2026-08-21: dropped redis for summaries; in-process queue instead\n```\n\n- Components use stable `{#id}` values and concrete, owner-readable names\n- `files:` connects observed writes to the component they belong to\n- `[~]` means working, `[x]` means done, and `[!]` means stuck\n- `needs:` draws dependency arrows; `links:` draws dashed connections\n- `by:` records who did the work; `from:` separates agent intent from roadmap intent\n- `kind: knowledge` renders a component as a purple knowledge organ; `kind: human` renders it dashed in its own color — the step where a person enters the loop; `url:` with an `http(s)` address makes the card clickable, opening the artifact it produces\n- Backfilled completed tasks cite their implementing file as evidence\n- Agents record plan-affecting decisions before they act on them\n\n</details>\n\n## What it can see\n\n| Tool | How Map sees it | What you get |\n| --- | --- | --- |\n| Claude Code | Local logs in `~/.claude/projects`, automatically. Hooks are optional | Sessions, tool activity, file trails, sub-agents, and task lists from `TaskCreate`/`TaskUpdate` or `TodoWrite` |\n| Codex | Local logs in `~/.codex/sessions`, automatically | Sessions, tool activity and file trails. Plans appear only when the log contains an `update_plan` call, which recent versions rarely write, so they usually show as unknown |\n| Cursor and other tools | No session adapter | File changes and whatever the agent records in `PLAN.md` |\n\nClaude Code hooks are not needed to see a session. They add three things: events the moment they happen rather than within a few seconds, a reminder to the agent when the plan has fallen behind the code, and a terminal id in Map's data when the terminal sets `HC_TERMINAL_ID`. A session seen through both hooks and its log stays one run.\n\nMap reads logs touched in the last two hours and at most the last 2 MiB of each. Cloud sessions with no logs on this machine are not visible. Local log formats can change between agent versions. [How observability works](docs/OBSERVABILITY.md)\n\n## Beside your agents in Herdr\n\nA mod for the [Herdr](https://herdr.dev) desktop app draws Map natively beside your agents: the same cards and connectors from `PLAN.md`, in a side panel that expands to full size and follows the repo of the focused terminal. With no plan it falls back to a simple view from git. It only reads. See [herdr/README.md](herdr/README.md).\n\n## Local by construction\n\nMap binds to **127.0.0.1**. It needs no account, telemetry, transcript upload, model call or cloud service, and it opens agent logs read-only. Run cards can show shortened command text, search terms and other tool details, and Map saves recent activity under `~/.agenttrail`. Review what is visible before sharing a recording. [Data sources and local storage](docs/OBSERVABILITY.md#what-stays-on-your-machine)\n\nMap is a dependency-free Node daemon and a static page. It does not control your agents, send prompts, approve actions or mark their tasks complete.\n\n## FAQ\n\n**Is Agenttrail an agent framework?** No. You run agents in their existing tools, and Agenttrail shows the available evidence of what they are doing. Token billing and full model traces are not implemented.\n\n**Will this work in an existing repo?** Yes, run it from that folder. Git and `PLAN.md` are optional.\n\n**Why is a session missing?** A new session can take about ten seconds to appear. It must be working inside the watched repo, with its logs on this machine. A session that has been silent for two hours drops off the live view.\n\n**Does a finished task mean the work shipped?** No. It means the agent reported the task complete. A turn ending or a file changing does not prove an outcome either.\n\n**What changes in my repo?** Watching changes nothing. `init` creates the plan and agent instructions, offers hooks in `.claude/settings.local.json`, and adds a `.gitignore` entry.\n\n**What is still unverified?** Windows has not been tested. Automated checks run on Linux and macOS.\n\n**What happened to Kitchen?** The experimental 3D view has been retired so the project can focus on Map. Its last release stays on npm as `agenttrail-kitchen`, without further updates.\n\n## Contribute and license\n\n[Report a bug](https://github.com/sodiumsun/agenttrail/issues) · [Contributing](CONTRIBUTING.md)\n\nMIT for the project code and original assets.\n","readmeFilename":"README.md"}