rutter_Who owns memory owns truth.

Memory-of-use: the mechanics in full

The record of how you used your notes: where it lives, how it is written, and how it all comes back.

Memory-of-use is the record of how you used your notes: which decisions your AI sessions wrote down, and which notes each one cited. rutter captures it from your sessions as plain Markdown in your own notes folder and serves it back to any connected client.

Search alone is something any capable agent can already do. Memory-of-use adds a record that a later session can recall. Here is how it gets written: the server's instructions ask your client to write one line when a session decides or produces something, and a hook (a script the client runs after each turn) lifts the last such line and stores it. A later session, in the same client or another, can recall it. rutter also annotates search results you have engaged with before, and measures whether you actually reach for any of it. The server runs no model at any point.

All of this is local-first. rutter makes no network calls, the server runs no AI model (your client is the brain), and it only ever writes inside your notes folder's _librarian/ folder and the disposable data/ index. What your client sends to its own model provider is outside rutter's control; see What leaves your machine. The _librarian/ folder is rutter's own layer next to your notes. Tool names, environment variables, and that folder keep rutter's earlier name, librarian.


Where rutter keeps what it remembers

Session memory lives in your notes folder, as plain, human-readable, git-committable markdown:

<notes folder>/_librarian/sessions/2026-07-24.md
  • One file per day, one line per outcome. The contract asks the client for one line per separable thing a session decides or produces. That line is a directive the client leaves (see Capturing session summaries). It is not the raw transcript, and it is not one line per session. A working session usually leaves three or four. Over the first two weeks of real capture, one person's use, the average was 3.2 lines per session. Those lines are the session's steps, and librarian-recent groups them back into a single account of that session when you read it. Whether a line offered for capture is actually stored is a separate rule, the duplicate rule below.

  • Typed frontmatter. Each record carries a small typed header: the day, each session's identity and time, the curated summary, and the notes it touched, each by its versioned identity. That is the path relative to your notes folder plus a content hash taken when the line was captured. The hash identifies the file's bytes at that moment, even after the note changes later; rutter keeps no copy of the contents.

  • You can read and edit it. It is your markdown, in your notes folder. Open it in Obsidian, edit it, commit it. A hand edit is outside the append-only rule, which binds only the server, and nothing detects it.

  • It is never auto-deleted. Records are only ever appended to. rutter has no prune or delete path that destroys memory-of-use.

  • Capture is idempotent, and this is the duplicate rule. The Stop hook fires at the end of every assistant turn, so the same line is offered for capture many times. A line is skipped when a line already recorded anywhere in _librarian/sessions/, on any day, has the same session id, the same summary after normalization (see the style contract), and the same sorted list of resolved reference paths. Order is ignored and duplicates are kept, so [A] and [A, A] differ. Content hashes and the workspace are not compared, so editing a cited note between firings does not add a twin. A skipped line leaves the file byte-identical. What follows from the rule:

    • Identical text in a different session appends.
    • Two raw texts that normalize to the same line are one line.
    • A rephrased line appends after the earlier one, as a revision. Nothing is overwritten or deleted.
    • A capture with no session id, such as a hand-piped npm run capture test, always appends.

    Position lines (a second, rarer kind of line, about a stance you formed or changed) are no longer captured; see Positions.

Which workspace an entry came from

Because a single day can span several efforts, each entry also records where the session happened, automatically, with nothing for you to name or configure:

