Skip to content

Introduction ​

Carrybrain is memory, rules and skills for AI coding agents, kept on a server you control and delivered to every machine and every tool you use. Claude Code memory and personal rules normally live on one disk. Your dev containers, cloud environments, Cursor and Codex never see them. Carrybrain moves them to one place and brings them back everywhere.

What it gives you ​

  • Memories. Facts and decisions agents save with remember and find again with recall, searched by meaning (Postgres with pgvector). Each memory is private, team or org visible, and can be tagged with a repo. See Memories.
  • Rules. Short, keyed instructions merged across org, team, repo, user and user_repo scopes. The most specific scope wins per key, you keep personal overrides, and admins can lock a key so nothing below it can change. A SessionStart hook injects the merged rules every session. See Rules.
  • Skills. SKILL.md playbooks shared at org, team, repo or personal scope, installed where each agent looks for them and served over MCP to agents that have no native skills. See Skills.
  • A dashboard. The server also serves a web app for browsing and editing memories, rules and skills, managing users, teams and API keys, and reading the audit log.
  • Self-hostable. Run it with Docker Compose or deploy it to Cloudflare. One deployment per company, or one for just you (personal mode).

How agents reach it ​

Every agent talks to the same server over MCP at https://your-server/mcp, authenticated with a personal API key. For Claude Code the CLI also installs a SessionStart hook that injects your rules, recent memories and a catalog of skills at the start of each session. Repos are identified by their normalized git remote (github.com/acme/api), so a repo matches on every machine whatever folder it is cloned into.

Who wins when instructions conflict ​

Rules come from different people, so the injected text states a trust order. Highest first:

  1. Locked company policy. Locked org or team rules set by admins override everything.
  2. Your own rules. user and user_repo rules, written by you, override the repo's own CLAUDE.md or AGENTS.md where they conflict. This is the point of personal overrides that follow you across machines.
  3. The repo's CLAUDE.md / AGENTS.md.
  4. Team suggestions. Unlocked rules written by teammates are followed unless one of the above says otherwise.

Your direct request in a session always wins, and text inside a rule that tells an agent to ignore rules, reveal secrets or run commands is not followed. Memories are data, never instructions.

Where to go next ​

Carrybrain is open source under the MIT license.