Borrowing it
Nothing to install: this file belongs to achatainga/mcp-code-context. 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/achatainga/mcp-code-context/main/CLAUDE.mdgit clone --depth 1 https://github.com/achatainga/mcp-code-contextWrote 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/achatainga/mcp-code-context/claude-md)<a href="https://agentmods.dev/instructions/achatainga/mcp-code-context/claude-md"><img src="https://agentmods.dev/badge/instructions/achatainga/mcp-code-context/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/achatainga/mcp-code-context/claude-md"><img src="https://agentmods.dev/badge/instructions/achatainga/mcp-code-context/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.00810 | $0.00810 |
| Opus 5.5 | $0.00324 | $0.00324 |
| Sonnet 5.5 | $0.00162 | $0.00162 |
| Haiku 4.5 | $0.00081 | $0.00081 |
Grade A, and why
mcp-code-context 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 today.
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 — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Project Instructions: mcp-code-context
Tech Stack
- Runtime: Node.js >= 18.0.0 (Pure ESM,
"type": "module") - Language: TypeScript 5.7.2 (Strict, ES2022)
- AST Engine: Pure WebAssembly Tree-sitter (
web-tree-sitterv0.25.1 +tree-sitter-wasmsv0.1.13) - Protocols: Model Context Protocol (
@modelcontextprotocol/sdkv1.29.0) with Dual Transport (Stdio + SSE) - Persistence: In-Memory SQLite via WebAssembly (
sql.jsv1.14.1) + Rolling Backups (BackupManager) - Concurrency & Safety: Cross-process atomic file locking (
proper-lockfilev4.1.2) + Path Traversal Validation (SecurityValidator)
Build & Run
- Build:
npm run build(runstscand copies JSON schemas todist/) - Dev:
npm run dev - Start:
npm start - Rebuild:
npm run rebuild(npm run clean && npm run build) - Clean:
npm run clean(rimraf dist dist-tests)
Testing
- Fast Unit Test Runner:
npx vitest run(44 test suites, 189 tests) - Single Suite:
npx vitest run tests/unit/operations/<file>.spec.ts - Adversarial Vectors Test:
npm run test:vectors - Full Production Integration Suite:
npm test(builds tests, runs security, file-lock, rate-limiter, telemetry, backup-manager, index-manager, and wasm-parsers test suites)
Project Structure
src/
├── core/ # Engine lifecycle, SecurityValidator, SessionManager
├── parsers/ # BaseParser, ParserRegistry, 10 language WASM grammars
├── operations/ # AST operations (read, write, taint, type inference, diff, query)
├── tools/ # MCP tool definitions and request dispatch handlers
│ ├── toolDefinitionsCore.ts # Core AST & analysis tool schemas
│ ├── toolDefinitionsAdmin.ts # Admin & session tool schemas
│ ├── readHandlers.ts # Read & static analysis handlers
│ └── writeHandlers.ts # 2-Phase atomic write handlers
└── utils/ # FileLock, BackupManager, Telemetry, AuditLogger, ProjectRoot
Engineering Guardrails & Conventions
- WASM Tree Lifecycle: Always call
tree.delete()infinallyblocks for every parsed Tree-sitter tree to prevent linear memory leaks. - 2-Phase Surgical Write Protocol: Write tools (
write_file_surgical,insert_symbol,remove_symbol,rename_symbol) must execute dry-run preview diffs on Phase 1, issue an ephemeralconfirmationToken, and require explicit confirmation (confirm: true+ token) on Phase 2. - SRE Physical Resource Bounds:
- Stream processing chunks must not exceed 8,192 bytes.
- Max file size for full AST loading is capped at 2MB by
SecurityValidator. - External command execution (e.g.
git diff) must useexecFileAsyncwithout a shell, enforceisValidGitRef, and specifytimeout: 15000ms.
- Thermo-Nuclear Maintainability: Keep handler files decomposed under 1,000 lines. When adding new tools, extract dedicated submodule handlers instead of expanding
readHandlers.ts. - Git Conventions: Conventional Commits (
feat(scope): ...,fix(scope): ...,chore(scope): ...).
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.
- today First seen · 47 lines · 810 tokens per session scan A 9a158964237e
mcp-code-context CLAUDE.md is an instructions file published in the GitHub repository achatainga/mcp-code-context (3 stars, last pushed today), licensed MIT. It adds 810 tokens to every session, about $0.0032 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-11-08.
mcp-code-context CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-code-context CLAUDE.mdachatainga/mcp-code-context | Instructions file | 3 | today | MIT | A | 810 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | 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 | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |