A shared library for every agent on a team, where an agent's write can wait for a person's approval, if an Admin turns that on

librocat

A hosted or self-run Markdown knowledge base that coding agents share over MCP, with a weekly librarian review and opt-in approval of agent writes.

LicenceApache-2.0 in LICENSE and the app, MCP and CLI package manifests; the hosted service's code and billing are in the same tree
Size33,666 lines of TypeScript in 73 Convex backend files, 4,029 in the core and MCP packages, 780 in the CLI and 23,594 in the Next.js site; the memory is model.ts (3,070), libro.ts (2,445), changes.ts (1,571), sources.ts (1,539), mcp.ts (1,257), ask.ts (691), reference.ts (247) and core/format.ts (878)
Activity193 commits from 27 October to 3 December 2026, 190 under one name and 3 from Dependabot, 169 of them on 1 and 2 December; 47 merged pull requests; two tags, v0.0.0 and v0.0.1
Testsabout 653 unit cases, 65 end-to-end cases in 14 files that skip without a running stack, and 46 browser cases; CI runs the unit suites on every push, and the end-to-end workflow on each ready pull request to main, 33 runs with 17 passed; none run for this reading

Carries 3 of 7 rubric mechanisms. Most systems here carry none or one (41%), and a dash means the mechanism was not found at this commit — not that the system needed it. Each mark is one LLM reviewer's reading of the code at this commit rather than a run of it — known limits.

  • Tombstone
  • Trust state
  • Bi-temporal
  • Scope enforced
  • Mutation audit
  • Human review
  • Negative evals

1. Executive Summary

librocat is a team's shared notebook for coding agents: one library of Markdown concepts that Claude Code, Codex, Cursor and Copilot read and write over one OAuth MCP server, hosted at librocat.com or run locally with the ./librocat command. Notable: it treats staleness as a property of what a concept cites. A concept names the files, pages or attachments it came from, and a commit or a changed page puts every concept that names them up for review.

Notable too: an Admin can switch on Approve changes, and then every agent write that changes a concept waits, unsearchable, until a person approves it on the dashboard; an agent's token is refused at the decision. Weak: the switch is off by default, and while it is off the agent that proposed a merge can approve it, and the answer cache can put the concept that merge retired back at the top of a plain search.

The design is a library in a literal sense. A concept is one idea with a catalog record, its id is a call number, its leading directory is a shelf, and a thesaurus controls the tags. Libro, the librarian, runs weekly and files proposals: same-title supersessions, retirements, tag synonyms, review dates, see-also links, shelves, concepts past their date. Libro writes one thing on its own, the blank fields of a catalog record, and it fills those by choosing one of the concept's own sentences and tags in use (apps/web/convex/indexation.ts:357-459). Agents write everything else.

Nothing extracts memory from a session. A concept exists because an agent called ingest, usually after a person said to remember something, and it reaches a later session only when an agent calls search or ask.

Three marks are present. Four are withheld, each for a stated reason (section 9).

Licence. Apache-2.0 in LICENSE and in the app, MCP and CLI package manifests, with no second file that disagrees. The hosted service's code, billing included, is in the same tree, and a self-run copy is one flag, LIBROCAT_SELF_HOST=1, which the ./librocat command sets.

2. Mental Model

A concept is believed from the moment it is written. ingest defaults its status to stable (apps/web/convex/model.ts:1843), and no status keeps a concept out of a plain search. The lifecycle moves a concept down the results and attaches flags; it takes one out only by deletion.

Four things can be true of a live concept, and they are independent:

  • Status: draft, stable or deprecated, writable by any editor's agent. draft is a label a filter can ask for; no backend path branches on it.
  • Stale: the review date stale_after has passed. Computed at read time and returned as stale: true.
  • Superseded: superseded_by names a replacement, which sets deprecated unless the caller gave a status (apps/web/convex/model.ts:2496).
  • Verified: a list of up to ten {by, at} events, appended when someone says the concept holds (packages/core/src/format.ts:589-601).

