Borrowing it
Nothing to install: this file belongs to jahala/tilth. 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/jahala/tilth/main/CLAUDE.mdgit clone --depth 1 https://github.com/jahala/tilthWrote 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/jahala/tilth/claude-md)<a href="https://agentmods.dev/instructions/jahala/tilth/claude-md"><img src="https://agentmods.dev/badge/instructions/jahala/tilth/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/jahala/tilth/claude-md"><img src="https://agentmods.dev/badge/instructions/jahala/tilth/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.02038 | $0.02038 |
| Opus 5.5 | $0.00815 | $0.00815 |
| Sonnet 5.5 | $0.00408 | $0.00408 |
| Haiku 4.5 | $0.00204 | $0.00204 |
Grade A, and why
tilth 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 19d 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 — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
tilth
Rust MCP server + CLI for AST-aware code intelligence. Tree-sitter outlines, symbol search, callers/callees, file-level deps analysis. Replaces grep/cat/find for AI agents with structured, token-efficient output.
Project structure
src/
main.rs CLI entry (clap). Dispatches to MCP, map, or single-query mode.
lib.rs Public API: classify query → read/search/glob → formatted output.
mcp/
mod.rs MCP server (JSON-RPC on stdio). Embeds SERVER_INSTRUCTIONS + EDIT_MODE_EXTRA via include_str! from prompts/.
write.rs tilth_write overwrite/append primitives — create-only guard, O_NOFOLLOW symlink refusal, atomic parent-dir creation.
tools/
mod.rs Tool dispatch hub — path/scope resolution under the absolute-path discipline (anchor_path, resolve_scope), budget application.
definitions.rs JSON schema definitions for every MCP tool (tilth_search/read/list/deps/grok/diff/write).
search.rs tool_search — symbol/content/regex/callers dispatch, multi-symbol support, scope-warning integration.
read.rs tool_read — smart file reads, batch/section/sections slicing.
write.rs tool_write — batch writes in hash/overwrite/append modes; hash mode delegates to edit::apply_batch.
deps.rs tool_deps — file-level dependency analysis (imports + dependents), bloom-filtered.
diff.rs tool_diff — structural diff dispatch (uncommitted/staged/ref/file-pair/patch/log).
list.rs tool_list — glob file listing as a directory tree, pattern/patterns batch, scope resolution.
grok.rs tool_grok — one-call symbol bundle, default vs full caps.
session.rs tool_session — summary/reset actions for grok dedup state.
classify.rs Query type detection (file path, glob, symbol, content, fallthrough).
lang/
mod.rs Shared language infrastructure: detect_file_type(), package_root().
outline.rs Tree-sitter outline extraction: outline_language(), walk_top_level(), get_outline_entries().
treesitter.rs Shared AST constants: DEFINITION_KINDS, extract_definition_name(), definition_weight().
detection.rs Generated file detection (lockfiles, .min.js) and binary detection.
diff/
mod.rs Structural diff types, source resolution, orchestrator pipeline (diff()).
parse.rs Unified diff parser: git diff output → Vec<FileDiff>.
matching.rs Three-phase symbol matching: identity → structural hash → fuzzy similarity.
overlay.rs Per-file structural overlay: outline old/new, match symbols, attribute hunks.
format.rs Progressive-disclosure formatters: overview, file detail, function detail, log, conflicts.
read/
mod.rs File reading with smart view (full vs outline based on token count).
outline/
mod.rs generate() — dispatches to the right outline backend by file type, appends the truncation note when a cap is hit.
code.rs Outline string formatting for code files. Uses lang/outline for extraction.
markdown.rs Markdown heading-based outlines.
structured.rs JSON/YAML/TOML structured outlines.
tabular.rs CSV/TSV outline: headers + row count + first 5 / last 3 rows via memchr.
fallback.rs head_tail() / log_view() — unknown files and logs with no outline support.
test_file.rs Test file detection (suppresses outline noise).
imports.rs Import extraction for deps analysis.
search/
mod.rs Search orchestration. Symbol, content, regex, callers search types.
symbol.rs AST-based symbol search (definitions first, then usages).
content.rs Literal text / regex search via ripgrep internals.
callers.rs Structural call-site detection (tree-sitter + memchr pre-filter).
callees.rs Callee extraction and resolution for expanded definitions.
callee_query.rs Per-language tree-sitter call-expression queries + compiled-Query cache, shared by callers.rs and callees.rs.
siblings.rs Sibling symbol surfacing in search results.
scope.rs Enclosing-scope lookup: nearest definition at a line, qualified by containing type/module.
grok.rs One-call symbol bundle (def + body + callers + callees + siblings + tests).
deps.rs File-level dependency analysis (imports + dependents with symbols).
rank.rs Result ranking (definition weight, basename boost, context proximity).
facets.rs Faceted result grouping (definitions, usages, implementations).
strip.rs Cognitive load stripping (comments, blank lines in expanded code).
truncate.rs Smart truncation to fit budget constraints.
alloc.rs Value-based budget allocation — keeps the highest-value blocks when output exceeds budget, not just positional tail-cut.
bloom_walk.rs Shared file-prefilter for relational queries (callers/callees/deps): size gate + bloom-filter pre-check before a full parse.
glob.rs File glob search.
blast.rs Blast radius — find callers of definitions touched by edits.
index/
bloom.rs Bloom filter cache for fast "file contains symbol?" pre-check.
cache.rs OutlineCache — DashMap of path → (mtime, outline). Shared across tools.
session.rs MCP session state — tracks previously expanded definitions for dedup.
edit.rs Hash-anchored editing (tilth_write hash mode). Hashline verification + atomic apply.
edit_parse_check.rs Post-edit tree-sitter parse check — diffs pre/post ERROR/MISSING nodes so tilth_write reports only errors the edit introduced.
install.rs `tilth install <host>` — writes MCP config for 23 hosts.
format.rs Output formatting helpers.
budget.rs Token budget enforcement.
map.rs Codebase map generation (CLI only, disabled as MCP tool).
overview.rs Project fingerprint for MCP initialization (manifest, languages, modules, deps, git). Instant orientation without a tool call.
timeout.rs Per-request wall-clock timeout for sync tool calls — worker thread + bounded channel, tracks abandoned threads on expiry.
util.rs atomic_write_bytes() — shared by edit.rs and install.rs.
types.rs Shared types (QueryType, Lang, OutlineEntry, etc.).
error.rs Error types with exit codes.
npm/ npm wrapper — postinstall downloads binary, run.js proxies to it.
scripts/fixtures/ setup_repos.py clones four real-world repos at pinned commits (README examples, speed table, parity checks).
prompts/ MCP server instruction source (mcp-base.md + mcp-edit.md). Embedded into the binary at compile time and regenerated into AGENTS.md.
AGENTS.md User-facing copy of the MCP instructions. Generated from prompts/*.md via scripts/regen-agents-md.sh — do not edit directly.
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.
- 19d ago Changed · -1 lines · -22 tokens per session 3e8a143bf9e4
- 1mo ago Changed · -42 lines · -519 tokens per session 01d38e2e4ba9
- 2mo ago First seen · 170 lines · 2,579 tokens per session scan A fa79997b74ec
tilth CLAUDE.md is an instructions file published in the GitHub repository jahala/tilth (358 stars, last pushed yesterday), licensed MIT. It adds 2,038 tokens to every session, about $0.0082 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.
tilth CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tilth CLAUDE.mdjahala/tilth | Instructions file | 358 | yesterday | MIT | A | 2,038 | 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 | today | 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 |