sandman · intentions

memory for agentic sessions · the main page · recall · knowledge

Prospective memory is remembering to do something later. sandman keeps one place for work the person defers — "do this later", "tomorrow", "after grove ships" — and surfaces it to the first session it comes due in. It never does the work: due items are raised with the person.

Built: defer, due, done, drop, the store, the seed's due block, the MCP tools and chart's list. Not built: matching an event to a session, a timeline in bifrost (next).

The problem

A deferred ask dies with the chat. "Let's do that tomorrow" is a turn in one transcript; the next session starts without it, and a memory is the wrong home: memories record what holds, not what is owed, and recall pulls them by relevance to the work at hand, never by date. The owner, 2026-11-14: "you should have a calendar or timeline too, i'll often tell you things like well do this later or tmrw, you should have one place for these types of turns".

Time-based and event-based

Memory science splits prospective memory in two; a stored item is an intention.

kindcue--whenstoreddue
time-baseda day arrivestoday, tomorrow, a weekday (the next one after today), YYYY-MM-DD, +3d, +2wdue: <date>, resolved once, from the local todayon and after that date
event-basedsomething happensany other words: after grove ships, verbatim, a malformed date's tooafter: <the words>always listed, marked waiting: no date tells when an event happened

The local today is date +%F, which reads the machine's time zone ($TZ, else /etc/localtime), so "tomorrow" said at 11 pm is the owner's tomorrow, not UTC's. No crate needed; the date arithmetic is the calendar's own (days since the epoch, the day held to a round trip).

The verbs

Plain words on the CLI; the same four as MCP tools.

Nothing expires or closes on its own: an intention stays open until the person's session closes it.

The store

One file an intention, the memory file's shape; disk is the truth, nothing is cached.

<root>/intentions/0a1b2c3d.md
---
due: 2026-11-03                  or  after: after grove ships
created: 2026-11-02T09:00:00Z
about: /work/alpha               the repository, when given
session: 5a000000-0000-4000-8000-00000000000a
graduate: 3f9a0c1d2b4e           a graduation's proposal: the note's id
artifact: /work/alpha/AGENTS.md  and where it would go
line: Run the bench first.       the line done holds the artifact to
state: open                      open, done or dropped
closed: …                        once closed
note: …                          the close's note
---

sample: rerun the alpha bench on the new box

The body is what was deferred, in the person's words. A push rewrites due or after in place; a close sets state and closed. The weekly review writes one per graduation it proposes (the ladder); done on it, once the artifact holds the line, ends its note into the artifact. The id is the file stem, never a frontmatter id:. Recall never reads intentions/: an intention is surfaced by date, not ranked by relevance. sandman chart lists every one under intentions (id, what, due or after, state, created, closed, about, session) for a timeline to draw.

What the seed shows

After the instructions, before the always-set, counted against the seed's budget as a fixed part; absent when nothing is due.

The seed's instructions gain one sentence: when the person defers work (later, tomorrow, after X), run sandman defer "<their words>" --when <when> at once, and close it with sandman done <id> once finished. The block is sandman due's own output, capped at ten rows and then … <n> more: sandman due; its header carries the rule. From the suite's seed (docs/data/recall-seed.txt, pinned to the real output):

due · deferred work: raise it with the person, never start it unasked
  · 0a1b2c3d 2026-11-03 — Rerun the alpha bench on the new box (/work/alpha)
  · 6e7f8a9b 2026-11-10 — Draft the beta release notes
  · 4e5f6a7b waiting: after grove ships — Cut sandman over to the rewrite
11-0111-0511-1011-2011-24 now · 11-14 · the seed lists what is right of this line past sessions 0a1b2c3ddue 11-03 · overdue 6e7f8a9bdue 11-10 · overdue 8c9d0e1fdue 11-20 4e5f6a7bafter grove ships no date: waiting on an event
Sample. Sessions lie behind now; intentions ahead of it. An intention whose day has passed is overdue and carried to now, listed first; one waiting on an event has no place on the axis, so every session sees it until it is closed.

Surfaced, never acted on

Settled 2026-11-14.

A due intention is shown to the session and raised with the person; the daemon never acts on one and never starts a session for one, and an agent never starts the work unasked. The owner: "it should be surfaced, routines run in the bg, this is generally work we do together". Work that should run unattended is a routine's, not an intention's; serve's tick has no job here.

Next

Not built.

Open questions