A write can be in one more place before any of these: held. With Approve changes on, ingest, update, delete and rename from an agent file a change request instead of writing, and the agent is told the concept is not searchable until approved (apps/web/convex/changes.ts:97-98).

The review shelf holds both kinds of proposal. One of Libro's is keyed on its kind, subject and target and is filed once ever: fileProposal returns null when any row with that key exists, open or decided (apps/web/convex/model.ts:2671-2703). That is how a dismissal stays dismissed. A stale proposal carries the review date as its target, so a concept that is verified and falls due again produces a new one. A change request is one open row per person, agent and concept; a second write replaces it.

Approving a Libro proposal applies it as a revision in the proposer's name. Approving a change request makes the write then, as the requesting agent, with the approver and the request on the revision.

Diagram — with Approve changes on, an agent's write waits as a change request that only a dashboard session can approve; with it off, the write lands at once and the same agent can decide Libro's proposals; deprecation sinks a concept in plain search, and the ready-reference step runs after the sink and can lift it back to first
Diagram source
%% caption: with Approve changes on, an agent's write waits as a change request that only a dashboard session can approve; with it off, the write lands at once and the same agent can decide Libro's proposals; deprecation sinks a concept in plain search, and the ready-reference step runs after the sink and can lift it back to first
flowchart TD
    A["Agent: ingest, update,<br/>delete, rename"] --> SW{"Approve changes<br/>on?"}
    SW -- "off (default)" --> C["Concept<br/>stable by default"]
    SW -- "on" --> H["Change request<br/>not searchable"]
    H --> DD["Dashboard: Admin or<br/>allowed Editor;<br/>agent token refused"]
    DD -- "approve, base unchanged" --> C
    DD -- "base moved" --> OD["out_of_date,<br/>back to the agent"]
    J["Libro, weekly<br/>rules and five screens"] --> P["Proposal<br/>filed once per key"]
    A2["Agent: propose"] --> P
    S["Cited file or page<br/>changed"] --> P
    P --> D["decide: the dashboard,<br/>or the same agent over<br/>MCP while the switch is off"]
    D -- "approve" --> X["deprecated or<br/>superseded"]
    C --> R["search: words,<br/>two indexes fused"]
    X --> R
    R --> K["deprecated<br/>sinks to the end"]
    K --> Q["ready reference:<br/>past answer to first,<br/>status not read"]
    Q --> O["Hits to the agent"]

3. Architecture

One TypeScript monorepo. The MCP route is a Next.js handler that verifies the agent's access token and forwards it; every tool is one Convex mutation that checks the token again, resolves the library and counts what it reads (apps/web/src/app/mcp/route.ts:86-104, apps/web/convex/mcp.ts:86-240). Reads are mutations so that they can be metered. Pure rules live in packages/core: the Open Knowledge Format text, ids, links, weeding, the thesaurus and the stemmer. Change requests are apps/web/convex/changes.ts.

Storage is Convex tables. A concept is a small catalog row plus a body row, because a Convex transaction reads at most 16 MiB and the metadata paths read thousands of rows (apps/web/convex/schema.ts:203-295). A facets table indexes type, status, tag, author, citation and code path, so a filter or "which concepts cite this file" is a lookup. A change request is a proposals row of kind add, edit or delete carrying the change, the base it was drafted against and its filer; several group under a changeRequests row (apps/web/convex/schema.ts:421-580).

One model is used, for typed judgments: yes or no, or a choice among candidates, with a probability. Hosted, it is Jev through the Vercel AI Gateway; self-run, the operator picks Jev, an open model on their own server, or none (apps/web/convex/ai.ts:1-36). Plain search and writes call no model.

Deployment and ergonomics

