{"slug": "egc-your-ai-agents-never-start-from-zero-again", "title": "EGC: Your AI agents never start from zero again", "summary": "A developer released EGC (Extended Global Context), a local runtime that gives AI coding tools persistent memory across sessions. EGC saves decisions, failures, and preferences at the end of each session and loads them automatically at the start, eliminating the need to re-explain project context. The tool supports multiple AI assistants including Claude, Gemini, Cursor, and Copilot, and is available as an open-source npm package.", "body_md": "Every time you open a new session with an AI coding tool, it starts from zero. It does not know what you decided yesterday, what failed last week, or what comes next. You have to explain the project again. And again.\n\n**EGC (Extended Global Context)** fixes this.\n\nEGC is a local runtime that gives every AI coding tool you use a persistent memory. At the end of each session, the AI saves what it learned: decisions made, what failed, your preferences, what comes next. At the start of the next session, it loads that state back automatically.\n\nOne install. Every tool. Every session.\n\nWebsite: [https://fmarzochi.github.io/EGCSite](https://fmarzochi.github.io/EGCSite)\n\nYou open Claude Code on a project you have not touched in two weeks. Without typing anything:\n\n```\nState loaded from egc-memory via ~/.egc/state/Projects--MyApp.md\nContext and preferences acknowledged.\nReady to pick up:\n  - Test full install on a clean machine\n  - Add GEMINI.md with session memory protocol\n  - Publish v1.0.1 fix after clean install test passes\n```\n\nThe AI already knows what you were building, what decisions you made, what failed, and exactly where you stopped. You did not type anything. You just started working.\n\nEGC ships two MCP servers that run locally during every session.\n\n| Tool | What it does |\n|---|---|\n`get_state` |\nLoads project memory at session start |\n`update_state` |\nSaves decisions, preferences, and next steps |\n`store_decision` |\nPersists a single decision to SQLite |\n`query_history` |\nReturns past decisions by timestamp |\n`search_history` |\nFull-text search with BM25 ranking |\n`working_memory_set` |\nStores transient context with a TTL |\n`lesson_save` |\nRecords cross-session knowledge with confidence decay |\n`lesson_recall` |\nRetrieves active lessons above a threshold |\n`detect_patterns` |\nSurfaces repeated commands and recurring errors |\n`compress_observations` |\nCompresses hook events to save token budget |\n\nState files live at `~/.egc/state/<project-slug>.md`\n\n. One file per project. Plain Markdown. Human-readable.\n\n| Tool | What it does |\n|---|---|\n`validate_command` |\nChecks shell commands before execution |\n`validate_write` |\nValidates file paths to prevent unsafe writes |\n`reduce_context` |\nCompresses file payloads to save token budget |\n`orchestrate_task` |\nRoutes prompts with agent/skill context |\n`auto_learn` |\nMines session failures and writes lessons to CLAUDE.md |\n\nEGC installs into whichever tools you already use:\n\nAll of them read from and write to the same `~/.egc/state/`\n\ndirectory. What Claude knows, Gemini knows. No copy-paste, no re-explanation.\n\n```\nnpm install -g @egchq/egc && egc install\n```\n\nOr without installing globally:\n\n```\nnpx @egchq/egc install\n```\n\nEGC detects which tools you have installed and sets them up automatically.\n\nEGC ships 479 components as a bonus: 63 agents, 229 skills, and 76 commands written from real engineering sessions. Skip them entirely and EGC still gives you persistent memory. Or use them to extend any AI tool you already have.\n\n```\nnpx skills add Fmarzochi/EGC\n```\n\nEGC is MIT licensed, built by one developer, maintained in the open.\n\n`@egchq/egc`\n\nIf EGC changed how you work, a star goes a long way.", "url": "https://wpnews.pro/news/egc-your-ai-agents-never-start-from-zero-again", "canonical_source": "https://dev.to/fmarzochi/egc-your-ai-agents-never-start-from-zero-again-1o09", "published_at": "2026-06-20 21:55:37+00:00", "updated_at": "2026-06-20 22:06:54.155562+00:00", "lang": "en", "topics": ["developer-tools", "large-language-models", "ai-tools", "ai-agents"], "entities": ["EGC", "Claude", "Gemini", "Cursor", "Copilot", "MCP", "SQLite", "Fmarzochi"], "alternates": {"html": "https://wpnews.pro/news/egc-your-ai-agents-never-start-from-zero-again", "markdown": "https://wpnews.pro/news/egc-your-ai-agents-never-start-from-zero-again.md", "text": "https://wpnews.pro/news/egc-your-ai-agents-never-start-from-zero-again.txt", "jsonld": "https://wpnews.pro/news/egc-your-ai-agents-never-start-from-zero-again.jsonld"}}