Sistema Local-First de memoria persistente en cuatro capas para convertir a tus agentes de IA en auténticos especialistas mediante experiencia real verificada: diarios en Markdown bajo Git, índice SQLite FTS5 + BM25, servidor MCP federado, compuerta anti-envenenamiento (PROVISIONAL → VERIFIED) y guardianes automáticos de presupuesto (24.000 bytes y 20.000 tokens Always-On).
Clona el repositorio e instala automáticamente el plugin, las reglas globales, el servidor MCP persistent_memory y los hooks SessionStart + Stop sin sobrescribir tus servidores existentes:
git clone https://github.com/0utKast/antigravity-persistent-memory.git cd antigravity-persistent-memory python install_persistent_memory.py
Para auditar tu estación o probar el ciclo completo de 6 etapas en sandbox sin tocar ~/.gemini:
python install_persistent_memory.py --check python laboratorio_memoria_persistente_antigravity.py python tests/test_persistent_memory_portable.py
Resultados reales verificados sobre Fallout 4 (Crónicas del Refugio 13, Piper Wright AI), Cyberpunk 2077 (Ghost Echo, Chispa NC) y producción automatizada de cursos 4K:
| Capa | Artefactos | Función y Carga | Protección de Límites |
|---|---|---|---|
| L0 · Constitución | AGENTS.md + GEMINI.md | Carga incondicional (Always-On) al inicio de cada sesión. | Tope sano < 12 KB, alerta ≥ 16 KB, límite duro 24.000 B y techo 20.000 tok. |
| L1 · Modular | .agents/rules/*.md y SKILL.md | Divulgación progresiva (trigger: model_decision, ~30 tok en reposo). | Límite 18.000 B efectivos (expandiendo @[label](ruta)). Destino cuando N ≥ 2. |
| L2 · Episódica | MEMORIA_INDICE.md + diarios/*.md | Escape Hatch legible en Markdown y versionado en Git. | Ahorro del 87,0 % al 90,3 % frente a cargar históricos completos. |
| L3 · FTS5 + MCP | memoria_fts.sqlite + memctl.py + hooks.json | Búsqueda BM25 Unicode, federación solo lectura y compuertas. | Hooks SessionStart y Stop anti-bucle sin alterar permisos PreToolUse. |
| # | Obra / Charla | Autor(es) | Identificador URN |
|---|---|---|---|
| 1 | Memory for Personal AI with Duncan Davidson | Ben Lorica, Duncan Davidson | urn:orm:video:0642572475086 |
| 2 | Agent Memory | Benjamin Labaschin | urn:orm:book:0642572370473 |
| 3 | Managing Memory for AI Agents | Benjamin Labaschin et al. | urn:orm:book:9798341661257 |
| 4 | Expert Showcase: Agent Memory | Ksenia Se, Lewis Liu, Pete Johnson | urn:orm:video:0642572428136 |
| 5 | Build Self-Improving Agents with Memory, Traces, and Skills | Richmond Alake | urn:orm:live-event-series:0642572457082 |
| 6 | Agentic Engineering | Addy Osmani | urn:orm:book:0642572392291 |
| 7 | Harness Engineering | Nicole Koenigstein | urn:orm:book:0642572422783 |
| 8 | The Context Engineering Handbook | Drew Breunig | urn:orm:book:0642572260705 |
| 9 | Agentic Reliability Engineering | David Jambor | urn:orm:book:0642572294809 |
| 10 | Architecting Data Systems for AI Agents | Firat Tekiner | urn:orm:book:0642572354664 |
| 11 | Game Engine Architecture, 3rd Edition | Jason Gregory | urn:orm:book:9781351974271 |
| 12 | AI Engineering | Chip Huyen | urn:orm:book:9781098166298 |
| 13 | Building Applications with AI Agents | Michael Albada | urn:orm:book:9781098176495 |