- id: 20260726T101500123Z
  time: 2026-07-26T10:15:00.123Z
  summary: Shipped workspace provenance.
  refs: []
  workspace:
    cwd: /Users/you/Development/personal/rutter
    project: rutter
    repo: https://github.com/you/rutter.git
  client: claude
  • cwd is the session's working directory, exactly as the host reported it on the Stop event.
  • project is derived from that directory: the name of the enclosing git working tree, or the directory's own name when it is not in a repo. A session run from rutter/src is still project rutter. It is never something you supply, because being asked to name it would make capture non-ambient.
  • repo is the origin URL, read straight out of .git/config. rutter never runs git (no subprocess) and never contacts the remote (no network). The URL is just a string it found in a file. Any token or password written into the URL (https://<token>@host/…) and any ?query are removed before it is stored, so a credential in your git config is never copied into your notes.
  • client is covered in the next section.

Everything about workspace is best-effort and never blocks a capture:

  • No working directory in the payload means the whole workspace field is omitted and the entry is captured as usual. A hand-piped npm run capture payload has none unless you add an optional cwd. A real Stop event supplies it.
  • Not inside a repository, or no origin, means repo is omitted. cwd and project still land.
  • A .git redirect (a linked worktree or submodule) is followed only when its target is itself git metadata, meaning a path containing .git. Anything else is refused and repo is omitted, so the reader cannot be steered into arbitrary directories.

Entries captured before this existed stay valid, untouched. workspace is an optional field added to the same record schema (session-record@1). There is no migration and no rewrite of old records. A day file can hold a mix of old and new entries.

Duplicate detection ignores it. The duplicate rule compares session id, normalized summary, and reference paths, never the workspace. A Stop firing whose directory changed (a rename, a subdirectory, or none at all) is still an unchanged line and still a byte-identical no-op. Moving a project does not fork your history.

Which client wrote it

client is another optional field: claude, grok, codex, copilot, agy, or muse. It names the host, never the model, and it is metadata only. It changes nothing about how the summary or stance is stored.

The hook compares two things: the raw Stop event payload the host sends (Antigravity's shape, Copilot CLI's shape, Grok's camelCase lastAssistantMessage) and the identity the installer passes as --client. It writes a label only when the two agree.

No label is written for conflicts, direct payloads, or an unrecognized identity. Codex without an identity gets none either, because nothing in its payload separates it from Claude. Entries from a hook registered by hand before this field existed show no label. Re-run install-hook to add it. A stored value this build does not know is kept and ignored, never an error. The label shows in the record's frontmatter, not the body.


Capturing session summaries

Capture is ambient: it happens after each turn with no action from you inside the session. It is wired through a Stop hook, a hook the host runs when the assistant finishes a turn, in Claude Code, Grok, Codex, Copilot CLI, Antigravity, and Muse Code.

Setup is the hook. Register it with npm run install-hook, adding --client grok, --client codex, --client copilot, --client antigravity, or --client muse for those hosts. Getting started has a setup path for each host, with its commands and checks. Two facts change behavior:

  • Codex will not run the hook until you review and trust it with /hooks. Installing does not grant trust, and an untrusted hook never runs.
  • Antigravity, Copilot CLI, and Muse Code each need an instructions or rules file as well as the hook (see Host differences).

The installer merges into existing hook configuration and never touches your other hooks. It refuses to run against an unbuilt repo. The registered script always exits cleanly, so a capture failure can never break your session.

Host differences

All six hosts fire the same hook after each turn and store the same records, in the same notes folder. That shared folder is how a decision captured in one tool is recalled in another. Each record carries a client label naming the host that wrote it (see Which client wrote it). The hosts differ in what text the hook reads. On every host the rule from The directive holds: each firing keeps the last session directive in the text it reads, and two directives in that text collapse to the last.

  • Claude Code reads the whole transcript. Each firing still keeps only the last directive in it. A line that is no longer last survives only if an earlier firing already captured it, so two directives written in one turn leave only the second.
  • Grok reads the Stop event's final assistant message. Grok clips that message at 32,768 characters, so a long turn can drop a trailing directive. Two directives in the final message collapse to the last.
  • Codex reads the Stop event's final assistant message and nothing earlier. A directive left in mid-turn commentary is not captured, so the client must put it in the final reply. Two directives there collapse to the last. Codex hooks also see only the environment Codex was launched with, so LIBRARIAN_VAULT_PATH must be exported where Codex starts (see Getting started, Codex path).
  • Copilot CLI sends an agentStop event with no reply text. The hook reads the current turn's assistant messages from the session's events.jsonl, matching them to your last message by its interaction id, so an earlier turn's directive is never read again and the last directive in the turn is kept. Copilot writes the turn to that file a moment after the hook starts, so the hook waits up to three seconds for Copilot's own record of the hook call, which lands after the turn. If it never appears, nothing is captured and the hook says why on stderr.
  • Copilot CLI needs an instructions file. Copilot loads an MCP (Model Context Protocol) server's instructions only once one of its tools is called, so most sessions would never see the capture contract. The installer writes ~/.copilot/instructions/rutter.instructions.md (or under $COPILOT_HOME), built from the server's own contract text, and never edits your own copilot-instructions.md. Copilot passes only PATH to an MCP server, so the copilot mcp add line the installer prints carries the notes folder.
  • Muse Code (muse) sends a Stop event after every turn that carries the final reply as last_assistant_message, with a turn_id and no transcript path, so the hook reads the reply itself and an earlier turn's directive is never read again. Muse runs hooks with a cleared environment, so the installer bakes in the notes folder and an absolute node. A hook that hangs holds the turn, so the hook runs the capture under a time limit (20 seconds by default) and always exits cleanly.
  • Muse Code needs a rules file. The server's instructions alone did not make Muse's model leave summaries. The installer adds a marked block to ~/.config/muse/AGENTS.md, built from the server's own contract text, and leaves the rest of that file alone. A project AGENTS.md in an untrusted workspace may keep the rule from loading. The installer also registers the server as optional, because Muse's default required aborts the whole run when a server fails to start.
  • Antigravity (agy) sends a Stop event with no reply text. The hook reads the transcript file the event points to and takes the assistant messages from the current turn, which is everything after your last message. The last directive in those messages is kept, and an earlier turn's directive is never read again. A turn that ended in an error captures nothing.
  • Antigravity needs a rule file. agy does not put MCP server instructions in the prompt. It saves them as a file the model may never read. So the installer also writes an always-on rule file, ~/.gemini/config/rules/rutter-capture.md, built from the server's own contract text. Without that rule the model did not leave summaries on its own. The installer decides the notes folder once. It bakes the folder in as the hook's default and prints the same value in the agy mcp add line, so writes and reads cannot disagree. An exported LIBRARIAN_VAULT_PATH still overrides the hook's default, and each capture logs the folder it wrote to.

Host integration

These rules hold for every host, present and future. A per-client plan cites them and records only what differs.

  • A capture hook fails open. It never blocks, aborts, or delays the user's turn. The registered script exits 0 even when capture fails, and says why on stderr.
  • Installers touch only user-level files. They edit only their own marked entries (or a file rutter owns outright), are idempotent on re-run, refuse rather than overwrite a file that isn't recognizably theirs, and never write a project AGENTS.md or CLAUDE.md.
  • A host that clears the environment gets the notes folder baked in. The installer writes the folder path and an absolute node into the hook command instead of relying on LIBRARIAN_VAULT_PATH, and prints the same folder in the MCP registration line so recall and capture cannot disagree.
  • MCP registration is optional, never required. If a host lets a failed server abort the run (Muse's default mode: "required" does), register rutter as optional. The installer prints the registration line and does not run it.
  • Capture never rejects or rewrites a record. Provenance, style, and length never block a capture (spec/spec.md states the invariant). The record may be noisier; it is never refused.

If a new client tempts breaking the fail-open rule, promote it to a constitution prohibition. That is a major version bump and needs a human decision.

The directive

How the summary is produced (no AI in the server). The server never summarizes anything, which would be inference. Instead your client writes the one-line summary during the session as a directive, and the hook lifts it out verbatim, from the transcript or from the final reply depending on the host. Normalization (see the style contract) happens after that, when the line is stored. Emit a directive like this whenever a session is worth remembering:

<!-- librarian-session {"summary":"Decided to store refs by content-hash; shipped capture.","refs":["Notes/foo.md"]} -->
  • summary is the one curated line. Required.
  • refs is an optional list of paths, relative to your notes folder, of notes the session touched.
  • Each hook firing keeps only the last directive in the text it reads. So emit each line as its outcome lands, and each outcome gets its own firing. A position line in the text is not stored (see Positions).
  • If the hook finds no directive, or the summary is empty, nothing is captured and no empty file is created.
  • A summary still wrapped in <angle brackets> is treated as an unfilled template and captured as nothing. Pasting the syntax without filling it in is safe, rather than storing <one plain-English line> in your record.

The style contract

A summary is written by a session that is deep in its own context, and read weeks later by someone who has none of it. Left alone, that produces build-log lines full of codenames and version tags that were obvious at the time and are opaque now. So the summary carries a style contract:

Write the line for a smart reader in a hurry who was not in this session: lead with what was decided or produced, use common words rather than session shorthand, and expand or avoid codenames, version tags and abbreviations the session invented (terms your notes themselves use are fine). Aim for about 40 words and stop by 60 — one line, not a build log.

The word budget only works because the trigger agrees with it. The contract asks for a line as each separable thing lands. A client told to write one line at the end packs the whole session into it, which is exactly the over-stuffed entry the budget exists to prevent.

The server does not enforce the style contract. Three separate things happen to a line on its way into the record, and only the last one ever shortens it:

  • The words are not edited for style. A dense line is stored as dense. The capture path prints a word-count warning so drift is visible, and writes no warning into your record. The 40-word target and the 60-word ceiling are guidance, not a cut. Judging or rewriting prose is inference, and the server runs no model. Cutting a line for being over budget would silently lose the only copy of what the session meant.
  • The line is normalized so it sits in the record as one line. Newlines and tabs become spaces. Control characters, ANSI escape sequences, bidirectional-override characters, and zero-width characters are dropped. Runs of spaces collapse to one, and the ends are trimmed. Ordinary markdown is kept as text.
  • A line past 2,000 characters is cut at 2,000 characters. This guards against oversized input and has nothing to do with the style budget; a line within the word budget is nowhere near it.

A dense summary is a readability problem, handled by guidance and by how it is read back, never a data problem solved by editing your memory.

Compare:

✗  Landed HK-7/ambient-splice v0.9.3-rc2 behind FLG_SPLICE_V2; idx@4 -> idx@5,
   backfill gated on FKS_DUAL_READ, ZQ-1197 still open, cutover ETA W31.
✓  Shipped the ambient capture path behind a feature flag, and started the
   session-index upgrade — the data backfill is still switched off.

Where the contract lives

In one place: the server's MCP instructions. The server sends them to every client on connect. The README quotes them verbatim, and a test fails if that copy drifts. They have to fit in 2,048 characters, because Claude Code silently cuts a server's instructions there, and a test holds the line. Guidance that only matters when reporting a result lives in the description of the tool that returns it.

There is nothing to add to your CLAUDE.md. The README keeps a paste-in only as a fallback if captures refuse to land. Antigravity, Copilot CLI, and Muse Code are the exceptions to "on connect": see Host differences for their instructions files.


Recalling recent work

Ask "what was I working on lately?" and your client calls the librarian-recent tool. It returns recent session summaries most-recent-first, each with its date, its project, and the versioned provenance of the notes it references:

2026-07-26 10:15:00 [rutter] — Shipped workspace provenance.
   refs: Notes/foo.md@sha256:…
2026-07-25 21:40:00 [novel] — Drafted chapter three.
2026-07-24 09:12:00 — An entry captured before provenance existed.
  • Project is shown in brackets when the entry recorded one. An entry without provenance shows nothing there. There is no "unknown project" placeholder, because that would be noise about the record rather than information about the work.
  • Project filter: "what have I been doing on the novel?" becomes project: "novel". Matching is on the recorded project name and is case-insensitive, so Novel works too. It matches the whole name, not part of it. Entries with no provenance are excluded from a filtered answer. rutter will not match your filter against a summary's wording or a note path to manufacture a result it cannot actually vouch for.
  • Window limits to a recent span. "what did I do last week?" becomes window: 7, the last 7 days.
  • Count caps the number of sessions, for example count: 3 for the three most recent.
  • Empty state: with no records yet, it returns a plain "No recent sessions recorded yet." message, never an error. A filter that matches nothing says so specifically.

Filters only ever remove entries: the order you get is the same order you would have got unfiltered.

Old entries stay dense. The answer does not have to.

Records written before the style contract existed are exactly as dense as the day they were captured. They are never migrated, edited, or re-summarized. Memory-of-use is append-only, and rewriting your own past record to look tidier would be a worse bug than the density.

Instead the server's tool descriptions ask your client to report recalled summaries in plain language for whoever is asking, and that applies to every record, not just new ones. So when you ask "what was I working on?", your client may answer in cleaner words than the stored line uses. That is the intended behavior: what is on disk is the record, and what you are told is the answer. If you want the exact stored text, open the day file in Obsidian, or run npm run recent, which prints the raw stored line.

From the terminal:

npm run recent                        # everything, most-recent-first
npm run recent -- 3                   # the 3 most recent
npm run recent -- --days 7            # just the last week
npm run recent -- --project rutter    # just one project

How your client knows to ask

You do not have to tell your client when to use rutter. The server's MCP instructions route recency questions to librarian-recent, prior-engagement and content questions to librarian-search (then librarian-get-note to read a note in full), and tell the client how to write session lines.

The reading-back half travels in the tool descriptions. librarian-recent asks the client to report recalled summaries in plain language (see Old entries stay dense), and the session records it returns say who made each call. Neither is enforced by the server. Both reach every client that connects.

This matters because guidance in a project's CLAUDE.md only helps in that project. Instructions that ship with the server travel to every client and every directory it is connected from: one install, not one per repo. Writing the summary is still your client's job, because writing is inference. The instructions for doing it ship with the server too.

The guidance says when the tools are the right answer. It does not tell your client to call them unprompted. Memory stays quiet until it is relevant.


Search enrichment

When you run librarian-search and a result is a note a past session referenced, that one result carries a quiet prior-engagement note: what you concluded and when. For example:

1. Orbital telemetry pipeline — reference · evergreen · 2026-05-02
   Notes/foo.md
   …matching snippet…
   ↩ prior engagement 2026-07-22: "Decided foo is the canonical source."
  • Silence is intentional. Results you have never engaged carry no annotation. rutter is quiet when unprompted. The absence of a note is not a bug and is never "not seen before" noise.
  • It never changes your results. Enrichment is additive metadata only. The set of results and their ranking are byte-identical to a plain search with no enrichment. A prior engagement never promotes, demotes, adds, or drops a result.

Note identity describes two more things this surface renders when a reference cannot be resolved on its own: a candidate note for it, and a conflict between a confirmed binding and a fresher automatic detection.


Note identity

A reference records two things about a note at the moment it was captured: its path, relative to your notes folder, and a content hash. Rename the note later and the path stops resolving, but the hash is still there, so rutter can find the same bytes at a new path even after where the note lives has moved.

At every npm run reindex, rutter checks each recorded reference whose path no longer leads to a file. A path "resolves" when any file, of any type, exists at that path inside your notes folder. Resolving is only about whether a file is there. If the file is there but its contents have changed since capture, rutter does not check it. The stored hash would make that comparison possible, but rutter does not report it yet (see What rutter can and cannot establish).

A reference can legitimately point at a non-note file (a .gitignore, an exported .html, a .yaml config, anything under _librarian/ itself), because capture hashes whatever bytes are there. Such a reference is live for as long as the file exists. The identity pass never treats "not an indexed markdown note" as dead. Only a path that is actually missing, deleted or moved with no trace at the old location, is checked further:

  • Exactly one current note's content hash matches what was recorded. The note was renamed with its content untouched. rutter binds the old path to the new one, deterministically, and appends the binding to a ledger (_librarian/note-identity.md). No heuristics, no similarity score, no model. A hash either matches or it does not.
  • Zero matches, or more than one. rutter does not guess. Zero means the note was renamed and edited, so no current note's hash matches. More than one means duplicate content exists, and picking one would invent an answer your notes do not give. Either way the reference renders explicitly as unresolved, with every candidate it found. It is never silently dropped and never silently bound to a guess.

librarian-recent and search enrichment resolve bound references through the ledger at read time. The session record you see still says what you wrote. The ref line shows the note's current path, or [UNRESOLVED -- candidates: ...] when rutter genuinely does not know. Nothing on this path ever rewrites the stored session entry. Resolution happens only when it is displayed.

The two surfaces render the unresolved case differently, because they have different things to attach it to:

  • librarian-recent shows the dead reference itself, so it renders the ref line the same way either way: Notes/old.md@sha256:... [UNRESOLVED -- candidates: Notes/dup1.md, Notes/dup2.md].
  • Search enrichment has no "dead reference" object to annotate. It only annotates a search result, which is a live, currently indexed note. So when one of an unresolved reference's candidates is also a search result, that result carries a separate unresolvedReference annotation. The annotation names the dead reference and every candidate. It is distinct from the ordinary prior-engagement note and is never rendered as one. Being a candidate for an old reference is a different claim from being a note a session actually engaged, so the two are never conflated. A result is never given a prior-engagement note on the strength of candidacy alone. If none of an unresolved reference's candidates are among a search's results, nothing about that search changes. A reference with no candidates at all has nothing enrichment could attach it to, so it appears on librarian-recent only. That listing is the complete discovery surface for unresolved references. Search enrichment is an extra that appears only when a candidate is already in the results, not a second complete listing.

If a reference stays unresolved, resolve it by hand:

npm run identity-confirm -- Notes/old-name.md Notes/new-name.md

This is a local terminal command only. It is never exposed as an MCP tool, so a connected client can never rewrite what a dead reference means on its own. It checks that the target you name exists in your notes folder right now. It checks existence, not a hash match, because the point is to resolve cases where the hash no longer matches. It then appends a detected: confirmed entry to the same ledger.

A confirmed binding is sticky. Once you confirm a binding, no later automatic detection moves or overrides it, whether that detection is ambiguous or a clean single match pointing somewhere else. Suppose you confirmed Notes/old.md to Notes/keep.md, and later a stray file lands with exactly the bytes last recorded for old.md. Reindex appends nothing new for that reference. Both read surfaces show the disagreement next to the confirmed target: confirmed Notes/keep.md; the hash now matches Notes/stray.md. Only running npm run identity-confirm again changes a confirmed binding.

The ledger is append-only, like everything else here. A note renamed more than once gets a fresh binding each time. Each binding is computed directly against what was originally recorded, never by chaining through an earlier binding, and the newest automatic entry wins at read time. Confirmed entries are the exception, as described above. Earlier entries are never rewritten, reordered, or removed. The identity tables in the SQLite index are, like the rest of the index, fully disposable: delete data/librarian.db and reindex, and they rebuild from your notes and the ledger alone.


Positions: capture has stopped, and the tool is gone

Rutter used to ask your client for a second, rarer line, a position directive, whenever a session formed, changed, reaffirmed or retired a stance on a topic. It no longer does. The instructions no longer teach the line, and the capture hook stores none. If an old rules file or a model that remembers the grammar still emits one, the hook prints one line on its diagnostic output (stderr) saying the position line was not stored, and stores nothing; the session line in the same turn is captured as normal.

Why: the author trialed new wording for 14 days that makes each session line say when you made the call and keep your reason. The author marked a sample of 18 lines that credited them, without seeing which session each came from, and 15 were real decisions (83%). In the same window only one position line was written, against four in the 14 days before. That is one person's usage, so read it as a signal and not a measurement of how others work. Earlier, 11 of 17 belief questions failed mainly because the record did not say who had decided; session lines now carry that. Those questions have not been rerun since the change. The evidence is in position-retirement-2026-11.md.

Streams already in <notes folder>/_librarian/positions/<YYYY-MM>.md stay exactly as they are as your own history. Since v1.0.0 rutter does not read them, change them or add to them, and the librarian-positions tool that used to recall them is removed. A client that still calls it gets the standard "tool not found" error. A reindex drops the old position tables from the index. Old librarian-positions lines in _librarian/stateful-use.jsonl stay in the file and are ignored.


What rutter can and cannot establish

A reference is evidence of what a session recorded. It is not proof of what the session read. This section puts the boundary in one place.

What rutter can establish:

  • Which paths the client listed in its directive.
  • The sha256 of each listed file's bytes when capture ran. The server computes it. A client cannot supply one.
  • The summary or stance the client wrote, not rewritten for style. It is normalized to one line and cut past 2,000 characters (see the style contract).
  • When and where the line was captured. That means the time, and the working directory, project, and repo origin when the host reports them. Each record also names the client that wrote it, when that can be established.

What it cannot establish:

  • That the model read a listed file. The client picks the paths. The hash shows that the file had those bytes when capture ran.
  • That the listed files produced the conclusion.
  • That capture is complete. A line exists only if the client wrote a directive and the hook found it (see the list below).
  • That a file did not change between the session reading it and capture. The hash is taken when the hook runs, after the turn. If the session edited a note, the hash is of the edited file.
  • Whether a note at an unchanged path has changed since. The hash is stored, so you can compare. rutter does not report it yet.

What capture depends on. Each item is stated earlier on this page. They are collected here:

  • The hook only lifts a line the model wrote. A client that skips the directive leaves nothing to capture. An empty summary, or one still wrapped in <angle brackets>, captures nothing.
  • Each firing keeps one session summary: the last in the text the hook reads.
  • Codex reads the final reply only, so a directive in earlier commentary is lost.
  • Grok clips its final message at 32,768 characters, so a long turn can drop a trailing directive.
  • Antigravity captures nothing from a turn that ended in an error, and needs the rule file, or its model may not leave summaries.
  • Muse Code needs the rules block for the same reason, and in an untrusted workspace with its own AGENTS.md the rule loaded in only 1 of 4 trial runs. These trials were tiny samples, run by one person.
  • Copilot CLI needs its instructions file for the same reason. If Copilot takes longer than three seconds to write the turn, that turn is not captured.
  • The style contract is advisory. The server stores a dense or over-budget summary without rewriting it.

Append-only is a rule rutter follows, not a tamper-proof log. The server has no code path that rewrites, reorders, or deletes a stored line. But the records are plain markdown in your notes folder. Anyone with write access, including you in Obsidian, can edit them, and nothing detects it. If you need a history of edits, commit the notes folder to git.

Guarantees

  • Local-first: no network calls, ever. Repository identity is resolved by reading .git/config. There is no git subprocess, and a remote URL is recorded as text, never fetched.
  • Notes are never touched: rutter only writes under _librarian/ and data/. It never creates, modifies, or deletes your notes.
  • No hard-delete: memory-of-use records are only appended. Old records are never re-summarized or tidied up to match a newer convention.
  • Rebuildable: data/librarian.db is a disposable cache. Delete it and npm run reindex reconstructs everything from your notes plus _librarian/.
  • Hooks never break a session: the capture hook always exits cleanly, so a failure inside capture cannot interrupt your work.
  • No AI in the server: summaries are your client's. The server stores and serves them without rewriting them for style, including summaries that ignore the style contract entirely. Only the one-line normalization and the 2,000-character cut apply. Judging or improving prose would be inference, so the server does neither, at capture or at read time.

The spec states each of these as an invariant: spec/spec.md.


Measuring whether it gets used

Memory-of-use is on trial. The project set a usage test it can fail: does ambient memory-of-use actually pull you toward reaching for it? The target is reaching for a stateful behavior unprompted at least three times a week, for two weeks. The first reading, in August 2026, passed, and the gate keeps running. It reads one person's usage.

Unprompted names intent, not call origin. "What have I been working on?" answered via librarian-recent is unprompted use even though the model executes the call. The assistant is the delivery mechanism, and memory reached through conversation is still memory reached. What does not count is a call made only because the server instructions tell clients to prefer these tools, with no human question behind it.

Every time you invoke librarian-recent, or run a search that surfaces at least one prior-engagement signal, rutter appends one timestamped event to a local, append-only log (_librarian/stateful-use.jsonl). A single search counts as exactly one event no matter how many signals it surfaced.

Calls to the removed librarian-positions tool were logged under their own kind and never counted. Those old lines stay in the file; readers skip them without error and without counting them.

Read the per-ISO-week count to evaluate the gate:

npm run gate                       # counts across all history
npm run gate 2026-07-13 2026-07-26 # counts within a date range

Output is one line per ISO week, marking weeks that met the target:

stateful-use per ISO week (gate target: >=3):
  2026-W29: 2
  2026-W30: 4  ✓
Honesty note

Deciding whether a call was unprompted, meaning a live human question rather than the standing server instructions alone, is left to manual review of the log. The log captures every invocation with a timestamp so that review is possible. The project is prepared to conclude that the stateful behavior does not get reached for.

docs/memory-of-use.md@sha256:7208a87e36d0 · built from main@0e0da08 · · source hashes

Docs navigation