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/nacre-work/nacre/claude-mdgit clone --depth 1 https://github.com/nacre-work/nacreWrote 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/nacre-work/nacre/claude-md)<a href="https://agentmods.dev/instructions/nacre-work/nacre/claude-md"><img src="https://agentmods.dev/badge/instructions/nacre-work/nacre/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 | $0.43437 | $0.43437 |
| Opus 5 | $0.21719 | $0.21719 |
| Sonnet 5 | $0.08687 | $0.08687 |
| Haiku 4.5 | $0.04344 | $0.04344 |
Grade C, and why
nacre CLAUDE.md scanned grade C 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 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.
Cloud metadata endpointhighServer-side request forgery
One request to 169.254.169.254 can return temporary IAM credentials.
`http://169.254.169.254/…`, the API beside it, or the vector store (no Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
`docs/quickstart.md`'s path from a clean clone to a first search was four `curl` How it starts
The opening of the file, as written. The whole thing — 2,933 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Nacre — core
A self-hosted knowledge index with fine-grained access control. Agents reach it over MCP, applications over a REST API. Apache 2.0; the commercial modules live in a separate private repository.
Read docs/authz.md before writing anything. Every other subsystem depends on the permission model, and reworking it after search exists is expensive. Work order is in docs/README.md.
The six invariants
Breaking one of these is a security incident, not a bug. They are not negotiable in a PR.
- The organization comes from the token — never from a body, path, or header.
- Access filtering is a pre-filter, never a post-filter. The filter goes
inside the index traversal so
top_kreturns k permitted results. - A failure to evaluate permissions denies access. There is no "couldn't compute it, let it through" path.
- "No permission" and "no such object" are indistinguishable —
404, never403, including the wording of the message. - A deleted document is never returned, including before garbage collection.
deleted = falsebelongs in every query. writedoes not implyread.adminimplies both. This is the opposite of most permission systems; do not "fix" it.
Never, in any change
- Filter search results after they come back from the vector database.
- Accept
org_idfrom a request body, path, or header. - Return
403where the object is invisible. - Log document contents or full query text.
- Ask for a larger
top_kand trim on permission — that is a post-filter that also costs more. Trimming on relevance over an already-permitted candidate set is what reranking is, and it is allowed; the test is whether the answer can end up smaller than the number of permitted matches. - Skip the ACL filter in one branch of a hybrid query. Every prefetch branch carries it; one omission is a leak.
- Query outside
withOrgwithout saying which mechanism permits it. There are two, and only two:whileAuthenticatingfor resolving a credential, andacrossOrganizationsfor the worker's queue. A rawpool.connect()that reads a tenant table is a query that works in development and raises in production, because development connects as a superuser and the policies do not apply to one.
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.
- 4d ago First seen · 2,933 lines · 43,437 tokens per session scan C 7aba1f2f57c9
nacre CLAUDE.md is an instructions file published in the GitHub repository nacre-work/nacre (0 stars, last pushed 6d ago), licensed Apache-2.0. It adds 43,437 tokens to every session, about $0.2172 per session on Opus 5. A static security scan graded it C with 2 findings (cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
weaviate CLAUDE.md
Claude Code instructions for weaviate/weaviate, covering claude.md, no bug is ever out of scope, build & run, build the binary (cgoenabled=0, static linking) and build debug binary (with delve support).
mcp-memory-service CLAUDE.md
Claude Code instructions for doobidoo/mcp-memory-service, covering claude.md, non-negotiables (hard rules), critical directives, operational rules and auto-save learnings.
mcp-memory-service AGENTS.md
AGENTS.md instructions for doobidoo/mcp-memory-service, covering gitnexus mcp, always start here, skills, tools reference and resources reference.
meme-search CLAUDE.md
Instructions for neonwatty/meme-search, covering claude.md, 📁 file organization guidelines, 🤖 task agent usage guidelines, when to use task agents and documentation lookup pattern.
dograh AGENTS.md
AGENTS.md instructions for dograh-hq/dograh, covering dograh - project overview, project structure, tech stack, local development and environment configuration.
commonly CLAUDE.md
Claude Code instructions for Team-Commonly/commonly, covering claude.md / agents.md, 🧠 product vision & architecture philosophy, what commonly is, the architecture model and key concepts.