All-Your-Agents is a Node.js library and CLI that discovers and monitors every coding AI agent running on a machine, presenting live sessions and historical transcripts without polling. It watches the files each agent writes plus the processes that produce them, coalesces bursts of filesystem events (25 ms quiet, up to 1 s latency), and emits rich events (session:create/open/status/update/activity/close, subagent:start/end, ready, error). The package exposes an API (start/stop, sessions(), get(id), running(), reconcile(pid), transcript(), events(), subagents()) and a tty UI/CLI (npx @markwylde/all-your-agents) to list, filter, and inspect sessions. It runs on Node ≥ 20 (demos from source on ≥ 22.18), supports macOS and Linux, and can observe remote hosts by passing custom fs and process providers.
Provider-specific support is detailed: built-in providers cover Claude Code, Grok Build, Codex CLI and others, each mapping agent state from provider files (e.g., Claude sessions/.json, Grok active_sessions.json and chat_history.jsonl) into status, model, title, transcript, and subagents. The library keeps the 1,000 most recent closed sessions in memory and reads older history from providers. It documents limitations per provider (missing live index entries, absent error text, headless vs interactive distinctions, approval persistence) and offers options for custom fs/process/sqlite backends and debounce configuration.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.