The Claude Code plugin
The plugin is the agent side of Plancia in Claude Code: the plancia command in every session, hooks that keep the repo in step after every edit, and the routines of the method. It works on any layout: what is a task, a decision or a step, where done items are archived and where the log goes are declared in the repo’s schema, never assumed by the plugin.
Install
Node 20 or later must be on the machine. In Claude Code:
/plugin marketplace add LorenzoLodigiani/plancia/plugin install plancia@planciaThen /setup in the repo: on an existing repo it writes .plancia/schema.yaml for the files already there; on an empty repo it proposes the template, and on a repo born from it fills the placeholders. Nothing else is written without a yes.
Hooks
They run on their own, in plain code, and say nothing when there is nothing to say. Each is explained in The hooks.
| When | What it does |
|---|---|
| Session start | A short brief of what asks for action: commits to pull or push, a missing log, overdue items, what others changed since yesterday |
| After every edit | Done items to their archive where the schema says so, the rollups rewritten, and what the edit touches elsewhere |
| Before a push | plancia check: a problem stops the push, with the reason |
| End of an answer | Asks for the log entry when the session did work without one |
Codex and Cursor
Not tried inside those agents yet. The files follow each agent’s documented hook format, and the commands they call are tested with recorded events of both; nobody has run a real Codex or Cursor session on them so far. Reports are welcome.
The same four hooks run in Codex and Cursor, through the plancia command: the installed one, or else the package from npm at the version that wrote the file (npx -y plancia-cli@<version>), never whatever is newest when a hook runs. Write the file again to move to a newer version. In the repo:
npx plancia-cli hooks codex --write # .codex/hooks.jsonnpx plancia-cli hooks cursor --write # .cursor/hooks.jsonWithout --write it prints the file. An existing file keeps its other hooks; Plancia’s entries are replaced by the current ones. Codex runs project hooks only after the person trusts them with /hooks; Cursor reads its file at the next agent session. The skills are Claude Code’s: in the other agents the same routines are a request in plain words (“write today’s log entry”), and the hooks name the log file instead of /log.
Skills
| Skill | What it does |
|---|---|
| /setup | Sets a repo up: the schema of an existing repo, or the template for a new one, with its optional parts |
| /today | Opens the day: what is due, blocked and to decide, the last log’s next steps, git; proposes two to four things |
| /log | Writes the session’s entry in the log of the day from a skeleton built from git, and checks that archive, status sections and decisions follow the work |
| /close | Ends the day or the session: last log entry, uncommitted work, a handoff note for the next session, sent to it when it is named |
| /check | plancia check explained: what each finding means and how to fix it |
| /source | Files an external document as a source card with an ID, with its facts and their page, and checks every quote word for word |
| /worktree | A second folder of the repo on its own branch, to work on the business and the product in two sessions at once |
| /mirror | Experimental. Mirrors Linear, Notion or another tool through its MCP server into .plancia/mirror/<tool>/, and refreshes it |
Two agents come with it: critic reads a document that leaves the repo as the person who must say yes would; researcher does research with a source for every number.
What it writes
The repo is the truth: the plugin and the index only read it, and the agent writes. Outside the repo’s own files, the plugin keeps a cache of the index and the hooks’ memory of the session in .git/plancia/, never in the working tree. The only files it changes on its own are done items going to the archive the schema declares, and the rows of a rollup.