Hosted, adoption is a sign-in and one MCP URL per agent; the four skills are served by the server as skill:// resources (packages/mcp/src/skills.ts:1-28) and kept as files under skills/. Self-run, it is ./librocat (packages/cli). The command runs pnpm install --frozen-lockfile and builds the site (packages/cli/src/start.ts:125-130), downloads the open-source Convex backend binary at a pinned release from GitHub (packages/cli/src/local.ts:15-17, :114-118), runs it on SQLite, deploys the functions and serves the site on port 3737. The download is not checked against a hash; the one sha256 in that file fingerprints the deploy settings (packages/cli/src/local.ts:86-92). It runs offline with no model key; what stops is cataloging, Ask Libro and the screens. The live store is not hand-editable, and the export zip is plain Markdown that imports back; ./librocat pull signs in to librocat.com and downloads a library's export.

4. Essential Implementation Paths

  • Write. mcp.ingest → model.ingest → prepareWrite → writeRow (apps/web/convex/mcp.ts:683-729, apps/web/convex/model.ts:2359-2437, :1830-1933): derive or canonicalise the id, look up three word neighbours, refuse secrets and oversize bodies, normalise tags through the thesaurus, write the row, body, links, revision and facets in one transaction, and schedule cataloging if the record is incomplete.
  • Held write. With ws.approvals, the same tool calls requestChange, which runs the write's checks and files the change (apps/web/convex/mcp.ts:712-718, apps/web/convex/changes.ts:394-588).
  • Approve a change. changes.decide → decideChanges → conflictFor, then applyChange per row (apps/web/convex/changes.ts:1188-1214, :714-790, :628-661).
  • Cataloging. indexation.index: reserve a credit, ask the model to choose a sentence and tags, apply without overwriting a writer (apps/web/convex/indexation.ts:157-356).
  • Search. mcp.searchWords → model.search, then readyReference and promote, then the question log, then kept sources (apps/web/convex/mcp.ts:298-331, apps/web/convex/model.ts:1157-1257).
  • Ask. mcp.askPrepare → ask.ts: word search for candidates, deprecated ones skipped, one judgment request, the passage copied (apps/web/convex/mcp.ts:343-389, apps/web/convex/ask.ts:1-36, :500-546).
  • Read. mcp.get counts the retrieval and links it to the question the same asker asked in the last ten minutes (apps/web/convex/mcp.ts:421-465, apps/web/convex/reference.ts:93-112).
  • Review. libro.reviewOne → proposalsFor, then scheduleScreens (apps/web/convex/libro.ts:429-467, :133-231, :1828-1841).
  • Staleness. model.changed for code paths, sources.applyWatch for pages and fileCatalog for attached files, all ending in a stale proposal (apps/web/convex/model.ts:2541-2670, apps/web/convex/sources.ts:675-800).
  • Decide a Libro proposal. libro.decideProposal → applyProposal (apps/web/convex/libro.ts:2193-2297, :246-331), reached from the dashboard's decide and from the MCP decide (apps/web/convex/mcp.ts:1219-1257).
  • Delete. model.deleteConcept (apps/web/convex/model.ts:2324-2345).

5. Memory Data Model

  • concepts: id within the library (cid), type, title, description, tags, status, frontmatter, links, authors, updatedAt, lastAccessedAt, accessCount, and the stemmed catalog record.
  • bodies: the Markdown and the stemmed full text.
  • revisions: a full snapshot per write with a sequence number, kind, by (agent, indexer, libro or human), the user, the OAuth client's name and, for an approved change, approvedBy and the request (apps/web/convex/schema.ts:799-840).
  • links: source and destination ids, extracted from Markdown links.
  • sources and sourceParts: the kept text of a document or page in parts of about 4,000 characters, a content hash, the original's location, and any attached file.
  • proposals: kind, subject, target, reason, an optional draft, the model's support score, who filed it, status, decidedAt and decidedBy, and the client that decided it when an agent did; for a change request, the change, its base, its state and the batch.
  • changeRequests: a group of changes with the agent's title and message.
  • questions: each search's text, its folded key, its first five results, the result opened next and Ask Libro's verdict; kept 90 days.
  • tombstones: a retired id with its date, its title and where it moved.

The tag vocabulary is one reserved concept, thesaurus, so it has revisions and exports like any other. Times are record times. stale_after says when to check again, not when a fact was true.

