Where things live
~/.cadrei/ <name>/ a crew (a git repository) playbook.md teams, pipelines, routing rules and your preferences projects.yaml each project's repo, team and about (no local paths) cadrei.conf settings (KEY=VALUE lines) protocol.md optional house rules for every member members/<team>/<role>.md one member per file teams/<team>/ working folders of teams without a project (tracked) .memory/ your orchestrator's memory: its notes and their MEMORY.md index (tracked) .gitattributes keeps both machines' lines when two merge that memory's index .claude/ member-settings.json the grants every member starts with (tracked) member-settings.once which grants are one-time (tracked) local/ this machine's notes about the crew (ignored) places.json where each project is on this machine state.json your orchestrator's chat record cadrei.conf optional: settings for this machine only build/ generated: prompts, settings copies, chat records, member states, locks (ignored) config/ this machine only, in no repository default the default crew's name projects-dir where new clones go member-settings.sha256 fingerprints of the grants files state.json the health check's notes and your one-time answers team-line-hint there once the team line's one-time hint was shown every-chat-reminder there once your orchestrator was reminded to offer the every-chat hook framework/ cadrei's instructions (your orchestrator's skill), written out by the program, with a VERSION file~/.cadrei-archive/ setups you packed away with cadrei uninstall --archiveconfig and framework are reserved names; a crew’s name may use letters, digits, - and _.
Everything in ~/.cadrei/config can be rebuilt or asked again, so deleting it loses nothing: the next cadrei plugs your crews back in.
Everything cadrei puts on your machine
Section titled “Everything cadrei puts on your machine”Here’s the full list, and what cadrei uninstall does with each. If you’ve set CLAUDE_CONFIG_DIR, read that folder wherever this says ~/.claude (it holds .claude.json too, then).
| What | Where | Added when | cadrei uninstall |
|---|---|---|---|
The cadrei program |
Homebrew’s bin, or ~/.local/bin/cadrei |
you install it | With Homebrew, removed last (--keep-program keeps it). Otherwise kept: it prints the command that removes it |
Your crews: members, playbook, projects list, cadrei.conf, permissions and teams/ |
~/.cadrei/<name>/, each one a git repo |
the first run, cadrei new, or when you ask your orchestrator |
Kept |
| Your orchestrator’s memory: the notes it keeps about you and your work | ~/.cadrei/<name>/.memory/, tracked, so your backup carries it |
the first cadrei of 0.2.2 moves it in from Claude Code’s folder, then your orchestrator saves there |
Kept, with the crew (--all deletes it with the crew) |
| A one-line pointer to that memory, for a Claude Code chat that isn’t cadrei’s | MEMORY.md in Claude Code’s own memory folder for the crew (~/.claude/projects/<crew's folder>/memory/) |
when the memory moves into the crew | Kept (--all removes it, only when it’s exactly cadrei’s) |
| This machine’s notes about a crew: where its projects are, and its chat record | ~/.cadrei/<name>/.claude/local/, left out of git |
every crew | Kept, with the crew |
| Files made for each start: prompts, settings copies, chat records, member states, locks | ~/.cadrei/<name>/.claude/build/, left out of git |
every start | Kept, with the crew |
| A check that stops passwords, keys and files over 50 MB from going into your backup (a git pre-push hook) | ~/.cadrei/<name>/.git/hooks/pre-push |
the first run, and put back by every cadrei |
Removed |
| This machine’s settings: the default crew, the projects folder, the permissions fingerprint, the health check’s notes, your one-time answers | ~/.cadrei/config/ |
cadrei |
Removed |
| cadrei’s instructions for Claude Code (your orchestrator’s skill) | ~/.cadrei/framework/, rewritten when they don’t match the program |
every cadrei |
Removed |
| A link so Claude Code can find those instructions | ~/.claude/skills/cadrei, pointing at ~/.cadrei/framework/skills/cadrei |
the first run | Removed, if it points at this program |
| Optional: the every-chat hook, so every new Claude Code chat starts as your orchestrator (a SessionStart hook) | one entry in ~/.claude/settings.json |
your yes when your orchestrator offers it, or cadrei hook on |
Removed, if it runs this program (your other hooks stay) |
| “Trusted folder” marks for your projects and new crews | entries in ~/.claude.json |
adding, linking or downloading a project; the first run and cadrei new, for the new crew’s folder |
Kept: your own Claude Code uses them too |
| Your projects | wherever you keep them; new downloads go in your projects folder | you, or your orchestrator | Kept |
| Members’ chats | Claude Code’s own folder | Claude Code | Kept |
| Archives of your setup | ~/.cadrei-archive/<date-time>/ |
cadrei uninstall --archive |
Kept: yours to delete |
cadrei uninstall --all also deletes your crews, ~/.cadrei and ~/.cadrei-archive, and your crews’ trust marks. With Homebrew it removes the program too, last (--keep-program keeps it); otherwise it prints the command that removes it. It keeps your projects, their trust marks and Claude Code’s chats (Delete everything).
Your crews live in ~/.cadrei/<name>. They’re your setup, so don’t delete them to reset cadrei. To reset the program, run cadrei uninstall --keep-program (or delete ~/.cadrei/config and ~/.cadrei/framework): your crews stay, and the next cadrei plugs them back in. To try cadrei as a brand-new user, run cadrei uninstall --archive --keep-program, which packs your crews away safely and keeps the program.
Want a plain Claude Code chat while the every-chat hook is on? Start it with CADREI_OFF=1 claude. The every-chat hook has the rest.
Before cadrei first changes ~/.claude/settings.json or ~/.claude.json, it saves a copy next to it (settings.json.bak-cadrei, .claude.json.bak-cadrei) and never overwrites that copy.
The backup check, the every-chat hook, the team status line and the hooks in each member’s settings only run the cadrei program when it sits in a folder only you can write to, which is where Homebrew and install.sh put it. Run it from a temporary folder and it sets none of them up; the health check tells you so.
The hooks cadrei writes into Claude Code’s settings check that the program is still there first (test -x <program> && <program> hook ... 2>/dev/null; exit 0). So if the program is gone, for example after brew uninstall cadrei without cadrei uninstall, a leftover every-chat hook does nothing and shows nothing. Two checks stop instead, on purpose: each crew’s pre-push hook stops a push and says cadrei is missing, and a running member’s command check blocks its shell commands. Reinstall cadrei, or remove the crew’s .git/hooks/pre-push.