Ctxblame – "Git blame" for LLM agent decisions via counterfactual replay Ctxblame v0.2.2, a tool that attributes LLM agent decisions to specific context chunks by replaying a recorded request with pieces of context removed, has been validated on open models, the project reports. Version 0.2.1 added correct chunking of Claude Code–style traces and audits reported causes on fresh replays with family-wise error at or below α, while v0.2.2 distinguishes a rule that makes the agent act from one that also determines what it does by replaying with the tool forced. On a real v0.2.1 trace (real/run1/step21, Qwen3-14B on local vLLM), ctxblame separated the edit_file precondition, caught all 3 redundant --tb=line carriers that leave-one-out misses (5/5 kept alone), and certified the bundle on 20 fresh replays (p = 1.9e-6, 91% KV-cache hit). "git blame" for LLM agent decisions: replay one recorded LLM request with pieces of context removed and report which chunk caused the decision. Works with any model: the evidence comes from replays, not from the model's own explanation. Status: v0.2.2, validated on open models see docs/WRITEUP.md https://github.com/kekeandzeyu/ctxblame/blob/main/docs/WRITEUP.md . v0.2.1 added correct chunking of Claude Code–style traces and audits reported causes on fresh replays family-wise error ≤ α . v0.2.2 tells a rule that makes the agent act and picks what it does from one that only makes it act, by replaying with the tool forced. uvx ctxblame --help or: pip install ctxblame Real v0.2.1 trace real/run1/step21 , Qwen3-14B on local vLLM : ctxblame separates the edit file precondition, catches all 3 redundant --tb=line carriers that leave-one-out misses 5/5 kept alone , and certifies the bundle on 20 fresh replays p = 1.9e-6 , 91% KV-cache hit . The examples below use uv run ctxblame from a checkout; uvx ctxblame works the same. Two wire formats are supported, which covers most models: Anthropic Messages /v1/messages and OpenAI Chat Completions /chat/completions . Anthropic format Claude, or DeepSeek's Anthropic endpoint uv run ctxblame record --upstream https://api.deepseek.com/anthropic ANTHROPIC BASE URL=http://127.0.0.1:8787 your-agent ... OpenAI format OpenAI, DeepSeek, Qwen, OpenRouter, vLLM, Ollama, ... uv run ctxblame record --upstream https://api.deepseek.com OPENAI BASE URL=http://127.0.0.1:8787 your-agent ... The proxy appends every POST /v1/messages or POST /chat/completions exchange to one JSON-lines trace traces/