Keep the reasoning behind a call
The decision log is one markdown file in your repository, .claude/brain/decisions.md. RepoOps renders it, proposes entries for it, and loads the ones your next session is likely to need. Nothing the machine proposes reaches the file without an accept, and nothing it declines is deleted.
Watch it
Read the narration
- 0:00 Six months on, nobody remembers why.
- 0:03 The reasoning died in a merge.
- 0:06 A log is trustworthy only if nothing writes to it unseen.
- 0:10 Machine entries arrive as cards.
- 0:13 High and medium cards drain nightly, capped and logged.
- 0:16 A card nobody decides is archived, never deleted, and your rejection stands.
- 0:23 Read the call, then the reasoning.
- 0:25 The log says who wrote each line.
Synthetic example. Read the guide
How to
A repository whose brain has a decisions.md. For nightly proposals: the capture daemon running and an ANTHROPIC_API_KEY on this machine.
- Write an entry in the file.
Entries live in .claude/brain/decisions.md, newest first, one per ## heading. There is no template; the heading is the only part the tooling reads, as the title the duplicate check and the accept path compare. The entry lands through a pull request like any other file.
- Read the log in the app.
Open Memory, then Brain library, where decisions.md is listed under Decisions. The page renders the file on each request, so editing the markdown is the whole update.
- Review what the nightly pass proposes.
Open Memory, then Corrections. Press Accept, Edit or Reject on each card, or Reflect now to run the pass on demand. Accept all high-confidence asks you to type the repository id first, because the text it appends is read by your agents as instructions.
- Decide what the pass may accept on its own.
By default it accepts high-confidence typed cards up to 20 a run and medium up to 8; low confidence never drains. REPOOPS_BRAIN_AUTO_DRAIN_OFF=1 in the data directory's .env stops it accepting anything.
- Set how many entries a new session loads.
On the desktop, Today's Monday digest tab sets how many errors and decisions the next session loads, under What the next session loads: 5 by default, from 0 to 50. The SessionStart hook ranks entries by open-file overlap and recency.
- Publish the log to your team, if it should read it.
On Privacy and egress, under What this machine publishes to your team, turn on Brain snapshot. It is off by default and needs a bound device and a paid plan; it fills repoops.ai/team/docs/decisions.md.
Use cases
A settled question comes back up
- Situation
- Someone proposes rebuilding a path that was decided months ago. Nobody in the room was in that discussion.
- You do
- Open decisions.md from the Brain library, then follow it to Brain links to see which sessions and pull requests reference it.
- You see
- The entry at its date with the reasoning its author wrote, and the inbound and outbound links. Whether it still holds is your judgement; the log records the call, not its continued correctness.
Two repositories reached opposite conclusions
- Situation
- Your account tracks several repositories, and their decision logs disagree about the same topic.
- You do
- Open Memory in the sidebar, then the Decisions tab, and read Opposing decisions across repositories. Leave Least similarity at 0.3, or raise it for fewer, tighter pairs.
- You see
- One row per candidate pair: both decisions side by side with repository, title and date, a similarity score and a polarity-flip marker. It is word overlap plus a negation check, with no model call, so it is a shortlist for a person to read.
Expected outcome
Next step: That repository's brain has no decisions.md. Record your first decision there; it renders on the next request.
Next step: Add ANTHROPIC_API_KEY to the data directory's .env and restart the app.
Next step: The stale sweep rejected it after 14 days. Its body is under proposed/rejected/; accept it again, or raise REPOOPS_BRAIN_STALE_PROPOSAL_DAYS.
Next step: Turn on Brain snapshot in Settings, bind the device, and check that the team is on a paid plan.
What else to consider
The nightly drain and its limits
A typed card nobody decided after REPOOPS_BRAIN_STALE_PROPOSAL_DAYS (14) is bulk-rejected, up to REPOOPS_BRAIN_STALE_REJECT_CAP (40) a run, and its body is archived under proposed/rejected/ rather than removed. REPOOPS_BRAIN_STALE_REJECT_OFF=1 leaves old cards on the queue. A rejection you made by hand is never overruled by the machine. REPOOPS_BRAIN_DREAM=0 stops the whole nightly pass and overrides the Settings toggle.
Decision diff in detail
Opposing decisions across repositories, on the Decisions tab of the desktop app, reads the decisions file of every repository in the picked repository's account at request time and keeps the 50 closest pairs. The account rollup it shows beside the pairs is a separate projection with its own stamp, and Project the account rollup projects it again and reads the pairs again. It needs at least two tracked repositories with overlapping entries, and says so when no pair clears the floor. A similarity outside 0 to 1 is refused on the card and nothing is read. The same read is GET /api/brain/decision-diff. On repoops.ai the same card reads the decisions.md files your bound desktops published, so it needs brain publishing on.
The decision judge in detail
When an agent files a question, the decision judge reads it against the repository's own decisions.md and active lessons, using your model key. It decides only when one decision or lesson answers it, and the answer names that source; a verdict that names no source it was shown is held instead. A question whose premise the record contradicts is sent back with the reason. Everything else waits on the Decisions tab, and a held question does not expire. The judge runs in the nightly pass and when you press Judge new questions, under the same daily call cap as the other model calls on your machine; with no key, or once the cap is spent, a question stays unjudged and the next run tries again. To answer one, open Memory, then the Decisions tab, read Questions waiting on a person, type under the question and press Answer; the session that asked reads it on its next turn. The questions live in each repository's checkout, so the card is on the desktop app only. If the judge answered wrongly, press Overturn on its row under Answered from the record, type the right answer and why: the session that asked reads your answer, and the judge holds the next question that would rest on the same source for you. A pull request a person closed without merging and a revert a person made in the last 30 days are read in the nightly pass the same way, and What people said no to lists every one the judge reads. The same reads are GET /api/brain/pending-questions, POST /api/brain/pending-questions/answer, POST /api/brain/pending-questions/judge and POST /api/brain/pending-questions/overturn.
What it is not
It is prose. Nothing validates an entry's shape, and the detector proposes only decisions phrased one of five ways. An entry in the log is not evidence that it is still the answer. RepoOps does not revert or delete an accepted entry; decisions.md is a tracked file, so revert or edit it in git.
Cost and egress
The reflector makes one call to Anthropic per knowledge file per run, on your own key. Reading the log, accepting a card, the nightly drain, the duplicate check and Decision diff make no model call. The brain snapshot is the only other egress, redacted at the edge, and only with publishing on. A brain larger than the snapshot cap is cut to a shared ceiling and the hosted page leads with a Partial file notice.