🌐 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)
A GitHub remote is one place for the vault, not the only one. The guide walks through five setups for where the vault and the real-time central can live: your own computer (egc mesh serve --install, the central back at every login), a device that stays on such as a Raspberry Pi or a NAS, a server of yours, a private GitHub, GitLab or Gitea repository as the vault with the central at home or on that server, and a VPN (Tailscale, WireGuard or the one you have) for a machine away from home. A NATS server you already run takes the place of the central (egc mesh connect nats://<host>:4222). Without a central or a NATS server the state still syncs through the git remote, and the machines only miss the real time; with one of them, egc mesh status and egc doctor show the central (or the NATS server), the bridge and the other machines online.
Session Mesh: Your Open Sessions See Each Other
Two Cursor tabs, a Claude Code terminal and an Antigravity session share one live bus. They announce what they are working on, claim the files they edit, hand work to each other and pick up events: a session parked in session_wait wakes the moment one lands, the tools with a turn hook that can inject context (Claude Code, Antigravity, Codex, Trae, Amp, Kiro and OpenCode 2) get the notice at their next turn, and Cursor or Copilot read the bus through the session tools. Parallel sessions cooperate instead of colliding. With egc mesh serve on one of your machines, or a NATS server you already run, the bus crosses to your other machines too, with no server of ours: what is said is sealed end to end and a box moved, replayed or forged is dropped, while whoever watches the path still sees which machine talks to which, when and how much, so use a wss:// address (tls:// for a NATS server) or a VPN across a network you do not trust. The Team Brain guide shows five setups for the central.
Guardian: A Safety Layer in Front of Every Command
Guardian validates commands before they run, gates risky writes and keeps context from overflowing, in the background, without you invoking anything. Coverage depends on each tool’s own hook support; the Security Assessment documents the exception. When a task starts, orchestrate_task also returns the code the task is about, found through a local graph of your project; see Token Optimization.
Token Crusher: Noise Never Reaches the Model
Before shell output reaches the model, the Token Crusher compresses git logs, test spam, install noise and giant JSON by up to 90 percent while keeping every error and warning. Ask “how much did I save?” in any language and the answer comes straight from your local ledger.
Quick Start
There is no step two. Open any of your AI tools and just talk: “hi”, “let’s continue”, “remember this decision”, in any language. Sessions connect, memory loads, and every open tab already knows what the others are doing.
A live dashboard with agent activity, tokens and costs starts right after installation. Prefer explicit control? Every command is documented in the installation guide: you will probably never need to type one.
Prompt Library (Optional)
Separate from the engine, and off by default, EGC also ships a library written from real engineering sessions: you get access to 61 agents, 232 skills, and 77 commands, plus 109 rules. Specialists that review your code on their own, best-practice guides for every language and situation, shortcuts that run a whole sequence of tasks, and style rules that keep your code consistent. Add it to every detected tool with egc install --prompt-library, or to one tool with egc install --target <tool> --profile full. Skip it and the engine works exactly the same.
🌐 English · العربية · Deutsch · Español · Français · हिन्दी · Italiano · 日本語 · 한국어 · Português (Brasil) · Русский · Türkçe · 简体中文
Support EGC
EGC is built by one developer, maintained in the open, and free. The engine is Apache-2.0 and stays free: if EGC ever offers something paid, it will be a team layer on top of it, never the memory on your machine.
- Website: full docs, feature overview, and live demo
- Vision: where EGC is going, and what stays free
- Join the Discord: ask questions, share feedback
- Sponsor on GitHub: any amount
- Donate via PayPal: no GitHub account needed
- Star the repository: helps other developers find it
- Contribute: agents, skills, commands, bug fixes, docs
- Share: if EGC changed how you work, tell someone
Support from the community keeps this project alive and independent.
AI coding tools that integrate natively with EGC. Partners get logo placement across all READMEs and EGCSite.

Backers

评论