m3-memory: Instructions file for Claude Code

CLAUDE.md

m3-memory CLAUDE.md is an instructions file for Claude Code from skynetcmd/m3-memory. It costs 1,901 tokens per session, scanned D, original, Apache-2.0.

A project guide for m3-memory that describes Git rules, release versioning, pre-push checks, and how its separated project roots work.

In plain words
What is it for?
Use it before changing repository roots, tool catalogs, release versions, manifests, hooks, or code that must pass the project’s pre-push checks.
Why use it?
It helps agents avoid split-brain problems, stale generated version files, catalog drift, leaked benchmark data, and invalid pushes.

Instructions file for Claude Code

Written for Claude Code: PreCompact hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions Claude Code.

This is skynetcmd/m3-memory's own configuration. It tells Claude Code how to work on m3-memory 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 m3-memory configures →

Reuse

Borrowing it

Nothing to install: this file belongs to skynetcmd/m3-memory. 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/skynetcmd/m3-memory/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/skynetcmd/m3-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 m3-memory CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/skynetcmd/m3-memory/claude-md/github.svg)](https://agentmods.dev/instructions/skynetcmd/m3-memory/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/skynetcmd/m3-memory/claude-md"><img src="https://agentmods.dev/badge/instructions/skynetcmd/m3-memory/claude-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 m3-memory CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/skynetcmd/m3-memory/claude-md"><img src="https://agentmods.dev/badge/instructions/skynetcmd/m3-memory/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,901 This file is loaded in full into every session.
When invoked 1,901 The same file — it is already loaded in full.
Security scan D 2 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.
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.01901 $0.01901
Opus 5.5 $0.00760 $0.00760
Sonnet 5.5 $0.00380 $0.00380
Haiku 4.5 $0.00190 $0.00190

Measured yesterday against content hash 93fe0ede38f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

m3-memory CLAUDE.md scanned grade D with 2 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 yesterday.

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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- `docs/AGENT_INSTRUCTIONS.md` is PUBLISHED MATERIAL FOR ADOPTERS: a menu of agent-setup guidance for people installing m3, to cut and choose from. It is NOT instructions for the agent working in this repo, and it is

Reads agent configuration directoriesmediumAgent snooping

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

`~/.claude/settings.json` (only `~/.claude.json`, `.mcp.json`, and plugins are
CLAUDE.md · 78 lines

How it starts

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

Git Standards

  • Commit Messages: Do NOT include "Co-Authored-By" lines in commit messages. Focus on clear, concise descriptions of "why" and "what".

  • Pre-push process (MANDATORY, all agents): After cloning, run python bin/setup_hooks.py once to enable the shared pre-push gate. Before any push, the tool-catalog drift check (python bin/check_tool_catalog_drift.py) and bench-data leakage scan must pass. If you change bin/mcp_tool_catalog.py, regenerate the catalog/inventory and update the "N tools" counts in the same change. Full rationale: the "Pre-push process — ALL agents" section in docs/AGENT_INSTRUCTIONS.md. This is enforced by the local hook AND CI, not just convention. The leakage scan runs in python3 and compiles each prohibited pattern independently — do NOT fold it back into one grep -E, where a single pattern the platform's grep rejects disables the whole policy while still printing "no leakage detected". To confirm the gate is alive on this box: python bin/prepush/scan_diff.py --selftest --patterns <policy> (exits non-zero if the policy will not compile).

  • Edited anything under bin/? Run python bin/gen_tool_inventory.py. Each bin/ script has a generated page under docs/tools/ stamped with a hash of its source, and tests/test_generated_docs_fresh.py::test_tool_pages_are_fresh fails when the source moves without the page. This is a THIRD generator, separate from gen_tool_manifest.py and gen_mcp_inventory.py (which cover the MCP catalog), and neither the pre-push hook nor check_tool_catalog_drift.py runs it — only the full suite catches it, at the end of a ~5.5-minute run. Cheapest habit: regenerate right after the edit, not after the failure. (Hit three times in one session, 2026-09-08.)

  • Cutting a release (version bump): The version has ONE source of truth — pyproject.toml [project].version. Do NOT hand-edit version strings in the derived manifests. Instead: (1) bump pyproject.toml, (2) run python bin/sync_manifest_versions.py — it writes the new version into every derived manifest (server.json, mcp-server.json, .claude-plugin/plugin.json, plugins/antigravity/plugin.json, plugins/codex/.codex-plugin/plugin.json, gemini-extension.json; the plugin manifests are served straight from main to every user's /plugin install), plus the README's PyPI badge (docs/badges/pypi-version.svg) and SECURITY.md's "Supported Versions" row, (3) commit all together. tests/test_tool_count_drift.py::test_all_manifests_synced_to_pyproject_version (runs --check) fails the build if you skip step 2, so a stale manifest can't ship. Plugin manifest descriptions say "100+ MCP tools", never an exact count (also test-guarded).

Read the full file on GitHub · 78 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. yesterday Changed · +1 lines · +48 tokens per session 93fe0ede38f4
  2. 2d ago Changed · +4 lines · +78 tokens per session 1aece1104965
  3. 16d ago Changed · +4 lines · +173 tokens per session 420a41714738
  4. 18d ago Changed · +5 lines · +107 tokens per session scan B → D 9594399c3533
  5. 1mo ago Changed · +2 lines · +195 tokens per session cc1d4863d017
  6. 1mo ago First seen · 62 lines · 1,300 tokens per session scan B 27cc57e4d8a5

Subscribe to this mod's changes

m3-memory CLAUDE.md is an instructions file published in the GitHub repository skynetcmd/m3-memory (29 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,901 tokens to every session, about $0.0076 per session on Opus 5.5. A static security scan graded it D with 2 findings (hidden instructions, 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,649 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,384 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,159 tokens