Playbook
Write decisions your agent can use.
Persistent context is only as good as the reasoning behind it. This page covers five habits for writing decision records that stop agents from relitigating settled questions, plus a builder that turns your answers into a ready-to-commit note.
Five habits
- 01
Record the rejection, not just the choice
An agent that only knows what you picked will happily propose the alternative again. The rejected option and its reason are the highest-value lines in the record.
- 02
Write for a stranger with no history
Assume the reader has the code but none of the conversations. Name the constraint (a deadline, an outage, a compliance rule) instead of saying "for obvious reasons".
- 03
State when it expires
Most decisions are right for a while. A one-line "revisit when" keeps a stale call from hardening into folklore.
- 04
Keep it to one page
If a record needs scrolling, it is two decisions. Short records get read, by people and by agents.
- 05
Capture it while the diff is open
The best moment to write a record is right after the change, when the reasoning is still in your head and the session still holds it.
- Decision
- Queue webhooks in a table, not a broker
- Context
- Two engineers, one database, fewer than 50 events per second.
- Rejected
- A managed message broker: another service to run and monitor for a load a table handles.
- Revisit when
- Sustained throughput passes 500 events per second, or consumers need fan-out.
Decision record builder
Fill in what you know. Everything stays in your browser; nothing is sent anywhere.
# Decision: _TBD_ ## Context _TBD_ ## Chosen _TBD_ ## Rejected _TBD_ ## Revisit when _TBD_
Or let the layer capture them.
Writing records by hand works. agentctx exists so the reasoning from your sessions is kept without the extra step.
