Chisel CLAUDE.md

Chisel CLAUDE.md is an instructions file for coding agents from IronAdamant/Chisel. It costs 6,716 tokens per session, scanned A, original, MIT.

A set of instructions for Chisel, a tool that gives coding agents information about a project's code and test relationships.

In plain words
What is it for?
Use it when working on Chisel or when an agent needs guidance on its architecture, design decisions, development commands, and multi-agent behavior.
Why use it?
It helps agents understand project structure, code ownership, test impact, and safe operation when several sessions share the same data.

Instructions file

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/ironadamant/chisel/claude-md
Clone the repo
git clone --depth 1 https://github.com/IronAdamant/Chisel

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 Chisel CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ironadamant/chisel/claude-md.svg)](https://agentmods.dev/instructions/ironadamant/chisel/claude-md)
Your own site
<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>
Per session 6,716 This file is loaded in full into every session.
When invoked 6,716 The same file — it is already loaded in full.
Security scan A 1 finding. 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 $0.06716 $0.06716
Opus 5 $0.03358 $0.03358
Sonnet 5 $0.01343 $0.01343
Haiku 4.5 $0.00672 $0.00672

Measured 3d ago against content hash 25538d7f89d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.
CLAUDE.md · 164 lines

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_reviews expose 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.

Read the full file on GitHub · 164 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. 3d ago First seen · 164 lines · 6,716 tokens per session scan A 25538d7f89d9

Subscribe to this mod's changes

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.