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/ironadamant/chisel/claude-mdgit clone --depth 1 https://github.com/IronAdamant/ChiselWrote 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/ironadamant/chisel/claude-md)<a href="https://agentmods.dev/instructions/ironadamant/chisel/claude-md"><img src="https://agentmods.dev/badge/instructions/ironadamant/chisel/claude-md.svg" alt="Measured on agentmods" 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 | $0.06716 | $0.06716 |
| Opus 5 | $0.03358 | $0.03358 |
| Sonnet 5 | $0.01343 | $0.01343 |
| Haiku 4.5 | $0.00672 | $0.00672 |
Grade A, and why
Chisel CLAUDE.md scanned grade A with 1 finding 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 3d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- **Zero deps**: stdlib only. `ast` for Python, regex for JS/TS/Go/Rust. `subprocess.run(["git", ...])` for git. Requires Python >= 3.11. How it starts
The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Chisel — CLAUDE.md
Test impact analysis and code intelligence for LLM agents. Zero external dependencies.
Audience (how to read this project)
- Primary user: autonomous and semi-autonomous coding agents (MCP, CLI invoked by agents), not a stand-alone dashboard for engineering managers.
- Typical human: solo developer orchestrating multiple agent sessions, parallel tasks, or long-running analyses — not “hand off to another engineer” workflows. Tools like
ownership/who_reviewsexpose git-derived context (blame, commit activity) for debugging and risk heuristics; they are not org-chart features. - Multi-agent safety (see
project.py,ProcessLock,RWLock) exists so several processes (agents, terminals, CI) can share one.chisel/database without corrupting reads/writes — treat this as a first-class product requirement, not an edge case.
When editing behavior or docs, prefer: structured tool results, explicit statuses (no_data, no_changes, git_error), import-graph + test edges over relying on git co-change alone, and clear hints when MCP would otherwise time out or mis-resolve project_dir.
Architecture
chisel/
engine.py — Orchestrator. Owns Storage, GitAnalyzer, TestMapper, ImpactAnalyzer, RWLock, ProcessLock. Shard routing (_with_shard, _shard_for_path) and auto-update (_try_auto_update).
project.py — Multi-agent safety: project root detection, path normalization, storage resolution (incl. per-shard dirs), cross-process file lock.
bootstrap.py — CHISEL_BOOTSTRAP user-module loader (custom extractor registration at engine startup).
storage.py — SQLite persistence (WAL mode, 30s busy timeout, write retry). 17 tables (incl. meta, import_edges, branch_co_changes, file_locks, bg_jobs, job_events, static_test_imports).
ast_utils.py — Multi-lang AST extraction (12 languages). CodeUnit dataclass. _extract_brace_lang() shared by brace-delimited langs.
git_analyzer.py — Parses git log/blame via subprocess. Branch/diff queries.
metrics.py — Pure computation: churn scoring, ownership aggregation, co-change detection, coupling_threshold(). _parse_iso_date shared utility.
import_graph.py — Static import_edges between source files (structural coupling).
test_mapper.py — Test file discovery, framework detection, dependency extraction, edge building.
impact.py — Impact analysis, risk scoring, stale test detection, reviewer suggestions.
static_test_imports.py — StaticImportIndex: maps code paths → covering tests via DB static imports + disk overlay. Powers working-tree fallbacks in suggest_tests/diff_impact.
risk_meta.py — Risk-map _meta diagnostics and dynamic reweighting when components are uniform.
cli.py — argparse CLI (28 subcommands). _run_tool() shared handler. Entry point: chisel.cli:main
schemas.py — JSON Schema definitions + dispatch table for all 26 tools (parity enforced by test). Shared by HTTP and stdio servers.
mcp_server.py — HTTP MCP server (GET /tools, /health, POST /call). ThreadedHTTPServer. dispatch_tool() shared by both servers.
mcp_stdio.py — stdio MCP server (requires optional 'mcp' package). _configure_server() for engine lifecycle mgmt.
next_steps.py — Contextual next-step suggestions for MCP tool responses. compute_next_steps() dispatched per tool.
llm_contract.py — Agent vocabulary: trust note, status/source constants; MCP tool descriptions reference this (see docs/LLM_CONTRACT.md).
rwlock.py — Read-write lock for in-process concurrent access.
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.
- 3d ago First seen · 164 lines · 6,716 tokens per session scan A 25538d7f89d9
Chisel CLAUDE.md is an instructions file published in the GitHub repository IronAdamant/Chisel (2 stars, last pushed 1mo ago), licensed MIT. It adds 6,716 tokens to every session, about $0.0336 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
repobrain copilot-instructions.md
Copilot instructions for study8677/repobrain, covering github copilot bootstrap instructions and hard rule — query the repobrain hub first.
roam-code AGENTS.md
Instructions for Cranot/roam-code, covering agents.md — roam-code development guide, what this project is, documentation hub, where files go (private vs public) and quality discipline (from internal/dogfood/ + agi-in-md).
octocode CLAUDE.md
Claude Code instructions for bgauryy/octocode: Read AGENTS.md. Discover repository skills under .agents/skills and activate only those matching the task.
trace-mcp CLAUDE.md
Instructions for nikolai-vysotskyi/trace-mcp, covering trace-mcp development guide, what this project is, agent behavior — read before every task, no flattery, no filler and disagree when the premise is wrong.
supi CLAUDE.md
Instructions for mrclrchtr/supi, covering claude.md, development status, pi docs-first rule, documentation expectations and package layout convention.
trace-mcp AGENTS.md
Instructions for nikolai-vysotskyi/trace-mcp: IMPORTANT: For ANY code exploration task, ALWAYS use trace-mcp tools first. NEVER use Read/Grep/Glob/Bash(ls,find) for navigating source code.