Provenance has two halves. sources in the frontmatter says what the concept came from and is free text the writer supplies. cataloged says which fields the cataloger filled and how, and an entry goes when a writer changes that field (packages/core/src/format.ts:198-218).

6. Retrieval Mechanics

Search is words. The query is expanded with thesaurus synonyms and one level of narrower tags, prepended so that the reader's own words survive the cut to the last 16 (packages/core/src/library.ts:219-263, packages/core/src/stem.ts:126-130). Two Convex indexes rank it, 20 hits each: the catalog record at weight 2 and the full text at weight 1, fused as weight over 60 plus rank (apps/web/convex/model.ts:1139-1146, :1183-1208). Type and status filter inside the index; tag, shelf and author filter after, with up to 100 more bodies read when a filter uses the hits up.

Deprecated hits are partitioned to the end unless the caller asked for a status (packages/core/src/format.ts:530-534, apps/web/convex/model.ts:1256). A superseded hit carries superseded_by, a stale one carries stale: true, and neither changes rank. A held change is not in either index until approved.

The answer cache runs after the demotion and does not read status. Every search is logged under its folded words. The first result the same asker opens within ten minutes becomes its answer, and the next search with those words moves the most-voted answer to first place, marked ready_reference (apps/web/convex/reference.ts:93-160, apps/web/convex/mcp.ts:311-312). When fewer than limit live concepts match, the deprecated ones are in the list, and the promotion lifts one above its replacement. The vote counts the last 50 askings, and the log is pruned at 90 days. Because the promoted hit is first, it is the one opened, which is another vote. The committed cases cover a live answer only.

Ask Libro reads the same file and checks status. ask takes a question in plain words, searches, drops deprecated hits, adds the past answer only if it is not deprecated, and asks the judgment model which candidate answers and which passage says so; the passage is copied, never written, and a reused answer must be unchanged since and not deprecated (apps/web/convex/ask.ts:500-546). It costs one credit, so the free path remains plain search.

Nothing is injected. The server's instructions tell the agent to search before writing, and the skills say what belongs.

The project measured the choice to drop embeddings. Its architecture page reports that an agent's first search put the right concept first 75% of the time by words and 84% with embeddings, and that with retries the top-three rates were 93% and 95% (docs/architecture.md:108-122). The 137 concepts and 69 questions are committed in apps/web/scripts/search-eval.json; the rankings behind the figures are not.

7. Write Mechanics

Writes are explicit tool calls. A new concept returns up to three possible_duplicates found by words, and the agent is asked to update one, delete its own, or propose a merge; nothing forces it to (apps/web/convex/model.ts:2356-2357, :2398-2430).

An ingest over an existing id is a replacement that forgets the retirement. It sets the status to stable when the caller gives none and passes supersededBy: null, so writing to a retired id makes it live with no warning (apps/web/convex/model.ts:1843, :2413). The returned value has a reused note for an id that was deleted and none for one that was deprecated. With approvals on, the same write waits for a person, who sees it as an edit.

A check outlives the text it checked. A write rebuilds five standard keys and keeps every other frontmatter key, verified among them (packages/core/src/format.ts:156-197). update with a new body, and ingest over the id, both leave the existing events in place, so get_concept returns a person's check dated before the sentence it sits under.

A change request is checked against its base; a Libro merge is not. A change request records the concept as it was when filed, and approval marks the request out_of_date instead of applying it when the concept moved (apps/web/convex/changes.ts:192-199, :745-761). A merge proposal stores the draft and no revision of the target, and applyProposal passes the draft to update (apps/web/convex/libro.ts:301-305), so an edit made between the filing and the approval is replaced. It remains in the target's revisions. The model's support score is computed once, when the draft is filed.

A dismissed merge cannot be refiled with a better draft. The key is kind, subject and target, so a second propose for the same pair answers "the same proposal is on the shelf" after the first was dismissed (apps/web/convex/mcp.ts:1205-1211).

Synonyms are reviewed on one path and not the other while approvals are off. Libro's tag pairs wait on the shelf, and set_term lets any editor's agent write the same thesaurus entry at once. With approvals on, set_term is refused and the agent is told to propose a synonym (apps/web/convex/mcp.ts:865).

Operational cost

A write blocks on one Convex transaction and no model. Convex's search indexes follow the write; cataloging runs seconds later. The weekly review reads up to 5,000 catalog rows or 4 MB, most recently changed first, and each of its five screens sends at most 20 pairs or concepts to the model. Search reads up to 40 catalog rows and bodies, or 140 with a narrow filter. Ask Libro adds one model request per question.

8. Agent Integration

Nineteen tools, described in the code as a table with behaviour hints (packages/mcp/src/tools.ts:379-401): search, ask, show, get_concept, list, graph, ingest, update, delete, files_changed, thesaurus, set_term, status, add_source, get_source, review_shelf, propose, decide, manage_library. delete, set_term, add_source and manage_library carry the destructive hint; decide does not.

The four skills — writing, ingesting a document, reviewing the shelf and driving the dashboard — are bundled into the MCP package and served as resources, and the route's instructions name them. There are no hooks, so files_changed fires only when an agent remembers to call it after a commit. The server's instructions say to.

The person's own acts are separated. Emptying or deleting a library, team roles, billing, disconnecting an agent and switching approvals on or off from the dashboard refuse any token that names an agent (apps/web/convex/identity.ts:22-29, apps/web/convex/changes.ts:886-897), and committed cases require those refusals (apps/web/tests/dashboard.e2e.test.ts:215-229, apps/web/tests/approvals.e2e.test.ts:58-63). manage_library gives an Admin's agent a narrower door, previewed and then confirmed: it may turn Approve changes on and never off, and turn Editor approvals off and never on (apps/web/convex/manage.ts:504-511).

9. Reliability, Safety, and Trust

Who approves

With Approve changes on, the decision is out of the agent's reach. Both deciding paths, decideChanges for change requests and decideProposal for Libro's own proposals, throw when the caller is an agent: the dashboard sets viaAgent from the token's azp claim, and the MCP decide passes it as true (apps/web/convex/changes.ts:738, :1205-1214, apps/web/convex/libro.ts:2233-2243, apps/web/convex/mcp.ts:1246-1255). The approver must be an Admin, or an Editor where the library allows it, and an Editor never approves their own request; an Admin may when they are the library's only Admin, so that a one-person library can approve anything (apps/web/convex/changes.ts:208-220). The end-to-end case drives the whole sequence: an Editor's agent writes, the concept is absent from search, an agent's approval is refused, the Admin approves on the dashboard, and the revision names the Editor's agent as writer and the Admin as approver (apps/web/tests/approvals.e2e.test.ts:45-147).

With it off, which is the default on every plan, decide approves, dismisses or verifies over MCP, and its description asks the agent to pass on the person's decision. Nothing enforces that. The end-to-end suite performs the sequence: one MCP client proposes a merge, reads it off the shelf and approves it, and the case requires the target rewritten and the subject superseded (apps/web/tests/mcp.e2e.test.ts:349-385). The proposal records which client decided it when an agent did (apps/web/convex/libro.ts:2262-2268); the revision is written in the proposer's name.

What retirement reaches

Deprecation is read by duplicate search, cataloging, the weekly rules, the citation index, the demotion sort and Ask Libro. It is not read by get_concept, list without a status, graph, or the ready-reference step. A caller that acts on the first plain search hit must read status itself.

What delete keeps

delete removes the concept, its body, links and every revision, and keeps the id, title and date (apps/web/convex/model.ts:2324-2345). With approvals off it is an agent tool with no confirmation and no actor recorded. With approvals on, the approved delete request remains on the shelf with its requester and approver. A derived id skips a retired one; an explicit id takes it back with a note. The same text under a new id is a new concept. Links to a deleted concept break and appear in the weeding report.

