agenttrail
/agenttrail
agenttrail: live map of a multi-agent build in the browser: which plan component is being worked on, by which agent or harness, what is done and what is stuck. Use when a multi-agent pipeline starts (/startcycle, /startcycle-graph, /teamwork-preview) or after a plan-canvas approve, when the user asks to see what the agents are doing ("live map", "build board", "who is running now"), or by yourself whenever a multi-agent run is under way — no user prompt needed.
- Author
- hybridlabor-api ↗
- Repository
- aos ↗
- Licence
- Apache-2.0
- Last repository change
- 14.10.2026
Assessment and security
- Files in this package
- 26
- Scripts
- 19
- HTML comments
- 1
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 14.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 19 scripts in this package. Review them before installing, as Claude may execute them.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
Scripts: bin/agenttrail.mjs, bin/ensure.mjs, bin/repoid.mjs, bin/trail-hub.mjs, lib/click.mjs, lib/code-stamp.mjs, lib/events.mjs, lib/gatepanel.mjs
What it does and when to use it
agenttrail: live map of a multi-agent build in the browser: which plan component is being worked on, by which agent or harness, what is done and what is stuck. Use when a multi-agent pipeline starts (/startcycle, /startcycle-graph, /teamwork-preview) or after a plan-canvas approve, when the user asks to see what the agents are doing ("live map", "build board", "who is running now"), or by yourself whenever a multi-agent run is under way — no user prompt needed.
Triggers from the description
Original author description
agenttrail: live map of a multi-agent build in the browser: which plan component is being worked on, by which agent or harness, what is done and what is stuck. Use when a multi-agent pipeline starts (/startcycle, /startcycle-graph, /teamwork-preview) or after a plan-canvas approve, when the user asks to see what the agents are doing ("live map", "build board", "who is running now"), or by yourself whenever a multi-agent run is under way — no user prompt needed.
How it works
- Start the map
- Ensure (auto-start)
- Plan convention
- Live agent events
- Stop
- Rules
SKILL.md preview
---
name: agenttrail
description: >-
agenttrail: live map of a multi-agent build in the browser: which plan component is being
worked on, by which agent or harness, what is done and what is stuck. Use
when a multi-agent pipeline starts (/startcycle, /startcycle-graph,
/teamwork-preview) or after a plan-canvas approve, when the user asks to see
what the agents are doing ("live map", "build board", "who is running now"),
or by yourself whenever a multi-agent run is under way — no user prompt
needed.
category: bdb-core
metadata:
version: "0.2.0"
origin: sodiumsun/agenttrail@e4ba2da
license: MIT
---
<!-- Source: sodiumsun/agenttrail bin/agenttrail.mjs + public/index.html — MIT, see THIRD_PARTY_NOTICES.md -->
# agenttrail — live pipeline map
agenttrail serves a browser board that mirrors a multi-agent build in real time: which plan component is being worked on, by which agent or harness, what is done and what is stuck. It observes only — it never runs agents and never marks tasks done.
## Start the map
```bash
aos-trail . --plan production_artifacts/00_execution_plan.md --no-open
```
It prints the URL (default http://localhost:5330, next free port if taken). Open that URL for the user. If running inside AO (env var `AO_BROWSER_CAPABILITY` is set), run `ao preview <url>` so it shows in AO's Browser tab. Without a plan file, start it with just `aos-trail .` — it then shows file activity only.
## Ensure (auto-start)
```bash
aos-trail --ensure [--cwd <dir>] [--plan <file>] [--session <id>] [--json]
```
Starts the map detached if none runs for this repo (matched via `/whoami` `repoPath` on 127.0.0.1:5330-5344). `repoPath` is the repo's main checkout, so every git worktree of a repo finds the same map; the map shows each worktree as its own lane (branch and folder) and files hook events by their `cwd`. `/whoami` also lists `worktrees`, opens it at most once per session (state in `$TMPDIR/aos-trail-ensure/`), and always exits 0. Plan: `--plan`, else `production_artifacts/00_execution_plan.md`, else the single `production_artifacts/*/00_execution_plan.md`; it needs a `{#id}` marker. No open under `CI`, SSH, or headless Linux; with `AO_BROWSER_CAPABILITY` it runs `ao preview <url>`. `--json` prints `{url,started,opened,reason,plan,hint}`. Test overrides: `AOS_TRAIL_OPENER` (opener command), `AOS_TRAIL_PORTS=lo-hi` (probe range).
Lanes: main first, then at most 11 worktrees; the slots go to the most recently active ones (a lane with events in the last 10 min keeps its slot), and events from any further worktree of the repo are filed in one `other worktrees` lane, never in main. `/whoami` carries `protocol: 2`. `--ensure` replaces a daemon on this repo (or one of its worktrees) that lacks it: the new map starts first, then the old one is asked to quit via `POST /shutdown` (JSON body naming its own `repoPath`); a daemon that cannot (older ones have no such API) keeps running and `hint` says which port to stop. Two concurrent `--ensure` runs share a lock file in `$TMPDIR/aos-trail-ensure/`. `/setup` on a map with several lanes needs `{"lane": "<key>"}` and writes into that checkout.
## Plan convention
The plan file uses components and tasks:
- `## Plain-language name {#id}` = a component (5-9 per plan), stable ids
- under it optional lines: `needs: [id, id]`, `links: [id]`, `files: [src/**]`, `url: production_artifacts/00_architecture.html`
- tasks: `- [ ] Outcome {#task-id}`; mark `[~]` BEFORE starting, `[x]` when done, `[!]` when stuck, and add an indented `by: <agent>` line (claude, codex, agy, opencode)
- save the file immediately after each status change; never batch updates to the end
- Mermaid blocks and prose may stay in the file; the map ignores them.
## Live agent events
The AOS installer registers `.claude/hooks/trail-relay.mjs --agent <harness>` for Claude Code (PreToolUse, PostToolUse, SessionStart, Stop, SubagentStop), Antigravity and Codex (PreToolUse, Stop). The OpenCode plugin and mcsc (for the CLI workers it delegates to) post events directly. Events are fire-and-forget (300 ms cap) and never block a tool call; with no map running they are dropped.
**Automatic node link.** A dispatcher sets `AOS_TRAIL_NODE=<node-id>` and `AOS_TRAIL_PLAN=<plan-file>` when it starts a worker (`aos-acp --trail-node <id> --trail-plan <file>` does this). The relay stamps both onto every event, so the node is live on the map while the worker reports and is shown as touched, not done, after its Stop or SessionEnd. Interactive sessions: `aos-trail emit task.update --task <id> --status doing --plan <file>`.
A component's `url:` may be a path under `production_artifacts/` — the map serves that folder, so e.g. `url: production_artifacts/00_architecture.html` opens the archify diagram from the card.
## Stop
The daemon runs until its terminal/process ends; `aos-trail up` relaunches saved boards.
## Rules
- Never create a root `PLAN.md` in a user repo during an AOS pipeline — always point at the pipeline's plan with `--plan`.
- Never mark `[x]` without evidence in the code.
Files in this package (26)
- LICENSE 1 KB
- SKILL.md 5 KB
- bin/agenttrail.mjs 70 KB
- bin/ensure.mjs 8 KB
- bin/repoid.mjs 4 KB
- bin/trail-hub.mjs 16 KB
- lib/click.mjs 15 KB
- lib/code-stamp.mjs 2 KB
- lib/events.mjs 8 KB
- lib/gatepanel.mjs 7 KB
- lib/httpguard.mjs 2 KB
- lib/hub-model.mjs 11 KB
- lib/hub-state.mjs 2 KB
- lib/identity.mjs 3 KB
- lib/plan.mjs 4 KB
- lib/sessions.mjs 7 KB
- lib/shared-static.mjs 2 KB
- lib/stale.mjs 3 KB
- public/index.html 35 KB
- public/hub/app.css 6 KB
- public/hub/app.js 22 KB
- public/hub/enroll.html 1 KB
- public/hub/enroll.js 2 KB
- public/hub/index.html 2 KB
- public/shared/map.css 50 KB
- public/shared/map.js 46 KB
Versions
The database has no other skills named agenttrail.
Database snapshot: 13.11.2026 · package version 4457b2d43c8e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100startcycle
Linear multi-agent build pipeline with file hand-offs in production_artifacts/, run after /bdbrainstorm or /grill-me. This is the linear variant — no state.json, no repair loop, no dispatcher graph — distinct from startcycle-graph, which adds durable state and automated… - 95startcycle-graph
Use when running the autonomous multi-agent build pipeline after /bdbrainstorm or /grill-me, when the user types /startcycle-graph or "run a startcycle", or when a task needs durable state, a review repair loop and an automated quality gate. Routes to the startcycle-dispatch… - 100agent-harness
Guide for AI agents running in the isolated agent-harness environment. Use when you need to discover your agent ID, find your ports, manage your stack with agent-cli.sh, run verification, or understand the multi-agent development setup. - 90teamwork
Run repo-scale multi-agent builds the Antigravity teamwork way — two-phase scoping interview with an approval gate, then autonomous milestone execution with parallel workers, exclusive file ownership, adversarial verification gates, and task/plan/walkthrough artifacts. Use when… - 90multi-agent-systems
Orchestrate Multi-Agent System (MAS) architectures. Use when: design mas, setup multi-agent, orchestrate agents. - 90live
Use when the user asks about running sessions, agent status, what needs attention — e.g. 'what's running', 'live status', 'which sessions need me', 'agent status', 'check on my agents', 'are my sessions done', 'anything stuck