Borrowing it
Nothing to install: this file belongs to danielsimonjr/memory-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/danielsimonjr/memory-mcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/danielsimonjr/memory-mcpWrote 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.
[](https://agentmods.dev/instructions/danielsimonjr/memory-mcp/claude-md)<a href="https://agentmods.dev/instructions/danielsimonjr/memory-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/danielsimonjr/memory-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04722 | $0.04722 |
| Opus 5 | $0.02361 | $0.02361 |
| Sonnet 5 | $0.00944 | $0.00944 |
| Haiku 4.5 | $0.00472 | $0.00472 |
Grade A, and why
memory-mcp CLAUDE.md 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Build & Development Commands
bun install # Install all dependencies (bun.lock is authoritative)
bun run build # Build TypeScript → JavaScript (tsc)
bun run test # Run tests with coverage (vitest)
bun run typecheck # Strict type checking (includes --noUnusedLocals --noUnusedParameters)
bun run watch # Watch mode for development
bun run clean # Remove dist/ directory
# Run a single test file
bunx vitest run tests/e2e/tools/entity-tools.test.ts
# Run tests matching a pattern
bunx vitest run -t "should create entities"
# Run server locally (after building) — Node is the shipped runtime
node dist/index.js
# Skip benchmark tests
# PowerShell:
$env:SKIP_BENCHMARKS=1; bun run test
# Bash/Unix:
SKIP_BENCHMARKS=1 bun run test
# Standalone tools (in tools/ directory — still npm + package-lock.json)
bun run tools:install # Install dependencies for all standalone tools
bun run tools:build # Build all standalone tools
Architecture Overview
This is an MCP protocol wrapper around the @danielsimonjr/memoryjs library, exposing 241 knowledge graph tools via the Model Context Protocol. After the Phase 13 extraction, this repo contains only 5 TypeScript source files — all core graph logic lives in memoryjs (currently ^3.1.0). Phase 15 (v12.2.0) added 23 tools surfacing memoryjs v1.14+ features (bitemporal validity, OCC, RBAC, procedural memory, active retrieval, causal reasoning, world model). Phase 16 (v12.3.0) added 53 tools surfacing memoryjs v2.1.0 — do_not_remember exclusions (5), decision rationale + ADR markdown dual-write (10), structured project context (12), heuristic guidelines (10), tool affordance + ToolCallObserver pipeline (11), observation dedup (2), spell correction (3). Releases after Phase 16 added 12 more tools — a small "active project scope" pair (v12.3.2 backport) and a v12.5.0 engineering/diagnostics category. v12.7.0 upgraded to memoryjs 3.0.0 and added 16 tools — event memory (5), reconstructive memory (3 + 2 snapshot persistence), relation consolidation (2), agent reflection (4) — plus v3 graph-channel/explain options on hybrid_search, bringing the total to 241. Latest: v12.7.2 (npm + plugin) — memoryjs ^3.1.0 (Node 24 better-sqlite3 prebuilds + llamacpp embedding provider).
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.
- yesterday Changed · +25 tokens per session 553d93981980
- 7d ago First seen · 219 lines · 4,697 tokens per session scan A aa6e71872fe5
memory-mcp CLAUDE.md is an instructions file published in the GitHub repository danielsimonjr/memory-mcp (3 stars, last pushed 2d ago), licensed MIT. It adds 4,722 tokens to every session, about $0.0236 per session on Opus 5. 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-08-31.
Other instructions, from other repositories
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.
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).
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.
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
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.