Tutorial: your first day with Cabinet#
About 15 minutes. You create a workspaceWorkspace The folder that holds the team's files (CABINET.md, AGENTS.md, HANDOFFS.md, roles, specs, notes) and usually the product repos. It is its own private git repo. for a made-up product, Acme, set up your machine, give the team its first task, and read the first brief. The output shown is what Cabinet prints, shortened where it says ....
You need macOS or Linux, git, Node.js and at least one agent tool (Claude Code, Codex, Antigravity, Qwen Code, Grok, opencode or the Cursor CLI). See Install.
1. Create the workspace#
cd ~/dev
cabinet new acme --name "Acme"In a terminal, cabinet new asks a few questions, each with a default you keep by pressing Enter: the owner, which rolesRole An agent's job description: what it owns, decides, escalates and may write. Kit roles live in .cabinet/roles/; a project adds notes in roles/. to enable, the agent tool that runs scheduled jobs, a weekly budget (and a price, for a runner that reports only tokens), the brief time, how agents write to you (standard, or short for little time to read), backups and the product repos. Here we keep every default (--yes does the same without asking):
== Project files
placed: 14 files
== Kit files
roles: chief-of-staff product-manager architect qa security design-lead finance
== Committed the new workspace as Ann Owner
Created Acme at ~/dev/acme (slug acme, cabinet 0.8.5).
Next:
- Fill the TBDs in AGENTS.md: what Acme is, its product rules, how to test, the repo rows.
...The workspace is a git repo of plain files: AGENTS.md (the project's rules), HANDOFFS.md (how agents pass work), roles/, specs/, notes/, jobs/ and the kit's own CABINET.md and bin/. Concepts explains each.
2. Ask what is next#
From anywhere inside the workspace:
cd acme
cabinet nextNext in Acme (~/dev/acme):
1. Fill the TBDs in AGENTS.md: What Acme is, Contracts that cross repo lines, House rules, Product rules, How to test.
2. Download the pinned kit (in ~/dev/acme). Run: npm install
3. Set up this machine: guardrails and schedules (add --dry-run to see the changes first). Run: cabinet bootstrap
4. The first brief comes at 7:00 AM (or write it now). Run: cabinet brief
5. The doctor found 9 thing(s) to fix (cabinet doctor --fix runs the ones it can). Run: cabinet doctor
Optional: Daily encrypted backups. Run: cabinet config --backup-dir <a folder outside the workspace>cabinet next changes nothing. Come back to it whenever you are unsure what to do.
3. Tell the team about the product#
Open AGENTS.md and replace each TBD with a few plain sentences: what Acme is, the rules every agent follows (for example "prices are the owner's decision"), and how to test. The agents read this file at the start of every sessionSession A folder of its own for one agent session in a repo (a git worktree on a branch session/<name>), so several sessions work at once without touching each other's changes: cabinet session start. You merge its work. cabinet session end lists what deleting its folder would lose and refuses work that exists nowhere else, changing nothing; --force deletes it after asking at a terminal. See sessions., so short and exact beats long. Longer documents the team must follow, such as a brand guideGuide A standing document the agents follow, such as a brand guide, style guide, policy or business document. It lives in guides/, with a row in AGENTS.md. or a support policy, go in guides/ with a row in the "Guides" table (recipes).
Then download the pinned kit, so the workspace keeps its own version, and commit:
npm install
git add -A && git commit -m "Describe Acme"4. Set up this machine#
See first, then apply:
cabinet bootstrap --dry-run
cabinet bootstrap== Git push gate
placed the push gate at ~/.config/git/hooks/pre-push
...
== Claude Code
added 61 permission rule(s) to ~/.claude/settings.json
== Codex
placed ~/.codex/rules/default.rules
...
== Schedules (launchd)
installed ai.cabinet.acme.brief (7:00 AM)Bootstrap installs the guardrailsGuardrails Rules installed in each agent tool, plus a git hook, that keep push, merge, release and publish with you. See guardrails.: every push now asks you at your own terminal, and each agent tool on this machine denies push, merge, release and publish (guardrails). It also schedules the daily brief. It saves a .bak copy of every settings file it changes, and running it again is safe.
5. Check everything#
cabinet doctorAll good. 3 note(s) below.
== Product repos
ok product repos checked
== Kit and roles
ok cabinet 0.8.5
...When something needs you, the doctor starts with the list, and cabinet doctor --fix runs the fixes it knows. Every message is in troubleshooting.
6. Give the team its first task#
Open your agent tool in the workspace and describe a feature, for example:
We want a public pricing page. SpecSpec One file per feature in
specs/: the problem, the rules, testable acceptance criteria, your decisions, and the builders' plan. Work bigger than a small task is built only from a spec that is ready. it.
The product-manager agent writes the spec in specs/, with any decision only you can make framed as a question. When work moves from one agent to another, it goes through HANDOFFS.md:
cabinet handoff list # every open handoff, oldest first
cabinet handoff list owner # everything waiting on you, in full7. Read the brief#
Each morning at the time you chose, the chief-of-staff agent writes BRIEF.md. To get one now:
cabinet briefThe brief starts with the sign-off queueSign-off queue The top of BRIEF.md: every decision waiting on you.: each decision only you can make, as a plain question with lettered options, the experts' recommendations, and whether it can be undone. Answer them all in one message to your agent, for example "approve 1 and 3; 2: no; 4: wait until Friday". The agents apply your answers.
8. Ship#
When qa and security have recorded PASS on a piece of work, you push it from your own terminal. The push gate asks you to confirm. No command an agent runs can push, merge, release or publish.
Where next#
- Recipes: add a role or a job, switch agent tools, move to a new machine, add a teammate.
- Commands: every command and option.
cabinet <command> --helpshows them too. - Layouts: add Cabinet to an existing project instead.
Built from version 0.8.5