claude-code-config
CLAUDE.md0 starsChanged 2 months agoMITView on GitHub
Rule: pick the NARROWEST agent whose tools are enough. An agent's starting context (system prompt + tool descriptions + MCP) is paid for on every call, so every extra tool is a direct cost against the window. 1. lightweight-agent (WebSearch, WebFetch, Read, Write, Edit, Glob) — web research, gathering information, processing and writing files. The default choice. 2. codebase-agent (Bash, Read, Write, Edit, Grep, Glob) — work inside the repository: reading code and git history, searching the project, writing documentation.…
In this repository14 other files it gives its agents.
- architectSkill
- atomic-commitSkill
- codebase-tutorialSkill
- code-via-opencodeSkill
- code-walkthroughSkill
- deep-research-economySkill
- deep-researchSkill
- github-pushSkill
- instagram-transcriptSkill
- move-projectSkill
- poc-portfolio-prepSkill
- research-via-opencodeSkill
- resume-after-windowSkill
- translate-ruSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Don't spawn agents for what I can do myself in 2-3 tool calls: every spawn starts cold and re-discovers context I already have.
- Distinctive: line 31
Ask the agent for a short report (5-10 lines), not a retelling of the result.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Choosing a subagent
Rule: pick the NARROWEST agent whose tools are enough. An agent's starting context (system prompt + tool descriptions + MCP) is paid for on every call, so every extra tool is a direct cost against the window.
The ladder:
lightweight-agent(WebSearch, WebFetch, Read, Write, Edit, Glob) — web research, gathering information, processing and writing files. The default choice.codebase-agent(Bash, Read, Write, Edit, Grep, Glob) — work inside the repository: reading code and git history, searching the project, writing documentation. No web.general-purpose— ONLY when the full toolset is really needed: MCP tools, web and repository at the same time, launching its own subagents.
Model:
- Give subagents
model: sonnetby default (in the agent file or via themodelparameter). Without it, a subagent inherits the parent's model (Opus) — the most expensive option and almost never needed. - Opus for a subagent only for architectural decisions and subtle analysis, where reasoning quality matters more than price. Mechanical work (collecting facts, reading code, generating documentation from a template) — Sonnet.
Economy:
- Don't spawn agents for what I can do myself in 2-3 tool calls: every spawn starts cold and re-discovers context I already have.
- With several agents, give each one the same ready-made template/brief instead of letting each re-research the shared inputs.
- Ask the agent for a short report (5-10 lines), not a retelling of the result.
Measure, don't guess: bin/agent-context <agent> prints how many input tokens an
agent's starting context actually costs.
The 5-hour window
- Requests to wait for a new 5-hour window and continue ("continue when the new window
starts", "wait for the limit reset") — follow the
resume-after-windowskill: find the reset time, add a buffer of minutes, start a backgroundsleepwithrun_in_background. - Without an explicit request, do NOT resume work automatically in a new window (even if the work was interrupted by the limit) — wait for an explicit command.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

