Your orchestrator
Your orchestrator speaks first every time cadrei opens it, so you always know which crew you’re in. You’ll see a short (cadrei opened this chat) message before it: that’s cadrei waking it up, not you, and it never counts as your yes to anything.
- On the first run, it says hi, names your crew, and offers three ways to start: a read-only review of your repo (only the reviewer runs, and nothing changes), a small feature built on a branch, or another team.
- Every time after, it says up to three lines: who it is and which crew, the team line when someone’s running, and the one thing that matters most right now (a member stopped by safeguards, leftover one-time grants, a project that isn’t on this machine, a member waiting on you, or
Your team is ready. What's next?).
When it opens, cadrei hands it a snapshot of your crew: projects, teams, who’s running and what they’re doing. So it doesn’t need to run anything to greet you. It may run cadrei ls, cadrei ls --json, cadrei ls --all and cadrei allow list without asking you first, since they only read, cadrei hook skip, which only records your no to the every-chat hook, cadrei answer with no code, which lists who’s waiting on you, and cadrei pull, which brings in what your other machines backed up. What a pull brings in can change your playbook and members too, so your orchestrator tells you which files changed. Everything else still asks, and an answer always does.
The team status line
Section titled “The team status line”While anyone on your team is running, your orchestrator ends every reply with one short line:
Started the reviewer on my-app. It's reading the code now and will reportthe top 3 things to fix.
Team: reviewer working just nowMembers waiting on you, or stopped by safeguards, come first and in bold: Team: **! reviewer waiting on you** · engineer working 25m · designer idle. With nobody running, there’s no line. Cadrei sends the line fresh with every message, so it’s always current and costs your orchestrator no extra work.
The first time the line shows on a machine, a hint comes right under it, once:
Team: reviewer working just now(Say "hide the team line" if you'd rather not see this.)To hide it, ask: “hide the team line”. Your orchestrator adds - Don't end replies with the team status line. under ## Preferences in your crew’s playbook.md and commits it, so it’s a preference of your crew and travels with a backup. There’s no setting or command for it. Say “show the team line” to bring it back. Hidden or not, your orchestrator still tells you in words when someone’s waiting on you or stopped by safeguards, and cadrei ls shows your team anytime.
An orchestrator the every-chat hook started has no team line, since that hook can’t add cadrei’s settings to a chat. It runs cadrei ls when your team’s status matters, and Claude Code asks you first.
When a member doesn’t answer
Section titled “When a member doesn’t answer”Your orchestrator asks Claude Code to tell it when each member it gives a task to goes idle (notify_when_idle), so a member that ends its turn without replying still wakes it. If your orchestrator leaves that out, cadrei’s notify hook adds a note right after the send, and your orchestrator then asks for the notice on its own. The hook only adds that note: it never blocks, changes or approves a message. An orchestrator the every-chat hook started doesn’t have it.
When a member’s own reply is denied (by auto mode or a rule), the member sends one short status instead: that its reply was denied, naming only the rule, and that the content is in its window. Your orchestrator then tells you which window to open, with cadrei attach. It never reads the blocked content from that window, the member’s chat record or a file, and never asks for it in other words, since that would get around the denial. Open the window yourself to read it.
When a member goes idle without replying at all, your orchestrator checks its state in cadrei ls, may ask it once for a short status, and otherwise tells you which window to open. It doesn’t read that window itself either.
When a member runs in a different permission-mode class from your orchestrator, its replies wait for your approval in your orchestrator’s window, and its idle notices may not reach your orchestrator at all (see Troubleshooting).
Answering your team
Section titled “Answering your team”A member that’s waiting needs you: Claude Code is asking you something in its window. Either it wants to run something it isn’t allowed to yet (a permission prompt), or it asked you a question. You can answer both from your orchestrator, without going to the member’s window.
A permission prompt. Your orchestrator tells you who’s waiting and what for, then runs cadrei answer 7f3 yes. Claude Code stops it and asks you, in its own prompt:
Bash command Answer the engineer's prompt cadrei answer 7f3 yes │ Hook PreToolUse:Bash requires confirmation for this command: │ Cadrei: allow once? The engineer on my-app wants to run: gh pr merge 42 --squash Do you want to proceed? ❯ 1. Yes 2. NoRead the line that starts with Cadrei:. That’s cadrei’s own text, from Claude Code’s record of what the member asked, and your orchestrator can’t change it. The line above the command is Claude’s own description of it. Press 1 and the member runs it, once. Press 2 and your orchestrator stops: tell it what you want instead. To tell the member no, your orchestrator runs cadrei answer 7f3 no, and Claude Code asks you again. A no stops the member’s turn, and it waits until it hears what to do instead.
A question. A member can ask you something in its window, like “Upload resume.pdf to the signing site?”. Members do this when only you can say yes: their instructions say so, or it touches personal data, money or something they can’t undo. Your orchestrator shows you the question and its options exactly, each with a line to type. Type the one you pick, with ! in front, right in your orchestrator: ! cadrei answer k2m 1. A command you type with ! is yours, so it runs at once.
A block a grant can fix. When auto mode or a rule blocks a member, your orchestrator asks you here first: Let the engineer on my-app run gh pr merge 42 --squash once?. On a yes it gives a one-time grant and restarts the member, which picks up its chat.
More:
cadrei answerwith no code shows who’s waiting on you, with the line that answers each. You can run it, andcadrei answer <code> <choice>, in your own terminal too.- Each request has its own short code. If the member’s prompt changed in the meantime, the old code answers nothing.
yesonly ever picks the plain “Yes”, the one-time allow. It never picks “always allow” or “switch to auto mode”.- In
dontAsk,bypassPermissionsorplanmode, Claude Code can’t ask you about your orchestrator’s answer, so it doesn’t run it: type the!line yourself. - Some things still need the member’s window (
cadrei attach): a question that takes more than one pick or holds several questions, a prompt with no plain “Yes”, a prompt cadrei can’t check on the member’s screen (anything but a command, or a file to write or edit, and a command too long for cadrei’s record to hold whole), a prompt taller than the member’s window (its top isn’t on the screen, so cadrei can’t see it whole), a file whose path the window shows cut short, a member indontAskmode (it can’t ask you at all), and the orchestrator the every-chat hook opens, wherecadrei answerdoesn’t run.
Your orchestrator’s memory
Section titled “Your orchestrator’s memory”Claude Code lets your orchestrator keep notes for itself: who you are, how you like to work, what you corrected, where projects stand, and where to find things. That’s its memory, a folder of short notes and an index, MEMORY.md, that loads at the start of each of its chats.
Cadrei keeps that memory in your crew, in .memory/, so your crew’s private backup carries it and a restore on another machine brings it back, whatever your username or the crew’s folder is there. It works like this:
- Moving in. The first time
cadreiopens your orchestrator with 0.2.2, it moves the notes from Claude Code’s own folder for the crew into.memory/, checks each copy, and leaves a one-line pointer behind for a Claude Code chat that isn’t cadrei’s. When both places have notes (a second machine, say), nothing is lost: a note with the same name but other text is kept beside the crew’s as<name>.from-<machine>.md, and the index gets both lines. - One notice first. That open prints
✓ Your orchestrator's memory now lives in your crew (.memory/), so your backup keeps it, and your orchestrator says so in its greeting, with how to say no. Nothing of it is committed until the next session, so you have this one to decide. - Saved with your crew. After that, cadrei commits the memory as
Update the orchestrator's memorywhen it opens your orchestrator and when a chat starts (never while git is busy), and your orchestrator pushes it with your crew’s other changes. - Two machines. After each greeting, your orchestrator runs
cadrei pullto bring in what your other machines pushed (not in the notice session, while its own notes aren’t committed yet). Both machines’ index lines are kept. A note is never merged into a mix of two: when both machines changed it, both versions are kept whole, this machine’s as<name>.from-<machine>.md, and your orchestrator tells you so you can pick. When one machine deleted a note the other changed, the changed one stays. A clash in any other file stops the pull, changes nothing, and is named. It commits your orchestrator’s memory before it pulls, so a note never sits in git’s stash. If you’d changed another file without committing and it clashes with what came in, it says so instead of “Pulled”, and git keeps your change in its stash. It never force-pushes. A note saved on one machine reaches the other at its next chat after the push, not live. Upgrade cadrei on both: an older one keeps saving in Claude Code’s folder. - What’s in it, and what isn’t. It holds the notes your orchestrator saved, which can include personal things you’ve told it. Chats, your members’ memory and Claude Code’s settings never go in.
- Members can’t write there. Its notes load into every chat of your orchestrator, so a member writing one would be putting words in its mouth. Members’ settings deny editing
.memory/, and their command check refuses shell commands that write into a.memoryfolder (SECURITY.md says what it can’t catch). A member of a team with no project works inside your crew, so Claude Code would put its own memory where your orchestrator’s comes from: cadrei gives each such member a memory folder of its own, in Claude Code’s folder. Notes such a member saved before 0.2.2 can’t be told apart from your orchestrator’s, so they move in with them once; your orchestrator loaded them before too.
Keeping it on this machine. Say “keep my memory on this machine”. Your orchestrator sets MEMORY=machine in cadrei.conf. The next time cadrei opens it, cadrei moves the notes back into Claude Code’s folder, removes .memory/ from your crew with a commit (Keep the orchestrator's memory on this machine), and says ✓ Your orchestrator's memory is back on this machine only. Earlier backups still have it in their history. To take it out of that history too, see “Taking it out of the backup’s history” below. Your other machines get the setting with their next pull, and each one’s next cadrei brings the notes back from the crew’s history into its own Claude Code folder, once (one that clashes with a note there comes in beside it as <name>.from-crew.md), so none of them loses its memory, and notes you clear later stay cleared. A note another machine changed but hadn’t pushed yet is set aside by its pull, never pushed again, and moves into that machine’s memory too. One catch there: a git tag (a name you gave a commit) on a commit that machine hadn’t pushed yet still points at the old commit, notes and all, so don’t push tags you made before that pull. “Keep my memory in the crew” moves it back in. Clearing the memory isn’t switching: when your orchestrator forgets every note while the crew keeps them, your other machines’ next pull just clears them there too.
Taking it out of the backup’s history. After the switch, new commits leave your memory out, but older commits in your backup still have it. Neither cadrei nor your orchestrator rewrites that history, since it means a force push (replacing what’s on GitHub with a new version) and a fresh copy of the crew on every other machine. If you want the notes gone from GitHub, do it by hand, once, on one machine:
- Wait until your crew’s
cadrei.confsaysMEMORY=machine(aMEMORY=machinein.claude/local/cadrei.confis for one machine only, and the crew keeps.memory/for the others), and every machine has openedcadreionce since. Each one brings its notes back from this history at that open, so a machine that hasn’t yet would lose them. - Make sure every machine has pushed what it had, then close cadrei everywhere but here (no orchestrator or member running), so nothing pushes while you work. Here, commit or drop any changes first:
git -C ~/.cadrei/<name> status --short --untracked-files=noshould print nothing, since step 4 won’t run with uncommitted changes. - Keep a copy, just in case. It still has the notes, so keep it on this machine:
git clone --mirror ~/.cadrei/<name> ~/cadrei-<name>-before.git - Take
.memory/out of every commit and tag:FILTER_BRANCH_SQUELCH_WARNING=1 git -C ~/.cadrei/<name> filter-branch --index-filter 'git rm -r -q --cached --ignore-unmatch .memory' --prune-empty --tag-name-filter cat -- --branches --tags - Check that nothing’s left. This prints nothing when it worked:
git -C ~/.cadrei/<name> log --branches --tags --oneline -- .memory - Replace the backup. Cadrei’s check for passwords and keys still runs:
git -C ~/.cadrei/<name> push --force --all origin, thengit -C ~/.cadrei/<name> push --force --tags origin - On each other machine, before you open
cadreithere, start from a fresh copy and keep that machine’s own files:mv ~/.cadrei/<name> ~/cadrei-<name>-old, thengit clone <your backup's URL> ~/.cadrei/<name>, thenmkdir -p ~/.cadrei/<name>/.claude && cp -R ~/cadrei-<name>-old/.claude/local ~/.cadrei/<name>/.claude/. Runcadreithere, which puts its check for passwords and keys back. Once all’s well, delete~/cadrei-<name>-old.
A few catches:
- Never pull or push from a copy you haven’t replaced. Git would merge the old history back in, notes and all, and the next push would put them on GitHub again.
- GitHub can still show the old commits for a while to anyone who has their exact address, and a copy someone cloned or forked keeps them. GitHub’s page on removing sensitive data from a repository says how to ask them to clear what’s left.
- This machine’s git keeps the old commits for a while too, under
refs/original. The pushes above leave them out, so they stay on this machine. - Your orchestrator’s memory on each machine isn’t touched: it’s in Claude Code’s own folder, outside the crew.
cadrei uninstall --archive commits the memory with your crew’s other changes only when the crew keeps it and you were told; otherwise the notes stay out of the backup, safe in the archive.
The every-chat hook
Section titled “The every-chat hook”The every-chat hook is a SessionStart hook in ~/.claude/settings.json that makes every new Claude Code chat open as your orchestrator. It isn’t offered on the first run. Instead, your orchestrator offers it once, right after your first finished task. Say no, and it doesn’t ask again (you can still ask it anytime).
| Command | What it does |
|---|---|
cadrei hook |
says whether it’s on |
cadrei hook on |
adds it: new Claude Code chats open as your orchestrator |
cadrei hook off |
removes it: new chats are plain again |
cadrei hook skip |
records your no to the offer |
Its cadrei commands act on the crew for its folder (your default crew outside every crew and project). It runs <cadrei program> hook orchestrator, and stays silent in member sessions, in an orchestrator cadrei opened, and in chats started with CADREI_OFF=1 claude. An orchestrator started this way gets the same snapshot, but no team line and no read-only commands allowed in advance. Without the hook, run cadrei, or ask any chat to use cadrei’s instructions.
The hook is added with a backup of the file (settings.json.bak-cadrei), keeping every other setting. cadrei hook off and cadrei uninstall remove it.