Commands
plancia reads the repo as the schema describes it and answers in compact text, with file and line, so an agent gets an item, its history and who cites it in one call instead of reading whole files. On a repo where every fact has an ID, grep finds a single fact as well: the benchmark measured the command at 4-12% more cost per question, and no gain in right answers. It works on the local files, uncommitted changes included, with no network and no account; only publish talks to a Plancia web app.
npx plancia-cli today # with Node 20 or later, nothing to installnpm install -g plancia-cli # or once, then: plancia todayThe Claude Code plugin ships the same command and puts plancia on the session’s path, so with the plugin it is already there.
The commands
| Command | What it answers |
|---|---|
init [--write [--force]] [--json] |
A proposed schema for the files already in the repo, the count of each type and the problems check would find; --write saves it |
today [--owner <text>] [--days 7] [--all] |
What is due within the days asked, blocked, to decide and in progress; the files under way of a type spread over several files (a roadmap’s phases), with what is blocked in each; what others changed since yesterday; notes left in .plancia/inbox/; mirrors not refreshed for two weeks; at the end, your other projects if you turned them on. Lists stop at 12 lines; --all shows every line |
show <ID | path> |
One item or document: its fields, its history (the versions that superseded each other) and who cites it |
radius <ID | path> |
Everything that cites it, with file and line: what to review when it changes |
find [<type>] [--where "field~text"] [--fields a,b] [--open] |
One type as a table, filtered |
check [--file <path>] [--all] |
Problems in the schema and in the repo; exit 1 when there are any |
map |
The repo with the cost in tokens of every part |
impact <path> |
What an edit to the file touches elsewhere |
archive [--write] [--json] |
Done items to move to their type’s archive; --write moves them |
ids [<type>] [--prefix <text>] [--write] [--json] |
The items that have no ID, with the ID each would get: the next free number of its type (never one cited elsewhere), written where the type’s lines write it. --write adds them; a sub-item stays part of its item; --prefix T gives a type with no IDs yet T1, T2… |
rollup [--write] |
The rollups of the repo: says which are stale, --write rewrites them |
log [--since HH:MM] [--write] |
The skeleton of today’s log entry, from git: the commits since the last entry with the items they closed, what is not committed, the next steps. The agent writes only the sentences in place of <…>; --write appends it to the log |
handoff [--to <name>] [--write] |
A handoff for the next session in .plancia/inbox/: the sections the agent writes, and what the command checks itself (the branch, the session’s commits with the items they closed, what is not committed, the files the session edited) |
handoff search <session> <words> |
The messages of an earlier conversation of Claude Code that hold every word, a line each with its number; --entry <n> shows one whole. The note names the session; only the first 8 characters of its ID are needed |
close <ID> [--note <text>] |
Closes an item: its status set to done and the archive, as by hand. In a parallel worktree it writes the closing in .plancia/closing/<branch>.md instead, with the note for the Status section |
closing [--write] [--json] |
The items closed in parallel worktrees and merged; --write applies them on the main checkout: statuses, archive, closing files removed, and which Status sections to rewrite |
changelog [--since YYYY-MM-DD] [--json | --md] |
Tasks closed and decisions taken, by date, from the git history |
mirror [<tool> [--write] [--scope <text>]] < records.json |
Experimental. Writes the issues or pages your agent read from a tool’s MCP server as read-only Markdown in .plancia/mirror/<tool>/; without --write it says what would change, without a tool it lists the mirrors (Linear and Notion mirrors) |
source [add <file> | text <ID> | check [<ID>] | index] |
The mechanical work of sources: add checks an original (sha256, duplicates) and with --write writes a new card with the next free ID; text prints the original’s text by page (--pages 3-5); check finds every quote of a card word for word in its original, with the page, exit 1 when one is not there; index --write rewrites the table of the folder’s README from the cards. PDFs are read with pdftotext (poppler) when it is installed, otherwise pass the text with --text <file> or --text - |
read |
The whole index as JSON, for other tools |
publish [--ref <rev>] [--url <address>] [--dry-run] |
Experimental. For a repo not on GitHub: the index of the commit on the remote (the branch’s upstream, otherwise HEAD, or --ref) sent to a Plancia web app, by hand after a push or from any CI. The address in --url or PLANCIA_URL, the token only in PLANCIA_TOKEN. --dry-run builds it and says what it would send (linking a repo not on GitHub) |
overview [--days 7] [--json] |
Every project you have access to on a Plancia web app, a few lines each: counts, blockers, deadlines within the days asked, a push that failed. Read with your personal token, the one other command that uses the network |
account [--url <address>] [--today | --no-today] < token |
Saves where your account is (the address, and the personal token read from stdin, never from an argument) and whether today ends with your other projects; with nothing to change, says what is saved, never the token |
hooks <codex | cursor> [--write] |
The hook file of Codex or Cursor for this repo: printed, or written as .codex/hooks.json or .cursor/hooks.json (the plugin) |
hook <event> [--agent claude|codex|cursor] |
What the hooks run: the event on stdin, the answer in the agent’s format |
--version |
The version of the command |
Every command takes --root <folder> (default: the git repo you are in) and --schema <file>. Answers are in English or Italian: PLANCIA_LANG=en or it, otherwise the language of the system.
Your other projects
Someone who follows several projects on a Plancia web app can see all of them from any repo: plancia overview, or at the end of plancia today once turned on. It reads the summaries the web app keeps for its overview, one call for every project, and never the items.
- The administrator of the web app creates a personal token:
npm run admin -w @plancia/web -- create-personal-token <email>. It reads the overview of the projects that person has access to, and nothing else;revoke-personal-token <email>stops it. - You save it, with the token copied:
pbpaste | plancia account --url https://your-plancia --today(or< file). It goes in~/.config/plancia/account.json($XDG_CONFIG_HOMEif set), readable only by you: a file of yours and of the machine, never of a repo.PLANCIA_URLandPLANCIA_PERSONAL_TOKENtake its place when both are set, foroverviewonly. plancia todaythen ends with “Your other projects”, without the repo it already describes (matched by theoriginremote). It waits for the web app 5 seconds at most and, when it cannot read it, says so in one line.--no-todayturns it off;PLANCIA_NO_OVERVIEW=1skips it once.
/setup asks about it, and does these steps with you without seeing the token.
Rollups
An index that says where each phase stands is the kind of table an agent rewrites by hand and gets wrong. A rollup writes it from the items, in plain code. Put two lines in any Markdown file:
<!-- plancia:rollup step columns="Phase,Status,Done,Next" --><!-- /plancia:rollup -->plancia rollup --write fills the space between them with one row per file of the type (step here): a link with the file’s title, its status (all done, under way, blocked, to do, in the type’s own marks), how many items are done, archived ones included, and what comes next. columns names the four columns in your language; without it they are What, Status, Done, Next. Nothing outside the two lines is touched.
The Claude Code plugin rewrites the rollups after every edit, plancia close and plancia archive --write do too, and plancia check notes one that no longer says what the items say.
What the answers look like
On the invented workspace in examples/demo:
$ plancia todayAurora Bike Workshop · 2026-12-01
Due within 14 days (3, 0 overdue) T1 today Buy the van — Marta work/todo.md:7 WEB-15 in 4d Price list page — Marta .plancia/mirror/linear/WEB-15.md:1 WEB-12 in 9d Online booking for repairs — Luca .plancia/mirror/linear/WEB-12.md:1
Blocked tasks and open blockers (3) · blocked Online payments: waiting on D3 product/phase-1.md:10 I1 open The van dealer has closed — Marta work/incidents.md:5 T3 blocked Open the second workshop — Marta + Luca · due 2027-03-01 work/todo.md:11
Decisions to take (2) D3 open Second workshop: North or South? · due 2026-12-15 work/decisions.md:15 D5 open Open again on Mondays? Reopened on 2026-11-09 · due 2026-11-30 work/decisions.md:16
In progress (3) WEB-12 In Progress Online booking for repairs — Luca · due 2026-12-10 .plancia/mirror/linear/WEB-12.md:1 WEB-15 In Review Price list page — Marta · due 2026-12-05 .plancia/mirror/linear/WEB-15.md:1 T1 in progress Buy the van — Marta · due 2026-12-01 work/todo.md:7$ plancia radius D2decision D2 Van for home pick-up, by December: cited 5 times in 5 files .plancia/closing/agent-van.md:5 log/2026-11-10.md:3 README.md:4 product/phase-2.md:10 product-step 2.1 Choose the used van, see D2 work/todo.md:7 task T1 Buy the van$ plancia find task4 tasksid | status | title | whereT1 | in progress | Buy the van | work/todo.md:7T2 | to do | Find an inner tube supplier | work/todo.md:10T3 | blocked | Open the second workshop | work/todo.md:11T4 | done | Website with opening hours | work/todo.md:15For agents
Put these lines in the repo’s CLAUDE.md or AGENTS.md, so the agent uses the index before reading files:
- Before reading files by hand: `plancia today`, `plancia show <ID>`, `plancia find <type>`.- After changing a decision or closing a task: `plancia radius <ID>`, and update what cites it.- Before a commit: `plancia check` must report no problems.The answers are short on purpose: a few hundred tokens instead of the files they summarise. The benchmark measures a working session: the saving comes from the layout the method keeps in order. On that benchmark the command adds no accuracy and costs a few percent more; what it adds is the answer with file and line, and the radius of an edit.