Search/
Docs

Cabinet#

One person, a whole team. Build anything with AI agents, and stay in charge.

Cabinet is a productivity kit that makes one person a whole team. It does not replace you; it multiplies you. Agents fill every seat your work needs (architecture, design, writing, review, finance, and any specialty you lack), and you stay the one who decides. Alone, you work like a full company. In a team, every member does.

Cabinet is for one person or a team of any size, and for anything agents can build: code, apps and websites, design, writing, marketing, music, finance. Every seat a project needs is drafted for it: a brand designer for a launch, a finance roleRole 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/. for a business plan, or any role you describe in one line, such as an editor for a book. Today its defaults are made for code (builders in repos, guardrailsGuardrails Rules installed in each agent tool, plus a git hook, that keep push, merge, release and publish with you. See guardrails. on push); other work runs through roles drafted for it and specsSpec 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. on 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. folders, and making that path as complete is on the roadmap.

In practice, Cabinet gives a project a small company: roles with clear authority (chief of staff, product manager, architect, qa, security, design lead, finance, builders that write the code in each repo the way it is already built, optional specialists, and any role your project needs, drafted for it from a one-line brief), one place where agents hand work to each other, a daily brief that puts every decision you must make in one queue, independent review before any work counts as done, and guardrails that keep every push, merge and publish with you. It is plain Markdown and shell scripts, so any agent tool can run it.

  • Platform: macOS and Linux (what differs). Windows through WSL is on the roadmap.
  • Status: on npm as @tarekraafat/cabinet (Install); every version and what changed is in the changelog.
  • Built with Cabinet: Cabinet is built and maintained with Cabinet.
  • Works with: Claude Code, Codex, Gemini CLI, Antigravity, Qwen Code, Grok, opencode, the Cursor CLI, and any other tool that reads AGENTS.md.
  • Set up by your AI agent: give your agent tool this link with "Set up Cabinet for me, following docs/agent-setup.md". The guide tells it what to ask you, what to run, and what to show you before anything changes on your machine.

Contents#

Why Cabinet#

Cabinet started as one person's own setup: a product manager, UX/UI designer and developer, with more than ten years in each. For a year and a half, on small, medium and large products in production, it has been how he works. Working alone, he has the agents do most of the work across product, design, development and writing, while he brings the vision and signs off; his output grew about tenfold. With a team of five on a project that needed three times as many people, it gave each person two more teammates, all following the same guidelines, design system, workflow and process toward one goal. A few colleagues who saw the results tried it and found the same. It became this kit so anyone can start with it instead of rebuilding it. It is open source.

What it believes:

  • People amplified, not replaced. Every person becomes a whole team, or a whole company. Agents bring the skills and the hours; the person brings vision, judgment, and the final say.
  • More output per person, not more headcount.
  • A small company, not a corporate org chart. Every repo and area has exactly one owner, and nothing is done twice.
  • People decide, agents do the work. Agents recommend; you sign off on anything irreversible, public or costly, and you always know what is happening.
  • For anyone. One person or a team of any size, building anything, working their own way.

Quick start#

npm i -g @tarekraafat/cabinet     # the cabinet command, everywhere
cabinet new                       # answers a few questions, creates and commits the workspace
cd <your new workspace>
cabinet next                      # what to do next, in order
cabinet bootstrap --dry-run       # see what it would change on this machine
cabinet bootstrap                 # guardrails for your agent tools, and the daily brief schedule
cabinet doctor                    # everything that needs attention; --fix runs the fixes it knows

New to Cabinet? The tutorial walks through the first day. Then fill the TBD lines in AGENTS.md: what the product is, its rules, and how to test it. Every command works from any folder inside the workspace or its project, and all of them follow one pattern: one word for the workspace as a whole (cabinet doctor), a noun then a verb for what it holds (cabinet role add, cabinet repo list); cabinet help lists them (how commands are named). Several projects? One workspace each; cabinet list shows them all, and cabinet digest gathers every sign-off queueSign-off queue The top of BRIEF.md: every decision waiting on you. into one morning read.

