{
  "markdown": "# 🧠 Munin Extension for Gemini CLI\n\n[![Status: Published](https://img.shields.io/badge/Status-Published-success)]()\n[![Powered by: GraphRAG](https://img.shields.io/badge/Powered_by-GraphRAG-blue)]()\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow)]()\n\n**Give your Gemini CLI Agent a robust, Long-Term Memory.** \n\nHave you ever been frustrated when your AI agent forgets the architectural decisions you made yesterday? Or when it repeats the exact same bug it fixed in the previous session? \n\n**Meet Munin.** \n\n[Munin](https://www.kalera.app) is a Full-Stack Long-Term Memory manager powered by **GraphRAG**. This official extension connects Gemini CLI to your Munin Context Cores, allowing your AI to build, query, and maintain a persistent knowledge graph of your entire project across endless sessions.\n\n---\n\n## ✨ Feature Highlights\n\nMunin isn't just a database; it's a cognitive layer for your AI agents:\n\n- 🛡️ **AI Memory Guard:** Detects semantic contradictions in your agent's memory to ensure consistency.\n- 🕸️ **GraphRAG Visualizer:** Auto-extracts entities and relationships into interactive 2D neural knowledge graphs and Mermaid-compatible diagrams.\n- ⚡ **Lower Token Costs:** Semantic hybrid search (Vector + Keyword) ensures Gemini pulls only the most relevant snippets, keeping your prompts lean and fast.\n- 🔐 **E2EE With GraphRAG:** Industry-leading security. Encrypt your memory end-to-end while maintaining the ability to perform high-performance semantic search (Elite Tier).\n- 🕒 **Temporal Search:** Search by time context—ask \"what did we decide last Tuesday?\" and get exact answers.\n- 📌 **Dynamic Pinning:** Force-inject critical project context (like coding standards or core architecture) so Gemini never loses the \"big picture\".\n- 🤝 **Cross-Project Sharing:** Share selected memories across different projects to reuse logic and context without manual copy-pasting.\n- ⌛ **Memory TTL:** Set expiration windows for temporary context to keep your memory cores clean and noise-free.\n\n---\n\n## 🌟 Why Munin?\n\nWhen you integrate Munin with Gemini CLI, your AI transforms from a stateless assistant into a core team member who *remembers*:\n\n- 🧠 **Infinite Persistence:** Context isn't lost when you close your terminal. Munin remembers project architecture, conventions, and business logic forever.\n- ⚡ **Precision Recall:** Instead of dumping raw documentation into the prompt and wasting tokens, Gemini semantically searches Munin for the exact context it needs right now.\n- 🛡️ **Error Cataloging:** When Gemini fixes a bug, Munin records the *Root Cause* and *Solution*. It learns from mistakes and doesn't repeat them.\n\n## 🚀 Setup as an Extension\n\nSupercharge your Gemini CLI in 3 simple steps:\n\n1. **Get your API Key:** Head over to [Kalera.app](https://www.kalera.app), create a free account, and generate your API Key.\n2. **Install the Extension:** Run the following command in your terminal:\n   ```bash\n   gemini extensions install https://github.com/3d-era/munin-gemini-extension\n   ```\n   *You will be prompted to provide your API key during installation.*\n\n3. **Configure your Workspace:** Add these environment variables to your project's root `.env` file to link Gemini to your specific project's Context Core:\n   ```bash\n   export MUNIN_API_KEY=\"your-api-key\"\n   export MUNIN_PROJECT=\"your-context-core-id\"\n   ```\n\n## 🛠️ Programmatic Usage (Adapter)\n\nIf you are building custom tooling and want to use the Munin adapter directly in your code:\n\n```ts\nimport { createGeminiCliMuninAdapter } from \"@kalera/munin-gemini\";\n\nconst adapter = createGeminiCliMuninAdapter({\n  baseUrl: process.env.MUNIN_BASE_URL ?? \"https://munin.kalera.dev\",\n  apiKey: process.env.MUNIN_API_KEY,\n  project: process.env.MUNIN_PROJECT ?? \"default-core\",\n});\n\n// Example: Retrieve recent memories\nawait adapter.callTool(\"your-context-core-id\", \"list\", { limit: 10 });\n```\n\n---\nBuilt with ❤️ by [Kalera](https://www.kalera.app) for the AI Engineering community.\n",
  "bytes": 3991,
  "sha": "97616824d1e9ac143dcde798b4a4c1835c45ca4030c187ad6f2cad2d238bd150",
  "repo_slug": "3d-era/munin-gemini-extension",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_3d_era_munin_gemini_extension_d278ca08/readme"
}