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 watch keeps 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
评论