A hosted library prunes history too: the last 100 revisions of a concept and 2,000, 10,000 or 30,000 in all by plan. A self-run one keeps every revision of every concept it has not deleted (apps/web/convex/model.ts:229-231, :2021-2062). An approved change can be reverted, which writes a new revision and goes through the same approval rules (apps/web/convex/changes.ts:1070-1129).

Two writes leave no revision. A rename rewrites the links inside other concepts' bodies and repoints their superseded_by and related without recording either (apps/web/convex/model.ts:2764-2816), so the linker's history shows the new text only when something else is written to it.

Signals that mislead

Retrieval is counted only by get_concept. A search returns the description, which the writing skill says should be enough to act on, and Ask returns a passage; neither counts. A concept whose description answers the question is proposed for retirement as never retrieved after 90 days (apps/web/convex/libro.ts:181-192, apps/web/convex/mcp.ts:429).

The kept weeding report can miss a day of writes. Its key is the revision and concept counts, and once a library or a concept is at its revision cap an update inserts one revision and deletes one (apps/web/convex/model.ts:727-745, :2021-2062). The key then does not change. A self-run library has no cap.

Boundaries that hold

The library is resolved from identity. A slug must name a library the user belongs to, an agent's consented pick that has lapsed is an error, and an agent never moves by itself (apps/web/convex/mcp.ts:86-175). Each MCP call checks that the grant exists. Ten credential formats are refused in concept text, drafts and sources, and a question that matches one is not logged and never sent to the model (packages/core/src/format.ts:32-63). A file's links are signed and expire in one to two hours.

When a paid plan ends, what is over the free limits is kept a year and then deleted, paused libraries first and then least recently changed concepts, after two emails (apps/web/convex/grace.ts:1-19, :43, apps/web/convex/graceTrim.ts:30-100). Age is the only criterion within a library: a concept in daily use that nobody edits is among the first to go. Self-running has no plans.

Marks

  • scope_enforced — present. Every row carries the library and every retrieval path filters on it.
  • human_review — present, opt-in. With Approve changes on, an agent's write waits for a person whose dashboard session is distinguished from any agent token by the token's azp claim. Off by default; while off, the agent decides.
  • negative_eval — present, on scope, author and a held write, in end-to-end files that run on pull requests.
  • trust_state — withheld. Three statuses exist and plain search withholds none: draft is never consulted and deprecated sorts last. Ask Libro skips deprecated concepts, but it is one paid path beside search, get_concept, list and the ready-reference promotion, which do not.
  • audit_log — withheld. Revisions are close: an actor, a client, an approver and a full snapshot for each write. A delete erases a concept's revisions, a hosted plan prunes them, and a rename skips the linkers.
  • tombstone — withheld. The tombstones table is keyed on the id and keeps no value (apps/web/convex/schema.ts:780-786); a dismissed proposal is remembered by its ids and stops Libro from asking again, not an agent from writing.
  • bitemporal — withheld. Every time is a record time or a date to check.

10. Tests, Evals, and Benchmarks

The unit suites cover the pure parts: format, ids, links, secrets, weeding, thesaurus, stemming, the review rules, the judgment questions and their thresholds, approval rules, billing, limits, the CLI and file parsing. CI runs them on every push with a secret scan, the linters, the type check, the build and the skills check (.github/workflows/ci.yml).

The storage behaviour is in the end-to-end files, which drive a local Convex backend and a fake model gateway. They are detailed: exact lists per library, roles, retired ids, revisions per approval, held writes, out-of-date requests, dismissed proposals not refiled, a model outage that leaves its pairs for the next round, and a watched page whose change raises one citing concept and leaves the other. Each file's run is test.skip without its environment (apps/web/tests/mcp.e2e.test.ts:30-34). The e2e workflow supplies it on each ready pull request to main, in a browser part and an API part (.github/workflows/e2e.yml:13-16, :51, :114-117).

Cases to want first: a superseded concept that was once the ready reference, asserted below its replacement in plain search; a Libro merge approved after its target was edited; a body rewritten after a verified event; and a concept read only through search or Ask, not proposed for retirement.

