Skip to content
Set it up

/log

/log writes what the session did in the log of the day, and checks that the files that track the work say the same thing. The log is the thread between sessions: /today reads it the next morning.

You rarely start it yourself: the hook at the end of an answer asks for it when the session closed items or changed files without an entry. It needs a log key in the schema (for example log/YYYY-MM-DD.md); without one, it proposes adding it and stops.

The skeleton, in plain code

plancia log builds the entry from git, so the agent does not reconstruct the session from memory:

---
## 18:50 · Ada
- 1.2, D4 in `b4c1e2a`: <what was done> (1.2 Online booking; D4 Open on Saturdays)
- `9f0a3d1` Price list typos: <what was done>
- 1.3, not committed: <what was done> (Price page)
- Not committed: product/phase-1.md, work/todo.md
### Next steps
- <the next action, with the file to open>
  • the opening: # Log <date> for the first entry of the day, --- before the next ones;
  • the heading, with the time and your git name;
  • one line per commit you made since the last entry of the day, with the items it closed: steps or tasks marked done, archived ones included, and decisions taken;
  • the items closed and the files changed but not committed yet;
  • what the log already cites (an ID, a short commit) is left out.

The agent writes only the sentences in place of <…>: specific facts (“T3: the van is booked for Friday, the dealer wants a deposit”), not “worked on the van”. plancia log --write appends the skeleton to the log; --since HH:MM starts from another time.

The checks

For every item closed, before the entry is written:

  • it is marked done in its line, and moved to its archive where the type has one (plancia archive shows what is left; where the schema does not say auto_archive, moving is your call);
  • the Status section of the file it came from is rewritten, not lengthened: where it stands, what blocks, what comes next;
  • the row of its phase in the roadmap index, unless that index is a rollup, which the hook rewrites;
  • a decision taken has its row with the next free ID, and a decision that changed has a new row with the same ID and today’s date;
  • plancia check reports no problems.

One entry per session: if the session already wrote one today, it is extended. No commit: you ask for it.