A day with Cabinet#

  1. Morning. At the time you chose, the chief-of-staff agent writes BRIEF.md. It starts with the sign-off queue: every decision only you can make, each as a plain question with lettered options, the experts' recommendations and whether it can be undone.
  2. You answer in one message, for example "approve 1 and 3; 2: no; 4: wait until Friday". The agents write your answers into the right specs and handoffsHandoff One entry in HANDOFFS.md: who it is for, what changed, what they need to do. The only channel between agents..
  3. The agents work. Each owns its repos and passes work to the others through HANDOFFS.md. The agent that built something never verifies it: qa and security do, and either can block it. Screenshots and recordings of the work are links in the brief, one click to open. cabinet spec run <spec> runs those steps for a whole feature, start to ready, so you start no agent by hand.
  4. You push what has passed review, from your own terminal. No command an agent runs can push, merge on GitHub, release or publish.

Words you will see#

WordMeaning
WorkspaceThe 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.
LayoutLayout Where the workspace sits: a new folder, around an existing folder of repos, inside a project as cabinet/, or beside a project. See layouts.Where the workspace sits: a new folder, around an existing folder of repos, inside a project as cabinet/, or beside a project. See layouts.
SlugSlug The workspace's short name (acme). It names its schedules, logs, backups and backup key, so projects on one machine never collide.The workspace's short name (acme). It names its schedules, logs, backups and backup key, so projects on one machine never collide.
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.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.
RoleAn agent's job description: what it owns, decides, escalates and may write. Kit roles live in .cabinet/roles/; a project adds notes in roles/.
SpecOne 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.
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.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.
HandoffOne entry in HANDOFFS.md: who it is for, what changed, what they need to do. The only channel between agents.
Sign-off queueThe top of BRIEF.md: every decision waiting on you.
TiersTiers Who decides what: the agent (reversible, in its own files), its lead (reversible, across repos), or you (irreversible, public, or costs money).Who decides what: the agent (reversible, in its own files), its lead (reversible, across repos), or you (irreversible, public, or costs money).
GuardrailsRules installed in each agent tool, plus a git hook, that keep push, merge, release and publish with you. See guardrails.

More in concepts.

Install#

You need macOS or Linux, and:

RequiredFor
gitEvery command, handoffs and the guardrails
Node.js 18 or newer, and npmInstalling Cabinet and pinning its version in each workspace; the scripts' shared logic runs with Node
At least one agent toolRunning the team and its scheduled jobs: Claude Code, Codex, Antigravity, Qwen Code, Grok, opencode, the Cursor CLI, or your own command (Gemini CLI for interactive sessions only)
A schedulerlaunchd on macOS (built in); systemd user timers on Linux, or cron where the machine did not boot with systemd
OptionalForWithout it
opensslEncrypted backups (built into macOS)No backups; everything else works
secret-tool (Linux)Keeping the backup passphrase in the secret store, as the keychain does on macOSNot needed with cron, which reads a passphrase file; or set CABINET_BACKUP_PASSPHRASE (macOS and Linux)
notify-send (Linux)cabinet digest --notifyThe digest is still written, with no notification
lsofcabinet move checking that no agent session still has the folder openThe move skips that check

cabinet new, init and bootstrap check for the required tools first and, in a terminal, offer to install the missing ones with your package manager; cabinet doctor --fix does the same later, and asks first for openssl or secret-tool when backups are on. Node.js and npm come first by hand, since npm installs cabinet:

  • macOS: brew install node (git and openssl come with macOS and its command line tools).
  • Debian or Ubuntu: sudo apt install git nodejs npm, and for the optional ones openssl libsecret-tools libnotify-bin lsof. Ubuntu 22.04 and Debian 11 install a Node.js older than 18; there, install a current one from nodejs.org.
npm i -g @tarekraafat/cabinet     # the short `cabinet` command everywhere
npx @tarekraafat/cabinet new      # or no install: run it through npx when you need it

To run the newest code from GitHub instead of the released package, clone the repository somewhere you keep (the clone is what runs) and link the command into a folder on your PATH:

git clone https://github.com/TarekRaafat/cabinet.git ~/cabinet-kit
mkdir -p ~/.local/bin && ln -s ~/cabinet-kit/bin/cabinet ~/.local/bin/cabinet
command -v cabinet   # nothing printed? add  export PATH="$HOME/.local/bin:$PATH"  to ~/.zshrc or ~/.bashrc

Update it with git -C ~/cabinet-kit pull. Create workspaces elsewhere, never inside the clone. Moving from a clone to the npm package: remove the link first (rm ~/.local/bin/cabinet), or the clone keeps running instead (command -v cabinet shows which one runs), then install from npm and run npm install in each workspace.

With a Node.js version manager (nvm, fnm, asdf, volta), a global install belongs to one Node version: after switching versions, cabinet is not found until you run npm i -g @tarekraafat/cabinet again under the new one. Workspaces and their schedules are not affected: they run their own copy.

Tab completion: add eval "$(cabinet completion zsh)" to ~/.zshrc (or bash to ~/.bashrc).

Every workspace also pins its own copy as a dev dependency. The global cabinet never runs that copy: where it pins another version, npx cabinet update and npx cabinet config use it, and cabinet update and config stop and say so. A cloned workspace runs its own bin/ scripts on cabinet doctor, next, handoff, role and brief: read one you did not make first, as you would its tests.

What setup changes on your machine#

Creating a workspace changes only its folder (and, inside a project, the few lines layouts lists). cabinet bootstrap, which new and init offer at the end and always show as a dry run first, also sets up this machine for every project on it (guardrails):

  • A push gate in your Cabinet workspace and the repos it lists: a global git pre-push hook (core.hooksPath) asks for yes at your terminal before a git push in each Cabinet workspace on this machine, the repos it lists, and the project around it, so agents, which have no terminal, cannot push them. Other repositories are not asked, and each repository's own hooks still run.
  • Deny rules in each agent tool it finds, such as ~/.claude/settings.json or ~/.codex/rules/default.rules, blocking push, merge, release and publish. Rules are only added, and each file is backed up first.
  • Schedules for the daily brief and backups: launchd on macOS, systemd or cron on Linux.
  • A secrets check before each commit in the workspace.

Undoing the guardrails says how to take them out; cabinet remove removes a workspace with its schedules.

Start a new project#

cabinet new

It asks, each with a default you keep by pressing Enter:

  • the project name, folder, and owner name and email (defaults from your git config);
  • which roles to enable (chief-of-staff is always on: it writes the brief and routes work);
  • the agent tool that runs scheduled jobs, the brief time (7 AM, days and a time like fri 4 PM, or off), and the first day of the week;
  • whether a commit a role makes in a Cabinet run credits that role beside you, with one Co-authored-by line that shows the Cabinet Team avatar on GitHub (on, the default, or off; credit roles);
  • a folder for the encrypted daily backup, outside the workspace (or off); cabinet backup restore brings one back, and first lists every file in its way, keeping each in recovered/ (--force deletes them instead, after asking at a terminal);
  • the product repos, as git URLs.

It shows a summary, creates and commits the workspace, then offers to pin the kit (npm install) and to set up the machine (bin/bootstrap.sh, shown as a dry run first).

Every answer is also an option, and --yes skips the questions:

cabinet new ~/dev/acme --name "Acme" --roles "qa security" --runner claude \
  --brief-time "7 AM" --week-start sunday --writing standard --credit-roles on --backup-dir off --repo git@github.com:acme/api.git --yes

All options: commands.

Add Cabinet to an existing project#

cd ~/dev/acme-app
npm i -D @tarekraafat/cabinet
npx cabinet init

In a project repo, cabinet init asks where the team's files go:

ChoiceWhat happens
Inside, private (default)cabinet/ inside the project, with its own git. The project's git ignores it, and no tracked file of the project changes.
Inside, sharedcabinet/ inside the project, committed with it, for teammates who clone it.
BesideA workspace folder next to the project, pointing at it. The project does not change.

In a folder that is not a repo (one already holding your repos, for example), init makes that folder the workspace. In every layout, files that already exist are kept, never replaced.