The search evaluation is committed with its questions and prints first, top-three and mean reciprocal rank, plus how often an unanswerable question finds nothing; no result file is committed. The judgment probe (apps/web/convex/judgeCases.ts) is committed too; SELF_HOSTING.md reports figures for Jev and open models, with no run behind them in the tree. No paper was found.

11. For Your Own Build

Steal

  • Make a concept name what it depends on, and let that thing's change raise it. A path index turns git diff --name-only into a list of concepts to check, and a refetched page does the same. The review date moves only when someone verifies.
  • Hold agent writes behind a decision the agent's token cannot make. The identity provider says which client a token belongs to; refusing azp at the decide path is one line, and the base check turns a late approval into a request to redo rather than a silent overwrite.
  • Let the model select and never write. A description chosen from the concept's own sentences cannot add a fact, and an answer copied from a passage cannot either.
  • Key a proposal so a dismissal is permanent, and put the date in the key when the question should come back. Stale proposals reappear at the next date; everything else is asked once.
  • Let the agent tighten a control and never loosen it. An agent may turn approvals on; turning them off is the person's.
  • Fail a scope that stopped holding. An agent whose picked library is gone stops with the reason rather than falling back to the default.

Avoid

  • Do not ship the review gate off by default when the alternative gives the proposer the approve verb.
  • Do not rerank after the status filter. A learned shortcut that runs last must re-check the state a prior step enforced; Ask Libro does, plain search does not.
  • Do not carry a verification across a change to what was verified. Clear it, or store the revision it was given for.
  • Do not apply a stored draft without the base it was drafted from. The change-request path has the check; the merge path beside it does not.
  • Do not measure use at one read path when another answers the question.

Fit

Fits a small team that wants several vendors' agents to share decisions and runbooks, will tell its agents to write them, and will look at a review list once a week; with Approve changes on, it fits a team that wants a person to see every change an agent makes. The vocabulary and shelves pay for themselves when people name things consistently and cost attention when they do not. Self-running means running Convex, which is a database, a function host and an auth issuer at once, from a binary the command downloads unchecked.

Walk away if memory must accrue without being asked for, if recall must work by meaning on the first try, if members of one library must not see each other's notes, or if a compliance reader will ask for a change's record after the concept is deleted.

12. Open Questions

  • Whether ready_reference is meant to skip concepts that have been superseded, as Ask Libro does.
  • Whether a verified event is meant to survive a rewritten body.
  • Whether a Libro merge is meant to take a base, as change requests do.
  • How often the weekly screens and Ask Libro are right on a real library; the thresholds are constants and the probe's results are not committed.
  • How the hosted deployment differs from the tree, if at all.

Appendix: File Index

  • Schema: apps/web/convex/schema.ts
  • Storage, search, revisions, proposals' filing: apps/web/convex/model.ts
  • Change requests and approval: apps/web/convex/changes.ts, apps/web/convex/manage.ts
  • MCP functions and library resolution: apps/web/convex/mcp.ts, apps/web/convex/membership.ts, apps/web/convex/agents.ts, apps/web/convex/identity.ts
  • Tool table, skills and route: packages/mcp/src/tools.ts, packages/mcp/src/skills.ts, apps/web/src/app/mcp/route.ts, apps/web/src/lib/mcp-backend.ts
  • Librarian: apps/web/convex/libro.ts, apps/web/convex/indexation.ts, apps/web/convex/fileCatalog.ts, apps/web/convex/fetching.ts, apps/web/convex/crons.ts
  • Answer cache and Ask Libro: apps/web/convex/reference.ts, apps/web/convex/ask.ts
  • Sources: apps/web/convex/sources.ts, packages/core/src/sources.ts
  • Pure rules: packages/core/src/format.ts, packages/core/src/library.ts, packages/core/src/stem.ts
  • Plans and retention: apps/web/convex/grace.ts, apps/web/convex/graceTrim.ts, apps/web/convex/limits.ts
  • Local run: librocat, packages/cli/src/start.ts, packages/cli/src/local.ts, packages/cli/src/pull.ts
  • Skills: skills/librocat-write/SKILL.md, skills/knowledge-review/SKILL.md
  • Tests: apps/web/tests/approvals.e2e.test.ts, apps/web/tests/dashboard-teams.e2e.test.ts, apps/web/tests/dashboard.e2e.test.ts, apps/web/tests/mcp.e2e.test.ts, apps/web/tests/libro.e2e.test.ts, apps/web/tests/reference.e2e.test.ts
  • Evaluation: apps/web/scripts/search-eval.ts, apps/web/scripts/search-eval.json

Recorded searches

Run from the repository root at the pinned commit with /usr/bin/git grep.

  • The answer cache reads no status. git grep -n -E 'deprecated|superseded' -- apps/web/convex/reference.ts apps/web/tests/reference.test.ts apps/web/tests/reference.e2e.test.ts returns nothing; the control git grep -c -E 'deprecated' -- apps/web/convex/model.ts counts 7.
  • Two writers of revisions, and the deletes. git grep -n -E 'insert\("revisions"' -- apps/web/convex returns model.ts:1997 and the import at portable.ts:440; git grep -n -F '"revisions"' -- apps/web/convex lists the pruning, concept-delete, library-delete, import and plan-end readers that delete rows.
  • No backend path branches on draft status. git grep -n -E '"draft"' -- apps/web/convex packages/core/src packages/mcp/src returns the status list and a proposal's draft type.
  • Retrieval is counted once. git grep -n -F 'touchAccess(' -- apps/web/convex returns the definition and mcp.ts:429.
  • verified is appended and displayed, never compared with the body. git grep -n -E '\.verified' -- packages/core/src apps/web/convex/model.ts apps/web/src returns format.ts:599, :601 and model.ts:2708; Ask Libro passes the list through to its answer (apps/web/convex/ask.ts:433).
  • No vector index. git grep -n -E 'vectorIndex|vectorSearch' -- apps/web/convex returns nothing; the control git grep -c -F 'searchIndex(' -- apps/web/convex/schema.ts counts 4.
  • decidedBy is a user id. git grep -n -F 'decidedBy' -- apps/web returns the two deciders (changes.ts:745, libro.ts:2262), the schema, the export and the views that resolve it to an email.
  • The end-to-end suites run on pull requests. git grep -n -F 'pnpm run e2e' -- .github returns the pull-request template and e2e.yml:114, :117, whose triggers are a ready pull request to main and workflow_dispatch.
  • No submodules, no paper. .gitmodules and CITATION.cff are absent; git grep -n -i -E 'arxiv|doi\.org|bibtex|@article|@misc' -- . ':!pnpm-lock.yaml' returns nothing.

History

2026-12-03 — d4c29780… — 172 commits on, at the head of main, read at the user's request. human_review gained: Approve changes (changes.ts) holds an agent's ingest, update, delete and rename for a dashboard decision that refuses any token naming an OAuth client; off by default. Ask Libro added, and it skips deprecated concepts; trust_state stays withheld because plain search and the ready reference do not. The plugin folder and the Docker setup were removed; skills are MCP resources and ./librocat runs a local copy from a downloaded Convex binary. The end-to-end workflow runs on pull requests. Every line citation points at this commit. Screened: no auto-run surface, six dependency surfaces inside the cooldown, no build-time execution, five floating surfaces; AGENTS.md and CLAUDE.md read as data. Nothing installed, built or run.

2026-12-01 — 91b72fa9…. First reading, read at the user's request, from a full clone at the head of main (tag v0.0.1), read only. Screened: three auto-run surfaces (.claude-plugin/, plugin/.claude-plugin/plugin.json and plugin/.mcp.json, which names a remote HTTP server), five dependency surfaces inside the cooldown, no build-time execution, four manifests with floating ranges beside one lockfile; AGENTS.md and CLAUDE.md read as data. Nothing was installed, built or run. Two marks (section 9).