/close
/close ends the day, or a session before you open a new one.
- The log entry, as /log writes it, checks included. When closing, “Next steps” is required, each with its ID or the file to open.
- The handoff, only when you change session: see below.
- Git. What is not committed or not pushed. It asks before committing and pushing, never without a yes; it pulls with rebase first, and the hook before a push stops one that
plancia checkwould fail. - The agent’s memory. An entry of Claude’s memory that describes the state of the project, or a rule for everyone, belongs in the repo: it proposes to remove it or to reduce it to a pointer to the right file. Your preferences stay. Nothing changes without a yes. It ends with one line: where the log is, and what is left uncommitted.
The handoff
When a session’s context fills up, or you want to go on in a fresh one, /close handoff passes the work on. With a name, /close handoff review or “hand over to review”, it goes to the session you opened under that name.
The note. plancia handoff --write writes .plancia/inbox/<date>-handoff-<name>.md. What a command can check (the branch, the session’s commits and the items they closed, what is not committed, the files the session edited) it writes itself. The agent writes only what it alone knows:
- the few files to open;
- where the work stands and the goal;
- what it tried and discarded, and why;
- what you said, in your words;
- what waits on you;
- decisions not yet written;
- technical notes.
No secrets: only where they are kept.
The word. The note stays in the file. When the next session is named and the agent can message its other sessions (Claude Code can), it sends one line: where the note is. The next session reads the note, then answers with three lines: the goal, its first step, what it thinks is missing. The session that wrote the note fills the gaps from what it knows. That exchange catches what a summary drops. Without a name, you get the line to paste into the new session. Its session start names the note in any case.
Nothing lost, little loaded. The note names the conversation that wrote it. In the next session, plancia handoff search <session> <words> finds the messages that hold those words, a line each, and --entry <n> shows one whole. The next session loads the note, and the old conversation only a piece at a time, when something is missing. The conversations are Claude Code’s, on this machine, kept about 30 days.
When. Hand over before the context is nearly full. A session that has already been compacted writes from a summary, and the details are gone before the handoff.
The session that takes over deletes the note in its first commit; the story stays in the log. On the same folder the note is never committed. For a session in another folder or on another machine it is committed and pushed with the rest.