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.
npx agentmods add instructions/wenliangw/memgrid/claude-mdgit clone --depth 1 https://github.com/wenliangw/memgridWrote 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/wenliangw/memgrid/claude-md)<a href="https://agentmods.dev/instructions/wenliangw/memgrid/claude-md"><img src="https://agentmods.dev/badge/instructions/wenliangw/memgrid/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.00104 | $0.00104 |
| Opus 5 | $0.00052 | $0.00052 |
| Sonnet 5 | $0.00021 | $0.00021 |
| Haiku 4.5 | $0.00010 | $0.00010 |
Grade A, and why
memgrid 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 6d 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.
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.
What it actually says
memgrid
🧠 Project Memory (MemGrid)
This project uses MemGrid for persistent memory. Search before each task.
Usage
# Search before starting work
npx memgrid search "your task" --max 10
# Sync after code changes
npx memgrid sync
MCP tools: memgrid_search, memgrid_add, memgrid_extract, memgrid_review
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.
- 6d ago First seen · 21 lines · 104 tokens per session scan A 15a9b067997e
memgrid CLAUDE.md is an instructions file published in the GitHub repository wenliangw/memgrid (2 stars, last pushed 2mo ago), licensed MIT. It adds 104 tokens to every session, about $0.0005 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
remem-mcp AGENTS.md
AGENTS.md instructions for tinhien11/remem-mcp, covering agent rules, always use remem-mcp, before answering or coding, before searching code and for code navigation.
wctx CLAUDE.md
Instructions for Haroon-jay/wctx: This machine runs wctx, an MCP server holding evidence from previous coding sessions across related repositories. Use it as follows.
pollux CLAUDE.md
Claude Code instructions for Wsyjq/pollux, covering claude.md and projectmem (mandatory).
repomemory CLAUDE.md
Instructions for DanielGuru/repomemory, covering repomemory — agent instructions, repository memory (repomemory), what this is, architecture and key technical decisions.
repomemory AGENTS.md
Instructions for DanielGuru/repomemory, covering repomemory — instructions for ai coding agents, project overview, repository structure, how to build and test and key architecture decisions.
cocoindex-code CLAUDE.md
Claude Code instructions for cocoindex-io/cocoindex-code, covering claude.md, build and test commands, architecture, process model and key layers.