Getting started
Plancia needs one file in your repo, .plancia/schema.yaml, which says where each kind of item lives and how to read it. Two ways in, depending on where you start:
- Your repo, your structure. Plancia adapts to the layout you already use: the agent writes the schema for your files as they are, and nothing moves. The rest of this page.
- Starting from zero, with no structure of your own: use the one Plancia was designed around. See Starting a new project.
The quickest way to write the schema is to let your agent do it.
With your agent
Open Claude Code, Codex or Cursor inside the repo and paste:
Set up Plancia on this repo. Follow the guide at https://plancia.xyz/setup.md. Don't move, rename or rewrite any of my files.The agent follows setup.md, a guide written for agents. It:
- lists your Markdown files and finds what repeats: lines with the same shape, tables, files with front matter;
- writes
.plancia/schema.yaml, the only new file; - runs
plancia checkandplancia finduntil the counts match what is in the repo; - tells you the types it found, what is due and blocked, and the problems in the repo;
- asks before anything optional: the plugin, IDs for items that have none, the web app. It mentions the experimental parts in one line and sets one up only if you choose it.
By hand
The command needs Node 20 or later and nothing else. First the schema: init proposes one from what repeats in the repo.
npx plancia-cli init # prints a proposed schema, the count of each type and the problems check would findnpx plancia-cli init --write # saves it as .plancia/schema.yaml (not over an existing one without --force)Then refine it until check is clean and the counts are right: drop the types that are noise, rename the others as the project calls them. The schema has every key; examples/demo/.plancia/schema.yaml is a commented example on an invented workspace.
project: My projecttypes: task: source: notes/todo.md format: lines pattern: '^- \[(?<status>.)\] (?<id>T\d+) (?<title>.+)$' statuses: { " ": to do, "~": in progress, "!": blocked, "x": done } decision: source: docs/decisions.md format: table id: 'D\d+'From then on:
npx plancia-cli check # problems in the schema and in the reponpx plancia-cli today # what is due, blocked, to decide and in progressnpx plancia-cli find task # one type as a tableWith Claude Code, add the plugin for the hooks and the routines:
/plugin marketplace add LorenzoLodigiani/plancia/plugin install plancia@planciaThen /setup in the repo does the same work as the prompt above.
What changes in your work
- Ask the index first.
plancia today,plancia show D3,plancia radius D3answer in a few lines with file and line, instead of an agent reading whole files. - When something changes, look at its radius.
plancia radius <ID>lists everything that cites an item: what to review when a decision changes or a task closes. With the plugin, a hook says it after every edit. - Keep the repo clean before a push.
plancia checkreports broken links, IDs cited but never defined and lines out of format; with the plugin, a problem stops the push.
Starting a new project
template/ is the layout Plancia was designed around: a map for the agent, a to-do with IDs, decisions, people, a roadmap in phases with an archive, sources, the daily log, and a schema that already declares all of it.
In Claude Code with the plugin, run /setup in an empty repo: it proposes the template and copies it there, overwriting nothing. Or copy it by hand:
npx degit LorenzoLodigiani/plancia/template my-projectcd my-project && git init && claude # then /setup/setup asks about the project and fills the template, and asks about two optional parts, keeping or removing each:
- Business registries: customers in negotiation, the team, strategy, market and sales. For a project that sells something; without them the business is the to-do, the decisions and the people.
- Two folders: a second folder of the repo on a
productbranch, in its own window with its own agent session. One session works on the business and the other on the product and the code, at the same time, each changing only its own files, so the merge is always clean. Worth it when the two move in parallel; with one session at a time a single folder is simpler. /worktree explains it and adds it later too.
The template is a starting point, not a rule: rename folders or formats as you like and update the schema with them.