Borrowing it
Nothing to install: this file belongs to ndif-team/ndif. 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/ndif-team/ndif/main/CLAUDE.mdgit clone --depth 1 https://github.com/ndif-team/ndifWrote 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/ndif-team/ndif/claude-md)<a href="https://agentmods.dev/instructions/ndif-team/ndif/claude-md"><img src="https://agentmods.dev/badge/instructions/ndif-team/ndif/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.
<a href="https://agentmods.dev/instructions/ndif-team/ndif/claude-md"><img src="https://agentmods.dev/badge/instructions/ndif-team/ndif/claude-md.svg" alt="Reviewed on agentmods" width="80" 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.00823 | $0.00823 |
| Opus 5.5 | $0.00329 | $0.00329 |
| Sonnet 5.5 | $0.00165 | $0.00165 |
| Haiku 4.5 | $0.00082 | $0.00082 |
Grade A, and why
ndif 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 18d 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.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
NDIF — Agent Guide
NDIF is the server behind nnsight: it runs user-submitted intervention code against large models on shared GPUs. This repo is the server; the client is nnsight, whose docs live in its own repo.
Rules
- Branch off
devand open PRs intodev. - Docs change in the same PR as the code that invalidates them.
- Cite code by path + symbol (
src/ndif/services/api/auth.pyverify_api_key), never by line number.pytest tests/test_docs.pychecks paths, symbols and links. - The rest is in CONTRIBUTING.md.
Read this before anything else
Where user code runs depends on one boolean, request.trusted, read from the tags
stamped at ingress from the API key. A trusted block runs inside the model actor process, next to
the weights; an untrusted one runs in a separate runner process driven over a Unix
socket. Whether a model runs its own repo code is the model key's
trust_remote_code field, a different thing; who may deploy one is in
docs/concepts/auth-and-limits.md. With auth off (no
NDIF_POSTGRES_URL) client-supplied tags are honored and unspecified ones
default to trusted — so a bare just up is unauthenticated and runs user code
in-process. Send tags: [] to exercise the runner path without Postgres.
The sandbox is process separation, not a security boundary. Read
docs/concepts/sandbox-execution.md before
changing or describing it.
Where to start
docs/index.md has the by-task table and the section map. If you are new here, read docs/concepts/request-lifecycle.md once; every other page zooms into one of its hops.
Cheat sheet
- No Ray Serve. Deployments are detached Ray actors named
{replica_id}:ModelActor:{model_key}in theNDIFnamespace. Ignore Serve docs. - An actor's exception arrives as a
RayTaskError; read.cause. Over Ray Client a bareisinstanceagainst the original type silently matches nothing. - The API can't reach Ray; Redis is the only durable handoff. Only the
dispatcher, a child of the gunicorn master, holds a Ray client. A popped request
lives in its memory, so an API restart drops in-flight work, and
ray:connectedhas no TTL — health endpoints pass after the dispatcher dies. - Source is baked into the image. Run
just taafter a code change.just ta <svc>tears the whole stack down and brings back only that service and its dependencies; HOT deployments are lost. - The published image runs the core stack in one container.
NDIF_SERVICEdefaults toall: redis, rustfs, ray and the API. The dashboard is optional and is not part ofall. - Provider defaults are
localhost. Inside theraycontainer nothing listens onlocalhost:6379, so compose setsNDIF_REDIS_URLexplicitly. Ray's head port is 6385 from both the CLI andstart.sh.
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.
- 18d ago Changed · +2 lines · +35 tokens per session e6c7fe3e8305
- 20d ago Changed · -230 lines · -4,174 tokens per session 8625d98c9da6
- 1mo ago Changed · +12 lines · +77 tokens per session 2db7f46219c5
- 2mo ago First seen · 280 lines · 4,885 tokens per session scan A ea1917d212c0
ndif CLAUDE.md is an instructions file published in the GitHub repository ndif-team/ndif (51 stars, last pushed yesterday), licensed MIT. It adds 823 tokens to every session, about $0.0033 per session on Opus 5.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-30.
ndif CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ndif CLAUDE.mdndif-team/ndif | Instructions file | 51 | yesterday | MIT | A | 823 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |