
SpecWeave
Change agents. Keep the thread.
Intent-first development: settle what you want before the code, hand the work between Claude, Codex, Grok and any other tool in two words, and close it with evidence.
Install
npm install -g specweave # Node.js 20.12.0+
cd your-project
specweave init .
init writes AGENTS.md (read by Codex, Grok, Cursor, Gemini and Copilot), a two-line CLAUDE.md that imports it, and the skills for Claude Code and Codex. Nothing else runs in the background.
SpecWithCode: the free workspace on top
SpecWithCode is a desktop app built on SpecWeave. Describe the work once and a coordinator splits it across Claude Code, Codex, Grok or Cursor workers on your own machines, with the spec, evidence and handoff in git. It is free for every developer and team: no markup, no token resale, no seat fee to run agents on your own machines. Early access, for Apple silicon Macs, Windows 10 and 11, and Linux. Download SpecWithCode · Pricing
Keep your repositories where they are
An existing workspace can register nested, sibling or external checkouts without moving files or initializing a second planning root:
specweave --workspace ./planning get ../existing-api --dry-run --json
specweave --workspace ./planning get ../existing-api --json
--workspace selects planning authority; SPECWEAVE_WORKSPACE carries that context to hooks. Existing IDs and child plans stay intact. Workspace adoption explains previews, identity, permissions and migration limits.
Out of tokens? Say "hand off"
you (in Claude, account 1): hand off
you (in Codex, or account 2): pick up
That is the whole handoff. "Hand off" runs specweave handoff: it releases your task claims, records why you stopped, and pushes your branch plus a snapshot of your uncommitted edits. "Pick up" runs specweave pickup in any other tool, account, machine or cloud session (a Claude Code Projects thread, a Codex cloud task): it brings that work into the checkout and prints the next task with its acceptance criteria. Nothing to copy, no paths to paste.
Running out mid-task? specweave auto-handoff on, once per machine, makes it automatic: when a session reaches 90% of your plan's 5-hour or weekly limit, it hands off by itself and tells you to say "pick up" elsewhere. Claude Code reads the limit through its status line (your own status line keeps working) and Codex through a Stop hook. Under the threshold it costs no tokens. --at 85 changes the threshold and off undoes every change.
specweave report writes an HTML timeline of who did what on an increment (tools, sessions, handoffs, pickups, test evidence), straight from the ledger.
The loop
| # | Say or run | What happens |
|---|
| 1 | "pick up" · specweave pickup | The open increment, the next task with its acceptance criteria, claims held by others, branch state, notes and project memory, in one read. |
| 2 | /sw:increment · specweave create-increment "<title>" | One spec.md: Problem, Scope, Acceptance Criteria, Approach and the Tasks. |
| 3 | /sw:do · specweave task claim T-01 → task done T-01 --run "<test>" | Work a task. done refuses a failing test and stores the evidence in the ledger. |
| 4 | specweave verify · /sw:review · specweave review | Runs your test, lint and build; a fresh-context review cites path:line, and specweave review hands the diff to another model family. |
| 5 | /sw:done · specweave complete <id> | Closes on a green verify. Acceptance criteria are met when their tasks are done; nobody ticks boxes. |
| 6 | "hand off" · specweave handoff | Stop anywhere; the next tool picks up. |
An increment is one folder, .specweave/increments/NNNN-slug/, with one file you read (spec.md) and one the CLI appends to (ledger.jsonl). Increments from 2.x with a tasks.md keep working unchanged.