The coding agent that
finishes the feature.
— loops until done.
Chat with nax like any coding agent. Or give it a spec and nax run takes the feature all the way to a pull request: it implements each story, runs your gates, reviews its own work, and fixes what the review finds.
nax run
Two ways to work
Pair with it.
Or hand it the feature.
nax
Interactive coding agent
A terminal chat session in your repo. Read, edit and run code together, attach files and images, and hand off work to subagents. Guarded mode asks before risky actions.
nax run
Spec to pull request
One command, no babysitting. nax plans the spec into stories, implements them one by one, runs your gates and reviews every story, then opens a draft PR and waits for CI.
Start in chat, then let it take over: chat can launch nax plan, nax run and PR reviews as background jobs, and asks you before any billed step.
nax chat
A coding agent in your terminal.
Run nax in any repo. Sessions are saved, so nax --resume picks up where you left off.
GUARDED BY DEFAULT
You stay in control
New sessions start in guarded mode: actions that match your ask rules wait for approval, and so does anything that would run outside the sandbox. Approvals you choose to remember can be revoked later. Switch to full mode with shift+tab when you trust the task.
FILES AND IMAGES
Show it what you mean
Use @ to mention files and send their contents. Attach screenshots and images for the model to see.
SUBAGENTS
Fan out the work
Hand self-contained tasks to subagents and keep the main conversation focused.
BACKGROUND JOBS
Launch runs from chat
Ask chat to plan a feature, run it, or review and fix a PR. Jobs run in the background with live status, and chat proposes chains of billed steps for you to approve first.
WEB AND MCP
Reach beyond the repo
Opt-in web search and fetch, plus any Model Context Protocol (MCP) server you configure. Once a session has read the web, chat asks before pushes and unsandboxed commands, so a planted instruction can't act on its own.
ANY MODEL, ANY AGENT
Switch mid-session
Pick the model with /model, or run the session on Claude Code, Codex or Cursor over ACP.
How nax run works
A loop with teeth.
Every step is bounded by config. A red gate stays red: LLM reviewers can't vote it green.
Plan
optionalTurn a spec into prd.json with nax plan. Stories are sized and ordered, and oversized ones can be split with --decompose.
Pre-flight
On by default. The advisor checks for stories that touch the same files and for contradictions between the spec and the acceptance criteria, before any code is written.
Implement
One implementer session per story writes the tests and the code, runs them, and commits.
Gates
Lint, typecheck and scoped tests run after every turn, then the full suite. Your commands decide pass or fail.
Story review
An LLM reviews the story diff against the spec and returns two verdicts: does it meet the spec, and is the code sound.
Fix rounds
Open findings go back to the implementer, up to 5 rounds by default. Minor findings are logged in the ledger for later instead of blocking.
Branch review
After the last story, one review of the whole branch, with up to 2 fix rounds, each re-reviewed. Judgment calls go to the advisor, which records its rulings instead of stopping the run.
Final gates
Repo-wide gates run again, with a repair pass if a fix turned one red.
Publish
With a forge configured: push, open a draft PR, wait for CI, and promote it to ready once nothing deterministic keeps it a draft. nax never merges. That's your call.
Why nax
Built around discipline,
not convenience.
DETERMINISTIC GATES
Your checks decide
Lint, typecheck, scoped tests and the full suite decide pass or fail. LLM review adds findings; it never overrides a red gate.
LOOP UNTIL DONE
Bounded fix rounds
Per-story fix rounds, a whole-branch review with its own fixes, and a final gate repair pass, each capped by config, with a cost limit for the run.
TWO LEVELS OF REVIEW
Story and branch
Each story is reviewed against its spec and acceptance criteria, then the whole branch is reviewed once more before anything is published.
ADVISOR
Decides instead of stalling
Implementer questions, unresolved findings and pre-flight conflicts get a ruling, recorded in the run ledger and the PR body for you to audit.
PULL REQUESTS
Draft, CI, ready
Opens a draft PR, waits for CI, and promotes it when it is ready. nax bot review and nax bot fix review a PR and fix its findings.
SANDBOXED COMMANDS
Safe by default
Agent commands run in an OS sandbox by default, and nax won't run a project's commands until you trust its folder. Approvals are per project and revocable.
ANY STACK, ANY REPO
Monorepos and languages
Detects Go, Rust, Python and TypeScript from manifest files and adapts its commands. Monorepos get per-package config, test commands and working directories.
EXTENSIBLE
Plugins and hooks
Plugins for routing, review, reporting and post-run actions in .nax/plugins/, and lifecycle hooks in .nax/hooks.json for notifications, deploys and CI triggers.
Agents
Built-in agent. Or bring your own.
nax ships its own native coding agent. Prefer another one? nax run drives it over ACP through the same loop.
nax native
built-in · defaultRuns in-process with no extra binary. Log in once with nax auth login <provider>. Supports MCP servers, the OS sandbox and the Git output compressor.
Claude Code
ACPVia claude-agent-acp. Set agent.default: "claude".
Codex
ACPVia codex-acp. Set agent.default: "codex".
OpenCode
ACPVia opencode acp. Set agent.default: "opencode".
Gemini CLI
ACPVia gemini --acp. Set agent.default: "gemini".
Pi Coding Agent
ACPVia pi-acp. Set agent.default: "pi".
ACP agents bring their own tools, so nax's sandbox, MCP and command settings apply to the native agent only.
Requires the Bun runtime (nax runs on Bun even when installed with npm).
Git must be initialized in your project.
npm
bun
Quick start
cd your-projectnax trust add "$PWD" # trust this foldernax auth login <provider> # native agent loginnax # chat with nax# or hand it a featurenax init # create .nax/nax features create my-feature # scaffold it# spec to draft PR:nax run -f my-feature --plan --from spec.mdWant to review the plan first? Run nax plan -f my-feature --from spec.md, check prd.json, then nax run -f my-feature.