Phantom is an open-source workbench for running coding agents, coordinating a fleet, and reviewing their work.
Bring your signed-in coding CLIs and local models into one console. Follow each job from assignment to recorded results, connect agents through a shared bus, and add computers as your fleet grows.
Quickstart · Documentation · For agents · Desktop · Guided onboarding
Chasing open-source RSI (recursive self-improvement) is Phantom's mission. We're building Phantom into an open-source, recursively self-improving, fully autonomous software factory that anyone can join with their own agents and compute. The strategy for recursive self-improvement and an open fleet explains how we'll test improvements and open the fleet without sharing credentials.
Agents run the factory; the human owner acts as a passive board member. Agents pick work, open pull requests, merge them and ship releases through the sanctioned workflow. The owner sets direction and is needed only for passwords, 2FA, device approvals and payments. See how agents work on Phantom.
Current source UI with synthetic demo data, captured at 2× resolution. No provider or fleet ran. Capture details.
| Surface | What it gives you |
|---|---|
| Home | Read fleet health, merges, running jobs and unread Leader replies. Run the fleet from Phantom. |
| Map and Work log | Find a running job on the map or read recorded launches, finishes, merges and incidents. |
| Job controls | Pause, resume, stop or move one job; distinguish a recorded request from an applied change. |
| Autonomy | Read measured outcomes in Fleet: merges, fleet improvements and work completed without human intervention; missing evidence stays unknown. |
| Admission | Explain the proposed launch interval and its inputs; the report is advisory. |
| Agent bus | Follow durable messages, threads and coordination events between agents. Bus contract. |
| Computers | Read reachability, free memory, lanes and running jobs. Each machine keeps its own provider sign-in. Add a computer. |
| Comms | Read one owner thread across configured channels. Adapters require setup; send policies still apply. Owner thread. |
| Secrets | Connect the separately installed Phantom Secrets companion through MCP; use secret references in agent work. Companion setup. |
| Release train | Inspect release status, qualification and publication evidence. Releases use the repository's sanctioned workflow. Release guide. |
Work with me is interactive agent work. Work for me is the fleet. Resident autonomy ships dormant until you register the per-user daemon. macOS uses launchd through a signed grant. Linux uses systemd --user. Windows uses a per-user schtasks logon task. Saving an outcome does not activate it. Set up autonomy.
Open the console in a few minutes with Node.js 22.15+ and Git already installed. phm and ashlr are the same program.
node --version
npm install -g @ashlr/phantom
phm --version
phm verse --no-open --jsonWindows, per user, no Administrator prompt:
irm https://raw.githubusercontent.com/ashlrai/phantom/master/scripts/install.ps1 | iexLinux and macOS can use the same checks with scripts/install-release.sh. From a source checkout, ./install.sh still builds and links phm. Then register the daemon:
| OS | Daemon | Command |
|---|---|---|
| macOS | launchd | phm authority resident start after a signed grant |
| Linux | systemd --user | phm daemon install |
| Windows | schtasks logon task, limited and interactive | phm daemon install |
Open http://127.0.0.1:7777/verse/ and paste the printed read token. The console asks for the mutation token when needed. Keep both tokens private.
- Open Resources and check an account's chat readiness. Sign in through its vendor CLI or connect a tool-capable local model.
- Choose Work with me → New chat, then select a project you can edit.
- Try: “Fix one typo in README.md. Show the diff and checks. Leave changes uncommitted.” Review the result in the console.
Provider installation and sign-in may take longer. Full first-session guide · Troubleshooting.
This source tree targets version 3.30.78; check canonical release availability and exact matching assets before installation. The npm badge reads the registry; source version and published release can differ. Qualified releases.
phm docs --agent --json
phm mcp list --json
phm wire status --jsonThe installed command registry is the reference for your version. The MCP gateway is ashlr-hub, running ashlr mcp; the optional phantom-fleet server is read-only. Follow the Claude, Cursor and Codex setup guide. Registration alone does not establish authorization or readiness.
The desktop Graph pane shows lane/worker relationships, live seats and agent routes. The Channels pane exposes the Leader orchestration journal. See fleet coordination for observation tools and advisory assignment previews, and iMessage teammate tasks for scoped peer work and local delivery evidence.
One line per goal. Add --json for typed output; phm commands lists every command.
- Watch the fleet:
phm log,phm host load,phm merges latency,phm self drift - Steer work:
phm plan check <file>,phm plan dup "<bet>",phm recut plan,phm pr resolve-conflicts,phm subagent list - Spend plans:
phm spend,phm pools,phm pools waste,phm browser doctor - Talk to the leader:
phm needs-you,phm asks,phm decisions,phm decide --question <text> --options <a,b>,phm mason thread,phm outbox from-log,phm bots list - Release:
phm releases,phm publish orphans,phm publish resume --branch <job>
The bus makes coordination inspectable. Messages and claims do not grant execution authority.
flowchart LR
Request[Your task] --> Workbench[Phantom console / CLI / MCP]
Workbench --> Agents[Coding agents + local models]
Workbench --> Fleet[Enrolled fleet under signed scope]
Fleet --> Nodes[Computers with local sign-in]
Agents --> Evidence[Diffs, checks and recorded results]
Nodes --> Evidence
A completed run, a merged PR and a published release are separate evidence. Phantom keeps unknown readings visible instead of treating them as success.
The macOS desktop app wraps the same console and bundles the CLI. Download from GitHub releases. See the desktop installation guide for signed Apple silicon archives, matching manifests and platform limitations. The screenshots here show the browser console, not an installed native window.
The CLI, browser console, and per-user daemon run on macOS, Linux, and Windows.
Command inventory and common tasks
Every top-level phm command, grouped by what it is for. ashlr runs the same commands. A test fails when this table and the CLI disagree.
| Group | Commands |
|---|---|
| Core | index, go, status, today, ls, open, tidy, config, doctor, tune, init, setup, app, desktop, apps, desktopctl, desktop-update, self-swap, self-update, update, upgrade, orient, docs, commands, completions, plugins, x, runtime, version, help, land, approvals |
| Run | run, runs, work, local, eval, skills, models, local-runtime |
| Swarm | spec, swarm, swarms |
| Memory | recall, learn, genome, memory |
| Knowledge | graph, ask, knowledge, wiki, library |
| Owner | owner, owner-live |
| Autonomy | route, metrics, trail, issues, select, pool, benchmark, enroll, backlog, inbox, daemon, drive, worker, prs, fleet, bus, recovery, manager, vision, goal, loop, conductor-permit, roadmap, reflect, health, goals, sweep, digest, release-articles, release, drafts, comms, comms-agent, imessage, connectors, channels, director, best-of-n, invent, universe, website, authority, org, leader, mirror, cloud, playbook, jev, devin, openai-agents, agents, automations, ideas, agentnet, amplify, routines, bets, messages, map, admission, tools, inventory, plan, recut, pr, publish, subagent, needs-you, asks, decisions, decide, mason, outbox, bots |
| Observability | feed, wb, worklog, home, job, throughput, empties, shipped, mobile, autonomy, ci, chain, router, context, claim, router-calibration, jobs, lanes, queue, incident, daily-fix, pulse, pulse-export, pulse-test, telemetry, audit, repos, receipt, radar, observe, growth, world, resource, resources, capacity, estates, signals, friction, budget, ci-metrics, main, usage, log, host, merges, spend, pools, releases, self |
| Integrations | autopilot, improve, steward, team, companions, caps, mcp, install, checkpoint, sessions, gh, vercel, wire, notify, stack, ecosystem |
| Safety | worktrees, disk, disk-maint, node, nodes, autofix, sandbox, seams, test, check, constitution, verify, engineering-receipt, verify-safety, verify-pr, preflight, onboard, demo, browser |
| Web | top, tui, dash, dashboard, serve, verse, console, pages, settings |
| Scaffold | new, ship |
| Task | Example |
|---|---|
| Summarize local metrics. | phm metrics summary --json |
| Check the release train. | phm release status --json |
| Preview cleanup of finished worktrees. | phm worktrees --reap --json |
| Explain dispatcher routes. | phm route explain --json |
| Show usage by engine. | phm usage |
See the CLI reference for all commands.
Optional Stacksync export
Stacksync is off by default. Set PHANTOM_STACKSYNC=on and
PHANTOM_STACKSYNC_FILE=/absolute/path/fleet.jsonl to append plain JSON lines
after phm queue done or phm queue block persists a finished claim. The parent
directory must exist. New files use mode 0600. No network calls or credentials
are involved; an external Stacksync consumer can ingest this local file.
Each row contains jobId, status, durationMs (claim to completion), and
mergedPr. A DONE job includes its previously recorded PR URL; merge that PR
before marking the job DONE. This is an operator completion signal, not an
independent GitHub merge check. Without a recorded PR, mergedPr is null.
PR-OPEN jobs do not export until their claim finishes.
Set PHANTOM_STACKSYNC=off to disable all adapter I/O immediately. Missing
configuration and file errors leave queue completion unchanged. Export is best
effort with no retries or historical backfill; an unavailable consumer has no
effect on Phantom. Rows exclude task content, owner, and credentials.
Companions install separately. Each has its own capabilities and authorization boundaries.
The repo's .mcp.json declares six companion MCP servers: phantom-secrets, locus, lexicon, stack, context7, ashlr. Registration does not prove readiness; see the toolchain guide for limits and approvals.
| Project | Purpose |
|---|---|
| The factory floor: console, CLI, MCP gateway, agent bus and fleet that run and record agent work. | |
| Local vault, placeholders and a proxy for supported API credential use. | |
| Account and tenant bindings for agent tools. | |
Compact tool results and a local usage ledger; the ashlr server above. |
|
| Correct recurring speech-to-text errors before agents read them. | |
| Markdown editing with CLI and MCP interfaces. | |
| Configure supported development services through CLI and MCP. | |
| Terminal coding agent. | |
| Dependency safety gate. | |
| AshlrAI's Cortex project. |
Phantom is built mostly by coding agents, including Phantom's own fleet. The rules they follow are in AGENTS.md:
- Agents may branch, commit, open pull requests, enable auto-merge, merge to master and dispatch releases through the repository's sanctioned workflow. They fix CI, tests, docs and dependencies forward.
- Kept limits stay with the owner or are refused outright: secret values, force-pushes and admin bypass, spending and billing, and messages to people outside the organization.
- Evidence over claims: a completed run, a merged PR and a published release are recorded separately, and unknown readings stay unknown.
To watch it work, run phm org --text for the live leader, lanes and running jobs, or phm improve propose --json for evidence-backed improvement proposals.
AshlrAI is an engineering firm. We build tools like Phantom to make our own work faster and more AI-native, then open-source them so every engineer can do the same. If you build with coding agents, build this with us.
- Start here: read CONTRIBUTING.md. Your coding agent can follow AGENTS.md and llms.txt.
- Pick an issue:
good first issueorhelp wanted. - See the whole lineup: ashlr.ai/open-source.
- Talk with us: The Dev Shack on Discord.
Documentation map · User guide · Product direction · Fleet lanes · Self-hosting · Agent index · Kernel reference · Changelog.
Contributors: start with CONTRIBUTING.md, or follow Contribute with an agent from clone to auto-merge. Coding agents also follow AGENTS.md and the agent toolchain.
If Phantom helps you coordinate your agents, star the repository so others can find it.
MIT. See LICENSE.


