RepoOps
Open the app
07 / Memory and the brain

Import runbooks into the brain

The Import card turns the deploy runbooks, incident playbooks and checklists your team already wrote into draft brain rules. Each draft quotes the file and the passage it came from and lands in the review queue. Nothing reaches the brain until a person accepts it.

Last updated

Watch it

Transcript

The walkthrough is silent. These are its captions, in order. Every value it shows is illustrative.

  1. 0:00Pick the runbooks your team already has
  2. 0:06Read on this machine, never sent to repoops.ai
  3. 0:12Each draft quotes its file and lines
  4. 0:18Every draft waits in the review queue
  5. 0:24Accept, edit or reject. Nothing enters the brain unreviewed.
1

How to

The desktop app with a tracked repository. Optional: your own Anthropic key in Settings, if you want a model to reword the drafts.

  1. Open Memory, then the Wiki tab, and pick the repository on Brain library.

    The Draft brain rules from your runbooks card sits above the library tables. It shows the file picker, the Knowledge file to draft into (patterns.md unless you choose another) and which drafter will run.

  2. Pick your runbooks.

    Markdown (.md, .markdown), plain text (.txt) and PDF, up to 1 MB a file. Pick several at once; each goes in its own request. A file of another type or over the limit is refused under the card, with the reason, before it is read.

  3. Choose the drafter.

    With no model key, a heuristic drafts at no cost: each headed section that holds instructions becomes one rule listing up to eight of them. With your key set, one model call per file rewords the rules. Tick Draft without a model to skip the call even with a key.

  4. Read the result for each file.

    Each file reports how many drafts were queued, which drafter wrote them, and each draft with its file, section and line range (or page, for a PDF).

  5. Review the drafts.

    Follow Review them in Brain reflection. Each draft is a card with its rule and the quoted passage under it. Accept it, edit it first, or reject it. An accepted rule is written into the Knowledge file with its citation.

2

Use cases

A deploy runbook nobody's agent reads

Situation
Your team keeps a deploy checklist in a wiki. Agents keep skipping the step that drains the queue first.
You do
Export the page as Markdown or a text PDF, import it from the Brain library card, and accept the rule that names the drain step.
You see
The rule lands in patterns.md with a citation back to the runbook's section and lines. Agents that read the brain read it from then on.

A scanned incident playbook

Situation
An old playbook exists only as a scanned PDF.
You do
Import it the same way.
You see
The card reads it through OCR when the build includes it. When it does not, the file is refused with that reason; export the playbook as text and import that instead.
3

Expected outcome

WorkedEach file reports its queued drafts, the drafter, and the source location of every draft.
WorkedBrain reflection shows each draft as a card with the quoted passage.
WorkedAn accepted rule appears in the chosen Knowledge file with its citation.
Did not workA file is refused before it is read.

Next step: It is not .md, .markdown, .txt or PDF, or it is over 1 MB. Split or convert it.

Did not workA file reports no instructions.

Next step: Nothing in it reads as a step, an Always or Never line, or an if-then condition. That is reported rather than queueing nothing in silence.

Did not workThe result says the heuristic drafted although a key is set.

Next step: The model call failed or the daily model call cap was reached; the result names which. Raise llm.dailyCallCap in account-settings.json to draft by model again today.

4

What else to consider

What leaves the machine

Files are read on your machine and not stored afterwards, and nothing is sent to repoops.ai. Secrets such as API keys, tokens and private keys are redacted before either drafter reads the text. The model path uses only your own key and is metered against the daily cap.

What the model may change

The model may reword a rule but not its citation: every rule must name a section RepoOps sent, and the citation is built from that section's own lines. Importing the same file twice in a day does not queue the same drafts twice.

From a script

The card calls POST /api/brain/import-runbooks?repo=<id> with name, text or base64, target and drafter, one file per request, on the desktop app's local server. GET on the same path returns the limits, the Knowledge files you can draft into, and whether a model key and OCR are present. A refusal comes back as ok false with the same sentence the card shows.

Other ways into the same queue

The nightly reflection and a capture on My Brain feed the same review queue, and every route needs the same accept.