ai-memory

ai-memory is a plugin for Claude Code from akitaonrails/ai-memory. Its token cost is not measured, scanned A, original, MIT.

A plugin that records sanitized coding-agent session events and provides long-term memory across sessions and agent tools. It sends records to your own ai-memory server and requires the ai-memory 3.0 or later binary.

In plain words
What is it for?
It is for capturing session activity, connecting agents to an ai-memory server, and providing memory tools across sessions and agent environments.
Why use it?
It reduces repeated explanations by preserving selected context between sessions, while applying configured exclusions before sending records.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest.

Good fit It is for capturing session activity, connecting agents to an ai-memory server, and providing memory tools across sessions and agent environments.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add akitaonrails/ai-memory
/plugin install ai-memory
About the project

ai-memory is a shared long-term memory system for coding agents that preserves project knowledge, unfinished work, failed approaches, and open questions across tools and machines. It is used by individual developers and teams to hand work between different coding agents and continue projects without repeating the context.

akitaonrails/ai-memory · 9,421 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/akitaonrails/ai-memory

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-memory

README.md
[![agentmods](https://agentmods.dev/badge/plugins/akitaonrails/ai-memory/claude-code/github.svg)](https://agentmods.dev/plugins/akitaonrails/ai-memory/claude-code)
Your own site
<a href="https://agentmods.dev/plugins/akitaonrails/ai-memory/claude-code"><img src="https://agentmods.dev/badge/plugins/akitaonrails/ai-memory/claude-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-memory

Your own site · 80×15
<a href="https://agentmods.dev/plugins/akitaonrails/ai-memory/claude-code"><img src="https://agentmods.dev/badge/plugins/akitaonrails/ai-memory/claude-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

ai-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/claude-code/.claude-plugin/plugin.json · 41 lines

What it actually says

{
  "name": "ai-memory",
  "displayName": "ai-memory",
  "version": "3.0.1",
  "description": "Long-term memory across sessions and harnesses. Hands each lifecycle event to the installed ai-memory binary, which applies your capture exclusions and sends a sanitized record only to your ai-memory server (default http://127.0.0.1:49374). Adds the ai-memory MCP tools. No telemetry. Requires the ai-memory binary, 3.0 or later. In Cowork, capture runs on your computer and needs ai-memory installed there; the memory tools still work.",
  "author": {
    "name": "AkitaOnRails",
    "url": "https://github.com/akitaonrails"
  },
  "homepage": "https://aimemory.sh",
  "repository": "https://github.com/akitaonrails/ai-memory",
  "license": "MIT",
  "keywords": [
    "memory",
    "mcp",
    "hooks",
    "handoff",
    "context"
  ],
  "userConfig": {
    "server_url": {
      "type": "string",
      "title": "ai-memory server URL",
      "description": "Base URL of the ai-memory server. Leave empty to use the server_url from your ai-memory config (http://127.0.0.1:49374 for a local install).",
      "default": ""
    },
    "ai_memory_bin": {
      "type": "string",
      "title": "ai-memory executable",
      "description": "Absolute path to the ai-memory binary, only needed when it is not on PATH. A relative path is ignored.",
      "default": "ai-memory"
    },
    "data_dir": {
      "type": "string",
      "title": "ai-memory data directory",
      "description": "Only for an install that uses a non-default data directory.",
      "default": ""
    }
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed dca267612612
  2. 2d ago First seen · 41 lines scan A 811b12673d9e

Subscribe to this mod's changes

ai-memory is a plugin published in the GitHub repository akitaonrails/ai-memory (9,421 stars, last pushed today), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.