RepoOps
Open the app
07 / Memory and the brain

Promote a rule your repos already learned

Plays and patterns, on Memory's Lessons tab in the desktop app, reads four brain files in every tracked repository, groups the entries whose titles match, and marks a title that two or more repositories carry as shared. One button moves it to a repository that lacks it, as a pull request you review. Above the patterns, Plays pins an approach that worked into CLAUDE.md.

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 The same mistake happens in two repositories.
  2. 0:03 Nobody sees the pair.
  3. 0:06 Count the repositories before you promote a rule.
  4. 0:09 Two that wrote it separately is evidence.
  5. 0:13 RepoOps groups brain headings across your repositories.
  6. 0:17 A title in two or more repos is established, and you see each repo's wording.
  7. 0:23 Move the lesson with a pull request you review.
  8. 0:26 The count is evidence.

Synthetic example. Read the guide

1

How to

Two or more tracked repositories, each with at least one of patterns.md, anti-patterns.md, errors.md or decisions.md in its brain. For Open a pull request: an authenticated GitHub CLI on this machine.

  1. Open Memory in the sidebar, then the Lessons tab, and scroll to Plays and patterns.

    Pick the repository above the cards. Plays reads that repository's sessions; the patterns are scanned across every tracked repository whichever one is picked, and the Repositories scanned tile counts the mirrors that are ready.

  2. Narrow with the filters.

    All, Patterns, Anti-patterns, Errors and Decisions, with the Shared only box, filter on the server, 20 rows at a time with Show more.

  3. Read each repository's excerpt.

    Each card under Shared across two or more repositories names the repositories that carry the title and shows each one's own heading and first paragraph, so you see how the wording drifted. The picked repository is listed first.

  4. Move it with Open a pull request.

    Pick a repository under Install into (only those that lack it are listed, the picked one first) and press Open a pull request. RepoOps appends the entry verbatim, with a line saying where it came from, on a playbook- branch and links the pull request. Nothing merges.

  5. Adopt a play that worked.

    In the Plays card, each entry is a session that reached the good quality band, shipped clean and carries a tracked cost. Adopt pins its approach into the repository's CLAUDE.md and AGENTS.md and records it in .claude/brain/adopted-plays.json. Un-adopt is the exact inverse.

  6. Commit what Adopt wrote.

    Adopt and Un-adopt write your working copy only. Commit CLAUDE.md, AGENTS.md and adopted-plays.json together for a teammate to see them.

2

Use cases

The same error, written down twice

Situation
Five repositories are tracked. Two have an errors.md entry whose heading matches, and a third keeps hitting it.
You do
Press Errors and tick Shared only, read both excerpts, pick the third repository under Install into and press Open a pull request.
You see
The card shows the repository count and both phrasings, and the third repository has a pull request appending the entry. You review and merge it at your host.

An approach worth pinning

Situation
One of this repository's sessions shipped clean, reached the good band and carries a tracked cost.
You do
Read the play, press Check with the judge if a key is set, then press Adopt.
You see
The play leads with Approach (the pull request, the checks the session ran, the areas it touched), with the measured dollars beside its title. The managed block in CLAUDE.md reads the same, so the next agent reads what to repeat before what it cost.
3

Expected outcome

WorkedShared pattern cards badged with their repository count, with Install into listing only the repositories that lack them.
WorkedAfter Open a pull request, a line naming the repository and a link to the pull request.
WorkedAfter Adopt, the play in adopted-plays.json and in the repoops:plays block of CLAUDE.md and AGENTS.md.
Did not workThe Shared tile reads 0 with several repositories tracked.

Next step: Only ready mirrors are scanned and titles must match after normalizing. Compare Repositories scanned with repos.config.json, then the two headings.

Did not workOpen a pull request says no pull request was opened.

Next step: Read the reason it gives, then check the GitHub CLI's auth status and that the target repository has a remote.

Did not workThe Plays card reads No plays yet.

Next step: No session has been scored good-band, shipped clean, with a tracked cost. Plays appear once one is.

Did not workThe managed block shows fewer plays than the store holds.

Next step: The block holds 12 rows and 1,500 characters. Read the full set in adopted-plays.json.

4

What else to consider

Limits

Grouping is exact on the normalized title, so two repositories that phrase a lesson differently do not group. Only those four files are read. A pinned play records one clean session; it does not promise the next one will go the same way. RepoOps cannot withdraw a pull request it opened; close it at your host.

patterns.md and anti-patterns.md

Each repository keeps its named recipes in .claude/brain/patterns.md and the moves it avoids in .claude/brain/anti-patterns.md, flat markdown with one heading per entry. Add a pattern the second time you reach for the same move. Once the same title appears in a second tracked repository, the library promotes it from candidate to established.

Team Playbooks: runbooks of named steps

Team playbooks, on Memory's Lessons tab in the desktop app, is a different thing: runbooks a team writes with a title, a summary and a list of steps, validated on save and kept in .claude/brain/playbooks/ in the repository picked above the card. Tick Share with my team to publish a redacted copy through the same opt-in pipeline as shared lessons; secrets, absolute paths and transcript text stay local, and a playbook that names a watchlisted path stays private. A save says whether the copy was shared, and why not when it was kept local. Shared with your team lists what teammates shared, and Refresh pulls their copies again. Authoring and browsing only; running a playbook stays behind the approval flow.

Nightly halves, cost and egress

On the 02:00 pass a producer writes candidate plays to .claude/brain/proposed/, and a play re-proposed on 3 distinct nights adopts itself. REPOOPS_PLAYS_PRODUCE_OFF=1 and REPOOPS_BRAIN_PLAY_ADOPT_OFF=1 stop each half. The catalog makes no model call. The judge pass sends a one-line summary of up to 20 sessions to Anthropic on your key per press. Open a pull request pushes to your own remote with the credential the machine already holds.