🌐 English · العربية · Deutsch · Español · Français · हिन्दी · Italiano · 日本語 · 한국어 · Português (Brasil) · Русский · Türkçe · 简体中文
EGC - Give Every AI Agent the Same Brain
One local engine that gives every AI coding tool on your machine the same memory, the same guardrails and the same context, in every session.
EGC is a local-first runtime for AI coding tools. Install it once and Cursor, Claude Code, Codex, Copilot, Aider and the rest of the 29 AI coding tools it supports share one encrypted memory of your projects, one filter that keeps noisy output away from the model, and one live bus that lets your open sessions see each other. Most of them also get a safety layer in front of every command; a few, like Auggie, expose no hook surface for it yet, and the integration tiers say exactly which. Works natively with Claude, GPT-4o, Gemini, DeepSeek, Mistral, Groq, Cohere, and Vertex AI, plus OpenRouter for Qwen3, Llama 4, and more.
EGC keeps its memory on your machine: it lives in ~/.egc, encrypted with AES-256-GCM and kept per project and branch, and it is never committed to your project's git repository. It leaves the machine only if you turn on the Team Brain, which syncs sealed project state to a private git remote of your own.
Install
npm install -g @egchq/egc && egc install
That is the whole engine. egc install detects the tools you have, registers the two local MCP servers in each of them, writes the memory protocol every agent reads, and sets up the Token Crusher. It asks one question, whether you also want the optional prompt library, and the default is no.
Full installation guide
The Engine: How EGC Works
EGC is one brain with four faculties. Each one is on from the first install, in every supported tool, with no command to learn.
Memory: What One Agent Learns, Every Agent Knows
Decisions, session context, working memory and learned lessons are captured as you work and are available in any other terminal, IDE or agent you open. You speak naturally, in any language: "save this session", "what did we decide about auth?", "remember this decision". EGC understands the intent and stores or recalls the context. There is no command to memorize.
Team Brain: Your Memory on Every Machine
To keep your project state in step across your own machines, point EGC at a private git remote you control. The state is sealed with a team key before it leaves the machine; no EGC server is involved and the memory database no longer travels (a remote used with an earlier version may still hold it in its history, see what travels). A key that opens none of the state files already on the remote pushes nothing, so a wrong key cannot damage the shared state, while a first sync into an empty remote pushes as before; the Team Brain guide says how to read a sync result.
egc team init --backend git --remote https://github.com/you/egc-memory.git
egc team invite # on that machine when another of yours joins; on the new one, on the same network: egc team join. The same six digits on both screens, you confirm on both, no key to copy
egc team init --backend git --remote https://github.com/you/egc-memory.git --key # on a machine on another network: asks for the key and does not show it (nothing in the process list or the shell history); with --key <team key> on the line, the key shows in both
egc team sync # by hand; the sessions also sync by themselves on a machine whose init ran with this version (a team.json from before keeps its own switch: egc team autosync on turns it on, egc team autosync off turns it off)