prune-context-file
Prune Context File
Audit and prune a CLAUDE.md or AGENTS.md file using findings from Gloaguen et al. (2025), the first rigorous study of whether context files improve coding agent performance.
Evidence Base (key findings)
- LLM-generated context files reduce performance by 0.5–2% and increase cost 20%+. Never suggest auto-generating a context file.
- Developer-written files marginally help (+4% avg) — except for Claude Code, which showed no benefit from developer-written files either.
- Codebase overviews don't work. Agents find relevant files at the same speed with or without directory listings and project structure sections.
- Context files are redundant with existing docs. They only help when a repo has no other documentation at all.
- Tooling instructions are reliably followed. Naming a specific tool (e.g.
uv,pytest, a repo CLI) increases its usage 1.6–2.5× vs. not naming it. This is the highest-value content. - Instructions cause more testing and exploration, increasing steps and cost. Unnecessary requirements make tasks harder.
Paper: "Evaluating AGENTS.md" — Gloaguen et al., arxiv.org/abs/2602.11988
The Decision Test
For every line or section, ask: Would the agent write different code, run different commands, or make different assumptions without this?
More from richardbray/skills
short-vid
Write a 30-35 second YouTube Shorts script with hook, twist, and punchline
13tweet
Generate 5 engaging tweet options based on a topic or description
8linkedin
Transform content into a short, snappy LinkedIn post
7long-vid
Write a long-form YouTube script for a dev tools/tech topic
7yt-titles
Generate 10 YouTube title options from a topic description, then a keyword-optimized description for the chosen title
3title-score
Score a YouTube title 0-100 using a heuristic reimplementation of the vidIQ-style title score. Use when the user asks to score, rate, grade, or evaluate a YouTube title, or wants to compare/iterate title options. Returns a numeric score with per-factor breakdown and improvement suggestions. NOT the real vidIQ score - a tunable approximation.
2