GUIDE · SHARED MEMORY

How to make AI coding context travel across your whole team

A practical playbook for sharing AI coding context across engineers and agents: rules files, MCP memory, and conversion-focused rollout. Set it up in under 30 minutes.

01

Step 1 — put invariants in the repo

AGENTS.md / CLAUDE.md / .cursorrules carry the always-on constraints. Keep them short: invariants, not tutorials. Everything longer belongs in shared memory where retrieval — not prompt size — decides what agents see.

02

Step 2 — give knowledge a database

Stand up MemHub (hosted, or self-hosted on PostgreSQL), then `memhub login` and `connect` for Claude Code, Cursor, Windsurf, Cline, Codex CLI or any JSON MCP client. From then on, sessions brief themselves.

03

Step 3 — let agents write, humans pin

Agents capture decisions as they work; leads pin the non-negotiables and prune noise weekly. Provenance makes review fast — every entry says who wrote it and from which PR.

04

The payoff compounds monthly

Week one feels like normal. Month three, new hires ship without the oral-history tour, agents stop re-proposing settled debates, and postmortems write themselves from the decision trail.

UNIVERSAL COMPATIBILITY

Plugs into any CLI or development tool you use.

If it speaks MCP or reads a JSON config, MemHub plugs in. One command wires the majors; everything else joins as a generic client.

  • Claude Code
  • Cursor
  • Windsurf
  • Cline
  • Codex CLI (GPT)
  • GitHub Copilot
  • Google Antigravity
  • Gemini CLI
  • Aider
  • OpenCode
  • CI bots via REST

Questions, answered straight.

How long does rollout take?

Under 30 minutes for a five-person team: create the workspace, run connect on each laptop, paste one line into your rules file. Memory accumulates from the first session onward.

Which tools does this cover?

Anything MCP-speaking or JSON-configured: Claude Code, Cursor, Windsurf, Cline, OpenAI Codex CLI, Google Antigravity, Gemini CLI, aider-style CLIs, and CI bots via the REST API.

THE NEXT SESSION STARTS HERE — 2 MIN SETUP

Your next session can start already briefed.

Create workspace — free