Search/
Docs

Layouts#

Where 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. sits, and what that means for your project. cabinet new makes the first; cabinet init picks one of the other three from where you run it. The 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. is recorded as CABINET_LAYOUT in cabinet.env and does not change later.

LayoutMade byThe workspace isYour project
newcabinet new <dir>a new folder; product repos are cloned into it(cloned into the workspace)
aroundcabinet init in a folder that is not a repothat folder, around what is already in itthe repos in its subfolders, listed in repos.tsv
insidecabinet init --inside in a project repocabinet/ inside the projectunchanged files, plus what is listed below
besidecabinet init --beside in a project repoa folder next to the project (default <project>-hq)not changed at all

new#

The simplest: one folder holding the team's files and, under it, every product repo (cloned by bin/bootstrap.sh from repos.tsv). The workspace's .gitignore tracks only its own files, so the product repos stay out of its git.

around#

For a folder that already holds your repos side by side. cabinet init keeps everything there: existing files are never replaced, the folder's own .gitignore is kept, and only the files setup placed are committed (never a .env or other files that were already there). The repos it finds are listed in repos.tsv. If the folder already has a file at a path the kit uses, such as bin/doctor.sh, setup stops before writing anything: rename or move that file, then run cabinet init again.

inside#

For one project repo that should carry its team with it. The workspace is <project>/cabinet/. Agents usually start in the project's top folder, so setup points them at cabinet/ with an "Agent team" section, and also writes the 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/. definitions into the project's .claude/agents/ (a file of the project's own with the same name is kept). Paths in CABINET.md and the roles are relative to cabinet/: run its scripts as cabinet/bin/<script>. cabinet status, update and config work from the project's top folder.

There are two kinds, set once as CABINET_VISIBILITY:

Private (the default)#

cabinet/ has its own git, and the project's git never sees it. No tracked file of the project changes:

  • the pointer goes only into files the project does not track: CLAUDE.local.md (read by Claude Code and Grok), QWEN.local.md (Qwen), and AGENTS.md only when the project has none;
  • cabinet/, those pointer files and the role files are added to the project's .git/info/exclude;
  • the version pin goes in cabinet/package.json;
  • bin/role.sh build rebuilds the pointers on every update and after a restore.

When the project has its own AGENTS.md, it is left alone. Codex, opencode, Gemini and Cursor read only that file, so start them in cabinet/, or add the "Agent team" section to AGENTS.md yourself. If you later write a real AGENTS.md for a project that had none, remove /AGENTS.md from .git/info/exclude first, or git will ignore it.

Fits: solo work, open source projects, client repos.

Shared#

cabinet/ is part of the project's repo, for everyone who clones it. Setup adds the "Agent team" section to the project's AGENTS.md (or CLAUDE.md, or a new AGENTS.md) and pins the kit in the project's package.json as a devDependency (with npm's own npm pkg set: formatting kept, no network, an existing entry left alone). Setup commits nothing in the project: review the new files and commit them yourself. Without a package.json in the project, the pin goes in cabinet/package.json.

Fits: a private repo whose teammates should see the team's handoffsHandoff One entry in HANDOFFS.md: who it is for, what changed, what they need to do. The only channel between agents. 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..

A session of the project is a worktree at cabinet/sessions/<repo>/<name>/, which the project's git ignores in both kinds. With a shared cabinet/, the 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.'s folder holds its branch's copy of cabinet/ too; the cabinet command, run from there, uses the main folder's workspace, whose HANDOFFS.md is the one channel, so file and read handoffs with cabinet handoff, never the copy's bin/. A project tool that scans every folder may see the session's folder: point it past cabinet/.

beside#

The project is not changed at all. The workspace is a folder next to it and points at it with a relative path (../<project>) in repos.tsv, so the project stays where it is and nothing is cloned again. Fits a product with several repos, or a project you would rather not touch.

What lives where#

WhatWho changes it
Kit filesCABINET.md, bin/*.sh, .cabinet/ (roles, rules read when a task needs them, guardrailsGuardrails Rules installed in each agent tool, plus a git hook, that keep push, merge, release and publish with you. See guardrails., schedule template, version, format, manifest)Only cabinet update. Never edit them in a workspace: an update stops at an edited one.
Project filesAGENTS.md, cabinet.env, roles/, jobs/, HANDOFFS.md, OPERATIONS.md, repos.tsv, specs/, notes/, tools/ (the project's own scripts)You and the agents. Placed once by new or init; afterwards cabinet config changes only the settings it manages in them.
Builtagents/<role>.md, .claude/agents/<role>.md: the kit's role plus your roles/<role>.md; ORG.md, the org pagebin/role.sh build

Instructions layer from general to specific: CABINET.md, then the workspace's AGENTS.md, then each repo's own AGENTS.md.

Switching layouts#

Not supported: moving between layouts, or between private and shared, means moving files and changing git by hand. bin/move.sh moves a new or around workspace to another folder; it refuses the inside and beside layouts, whose relative paths would break.

Built from version 0.8.5

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