{"id":51181307,"url":"https://github.com/perseus-computing-llc/adk-mimir-memory","last_synced_at":"2026-06-27T07:02:53.458Z","repository":{"id":367602873,"uuid":"1280902004","full_name":"Perseus-Computing-LLC/adk-mimir-memory","owner":"Perseus-Computing-LLC","description":"Persistent, local, encrypted cross-session memory for Google ADK agents — backed by Mimir.","archived":false,"fork":false,"pushed_at":"2026-06-26T17:52:31.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-26T18:21:53.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://perseus.observer/mimir/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Perseus-Computing-LLC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-26T03:36:32.000Z","updated_at":"2026-06-26T17:52:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Perseus-Computing-LLC/adk-mimir-memory","commit_stats":null,"previous_names":["perseus-computing-llc/adk-mimir-memory"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Perseus-Computing-LLC/adk-mimir-memory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fadk-mimir-memory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fadk-mimir-memory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fadk-mimir-memory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fadk-mimir-memory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Perseus-Computing-LLC","download_url":"https://codeload.github.com/Perseus-Computing-LLC/adk-mimir-memory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fadk-mimir-memory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34844346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-27T07:02:52.317Z","updated_at":"2026-06-27T07:02:53.452Z","avatar_url":"https://github.com/Perseus-Computing-LLC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ADK Mimir Memory\n\nPersistent, local, encrypted cross-session memory for [Google ADK](https://github.com/google/adk-python) agents — backed by [Mimir](https://github.com/Perseus-Computing-LLC/mimir).\n\n## Why Mimir?\n\n| Backend | Dependencies | Encryption | Hybrid Search | Local |\n|---|---|---|---|---|\n| **InMemoryMemoryService** | None | ❌ | ❌ | ✅ |\n| **VertexAiMemoryBankService** | GCP + Gemini | ❌ | Gemini-driven | ❌ |\n| **VertexAiRagMemoryService** | GCP + RAG | ❌ | GCP vector | ❌ |\n| **MimirMemoryService** | **Single binary** | **✅ AES-256** | **✅ BM25+FTS5+Dense** | **✅** |\n\n- **Zero cloud dependencies** — a single Rust binary, SQLite database, fully local\n- **AES-256-GCM encryption** at rest — your memory data stays private\n- **Hybrid search** — BM25 keyword + FTS5 + dense vector search\n- **30+ MCP tools** — remember, recall, synthesize, benchmark, federate, and more\n- **Ebbinghaus confidence decay** — memories fade naturally, important ones persist\n\n## Installation\n\n```bash\npip install adk-mimir-memory\n```\n\nThis package requires the `mimir` binary. Download it from:\nhttps://github.com/Perseus-Computing-LLC/mimir/releases\n\nOr build from source:\n```bash\ncargo install mimir\n```\n\n## Quick Start\n\n```python\nfrom google.adk.agents import Agent\nfrom adk_mimir_memory import MimirMemoryService\n\nagent = Agent(\n    name=\"my_agent\",\n    model=\"gemini-2.5-flash\",\n    instruction=\"You are a helpful assistant with persistent memory.\",\n    memory_service=MimirMemoryService(\n        db_path=\"~/.adk/mimir.db\",\n    ),\n)\n```\n\nThat's it. Sessions, events, and explicit memories are now persisted across restarts.\n\n### Configuration\n\n```python\n# Custom database location\nMimirMemoryService(db_path=\"/data/agent_memory.db\")\n\n# Custom mimir binary path (if not on $PATH)\nMimirMemoryService(mimir_binary=\"/usr/local/bin/mimir\")\n\n# Both\nMimirMemoryService(\n    db_path=\"/data/agent_memory.db\",\n    mimir_binary=\"/usr/local/bin/mimir\",\n)\n```\n\n## Perseus Live Context (Optional)\n\nThis package also includes a drop-in agent with live workspace awareness via [Perseus](https://github.com/Perseus-Computing-LLC/perseus):\n\n```python\nfrom adk_mimir_memory.perseus_context import perseus_context_agent\n\n# The agent resolves @file, @search, @memory directives at inference time\nrunner.run_async(\n    user_id=\"user\",\n    session_id=\"session\",\n    new_message=types.Content(role=\"user\", parts=[types.Part.from_text(\n        text=\"What does the README say about deployment?\"\n    )]),\n    agent=perseus_context_agent,\n)\n```\n\n```bash\npip install adk-mimir-memory[perseus]  # installs perseus-ctx\n```\n\nSet directives via session state:\n```python\nsession = await runner.session_service.create_session(\n    app_name=\"my_app\",\n    user_id=\"user\",\n    state={\n        \"_perseus_directives\": \"@file AGENTS.md @file README.md @memory deployment\",\n        \"_perseus_workspace\": \"/path/to/project\",\n    },\n)\n```\n\n## How It Works\n\n```\n┌─────────────┐     JSON-RPC (MCP stdio)     ┌──────────┐\n│  ADK Agent  │ ──────────────────────────▶  │  Mimir   │\n│  (Python)   │ ◀──────────────────────────  │  (Rust)  │\n└─────────────┘                               └────┬─────┘\n                                                   │\n                                              SQLite + FTS5\n                                              (AES-256-GCM)\n```\n\nThe `MimirMemoryService` spawns a `mimir` subprocess and communicates via JSON-RPC over stdin/stdout (MCP stdio transport). Each `add_session_to_memory`, `add_memory`, and `search_memory` call translates to a Mimir MCP tool invocation.\n\n## License\n\nMIT — see [Mimir](https://github.com/Perseus-Computing-LLC/mimir) and [Perseus](https://github.com/Perseus-Computing-LLC/perseus) for the backing services.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperseus-computing-llc%2Fadk-mimir-memory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperseus-computing-llc%2Fadk-mimir-memory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperseus-computing-llc%2Fadk-mimir-memory/lists"}