mcp-automem: Instructions file for Claude Code

AGENTS.md

mcp-automem AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from verygoodplugins/mcp-automem. It costs 9,957 tokens per session, scanned B, original, MIT.

Repository guidance for MCP AutoMem, a server that connects AI assistants to a memory service. It covers storing, recalling, searching, and relating memories, plus building and testing the TypeScript project.

In plain words
What is it for?
Working on MCP tool connections, memory features, session recall, optional storage reminders, hot-reload development, builds, tests, and formatting.
Why use it?
It gives coding agents the project rules and commands needed to change, build, format, and check the server correctly.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is verygoodplugins/mcp-automem's own configuration. It tells Claude Code, Codex and OpenCode how to work on mcp-automem itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-automem configures →

Reuse

Borrowing it

Nothing to install: this file belongs to verygoodplugins/mcp-automem. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/verygoodplugins/mcp-automem/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/verygoodplugins/mcp-automem

Made for: Claude Code, Codex, OpenCode.

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 mcp-automem AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/verygoodplugins/mcp-automem/agents-md/github.svg)](https://agentmods.dev/instructions/verygoodplugins/mcp-automem/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/verygoodplugins/mcp-automem/agents-md"><img src="https://agentmods.dev/badge/instructions/verygoodplugins/mcp-automem/agents-md/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 mcp-automem AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/verygoodplugins/mcp-automem/agents-md"><img src="https://agentmods.dev/badge/instructions/verygoodplugins/mcp-automem/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,957 This file is loaded in full into every session.
When invoked 9,957 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.09957 $0.09957
Opus 5.5 $0.03983 $0.03983
Sonnet 5.5 $0.01991 $0.01991
Haiku 4.5 $0.00996 $0.00996

Measured 2d ago against content hash 824971fc0d34, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

mcp-automem AGENTS.md scanned grade B with 1 finding 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 2d ago.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **CLI installer (settings-level alternative + migration path):** the `claude-code` command writes hook scripts into `~/.claude/hooks/` and merges hook registrations plus exactly the six `mcp__memory__*` permissions int
AGENTS.md · 620 lines

How it starts

The opening of the file, as written. The whole thing — 620 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

This file provides guidance to coding agents (Claude Code, Cursor, Codex, etc.) when working with code in this repository. It is the single source of truth; CLAUDE.md imports it via @AGENTS.md.

Migration note: if you previously had a local, gitignored AGENTS.md, delete it before pulling (or run git clean -f AGENTS.md) to avoid checkout/merge errors.

Project Overview

MCP AutoMem is an MCP (Model Context Protocol) server that bridges AI assistants like Claude with the AutoMem memory service. It enables AI to store, recall, and associate memories using FalkorDB (graph database) and Qdrant (vector search).

Core Purpose:

  • Translate MCP tool calls into AutoMem API requests
  • Provide memory management for AI assistants (storage, hybrid search, relationships)
  • Support Claude Code integration with session-recall and opt-in storage-nudge hooks

Build & Development

# Build TypeScript to dist/
npm run build

# Development with hot-reload
npm run dev

# Test server help output
npm test

# Publish preparation
npm run prepublishOnly  # Runs build automatically

# Formatting (CI runs format:check before lint)
npm run format
npm run format:check

Prettier owns src/, tests/, scripts/, and repo config files. .prettierignore excludes templates/, plugins/, and skills/ because those are regenerated by the memory-policy sync on every build — formatting them would fight the generator. Markdown is excluded too: tests/docs/integration-coverage.test.ts asserts against README/INSTALLATION prose and table sections, so reflowing them risks silent coverage breakage.

Four JSON files are checked with Prettier's json-stringify parser instead of its default json parser, through an overrides block in .prettierrc: manifest.json, server.json, .claude-plugin/marketplace.json and .release-please-manifest.json. Release Please rewrites all four on a release PR, and each of its JSON updaters ends in jsonStringify — JSON.stringify(parsed, replacer, detectIndent(content).indent) — which puts every array element on its own line. The default parser collapses any array that fits printWidth, so the two tools disagree permanently and format:check, which the test job runs before Build, fails the release PR. That cost a hand-fix commit on the 0.16.0 release. json-stringify prints what JSON.stringify prints, which is why package.json was never affected — Prettier infers that parser for it by default. Keeping these four on it means Prettier still validates them and the release PR's diff stays at the version line. Add any new json-type extra-files entry to that overrides block as well.

Read the full file on GitHub · 620 lines

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. 2d ago Changed · -76 lines · -1,396 tokens per session 824971fc0d34
  2. 4d ago Changed · +21 lines · +409 tokens per session e07d5d77db18
  3. 5d ago Changed · +139 lines · +2,772 tokens per session d210fe185ce2
  4. 1mo ago First seen · 536 lines · 8,172 tokens per session scan B b739fff23c9f

Subscribe to this mod's changes

mcp-automem AGENTS.md is an instructions file published in the GitHub repository verygoodplugins/mcp-automem (66 stars, last pushed 2d ago), licensed MIT. It adds 9,957 tokens to every session, about $0.0398 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens