Search/

One person,
a whole team.

Build anything with AI agents, and stay in charge.

Cabinet is an open source kit that gives whatever you are making, from an app to a book or an album, a small company of AI agent 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/.. They bring the skills and the hours. You bring the vision, the judgment and the final say.

npm i -g @tarekraafat/cabinet
Take the tourRead the docs
cabinet initReal output
$ cabinet init --yes
== Project files
  placed: 16 files
== Kit files
  the project's git ignores cabinet/ and the pointers setup adds; no tracked file of the project changes
roles: chief-of-staff product-manager architect qa security design-lead finance code-reviewer
== Committed the new workspace as Maya

Created acme-app at /Users/maya/acme-app/cabinet (slug acme-app, cabinet 0.8.5).
Next:
  - Fill the TBDs in cabinet/AGENTS.md: what acme-app is, its product rules, how to test, the repo rows.
  - In /Users/maya/acme-app/cabinet: npm install (downloads the pinned kit and locks its version).
  - Set up this machine: cabinet bootstrap --dry-run, then cabinet bootstrap.
  - cabinet next shows what is left, at any time, from anywhere in /Users/maya/acme-app/cabinet.
Updates: npm update, then npx cabinet update (in /Users/maya/acme-app/cabinet).

The real output of cabinet init 0.8.5, captured in a sandbox. The home folder shows as /Users/maya.

Turn on JavaScript to watch it type. The whole output is here either way.

What is Cabinet?

A kit you install with npm. It creates 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. of plain Markdown files and shell scripts, kept in git on your own machine, that the agent tool you already use can run, for code or any other work: design, writing, marketing, music, finance.

What does it do, exactly?

See how it works

The team a workspace gives you, and one piece of work from handoff to push. Everything marked Example is made up for this tour; the rest is the kit's real output.

Meet the team

The roles a new workspace turns on, around one table. Choose one to see what it does. The open place is yours.

Turn on JavaScript to choose a role. Every role is listed below.

chief-of-staff
Coordinates the agents and briefs the owner. Use for a status brief, triage of HANDOFFS.md, finding stale or blocked handoffs, checking cross-repo contracts, preparing the owner's decisions, routing an owner task to the agents that own the work, spotting the need for a new seat, tracking new seats through onboarding, the monthly org review, and applying owner decisions routed to it into AGENTS.md. Reads every repo, writes only workspace files.
product-manager
Turns the owner's product ideas into one spec per feature, frames the decisions only the owner can make with a recommendation, keeps the cross-repo roadmap ranked, and hands finished specs to chief-of-staff for routing. Use when the owner describes a new feature or a change to one, asks what to build next, or asks for a spec, acceptance criteria or a roadmap. Reads every repo, writes only specs/ in the workspace.
architect
Engineering lead. Owns the contracts between repos, architecture decision records, technical direction and cross-repo code review. Decides reversible technical questions that cross repos and logs them; escalates vendors, data handling and public API shapes to the owner. Use for a contract change between repos, an ADR, a technical design that touches more than one repo, a cross-repo review, or "how should we build this".
qa
Quality lead. Verifies finished work independently of the agent that built it: runs the product locally with a test account, checks each spec's acceptance criteria, and checks cross-repo changes before a push. Its block holds a push until fixed or the owner overrides. Use when a handoff is marked done, before the owner pushes, or to verify a feature end to end.
security
Security and privacy reviewer. Reviews every repo's unpushed commits before the owner pushes: secrets, isolation between customers, authentication, stored credentials, personal data, consent. Also sets up and limits each new seat's access. Its block holds a push until fixed or the owner overrides. Use before a push, when a change touches auth, billing, credentials or personal data, or for a security or privacy audit.
design-lead
Design lead, for product design. Designs what people see before it is built (each feature's flows, screens and states, in its spec), keeps every surface consistent inside the brand guide, and signs off UI work visually. Decides layout, component and interaction questions that follow the brand guide, and escalates any brand change to the owner. Use for a feature's design, a UX or visual decision, a design review of UI work, or cross-surface consistency.
finance
Business lead for pricing and unit economics. Owns the finance folder (cost inputs, unit economics, pricing models, the decisions log), models margin per plan, quotas and overage from real cost data, prices every proposed seat, and brings the owner priced options with a recommendation. Decides no price and no seat. Use for pricing, plans, quotas, margins, the cost of a feature, or the cost of a proposed seat.
auditor
Auditor. Audits what is already in place, on a schedule or on request: dependencies (outdated, vulnerable, unlicensed), access (who and what holds keys and permissions), personal data (what is kept, where, for how long), configuration, and any checklist the project must meet. Reports findings and assigns fixes; changes nothing itself. Optional kit role, off by default. Use for a periodic audit, before a launch or a funding round, or after an incident.
backend
Builder for server-side repos (APIs, services, workers, libraries, command line tools). Owns the repos the team table in AGENTS.md assigns it, and builds in each the way that repo is already built. Works from specs and handoffs, writes tests with every change, runs the repo's checks, commits locally and hands finished work to qa. Never verifies its own work. Use for a change in a server-side repo it owns.
brand-designer
Brand and graphic designer. Owns the brand identity's working files and the graphic assets made from it (logos, color, type, illustrations, icons, social and marketing graphics, templates), and drafts the brand guide for the owner to decide. Makes assets inside the approved brand; any change to the brand itself is the owner's. Optional kit role, off by default. Use for a logo, an illustration, a marketing or social graphic, a template, or a brand guide draft.
code-reviewer
Code reviewer. Reviews each finished change inside a repo before it is pushed: correctness, edge cases, tests, clarity, simplicity and fit with how the repo is already written. Records PASS or CHANGES on the handoff; the owning builder makes the changes. Writes no product code. Optional kit role, off by default. Use when a builder hands work on, or for a review of a branch or a set of commits.
dba
Database administrator. Owns the health of the project's databases: reviews every schema change and migration before a push, watches indexes, query performance and growth, plans backups, restores and access, and prepares changes to a live database for the owner. Never changes a live database itself. Optional kit role, off by default. Use for a migration review, a slow query, a database design question, or a backup, restore or access plan.
infrastructure
Builder for infrastructure repos (CI, build and deploy pipelines, infrastructure as code, containers, environments). Owns the repos the team table in AGENTS.md assigns it, and builds in each the way that repo is already built. Prepares changes and shows their plan; never applies them to a shared or production environment, which is the owner's. Never verifies its own work. Use for a change in an infrastructure repo it owns.
mobile
Builder for iOS and Android apps (native, React Native, Flutter or other). Owns the repos the team table in AGENTS.md assigns it, and builds in each the way that repo is already built. Works from specs and handoffs, writes tests with every change, checks the result on a simulator or emulator, commits locally and hands finished work to qa and design-lead. Never submits to an app store and never verifies its own work. Use for a change in a mobile repo it owns.
web
Builder for what runs in a browser (web apps, sites, front ends). Owns the repos the team table in AGENTS.md assigns it, and builds in each the way that repo is already built. Works from specs and handoffs, writes tests with every change, checks the result in a real browser, commits locally and hands finished work to qa and design-lead. Never verifies its own work. Use for a change in a web repo it owns.

One piece of work, start to finish

  1. Real output

    Hand it on

    The design lead finishes the checkout screens and files a handoff for qa. Every handoff is one entry in one log, so nothing is lost when a session ends.

    $ cabinet handoff add --from design-lead --to qa --changed Checkout screens: cart, address, payment --needed Verify against the spec's acceptance criteria Checkout screens ready
    H-20261122-01 filed for qa and committed
    $ cabinet handoff list
      0d  open          H-20261122-01   qa                        Checkout screens ready
  2. Example

    Independent review

    qa and security check the work. The role that built it never verifies it, and either one can hold it back.

    - Verdict: qa PASS 2026-10-22 8a71d04 specs/qa/2026-10-22-checkout.md
    - Verdict: security PASS 2026-10-22 8a71d04 specs/security/2026-10-22-checkout.md

    Example: made up for this tour, in the kit's real formats.

  3. Example

    Your morning brief

    Every decision only you can make waits in one sign-off queue: a plain question, the options, the experts' recommendations, and whether it can be undone.

    Today: 1 decision, 1 action, about 2 min.

    ## Sign-off queue

    1. Merge the checkout redesign? qa and security passed. Evidence: the checkout page.

    A: merge. B: hold. Design lead: A.

    Recommended: A. Undo: yes.

    ## Actions for the owner

    Push web, main at 8a71d04: the checkout redesign, ready to push.

    Example: made up for this tour, in the kit's real formats.

  4. Example

    One line from you

    You answer in one message. The team puts each answer where it belongs and carries on.

    you  approve 1
    
    chief-of-staff
    Applied. 1: approved. Ready for you: push web, main at 8a71d04.

    Example: made up for this tour, in the kit's real formats.

  5. Real output Example

    Only you push

    No command an agent runs can push, merge on GitHub, release or publish. In your Cabinet workspace and the repos it lists, the push gate asks you at your own terminal.

    $ git push
    Push to git@github.com:acme/web.git
    refs/heads/main 8a71d04e2c9b6f3d1a5e7c0b4f8d2a6e9c3b1f57 refs/heads/main 3f2c9e1b7a4d8c6e0f2b5a9d3c7e1f4b8a6d2c09
    Type yes to push: yes
    To github.com:acme/web.git
       3f2c9e1..8a71d04  main -> main

    Example: made up for this tour, in the kit's real formats.

Watch the demo

From an empty folder to a working team and the owner's first morning. The commands and their output are real; the brief and the replies are examples.

In the film: create the team, set up the machine, check everything, the morning brief, answering in one line, the team at work, only you push.

What would I use it for?

To build more than you could alone: a product, an app or a website, a design system, a book or a newsletter, a launch, an album, a business plan. You set the direction and answer the decisions; the roles plan, build, review and report back.

How does it help me?

You spend your time on decisions, not on chasing work. The brief is one read in the morning, your answers go where they belong, and nothing irreversible, public or costly happens without you.

From the author

Built the way it was used.

Cabinet started as its author's own setup. 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, and 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. Cabinet is built and maintained with Cabinet.

Install

macOS

macOS: brew install node (git and openssl come with macOS and its command line tools).

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
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

Linux

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
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

Read the docs

Set up with your agent

Paste this into your agent tool. It reads the setup 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., asks you what it needs, and shows you every change before it makes it.

Set up Cabinet for me, following https://tarekraafat.github.io/cabinet/docs/agent-setup.md (the docs for agents: https://tarekraafat.github.io/cabinet/llms.txt)
What setup changes on your machine

What changes

  • 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.

How to undo it

  • Rules in a tool's settings: restore the .bak.<timestamp> copy bootstrap made next to the file, or delete the rules you no longer want (the kit's list is in each workspace's .cabinet/guardrails/).
  • The push gate, its helper, the hook stubs, the credit hook and pre-rebase: git config --global --unset core.hooksPath, then delete ~/.config/git/hooks/.
  • Codex: remove approval_policy from ~/.codex/config.toml (or delete the file when it holds only that line, as bootstrap creates it when there is none) and the kit's rules from ~/.codex/rules/default.rules (rules bootstrap added later follow the line # Added by cabinet bootstrap: rules from a newer Cabinet kit).
  • Gemini: delete ~/.gemini/policies/owner-control.toml and remove context.fileName from ~/.gemini/settings.json.

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

Questions?

Read the FAQRead the docs

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