RepoOps
Open the app
Local app / Setup

Connect a repository and build its brain

RepoOps can give a repository a small, source-backed brain: an index, the decisions it can detect, an empty lessons file and a record of what it wrote, plus a managed block in CLAUDE.md and AGENTS.md. You see every file before and after, nothing is written until you apply that exact plan, and anything you already wrote stays yours.

Last updated

Watch it

1

How to

RepoOps installed, and the repository tracked (Settings, Repos and accounts). Setup runs no repository scripts and makes no model call.

  1. Open Set up memory in a repo.

    Settings, Repos and accounts, Set up memory in a repo. Choose the repository. On a fresh machine, first run offers the same review in its own flow.

  2. Press Review memory setup and read every file.

    The preview lists each file setup would write with its before and after: the four brain files, and the block it merges into CLAUDE.md and AGENTS.md. Text outside the managed block is kept as it is.

  3. Press Apply reviewed setup.

    The plan is pinned by a fingerprint. If another session changed one of those files after your review, the apply is refused and you review again; a stale preview never writes.

  4. Or do the same from a terminal.

    In the repository, npx repoops adopt --dry-run shows the plan and writes nothing; npx repoops adopt asks you to confirm, and --yes skips the question. The adopt scope is broader than memory only: it also sets up the capture hooks for supported assistants.

  5. Verify each connection on its own.

    Files on disk prove the files. Check the rest separately: a supported session appears with its developer and repository; a bound device delivers to the team (see Connect to your team); a production source reaches the hosted service while laptops are asleep. A missing link is partial attribution, never an inferred match.

2

Use cases

A repository with years of CLAUDE.md

Situation
The repository already has a long CLAUDE.md and a few notes under .claude/brain/.
You do
Review memory setup, read the CLAUDE.md diff, and apply.
You see
CLAUDE.md gains one managed block and keeps every line you wrote. Existing brain files are left alone, and the four seeds are written only where absent. The run is journaled with before-images under the data directory, so it can be undone while those files are unchanged.

Undoing a setup run

Situation
You applied setup to the wrong repository.
You do
Setup, Maintain a repo's RepoOps files: choose the repository, the integration, Undo a setup run and the recorded run, then Review changes.
You see
The plan restores what the run changed. A file you edited since then is preserved and reported as a conflict instead of being overwritten.
3

Expected outcome

WorkedThe repository holds .claude/brain/INDEX.md, decisions.md, lessons/lessons.jsonl and repoops-integration.json, and CLAUDE.md and AGENTS.md carry the managed block.
WorkedMemory and its brain pages show the repository's files instead of their empty state.
Did not workThe apply is refused because the files changed.

Next step: Review again, read the new before and after, and apply that plan.

Did not workThe preview reports a conflict in an owned section.

Next step: You edited text inside the managed block. The plan keeps your edit; resolve it by hand if you want the block back.

Did not workSetup says another run holds the lock.

Next step: Release a stopped setup lock releases it only when the recorded process is no longer running.

4

What else to consider

Repair, remove and undo

Maintain a repo's RepoOps files, on Setup, covers four scopes (memory only, memory with Claude Code capture hooks, memory with commit attribution, and the Cursor and Codex memory integrations) and three actions: Repair what is missing, Remove this integration and Undo a setup run. Every action needs a current preview. Only unchanged RepoOps-owned content is reversed; anything you edited is kept and reported. Removing a repository from Tracked repos does not remove these files.

The two setup prompts

Memory setup prompt and Repo setup prompt are Markdown files the app renders, for when you want a coding agent, rather than the deterministic setup, to write brain content. The memory prompt asks the agent to inspect the repository before writing, keep an inherited baseline (from starter-knowledge-pack when present) above a divider and repository facts below it, merge or skip any file that exists, and end with a file-by-file report. The repo prompt is a broader recipe drawn from the RepoOps repository itself: skills, docs structure, CI gates and the completion ritual, on a branch with a pull request.

Neither page runs anything. The app does not check what the agent did, so the agent's diff is the thing to review, and a broad prompt can produce a large one. For the initial brain, use the reviewed setup above. npx repoops init --prompt prints the public generic prompt, and init --kernel stamps the kernel files for older workflows, including three starter loop contracts under .claude/loops/ that name who owns a red main branch, the incident-case queue and the list of what is left; neither is needed for the app to create a brain.

What stays out of the repository

Credentials, transcript buffers, upload checkpoints, setup journals and backups live in the data directory, never in the repository. Sharing with a team goes through a binding and the publishers you turn on, not through files committed to git.

Growing the brain

Setup writes facts it can detect and nothing it would have to guess. Lessons come later, from verified fixes on a case, and the nightly reflection can propose more on your own key. Measure recurrence rather than treating a written lesson as proof of prevention; Memory shows how.