sage-stack is a multi-agent development stack for Claude Code and Codex: a team of agents builds, reviews and proves your work, and you review results instead of code. You turn on sage mode in a session, and the session becomes your chief of staff. You say what you want; agents design, build, review and test it, and you get a pull request with evidence.
Status: early, used every day by its author to build sage-stack itself. Claude Code is supported; in Codex (the CLI and the desktop app), sage mode, autopilot, the shared logbook and the board phrases work through the sage plugin (sage in Codex). Tested on macOS, and in CI on Ubuntu (Linux); Windows is not supported.
Start with the Quick start. Then follow one task from start to merge in Learn sage in 5 minutes.
In Naruto, a sage stays still to gather natural energy, and sees more than in normal combat. sage mode works the same way (a mode that you turn on by name comes from pstack's poteto mode):
- It stays still. The chief of staff changes no files.
- It gathers energy. Agents work in parallel, each in its own git worktree.
- It sees the whole. It keeps the logbook, groups the tasks of one goal into a milestone, and gives a mistake that comes back a lasting fix.
For Claude Code. For Codex, see In Codex below. Before you start:
- Install Claude Code and sign in, with a Claude plan or API credits (install Claude Code).
- Install Node.js 20 or later (the minimum; CI runs the tests on Node 24), git and
gh, and log in togh(gh auth login). sage usesghand your project's GitHub remote for pull requests; without a remote, work stops at a verified branch.
- Install sage, in a terminal:
claude plugin marketplace add erickb336/sage-stack
You seeclaude plugin install sage@sage
Successfully installed plugin: sage@sage (scope: user). - Start a new session in a project folder: run
claude. A session that was already open does not get sage. - Send the on phrase, the words below, as a message of its own, with no other words:
You see: the chief says that sage mode is on, and waits for your request.
sage mode - Say what you want in the next message, for example
Fix the crash on an empty search.You see: the chief frames the task, asks its product questions in one batch, then brings evidence and a pull request.
To update sage, run this in a terminal, then start a new session. To stop a task or uninstall sage, see Using sage.
claude plugin update sage@sageWarning: before you use milestones (tasks of one goal) or tasks that wait for other tasks, update sage and restart every session that was already open. An older session still merges a waiting task, or a task of a milestone that you did not approve.
The same phrases, logbook and board work in Codex. You need Codex 0.164 or later and its CLI (also for the desktop app), a multi-agent v2 model for the chief and its agents, and two lines in your Codex config: [agents] and max_concurrent_threads_per_session = 10. You also need Node.js 20 or later, gh logged in, and a GitHub remote for the project (see What you need).
- Add the sage marketplace and install sage, in a terminal:
codex plugin marketplace add https://github.com/erickb336/sage-stack.git
codex plugin add sage@sage
- Install sage's hooks once on each computer with the plugin's
hooks installcommand, then runcodexin a project folder and choose Trust all and continue at the "Hooks need review" screen (Install, step 3). Without that trust, no sage hook runs, so do the gate check. - Send
sage modealone, then your request. Codex asks you at least 5 times in each small task (the worktree, the add, the commit, the push and the pull request): read the choices, then approve (The approval prompts).
Send show board to see the board in the chat: a short digest of what needs you, what moves now, what was done since yesterday, and the milestones. On a Mac, it also starts the board in the browser and gives you a link (The board).
The board on a laptop screen, with sample data. Watch the full tour below, or read the board guide.
Below: a full tour of the board in 9 parts, with sample data (53 seconds). If no player shows, open the MP4 file.
board-tour.mp4
| Say | What happens |
|---|---|
sage mode |
The session becomes your chief of staff. Send your request next. |
| Your request, in your own words | The chief frames a task, asks its product questions in one batch, then brings evidence and a pull request. |
show board |
The board in the chat, and on a Mac in the browser too. |
show status |
The task states, the agents, what needs you, and the tasks with no priority. |
autopilot on / autopilot off |
Verified pull requests merge by themselves after their clean cycles, or wait for you. Autopilot starts off. Send the on phrase when the chief is idle: sent while it works, it does nothing. |
arena in your request |
Three designs from different agents, and a judge that combines the best parts (The arena). |
| "Take T12 from the other chief" | For a task of another live session, Claude or Codex: the chief asks you a takeover question. Your answer moves the task; its branch, pull request and verdicts stay. |
| Nothing, when a session stops | Its work passes to the first live session that writes (pick-up). A session is stopped when it ended, when its program is surely gone (seen twice, then not running), or after 8 h with no action, no agent at work and no open question. That chief then tells you in one chat line what passed to it. |
| "Move this project to a shared logbook" | The chief shows a preview and asks you once, then puts the open tasks of Claude and Codex in one logbook (Shared logbooks). |
sage mode off |
A normal session again. Autopilot goes off too. |
sage help |
Every phrase, and whether sage mode and autopilot are on. |
Send sage mode, autopilot on, autopilot off, sage mode off and sage help alone, as the whole message. Every phrase and its exact rules: Every phrase.
You talk only to the chief. The chief frames each task and asks you the product questions; a team of agents designs, builds, reviews and tests the work.
- Two loops. The inner loop turns a request into a verified pull request; findings and a QA fail go back to the build. The outer loop seals the lesson: a mistake that comes back twice gets a lasting fix at the highest level that works.
- The chief changes no files. It runs the design and the PE check (principal engineer), keeps the logbook, and merges when autopilot is on.
- One lead for each pull request runs the build, the reviews, QA and the repairs, with up to 9 helpers at once, and reports to the chief once.
- Each task has a priority, P0 to P3, and the least route for its size; a risk flag adds the security review. A cycle is one full set of fresh reviews and QA on one commit.
- Findings. A medium or high finding goes to a repair round. A low finding never blocks a merge.
- Rules in code. The hooks and the state tool hold the rules, and the merge check reads the verdicts (Rules held in code).
- More: the routes, the states of a task, the agent limits and the arena are in How sage works.
sage is one shared core with two thin adapters. The routes, the shared rules, the logbook, the merge check and the board are shared code, the same in both plugins. Each plugin adds what its app needs: its hooks (Claude's hook also holds some rules of its own), and agents (Claude Code) or tools (Codex).
So a Claude chief and a Codex chief can work on one project, and one board shows them both. Until you link or move the project to a shared logbook, each provider keeps its own logbook for it.
- Learn sage in 5 minutes: one small task, from your first message to a merged pull request.
- Using sage: phrases, questions, milestones, shared logbooks, update, stop, clean up old worktrees, uninstall and troubleshooting. Also Concepts, principles and the FAQ.
- Rules held in code: every rule that the hooks and the state tool hold, and what they do not stop.
- SECURITY.md: how to report a vulnerability, and the known limits.
- Limits: Known limits in Codex. The board server and Remote Control (sessions from your phone) need macOS.
- What's new. The docs index lists every page.
Built on pstack and poteto mode by Lauren Tan (poteto). The name nods to Sage Mode in Naruto; the drawings are original (all credits). MIT licence (LICENSE); pstack's text keeps its MIT licence.