# Repository Briefing: Endgame-Labs/cerebro
> Source: https://repoforai.com/repo/Endgame-Labs/cerebro (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Endgame-Labs/cerebro
- **Official Docs / Website**: https://open.endgame.io/cerebro
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (86/100 · Maintenance 35/35 · Adoption 11/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.1.8 (2026-12-03) — https://github.com/Endgame-Labs/cerebro/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, CLI
- **Momentum**: 39 ★ total (+19 24h / +38 7d) · 5 forks
- **Topics**: `agentic-framework`, `ai-agents`, `knowledge-base`, `mcp`, `wiki`
- **When to Use**: Best for: Teams whose agents repeatedly need the same cross-source account, deployment, or competitive context, and whose reviewers need to trace statements back to records. Skip if: You need immediate source state, a general-purpose retrieval backend, or verified offline inference and source-level access controls before adoption.

## Overview
```text
### Architecture & Core Mechanics
Cerebro is an article-first RAG knowledge layer rather than a drop-in database engine. It reads files, SaaS systems, databases, and MCP sources without writing back to them. Factoid, pinned to 0.1.35, turns records into short facts linked to source quotations. Cerebro then compiles facts into Markdown articles and refreshes the articles as new data arrives. Agents read the shared wiki over MCP and can query facts directly when an article falls short.

The article collection is the unit of configuration. A file such as `agents/competitors/article.md` declares evidence scope and a change heartbeat in YAML frontmatter, with writing instructions in the Markdown body. Generated articles carry identity keys, a compilation timestamp, and fact-ID footnotes. The Python package exposes `cerebro.cli:main` through Click and pins `mcp==2.3.0` and `pydantic-ai-slim[openai,anthropic]==2.69.0`. The PostgreSQL extra uses psycopg 3 for ingestion; it does not establish PostgreSQL as the workspace store.

### Key Capabilities & Differentiators
An operator approves the first proposed article list and, with a template, starts from a limited source read covering the last two weeks by default. The system can combine records from different sources, preserve conflicting evidence in the same article, and update article state as records change. Footnotes point to quoted source text, while v0.1.8 marks sentences that their cited facts do not fully support. This makes an article reviewable, not independently verified.

The default configuration uses open-weight models hosted by Fireworks for reading and compilation and Typesafe for decisions and sentence scoring. The v0.1.8 paths include running all jobs on Anthropic or OpenAI, or using signed-in Claude Code or Codex without a model API key. Daily spending caps and pre-run estimates help manage compilation costs. Four small synthetic-data examples span 34–40 records and $0.69–$1.95 for build plus evaluation; they establish neither production cost nor throughput.

### Trade-offs & Limitations
Compared with direct SaaS connectors or a retrieval-first RAG stack, Cerebro performs much of the synthesis before anyone asks. That is useful when several agents repeatedly need the same account, issue, or competitor context: they can reuse a reviewable article rather than reconstructing the answer each time. The cost moves to background ingestion, extraction, and recompilation. Freshness depends on those jobs and their evidence scope, so use the source system for decisions that depend on immediate state.

Markdown makes the compiled output easy to inspect and retain, but teams still need to configure connectors and article scopes, review citations, and handle conflicting records. Fact queries help when an article misses something, but they cannot recover data that was not ingested. Before a team rollout, verify how source permissions carry over to the shared wiki and fact queries, test refresh lag and cost on representative data, and check workspace upgrade behavior. MIT keeps software licensing straightforward; it does not resolve source-data permissions or provider terms.

### Hardware & Deployment Guide
Install from the repository with Python 3.13 and uv using `uv tool install .`; Cerebro itself is not published on PyPI. Create a workspace with `cerebro init`, configure the relevant source credentials and model access, and keep `cerebro serve` running for refreshes. The container is designed to serve a workspace over HTTP. Its multi-stage build uses a frozen `uv.lock`, includes the PostgreSQL extra, and moves from a full Python 3.13 build image to a slim runtime image. Treat workspace data as persistent and review the changelog before updating: pre-1.0 versions may reject older workspaces.

Self-hosting places the service and workspace on your infrastructure, but the listed model routes still depend on external services; a fully offline setup is not established. The hosted routes do not require local model GPUs. Budget host resources for ingestion, parsing, workspace storage, and concurrent jobs. Release v0.1.6 added Claude compilation, v0.1.7 enabled article refresh during long initial reads, and v0.1.8 added single-provider and signed-in plan routes, sentence-level warnings, and pre-run cost estimates.
```

## Key Capabilities
```text
- Data flow: Factoid 0.1.35 extracts short statements tied to source records and quotations before article compilation.
- Collection configuration: Markdown agent definitions declare evidence filters such as entity, source, and time window in YAML frontmatter.
- Retrieval: Agents read shared articles over MCP or fall back to cross-source fact queries; the CLI supports source and text filters.
- Verification: Fact-ID footnotes expose source quotes, conflicting records can appear side by side, and v0.1.8 flags sentences that are not fully supported.
- Cost controls: Daily spending caps and v0.1.8 pre-run estimates complement selectable hosted-provider and signed-in CLI paths.
- Packaging: The Python 3.13 Docker build uses a frozen uv lockfile and includes the optional psycopg dependency for reading PostgreSQL sources.
```

## Quick Start / Clone
```bash
git clone https://github.com/Endgame-Labs/cerebro && cd cerebro
uv tool install .
cerebro init ~/wikis/team-wiki
```
