ContextAtlas CLAUDE.md

ContextAtlas CLAUDE.md is an instructions file for Claude Code from traviswye/ContextAtlas. It costs 10,609 tokens per session, scanned A, original, MIT.

Project instructions for ContextAtlas, an MCP server that gives coding agents organized information about a codebase. It combines code structure with design decisions, documentation, and Git history.

In plain words
What is it for?
Use them when modifying ContextAtlas so changes follow its architecture, technology choices, dependency limits, and project documentation.
Why use it?
They help an agent understand how the project is built and which technical decisions must not be changed. They also record constraints such as the required language, dependencies, and setup of external tools.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions subagents; positional $N argument.

Install

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.

agentmods
npx agentmods add instructions/traviswye/contextatlas/claude-md
Clone the repo
git clone --depth 1 https://github.com/traviswye/ContextAtlas

Made for: Claude Code.

Wrote 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.

agentmods badge for ContextAtlas CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/traviswye/contextatlas/claude-md.svg)](https://agentmods.dev/instructions/traviswye/contextatlas/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/traviswye/contextatlas/claude-md"><img src="https://agentmods.dev/badge/instructions/traviswye/contextatlas/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 10,609 This file is loaded in full into every session.
When invoked 10,609 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.10609 $0.10609
Opus 5 $0.05305 $0.05305
Sonnet 5 $0.02122 $0.02122
Haiku 4.5 $0.01061 $0.01061

Measured 6d ago against content hash 8ec23a8743ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ContextAtlas 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.

CLAUDE.md · 794 lines

How it starts

The opening of the file, as written. The whole thing — 794 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

Instructions for Claude Code working on the ContextAtlas project.


What This Project Is

ContextAtlas is an MCP server that gives Claude Code a curated atlas of a user's codebase — fusing LSP-grade structural precision with architectural intent from ADRs, docs, and git history, delivered in single-call context bundles.

Read DESIGN.md for the full architecture. Read RUBRIC.md for benchmark methodology. Read README.md for the public-facing positioning.

Critical Constraints

These are decisions already made. Do not relitigate them.

  • Language: TypeScript (Node 20+). No Python or Go in the server code itself — those are supported as target languages via language adapters, not as implementation languages.
  • Dependencies: Minimize. Required: @modelcontextprotocol/sdk, @anthropic-ai/sdk, better-sqlite3, a YAML parser, a glob library. Do not add state management libraries, ORMs, or HTTP frameworks.
  • typescript-language-server placement: User-provided, not a bundled dependency. The TS adapter spawns it as a subprocess, but the binary itself is expected to be on the user's PATH or pointed to via config. This keeps the package lean and lets users choose their tsserver version. package.json lists it as a peerDependency — do not promote to a direct dependency.
  • LSP client strategy: Raw JSON-RPC over stdio. No vscode-languageclient / vscode-jsonrpc dependency. The LSP subset we need (initialize, documentSymbol, references, diagnostics, shutdown) is ~150 lines of framing and fits comfortably in src/adapters/lsp-client.ts without pulling VS Code's client machinery. Rationale: dependency minimization per the constraint above, and cleaner control over subprocess lifecycle.
  • Storage: SQLite via better-sqlite3. Single file. No Postgres, no Redis, no external services.
  • MCP SDK: @modelcontextprotocol/sdk. Follow their patterns.
  • Output format: Compact text by default, JSON available via input parameter. Compact format is defined in DESIGN.md.
  • Symbol ID format: sym:<lang-short-code>:<path>:<name> (see ADR-01). Line numbers are NOT part of the ID — they live as a field on the Symbol record. Locked; do not change without updating ADR-01, DESIGN.md, and bumping the version.
  • Extraction model: claude-opus-4-7 at default effort. Not extended thinking. See DESIGN.md section on extraction pipeline.
  • Pre-drafted extraction prompt: src/extraction/prompt.ts holds the EXTRACTION_PROMPT constant — validated on two empirical bases: (1) pre-scaffolding ADR validation on 12 production-grade documents (100% JSON parse success, 169 claims extracted correctly across hono and httpx ADRs); (2) v0.3 Step 9 docstring calibration on 13 samples across TypeScript / Python / Go (11/13 PASS; JSON parse 100%; severity discipline 100%; cost $0.45). The prompt handles ADR + docstring inputs via H1 (single shared prompt) design. The extraction pipeline imports from this file; do not duplicate the prompt elsewhere. The prompt content, severity taxonomy, and model choice are frozen per ADR-02; call signatures, error handling, and output validation around it evolve with the pipeline. Refinements within the prompt require calibration evidence parallel to v0.3 Step 9.

Read the full file on GitHub · 794 lines

Changes

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.

  1. 6d ago First seen · 794 lines · 10,609 tokens per session scan A 8ec23a8743ef

Subscribe to this mod's changes

ContextAtlas CLAUDE.md is an instructions file published in the GitHub repository traviswye/ContextAtlas (7 stars, last pushed 2mo ago), licensed MIT. It adds 10,609 tokens to every session, about $0.0530 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.