# CaBrain

> MEMORY FOR AI AGENTS · OVER MCP

A memory organ for AI agents. Long-term recall and an entity graph that any agent reaches over MCP — so what one session learns, the next one already knows.

```bash
togo install togo-framework/brain
```

## Features

### Hybrid recall, not just vectors

Vector similarity and BM25 fused with reciprocal rank, then reranked. A name or an exact phrase is found by the half of the search that is good at names.

### Hot and cold, like a brain

A hippocampal hot tier answers fast; a cortical cold tier keeps everything. Salience-gated consolidation moves what matters between them while you are not looking.

### Reconsolidation on recall

Remembering something changes it — recall strengthens a memory and lets it be corrected, rather than leaving a stale fact to be retrieved for ever.

### Any client, one protocol

Claude Desktop and Code, Codex, Gemini and Cursor connect through one CLI that is both the MCP server and its installer.

## What an agent can call

- memory_recall
- memory_retain
- memory_get
- memory_edit
- memory_forget
- graph_neighbors
- graph_traverse
- brain_chat

## What it is built on

- **Store**: togo-postgres, pgvector, VectorChord, BM25
- **Cache**: Redis
- **Providers**: brain-tei, brain-cognee

## Get started

1. Install the plugin

```bash
togo install togo-framework/brain
```

2. Connect your AI client

```bash
cabrain connect claude-code
```

3. Give it a namespace

```bash
cabrain namespace create my-project
```

## Status

Live. The console and the MCP API run at cabrain-app.fadymondy.com on togo-postgres with VectorChord and BM25, embedding and reranking through TEI — retain, recall and the entity graph are in daily use.

Source: https://github.com/togo-framework/cabrain
