# mimir agent memory

> Benchmark-gated agent memory that only retains lessons proven to improve performance.

mimir agent memory is a paid AI agent skill on Agensi by Kiran Sala, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Kiran Sala](https://www.agensi.io/creators/kiran-sala)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mimir-agent-memory
- Tags: ai-agents, llm-ops, prompt-engineering, python, claude-code

## About this skill

Stop wasting tokens on agents that repeat the same mistakes. Most agent memory layers keep every interaction, cluttering context with irrelevant noise. Mimir solves this by implementing benchmark-gated memory, ensuring only lessons proven to improve performance are retained. It captures failures, extracts rules, and validates them via a rigorous before-and-after testing phase.

### What it does
- **Benchmark-gated retention** ensures only lessons that measurably improve agent scores are promoted to the permanent store.
- **Bi-temporal lifecycle management** tracks lessons through active, quarantined, superseded, or retired states without hard-deleting history.
- **HMAC-signed citations** provide cryptographic proof that every lesson is traceable back to the specific failure episodes that created it.
- **Multi-tool integration** supports Claude Code, Cline, Hermes, and any system capable of running shell commands with JSON on stdin.
- **MCP server support** exposes recall and consolidation tools to agents via standard Model Context Protocol.

### How it works
1. **Capture** logs episode data including actions, context, and consequences into an append-only JSONL file.
2. **Consolidate** triggers an LLM judge to extract candidate rules from failure episodes and perform contradiction checks.
3. **Admit** runs a counterfactual probe to verify the rule clears the epsilon noise-band gate before writing to the vector store.
4. **Recall** retrieves ranked, confidence-gated lessons during active sessions to guide agent behavior.

### Frameworks & tools
Built with Python 3.10+, LanceDB for vector storage, and fastembed for local ONNX-based semantic embeddings. It integrates directly with Claude Code and Cline settings.

### Why this beats prompting it yourself
Manual prompting cannot verify if a "lesson" actually helps or hurts future performance. Mimir automates the WARM vs. COLD benchmarking process, preventing context bloat by filtering out speculative or ineffective instructions.

### Use cases
- **Coding agents** that need to learn project-specific architectural constraints after a single failed PR.
- **Long-running workflows** where agents must avoid repeating expensive API errors or logic loops.
- **Standardized engineering teams** looking to distribute HMAC-signed "lesson packs" across multiple developer environments.
- **Performance auditing** to visualize how specific memory injections correlate with task success rates.

### Known limitations
Requires Python 3.10 or higher. The default bag-of-words embedder is basic, and semantic recall requires the optional fastembed dependency. Manual consolidation is needed if auto-logs show low episode counts.

## Requires

- Python 3.10+
- pip

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the mimir agent memory skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does Mimir differ from standard long-term memory layers?

Mimir solves "context bloat" and performance degradation by using a benchmark-gated system that only stores lessons proven to improve agent scores, preventing your agent from repeating mistakes or being distracted by irrelevant history.

### Which AI agents and frameworks are compatible with Mimir?

Mimir is designed for flexibility and works with Claude Code, Cline, Hermes, and any agent system that can execute shell commands or utilize the Model Context Protocol (MCP).

### What exactly is included in the Mimir agent memory purchase?

The package includes the core Mimir engine, an MCP server for easy integration, the HMAC-signing utility for lesson verification, and a pre-configured LanceDB setup for local vector storage.

### Are there any specific technical or hardware requirements to run Mimir?

Yes, Mimir requires Python 3.10 or higher and includes an optional 'fastembed' dependency if you wish to use local ONNX-based semantic embeddings for more advanced memory recall.

### How does the system ensure that a "lesson" actually improves agent performance?

Mimir uses a 'Consolidate and Admit' workflow where an LLM judge extracts rules and verifies them through counterfactual probes, ensuring only high-confidence, performance-enhancing lessons enter the permanent vector store.

### Can I manually manage or override the lessons that Mimir stores?

While Mimir can automate much of the process, users can trigger manual consolidation if episode counts are low or use the bi-temporal lifecycle tools to retire or supersede specific lessons as their codebase evolves.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
