mcp-automem AGENTS.md

mcp-automem AGENTS.md is an instructions file for Codex, OpenCode from verygoodplugins/mcp-automem. It costs 8,172 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 CodexOpenCode

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.

agentmods
npx agentmods add instructions/verygoodplugins/mcp-automem/agents-md
Clone the repo
git clone --depth 1 https://github.com/verygoodplugins/mcp-automem

Made for: 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 8,172 This file is loaded in full into every session.
When invoked 8,172 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
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 $0.08172 $0.08172
Opus 5 $0.04086 $0.04086
Sonnet 5 $0.01634 $0.01634
Haiku 4.5 $0.00817 $0.00817

Measured 4d ago against content hash b739fff23c9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 · 536 lines

How it starts

The opening of the file, as written. The whole thing — 536 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.

Commit Standards (Required)

This repo uses Conventional Commits so Release Please can generate releases reliably.

Accepted examples:

fix: prevent stdout corruption in stdio mode
feat: add cursor setup command
chore: update dependencies
docs: clarify Claude Desktop config

Notes:

  • PR titles must be Conventional Commit format because we squash-merge and the PR title becomes the merge commit message.
  • A git commit-msg hook (Husky + Commitlint) is included to catch mistakes locally, and CI enforces PR titles.

Read the full file on GitHub · 536 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. 4d 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 (64 stars, last pushed today), licensed MIT. It adds 8,172 tokens to every session, about $0.0409 per session on Opus 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.