cerebro
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
A self-updating, well-cited wiki for your agents, built from your sources.
Cerebro
Cerebro is a knowledge system for agents that you run yourself. It builds a wiki from your sources, stays up to date, and improves itself over time, so your agents get better answers faster and with less token spend.
Every claim cites the source record that it's based on, and the wiki stays fresh as new data arrives. Agents read the same articles, so they get the same well-cited answers. When an article isn't available to answer a question, agents query the facts directly rather than burning tokens parsing and joining raw data.
Docs · Quickstart · Examples
Answers ready before anyone asks
Most teams give their agents a connector to each system and hope the agents can make sense of it all. You ask about a customer, and the agent searches the CRM, a few call transcripts and some chat threads, then answers from whatever it found. Ask again tomorrow, and it may search another way and tell you something different.
Cerebro does that digging once, ahead of time, and writes the answer down.
| Agents using connectors directly | Agents with Cerebro |
|---|---|
| ❌ Repeated search and inference every time you ask | ✅ Canonical articles for common questions |
| ❌ Answer quality varies with each query and how it is read | ✅ Durable answers that point to their source data |
| ❌ Incomplete searches, dead ends, missed connections | ✅ Context composed from every source, ahead of time |
| ❌ Hard to check for correctness | ✅ Every claim cites a source |
| ❌ Tokens burned reading raw transcripts, threads and documents | ✅ Compact articles and facts that stay up to date |
Installation
Cerebro is open source software that you customize and deploy yourself, on your laptop or for your team. By default it reads and compiles with open-weight models served by Fireworks, and uses a Typesafe model to make decisions and score each sentence, under daily spending caps you set. It reads your sources and never changes them.
You need
- Python 3.13 and uv
- A Fireworks key and a Typesafe key
Install and set up
git clone https://github.com/Endgame-Labs/cerebro && cd cerebro
uv tool install .
cerebro init ~/wikis/team-wiki
Install from this repository. Cerebro is not on PyPI or any other package index at this time. Before 1.0, a newer version may refuse a workspace an older one made, so read the Upgrading notes in the changelog before you update.
Or let your coding agent set it up
Paste this line into Claude Code, Codex or Cursor:
Run `curl -fsSL https://open.endgame.io/cerebro/setup.md`, read all of it, and set up Cerebro for me.
It asks you a few questions, installs Cerebro, and builds a first wiki from your notes. If you pick the sales template, it installs Cerebro and hands you the guided setup. You type your model keys and logins into your own terminal, never into the chat. It asks before anything that costs money, and it accepts no article you have not approved.
What init does
- Asks a few questions: who you are, a template to start from, your model keys and daily caps, the sources to read and the MCP clients to connect.
- With a template and something to read, it proposes a first set of articles.
- Writes the articles you approve, from a limited read of your sources: the last two weeks by default.
Without a template, you write your first agent yourself, as the quickstart shows.
Keep it current
Leave cerebro serve running. The quickstart walks through each step, from your first note to asking your agent about it.
How it works
- You connect your sources. Files, Slack, Gmail, calendars, GitHub, Linear, Gong, Granola, Salesforce, a database, or any MCP server. Cerebro reads them and never changes them.
- It breaks what it reads into facts. A fact is one short statement, tied to the exact words it came from. A companion project, Factoid, does this part.
- It compiles articles from the facts, and compiles them again when something new arrives. It proposes which articles should exist, and you approve the first list.
- Your agents connect over MCP. Claude, Cursor or any other MCP client reads the articles. When an article alone can't answer, the agent queries the facts directly.
Here is that last step from the command line, in the campaign room example:
cerebro tools query --json '{"from": "facts", "source": ["competitor-notes", "slack"], "matching": "free plan"}'
That one call searches the team's competitor notes and its Slack channel together. On the example's run it returned 49 facts, best match first, each with its quote and the record it came from.
What you get is a layer of context that none of your systems holds alone. It is a folder of Markdown files, so you can read it, check it and keep it, and so can any agent.
Articles compiled from facts
Articles come in collections, such as competitors. Each collection has an agent that writes its articles, defined in one Markdown file. The agent reads the facts it asks for and compiles them into an article. Both files below are from the campaign room example, where a marketing team keeps an article on each competitor.
Agent definition
The frontmatter says which facts to read. The rest says what to write, in plain English. There is no code.
agents/competitors/article.md
---
evidence:
- facts: { about: this } # the notes on this competitor, in the source's default window of 90 days
- facts: { about: this, source: competitor-notes, window: before_last_90_days } # its older notes: this line alone reads past the 90 days, for this competitor's notes only
heartbeat: [change]
---
# Instructions
You write the marketing wiki's article on one competitor, for the team that writes the ads, the offers and the
answers to prospects.
Write three parts, each a level-two heading, in this order:
## Now
Who they sell to, what they charge and offer today, and the latest move they made, with its date.
## Where we win and lose
The deals and the reasons the notes give, each with its date.
## History
The older changes, oldest first, each with its date, and what replaced it since. Leave this part out when the notes
give no change before the latest.
Every sentence cites a fact. Leave out what you cannot cite.
Article format
That agent wrote this article on the competitor Corvane. It is trimmed here to one paragraph and its footnotes.
articles/competitors/corvane.md
---
id: competitors/corvane
title: Corvane
identity:
competitor:
- Corvane
compiled_at: '2026-11-30T20:33:52Z'
---
## Now
The latest move is Overnight, a night shift add-on with rest-gap rules, announced on November 10 [^fact_01m8q2ajgejbhmt2gd]. It is in beta for customers in the United States only, and Corvane has not said what it will cost [^fact_01m8q2ajgen2xxvd47] [^fact_01m8q2ajgevh6zgn95]. Joss Whitlow said on November 25, 2026 that Corvane is telling prospects that Overnight will be free for the first year once it leaves beta [^fact_01m8q29z8nzcz24abt]. Two prospects in Peak Season Readiness asked whether Larkmoor is the same as Corvane Overnight [^fact_01m8q2ajgeg1e0cd4e].
[^fact_01m8q2ajgejbhmt2gd]: competitors/2026-11-16-corvane-overnight.md "Corvane announced Overnight on November 10, a night shift add-on with rest-gap rules."
[^fact_01m8q2ajgen2xxvd47]: competitors/2026-11-16-corvane-overnight.md "Corvane announced Overnight on November 10, a night shift add-on with rest-gap rules. It is in beta for customers in the United States only, and Corvane has not said what it will cost."
[^fact_01m8q2ajgevh6zgn95]: competitors/2026-11-16-corvane-overnight.md "Corvane announced Overnight on November 10, a night shift add-on with rest-gap rules. It is in beta for customers in the United States only, and Corvane has not said what it will cost."
[^fact_01m8q29z8nzcz24abt]: 1007 "id: 1007 posted: 2026-11-25T16:00:00Z text: Corvane is telling prospects that Overnight will be free for the first year once it leaves beta. I heard it on two calls today. user: Joss Whitlow"
[^fact_01m8q2ajgeg1e0cd4e]: competitors/2026-11-16-corvane-overnight.md "Two prospects in Peak Season Readiness asked whether Larkmoor is the same as Corvane Overnight."
- Frontmatter names the article, lists the keys that tie records to it, and says when it was last compiled.
- Each
[^fact_…]is a footnote. It names the record a claim came from and quotes the exact words. - Composed from the team's competitor notes and its Slack channel. The notes say Corvane has not said what its new add-on will cost. Slack holds what it is telling prospects. The article has both.
Context no single system holds
Each system of record holds its own part of the story. The CRM has the close date, the call notes have what the buyer said, and the issue tracker has what is blocked. Cerebro composes them, and the result is a layer of context none of them holds alone.
A sales team's CRM says a deal closes on 15 December. On a call, the customer's CFO said nothing gets signed before 1 February. One sentence of the account's article holds both, from the Northwind sales example:
articles/accounts/quarry-hill-foods.md, one sentence and its footnotes
---
id: accounts/quarry-hill-foods
title: Quarry Hill Foods
identity:
account:
- Quarry Hill Foods
domain:
- quarryhill.example
close_date: '2026-12-15'
compiled_at: '2026-11-30T20:07:12Z'
---
Blocker: Hollis Grant's spend freeze holds any signature until 1 February while the deal carries a 15 December close date, a date Mara Quill had asked to beat before the holiday freeze at their plants [^fact_01m8q0p0bn2geps46n] [^fact_01m8q10704663j1edw] [^fact_01m8q10ajk10j5mhvk].
[^fact_01m8q0p0bn2geps46n]: local/calls/2026-11-23-quarry-hill-cfo.md "Hollis Grant said spend on new software is frozen until their fiscal year starts on 1 February, so Quarry Hill will not sign before then."
[^fact_01m8q10704663j1edw]: 006QH00001 "2026-12-15"
[^fact_01m8q10ajk10j5mhvk]: local/calls/2026-11-10-quarry-hill-pricing.md "Mara Quill said she wants to sign by 15 December, before the holiday freeze at their plants."
Composed from: one CRM field and two call notes. The CRM alone would have told you 15 December.
Every claim cites a source
- Each claim carries a footnote. Follow it back to the exact words in the record.
- When sources disagree, the article gives both sides. It does not pick one and state it as true.
- A sentence the sources do not fully back is marked, not hidden. It carries the note "Not fully backed by the facts it cites." On the sales run, 12 sentences in 8 articles were marked.
- When something stops being true, the article says so. The next run compiles it again.
Here is that last one in the field deployments example. A field engineering team keeps one article for each issue that blocks a customer rollout. FD-233, where claims were duplicated whenever a claim was reopened, blocked the rollout at one customer. On 30 November the issue was closed in the tracker. On the next run Cerebro compiled the article again: its state went from open to ended, and it now opens like this:
articles/blockers/fd-233-claims-duplicate-when-a-claim-is-reopened.md, its first part
---
id: blockers/fd-233-claims-duplicate-when-a-claim-is-reopened
title: FD-233 Claims duplicate when a claim is reopened
identity:
issue:
- FD-233
linked:
- deployments/larkmoor-mutual
owner: Ruth Adeyemi
state: ended
compiled_at: '2026-11-30T20:26:05Z'
---
## Ended
FD-233 has closed: its status is Done, resolved on 2026-11-30 [^fact_01m8q25j5c25kxa7pz] [^fact_01m8q25n0j34njb9vj]. It was fixed on 30 November by keying claims on policy number plus loss date, after the Larkmoor Mutual Claimsbook admin confirmed those stay the same when a claim is reopened [^fact_01m8q1n3vsfjhx0z6e].
[^fact_01m8q25j5c25kxa7pz]: FD-233 "key: FD-233 summary: Claims duplicate when a claim is reopened customer: Larkmoor Mutual system: Claimsbook status: Done assignee: Ruth Adeyemi created: 2026-11-12 updated: 2026-11-30 resolved: 2026-11-30 description: Claimsbook gives a reopened claim a new claim id, so the claims dashboard showed…"
[^fact_01m8q25n0j34njb9vj]: FD-233 "Done"
[^fact_01m8q1n3vsfjhx0z6e]: ext-larkmoor/2026-11-26T16:15:00Z "channel: ext-larkmoor team: Larkmoor Mutual text: On FD-233: our Claimsbook admin confirms policy number plus loss date stays the same when a claim is reopened. Can you key claims on that? ts: 2026-11-26T16:15:00Z user: Sofia Lindgren" · FD-233 "Fixed on 30 November: claims are now keyed on policy number plus…"
How teams use it
- A product team, before a roadmap review. The wiki shows two customers asking for opposite things about who approves a report, across calls, tickets and Slack.
- A field engineering team, before a customer meeting. It shows how a go-live date moved and what still blocks it, across the customer's Slack channel, the issue tracker and standup notes.
- A marketing team, reviewing the quarter's campaigns. It shows what a competitor announced against what it is telling prospects, across competitor notes and Slack.
- A sales team, before the pipeline review. It shows the CRM's close date against the CFO's word on a call.
Examples
Each team above has an example wiki you can run. The data is made up, and each example is small. The runs are real, and each cost covers the example's build and its eval.
| Example | Composed from | Size and cost to build |
|---|---|---|
| product-feedback | Customer calls, support tickets, Slack and product docs | 36 records, $0.98 |
| field-deployments | Customer Slack channels, the issue tracker, standup notes and runbooks | 40 records, $1.03 |
| campaign-room | Campaign briefs, weekly analytics, competitor notes and Slack | 34 records, $0.69 |
| northwind-sales | A CRM export, call notes, a shared Slack channel and the calendar | 40 records, $1.95 |
Nine more, from an on-call wiki to a lease handoff, are in examples/README.md.
Manage token spend
Spend follows how much Cerebro reads and compiles, so it depends on your data. You manage it four ways:
- Daily spending caps. The two main ones cover turning your sources into facts and compiling articles.
initstarts each at $25, and every model call is checked against its cap before it starts. - How far back it reads. Most sources read their last 90 days by default. An agent can reach further back, and you can limit that to each article's own subject, so an old customer's history is read for that customer's article and for nothing else.
- No change, no call. An agent that runs on change calls no model until something it reads changes. An agent on a daily or weekly schedule runs once each period.
- Your models, your keys. The defaults are open-weight models served by Fireworks for reading and compiling, and a Typesafe model for decisions and scoring. Articles can also be written by OpenAI or Anthropic's Claude models, as Workspace shows. You can send every model call through your own gateway.
Contributing
Read the rules first
- AGENTS.md says how to plan and build a change. It applies to people and to coding agents.
- docs/philosophy.md gives the reasons behind those rules.
Run the tests
uv sync
uv run pytest
They need no network and no model.
Run the checks CI runs
uv run ruff check src tests checks apps
uv run python docs/diagrams/build.py --check
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi