Skip to content

v1.1.2

Choose a tag to compare

@github-actions github-actions released this 20 Jun 15:38
0ae156f

New Features

  • egc watch: bidirectional sync daemon. Watches all EGC-managed tool config files in the project. When context is edited directly in any tool file (Cursor, Gemini CLI, GitHub Copilot, Windsurf, etc.), the change is extracted from the EGC block and synced to all other tools and back to ~/.egc/state/ automatically. Handles atomic saves (VS Code, Cursor, Windsurf rename-based writes) and Windows EPERM events.
  • auto_learn: new egc-guardian MCP tool. Mines session failures from hook event history, identifies recurring errors, and reinforces actionable lessons automatically so they are available to the AI on the next session.

Memory Improvements

  • update_state propagates to 11 tool config files: calling update_state now writes the new context to every EGC-managed file found in the project: .cursor/rules/egc-context.mdc, .github/copilot-instructions.md, GEMINI.md, .windsurf/rules/egc-context.md, .trae/rules/egc-context.md, .rules (Zed), .clinerules (Cline), CONVENTIONS.md (Aider), .cursorrules, AGENTS.md, and llms.txt. One call keeps every tool in sync.
  • Natural language interface triggers added to the EGC block in all propagated files. AI tools that read the block now understand natural language phrases ("remember this", "save to memory", etc.) as EGC tool invocations.

Guardian Pipeline

  • CacheAligner: normalizes repeated context blocks before compression to reduce redundancy.
  • ContentRouter: detects payload type and routes to the appropriate compressor.
  • SmartCrusher: deduplicates JSON arrays structurally, preserving semantic meaning while cutting token count.
  • Headroom Phase 2: optional deep compression pass for large payloads that exceed the primary budget.
  • All modules are wired into reduce_context transparently.

Infrastructure

  • sql.js replaces better-sqlite3: the state store now uses a pure-JavaScript/WebAssembly SQLite build. No native compilation, no node-gyp, no build tools required. Works on Linux, macOS, Windows, ARM, and Alpine out of the box.
  • GitLab CI and mirror: full pipeline with lint and tests on Node 20/22, mirroring automatically from GitHub. Pinned actions and workflow-level permissions: {} for security.
  • Code of Conduct: Contributor Covenant added. All contributors and community members are expected to follow it.

Bug Fixes

  • Fixed update_state propagation to GitHub Copilot: guard now correctly detects the existing EGC block before inserting.
  • Fixed multi-line Context section replacement in bidirectional sync merge.
  • Fixed state file path resolution in detached HEAD / non-git directories.
  • Fixed StateWatcher.start() to return the count of successfully attached watchers rather than the count of discovered files.
  • Fixed egc doctor to remove stale better-sqlite3 references after the sql.js migration.
  • Pinned undici to 6.27.0 in both MCP servers, patching a known CVE.

Full Changelog: v1.1.1...v1.1.2