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/thinkyminer/codetree/claude-mdgit clone --depth 1 https://github.com/ThinkyMiner/codeTreeWhat 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.08688 | $0.08688 |
| Opus 5 | $0.04344 | $0.04344 |
| Sonnet 5 | $0.01738 | $0.01738 |
| Haiku 4.5 | $0.00869 | $0.00869 |
Grade A, and why
codeTree 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 yesterday.
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 — 500 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
codetree is a Python MCP (Model Context Protocol) server that gives coding agents structured code understanding via tree-sitter. Instead of reading entire files, an agent can ask "what classes are in this file?" or "what does this function call?" and get precise, structured answers.
It exposes 23 tools over MCP:
Structural Analysis Tools (13)
| Tool | Purpose | Returns |
|---|---|---|
get_file_skeleton(file_path, format?) |
Classes, functions, methods with line numbers + doc comments; format="compact" omits doc lines |
class Foo → line 5, "A calculator.", def bar(x, y) (in Foo) → line 7 |
get_symbol(file_path, symbol_name) |
Full source of a function/class | # path:line\n<source code> |
find_references(symbol_name) |
All usages across the repo | file.py:12, other.py:34 |
get_call_graph(file_path, function_name) |
What it calls + what calls it | → callee, ← file.py:20 |
get_imports(file_path) |
Import/use statements with line numbers | 1: import os, 2: from pathlib import Path |
get_skeletons(file_paths, format?) |
Skeletons for multiple files in one call; format="compact" omits doc lines |
=== calc.py ===\nclass Foo → line 1 |
get_symbols(symbols) |
Full source of multiple symbols | # calc.py:1\nclass Foo: |
get_complexity(file_path, function_name) |
Cyclomatic complexity of a function | Complexity of foo() in calc.py: 5\n if: 2, for: 1 |
find_dead_code(file_path?) |
Symbols defined but never referenced | Dead code in calc.py:\n function unused() → line 15 |
get_blast_radius(file_path, symbol_name) |
Transitive impact analysis | Direct callers:\n main.py: run() → line 4 |
detect_clones(file_path?, min_lines?) |
Duplicate/near-duplicate functions | Clone group 1 (2 functions, 12 lines each): |
search_symbols(query?, type?, parent?, ..., format?) |
Flexible symbol search; format="compact" omits doc lines |
calc.py: class Calculator → line 1 |
find_tests(file_path, symbol_name) |
Find test functions for a symbol | test_calc.py: test_add() → line 3 (name match) |
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.
- yesterday First seen · 500 lines · 8,688 tokens per session scan A 61532912d895
codeTree CLAUDE.md is an instructions file published in the GitHub repository ThinkyMiner/codeTree (28 stars, last pushed 2mo ago), licensed MIT. It adds 8,688 tokens to every session, about $0.0434 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-30.
Other instructions, from other repositories
graphify AGENTS.md
AGENTS.md instructions for Graphify-Labs/graphify: This project has a graphify knowledge graph at graphify-out/.
arbor CLAUDE.md
Claude Code instructions for getArbor-dev/arbor, covering claude.md, commands, build, test all crates and test single crate.
awesome-reviewers CLAUDE.md
Instructions for baz-scm/awesome-reviewers, covering awesome reviewers — repository guidelines, what this project is, source of truth, site layer and machine interface.
navegador CLAUDE.md
Instructions for ConflictHQ/navegador, covering navegador — claude context, what it is, stack, package layout and falkordb connection.
aptu-coder AGENTS.md
AGENTS.md instructions for clouatre-labs/aptu-coder, covering agents.md, project structure, ci runners, commands and observability.
aptu-coder copilot-instructions.md
Copilot instructions for clouatre-labs/aptu-coder, covering copilot instructions, assigning issues to copilot, pr iteration, copilot code review and design references.