RepoOps
Open the app
07 / Memory and the brain

Review what your brain learned overnight

At 02:00 local RepoOps reads the last week of commits and session entries for each tracked repository, asks Claude for entries worth adding to five knowledge files, and writes them as proposals. It never edits those files itself. You accept, edit or reject each card, and what you accept is appended to the file your next session reads.

Last updated

Watch it

30.1 s, captions on. Narration: Microsoft Zira Desktop (provisional voice; an approved narration source is pending).Transcript
Read the narration
  1. 0:00 Your agent relearns the same lesson every week.
  2. 0:03 Nothing wrote it down.
  3. 0:06 Each night RepoOps proposes entries from the week's work.
  4. 0:09 Confidence is the model's own claim.
  5. 0:13 Each card names the signal that triggered it and the file it would join.
  6. 0:17 Accept, edit, or reject; the reject is archived.
  7. 0:23 Accepted text lands in the file your agents read next session.
  8. 0:27 Set the caps.

Synthetic example. Read the guide

1

How to

A repository with a .claude/brain/ directory and session entries. ANTHROPIC_API_KEY in the data directory's .env. The app running, or the capture daemon installed, near 02:00.

  1. Check that the nightly pass is on.

    In Settings, the Nightly brain dreaming card: Run the nightly dream pass is on by default. The card lists each repository's last run and flags one older than 48 hours. If REPOOPS_BRAIN_DREAM=0 is set, the checkbox is disabled and the card says which switch decides.

  2. Open the queue.

    Memory, then the Corrections tab: the Reflector proposals card. Cards are grouped by knowledge file (errors, decisions, open questions, patterns, glossary), unreviewed first, then by the band high, medium, low. The day picker covers every day on disk. Reflect now runs the pass on demand.

  3. Read the signal line before the body.

    Each card carries the band the model gave itself and a one-line signal naming what triggered it. The band is the model's own claim, so it is a sort order, not a verdict.

  4. Decide each card.

    Accept appends the body to that knowledge file. Edit lets you add the boundary the model left out, then accept. Reject, pressed twice, writes the body to proposed/rejected/ and records the id, so the text survives. A duplicate title is reported as skipped. Each accepted entry is marked descriptive (what happened, what was decided, what a word means) or instruction (a Rule, Fix or The move section that tells agents what to do).

  5. Use Accept all high-confidence only when you mean it.

    Type the repository id in the field beside it first. The card sends nothing until it matches, and the server refuses without it, because the text lands in files your agents read as instructions. It never accepts an instruction: those wait on their own card for you.

  6. Know what lands without you.

    Overnight, a drain reads typed high cards (up to 20 a run) and medium cards (up to 8), and accepts one only when it is descriptive and a benchmark or accuracy figure tied to that proposal cleared its bar, from validated-improvements.jsonl. The band alone is never enough, and an instruction is never accepted overnight. Each run writes a row to proposed/drain-runs.jsonl that says, card by card, why it was or was not accepted. REPOOPS_BRAIN_AUTO_DRAIN_OFF=1 makes every card wait for you.

  7. Publish an instruction to your agents.

    Accepting an instruction puts it in its knowledge file, not in an agent block. In the Accepted entries card below the queue, type your name in Signed as, press Read the block text on the entry, and read the whole block CLAUDE.md and AGENTS.md will carry. Publish to agents, pressed twice, sends back the sha256 of that exact text; if the block changed since you read it, nothing is written. The block holds at most 10 instructions.

  8. Revoke or supersede an entry that no longer holds.

    In the same card, Revoke takes the entry out of its knowledge file and the agent block. Supersede replaces it with text you type, accepted in its place. Both ask for a reason and are pressed twice. Nothing is deleted: the entry stays in the card as Revoked or Superseded with who, when and why, the text is kept in proposed/accepted/entry-history.jsonl, and a retracted or superseded claim statement is appended to lessons/claim-statements.jsonl. The same text is never accepted again, by a click or by the drain.

2

Use cases

The morning after a heavy week

Situation
Four sessions shipped in five days, and the queue holds cards across errors, decisions and patterns.
You do
Accept the cards that capture a rule a teammate should follow, edit the one that is right but unbounded, and reject the rest.
You see
Each card's pill flips to Accepted or Rejected with the day, and the line above the cards names the file the entry landed in. Nothing was verified by accepting it; the file now says what you agreed it should say.

You disagree with what the drain accepted

Situation
An entry you would not have taken is already in patterns.md.
You do
Find it in the Accepted entries card, read the line that says it was accepted by the nightly drain and on which measurement, then press Revoke with your reason.
You see
The entry leaves patterns.md and stays in the card as Revoked with your name, the day and the reason. The drain-runs row for that night says why it was accepted. Setting REPOOPS_BRAIN_AUTO_DRAIN_OFF=1 makes every card wait for you.
3

Expected outcome

WorkedUp to five proposal files under .claude/brain/proposed/ dated today, one per knowledge file.
WorkedThe card header counts the new proposals, and each file's section says how many are new, accepted and rejected and the day its file was written.
Workedproposed/drain-runs.jsonl has a row for every run, including the runs that accepted nothing.
Did not workNo proposals yet, after a busy week.

Next step: Check the Nightly brain dreaming card: dreaming off, the machine asleep (a repository under 48 hours overdue is not caught up), or no key.

Did not workReflect now fails and names your key.

Next step: Add ANTHROPIC_API_KEY to the data directory's .env or through Settings, then press Reflect now again.

Did not workThe card says No repository tracked.

Next step: Track a repository in Setup. The card reads the repository picked above it.

Did not workA rejected card comes back on a later night.

Next step: The proposer can write a similar card again; the drain never re-accepts a rejection. Reject it again.

4

What else to consider

What it does not do

It proposes; it does not verify. Accepting an entry does not check that it is true. Rejecting a card you already accepted changes the badge, not the file; use Revoke in the Accepted entries card instead. A hand edit that removes an entry's text shows it as Not in the file. The descriptive or instruction mark is read from the entry's sections, so an entry can carry an entry-kind comment to say otherwise. Without a key there are no proposals, though the deterministic half of the nightly pass still runs.

The curator

Before the drain, a curator reads the typed cards nobody has decided and rejects one that is empty, already in its knowledge file under the same title or with most of the same text, nearly the same as a newer card for that file, or citing only files that no longer exist. Each reject goes through the same path as your Reject, with the rule and its reason in the archived copy and the ledger, up to 40 a run. It makes no model call, never decides your own captures, and leaves plays, recurrence rules and the other kinds alone. npm run brain-curate shows what it would reject without changing anything. REPOOPS_BRAIN_CURATOR_OFF=1 turns it off.

The stale sweep

A typed card nobody decided in 14 days (REPOOPS_BRAIN_STALE_PROPOSAL_DAYS) is rejected unread, up to 40 a run, and its body archived under proposed/rejected/, so a wrong sweep can be undone. REPOOPS_BRAIN_STALE_REJECT_OFF=1 turns it off.

Cleanup and coherence scans

On the same tab, Brain cleanup, Scan now finds decision headings more than 70 percent alike, always-versus-never pairs and TODO items in files unchanged for 90 days. Brain coherence, Check again looks for drift across features, roadmap, sessions and decisions and reads No drift found when there is none. Neither makes a model call.

Cost, egress and retention

One pass makes five calls to Anthropic per repository on your own key: glossary on Haiku, errors, decisions and open questions on Sonnet, patterns on Opus. The spend shows on the LLM calls tab like any other call on your key; nothing is sent to RepoOps. Nothing deletes the proposal directory on a schedule; npm run prune-proposals reports which files are fully settled and deletes only with its apply flag.

On repoops.ai

On repoops.ai, /team/brain-reflection opens the Corrections tab of the Memory page, which never reads this queue. The queue, the accept and reject controls, the Accepted entries card and the scans are desktop only.