EGC - Extended Global Context
@Fmarzochi
Persistent memory and shared context for AI coding tools. Two local MCP servers give every AI coding tool a shared, permanent memory of your project across sessions and tools.
概览
What is EGC - Extended Global Context?
EGC is a local runtime that gives every AI coding tool you use a persistent memory. It automatically saves what was learned at session end (decisions, failures, preferences, next steps) and loads that state at the next session start — no prompting required. It works with Claude Code, Cursor, Gemini CLI, Windsurf, and other tools, supporting models from Claude, GPT-4o, Gemini, and OpenRouter.
How to use EGC - Extended Global Context?
Install globally via npm install -g @egchq/egc && egc install, or run without installing via npx @egchq/egc install. After installation, EGC automatically provides two MCP servers (egc-memory and egc-guardian) and can sync state across tools using egc watch. No commands to learn — just start working and the AI uses the tools automatically.
Key features of EGC - Extended Global Context
- Automatic persistent memory across AI coding sessions
- 14 memory tools for state, decisions, lessons, and search
- 5 context and safety tools for command and write validation
- Works with Claude Code, Cursor, Gemini CLI, Windsurf, and more
- State files stored as plain Markdown, one per project
egc watchkeeps multiple tools in sync in real time- Includes a bonus prompt library with 479 components
Use cases of EGC - Extended Global Context
- Resume a project after a long break without re-explaining context
- Automatically remember past decisions, failures, and preferences
- Persist cross-session lessons that boost confidence with repetition
- Keep multiple AI tools (Claude Code, Cursor, Gemini CLI) in sync
- Validate shell commands and file writes against project safety rules
FAQ from EGC - Extended Global Context
What is EGC and how is it different from other memory solutions?
EGC is a local runtime that auto-saves and auto-loads session context without any prompting, working across multiple AI tools. It provides two MCP servers (memory and guardian) with 19 tools that your AI calls automatically.
What are the runtime requirements?
EGC requires Node.js >=20 and is installed via npm (npm install -g @egchq/egc). It works with major AI coding tools such as Claude Code, Cursor, Gemini CLI, Windsurf, and GitHub Copilot.
Where does EGC store its data?
State files are stored at ~/.egc/state/<project-slug>.md as plain Markdown, one file per project. Past decisions are persisted to a local SQLite database.
Does EGC work with multiple AI tools?
Yes. One install covers Claude Code, Cursor, Gemini CLI, Windsurf, and others. Running egc watch keeps all tools in sync, automatically updating configuration files when state changes.
Is EGC free?
Yes. It is free, open source (MIT license), and maintained by a single developer. The project accepts sponsorships and contributions.