Setup also reads what the project says about itself: its name, description, scripts and repository from package.json, and its own git identity. It copies them as facts, each marked with its source, and leaves TBD what no file can tell.

Details: layouts.

Change settings later#

cabinet config        # in the workspace, or the project's top folder when cabinet/ is inside it

It asks the setup questions again with your current answers as defaults, lists the changes, writes them (settings, team tables, roles), and offers to update schedules and clone new repos. Options, --dry-run and --yes work as in new; cabinet config --budget 20 sets a weekly budget for the agent runs Cabinet starts (what they cost). cabinet config --writing short makes every brief, question and answer as short as it can be, for when you have little time to read (writing to the owner). cabinet config --hard-to-undo "api/migrations/" names what a small task must never touch (ready to build). Details: commands.

Update the kit#

Each workspace pins its kit version, so projects update independently.

cabinet status        # this workspace's version, and any kit file edited here
cabinet outdated      # is a newer version published?
npm update            # take a newer version
cabinet update        # apply it: replace kit files, rebuild roles, print the changelog since your version

cabinet update also says when a newer version is out, with the command that takes it; it installs nothing itself. An update never overwrites a kit file you edited in the workspace: cabinet update first lists each one and refuses, changing nothing; --force replaces them after asking at a terminal. In a workspace with its own git it commits itself (cabinet: update to <version>); when it cannot (a shared cabinet/, or uncommitted edits of yours in the files it rewrites), it ends with the commit to run. Without a global install, use npx cabinet in place of cabinet.

Remove Cabinet#

  • A workspace: cabinet remove (--dry-run shows the plan first). It stops the workspace's schedules, deletes its folder, and inside a project removes what setup added there. It first lists what deleting the folder would lose and refuses work that exists nowhere else, changing nothing; --force deletes it after asking at a terminal. Details: commands.
  • The guardrails: they stay in your agent tools' settings, since other workspaces may rely on them. Bootstrap saved a .bak copy of every file it changed; see guardrails.
  • The command: npm rm -g @tarekraafat/cabinet.

Develop the kit#

npm test                                        # the whole kit in scratch home folders, in parallel: about 25 minutes on an 8-core Mac
npm test -- init                                # only the sections about init, and what they need
CABINET_PRIVATE_WORDS="word1 word2" npm test    # also checks that none of your private words is in the kit

The website is built from this repository: site/build.js reads the docs, CHANGELOG.md, the roles, the demo's captured output and brand/ (its own wording is in site/copy.js), and node site/build.js <folder>/cabinet writes the whole site into that folder (a new or empty one). Serve <folder> with any static file server and open /cabinet/, where the site lives on GitHub Pages. .github/workflows/pages.yml publishes it when the maintainer publishes a GitHub release, or on a manual run for a fix; each run deploys only after the maintainer approves it in the repository's github-pages environment. The site is not part of the npm package.

Agents working on the kit: read AGENTS.md first. To contribute, see CONTRIBUTING.md; to report a security problem privately, SECURITY.md. Everyone taking part follows the code of conduct.

A release, by the maintainer: date the ## X.Y.Z - Unreleased section at the top of CHANGELOG.md (## X.Y.Z - D Mon YYYY, with anything a workspace must do by hand), set the same version in package.json, commit and push, then publish a GitHub release tagged vX.Y.Z. That runs .github/workflows/release.yml: it checks the tag against package.json, runs npm test, and publishes to npm with provenance, signing in as the package's trusted publisher (set once on npmjs.com, so no token is stored). The package is scoped, which npm would publish as private; publishConfig in package.json makes it public. .github/workflows/tests.yml runs the same npm test, on the same runner and setup, on every push to main and on a manual run, so a failure there shows before a release; it only reads the repository and never publishes.

License#

The code is licensed under the Apache License 2.0, copyright 2026 Tarek Raafat. Anyone who redistributes it or builds on it keeps the NOTICE. The Cabinet name, logo and the other brand assets are not part of that license: see brand/LICENSE.md.

Built from version 0.8.5

Enter to open. Up and Down to move. Esc to close.