MAMA: Instructions file for Claude Code

AGENTS.md

MAMA AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from jungjaehoon-lifegamez/MAMA. It costs 4,424 tokens per session, scanned B, original, MIT.

A project knowledge base for MAMA, a memory system for Claude that records why decisions were made. It is organized as a monorepo, meaning one repository containing several related packages.

In plain words
What is it for?
Use it when working on MAMA's memory storage, search, MCP server, Claude Code plugin, standalone agent, or benchmark package.
Why use it?
It shows where the main components live and identifies required references and conventions, reducing confusion when changing a multi-package project.

Instructions file for Claude CodeCodexOpenCode

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

This is jungjaehoon-lifegamez/MAMA's own configuration. It tells Claude Code, Codex and OpenCode how to work on MAMA 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 MAMA configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jungjaehoon-lifegamez/MAMA. 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/jungjaehoon-lifegamez/MAMA/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/jungjaehoon-lifegamez/MAMA

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 MAMA AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jungjaehoon-lifegamez/mama/agents-md"><img src="https://agentmods.dev/badge/instructions/jungjaehoon-lifegamez/mama/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,424 This file is loaded in full into every session.
When invoked 4,424 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.04424 $0.04424
Opus 5 $0.02212 $0.02212
Sonnet 5 $0.00885 $0.00885
Haiku 4.5 $0.00442 $0.00442

Measured 4d ago against content hash a3e0ae7e355a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

MAMA 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

# Attackers can read/write ANY file, execute ANY command, steal keys
AGENTS.md · 432 lines

How it starts

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

MAMA PROJECT KNOWLEDGE BASE

Intent first — 최상위 목적과 완료 판정

작업 시작/리쥼 전에 루트 INTENT.md를 읽고 기존 계획을 그 목적과 사용자 시나리오에 연결한다. 목적·성공 기준을 기술 작업이나 테스트 통과로 축소하지 않는다. 각 작업 완료 후 개발 목적 점검을 수행하고 점검 기록에 결과·근거·남은 실패를 남긴다. 하위 작업 완료와 최상위 목표 완료를 구분한다. 같은 버전의 공통 문서를 불필요하게 재독하지 않는다.

Generated: 2026-02-08 16:13:50
Commit: 254557e
Branch: refactor/mcp-server-core-dedup


OVERVIEW

MAMA (Memory-Augmented MCP Assistant) — Contract-first memory system for Claude. Tracks WHY you decided, not just WHAT you chose. Prevents vibe coding breakage across sessions. Monorepo with 5 packages: MCP server (npm), Claude Code plugin (marketplace), MAMA OS standalone agent (npm), shared core (npm), MemoryBench (internal).

Stack: JavaScript (MCP/plugin/legacy core), TypeScript (standalone + newer core surfaces), pnpm workspaces, Vitest, SQLite + pure-TS cosine similarity, Transformers.js (local embeddings), GitHub Actions


STRUCTURE

MAMA/
├── packages/
│   ├── mama-core/                  # Shared foundation (embeddings, db, memory API, context compile)
│   ├── mcp-server/                 # MCP server for Claude Desktop/Code (4 tools: save/search/update/checkpoint)
│   ├── claude-code-plugin/         # Claude Code plugin (commands + hooks + local mama-core copies)
│   ├── standalone/                 # MAMA OS agent (Discord/Slack/Telegram, multi-agent swarm, CLI, web UI)
│   └── memorybench/                # Memory retrieval benchmarking framework (bun, internal)
├── docs/                           # User-facing documentation (Diátaxis framework)
├── .mama/                          # Project identity (SOUL.md, IDENTITY.md, config.json)
├── .sisyphus/                      # Internal planning artifacts (drafts/, plans/)
├── .docs/                          # Development docs (PRDs, tech specs, epics, stories)
├── .claude-plugin/                 # Local dev marketplace config
├── scripts/                        # Build utilities (verify-install.js, sync-check.js)
├── .husky/                         # Git hooks (pre-commit: lint-staged + gitleaks + typecheck + tests)
└── CLAUDE.md                       # Claude Code guidance (CRITICAL: read this before editing)

Read the full file on GitHub · 432 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 Changed · +8 lines · +151 tokens per session a3e0ae7e355a
  2. 12d ago First seen · 424 lines · 4,273 tokens per session scan B 679f867aa2b8

Subscribe to this mod's changes

MAMA AGENTS.md is an instructions file published in the GitHub repository jungjaehoon-lifegamez/MAMA (13 stars, last pushed yesterday), licensed MIT. It adds 4,424 tokens to every session, about $0.0221 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). 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

repobrain copilot-instructions.md

Copilot instructions for study8677/repobrain, covering github copilot bootstrap instructions and hard rule — query the repobrain hub first.

study8677/repobrain · 229 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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,469 tokens