Patterns · working with agents

Where a new thing goes.

Something new turns up mid-session. Where does it go? A rule goes to an instructions file, a lesson to a memory note, a to-do to one of three homes. Each has one owner, and the inbox is worked down in batches by a hub session and cheaper helpers. This page follows one item from the moment it turns up to the moment it is ticked.

The flow

Memory and inbox: where something new goes and how the inbox is worked down Three lanes. An agent notices something new in a session, sorts it as a rule, a lesson or a to-do, and writes it to its home. At the next session start a hook lists what is due. I ask to work the inbox; a hub session and cheaper helper sessions do the items and the hub ticks them. Items only I can do, and permanent deletes, come to me. The hook later prunes old ticked lines, and open items return at the next start. at the next session start what is due starts a hub marked mine ticked open ones return 1 Something new mid-session 2 Sort by kind three kinds 3 Write it down one home each 4 Start-up hook lists what's due 5 I ask work the inbox 6 Hub + helpers cheaper sessions 7 Hub ticks only hub edits 8 I do mine + deletes 9 Hook prunes old ticked lines I DECIDE AN AGENT ACTS A GATE CHECKS
  • I decide
  • An agent acts
  • A gate checks

Numbers match the steps below.

Steps

  1. AgentSomething new turns up

    Mid-session, a correction, a lesson or a side task comes up. It is handled now, not saved for the end of the session.

  2. AgentSorts it by kind

    Is it a rule, a durable lesson or a to-do? Each kind has exactly one home, so nothing is written twice and nothing is lost between two places.

  3. AgentWrites it down

    A rule goes into the repo’s instructions file, or the global one if it applies everywhere. A lesson goes into a memory note with one line added to the memory index, and any fact it supersedes is dropped in the same pass. A to-do goes to one of three homes: personal reminders to a reminders app, work tasks to a task manager, and anything that comes out of a conversation to an inbox file, appended at once with a one-line “Parked” message so I see it happen.

  4. Start-up hookLists what is due at the next session start

    On a genuinely new session a hook reads the inbox. It lists the items for this project, everything marked as mine, and anything due within a week or overdue; the rest is one summary line. It nudges and never blocks.

  5. MeAsk to work the inbox

    I say so, or ask for the easy wins on the list.

  6. Hub + helpersSplit the open items into clusters

    A hub session starts about four cheaper helper sessions, each with an explicit model and effort. Items marked as mine are skipped. Helpers report what they finished and any new items they found.

  7. HubTicks what is finished

    Only the hub edits the inbox file. A report is a claim, so the hub checks it before ticking. Done items are ticked with a date and nothing else is rewritten or reordered.

  8. MeDo what only I can

    Items marked as mine wait for me. Permanent deletes are mine too: the agent resolves the real path and parks the exact command in the inbox for me to run.

  9. Start-up hookPrunes old ticked lines

    At a later start the hook removes ticked lines that closed more than a week ago. Version control keeps them. Items still open are listed again.

Guardrails

What stops it

Hard stops

  • Only the hub edits the inbox; helpers report instead. One editor at a time, so two sessions never overwrite each other.
  • New lines are appended under Open. No other line is rewritten or reordered.
  • Secrets and personal facts stay out of the notes. One tool writes memory.
  • The start-up hook only nudges. It cannot block a session.

What waits for me

My call

  • Anything marked as mine: hardware, sign-ins, approvals, decisions.
  • Every permanent delete. The exact command is parked for me to run.
  • A dated nudge in a reminders app, only if I ask for one.

When it fails or goes stale

Stale is flagged, not hidden

  • A superseded memory fact is dropped in the same pass that replaces it.
  • A task whose date has passed with nothing recording it done is marked “may be done: check”.
  • The memory index loads up to a fixed size; past that the rest is cut and a warning says how much.
  • A helper’s report that does not match the inbox diff is not trusted.

The idea

Agents forget between sessions, so what you want them to know has to live somewhere that is read for them. The trick is to give every kind of thing exactly one home: a rule is read at the start of every session, a lesson is looked up when it matters, a to-do is surfaced when it is due. When the sorting is mechanical, capture costs nothing, nothing is stored twice, and the human is asked only for what only a human can do.

Copied