惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
Jina AI
Jina AI
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
V
V2EX
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
B
Blog
博客园 - 叶小钗
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
A
About on SuperTechFans
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
EGC: Your AI agents never start from zero again
Felipe Marzochi · 2026-06-21 · via DEV Community
Cover image for EGC: Your AI agents never start from zero again

Felipe Marzochi

EGC

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.

EGC (Extended Global Context) fixes this.

EGC 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.

One install. Every tool. Every session.

Website: https://fmarzochi.github.io/EGCSite


What it looks like in practice

You open Claude Code on a project you have not touched in two weeks. Without typing anything:

State loaded from egc-memory via ~/.egc/state/Projects--MyApp.md
Context and preferences acknowledged.
Ready to pick up:
  - Test full install on a clean machine
  - Add GEMINI.md with session memory protocol
  - Publish v1.0.1 fix after clean install test passes

The 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.


How it works

EGC ships two MCP servers that run locally during every session.

egc-memory: 14 tools for persistent memory

Tool What it does
get_state Loads project memory at session start
update_state Saves decisions, preferences, and next steps
store_decision Persists a single decision to SQLite
query_history Returns past decisions by timestamp
search_history Full-text search with BM25 ranking
working_memory_set Stores transient context with a TTL
lesson_save Records cross-session knowledge with confidence decay
lesson_recall Retrieves active lessons above a threshold
detect_patterns Surfaces repeated commands and recurring errors
compress_observations Compresses hook events to save token budget

State files live at ~/.egc/state/<project-slug>.md. One file per project. Plain Markdown. Human-readable.

egc-guardian: 5 tools for context and safety

Tool What it does
validate_command Checks shell commands before execution
validate_write Validates file paths to prevent unsafe writes
reduce_context Compresses file payloads to save token budget
orchestrate_task Routes prompts with agent/skill context
auto_learn Mines session failures and writes lessons to CLAUDE.md

Every tool. One memory.

EGC installs into whichever tools you already use:

  • Claude Code
  • Cursor
  • Gemini CLI / Antigravity
  • Windsurf
  • GitHub Copilot
  • Trae
  • Zed
  • Aider
  • OpenCode
  • Kiro
  • Amp

All of them read from and write to the same ~/.egc/state/ directory. What Claude knows, Gemini knows. No copy-paste, no re-explanation.


Install

npm install -g @egchq/egc && egc install

Or without installing globally:

npx @egchq/egc install

EGC detects which tools you have installed and sets them up automatically.


Prompt library included

EGC 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.

npx skills add Fmarzochi/EGC


Open source

EGC is MIT licensed, built by one developer, maintained in the open.

If EGC changed how you work, a star goes a long way.