Optimizing repos for AI
A colleague recently complained to me about the hassle of organizing information in AGENTS.md / CLAUDE.md. This is the mark of a real adopter - she has gone through the progression from being impressed by coding agents to being annoyed at the next bottleneck.
When I'm thinking about optimizing repos for agents, I'm looking to accomplish three main goals[^1]:
- Increase iterative speed: Avoid repeated context gathering, enable the agent to quickly self-correct its mistakes.
- Improve adherence to evergreen instructions: Over time, repeated agent mistakes emerge. Context within the repo helps the agent avoid these and adopt a more consistent workflow.
- Help the most agentic agents of them all: Humans and agents scan docs and code in very similar ways, so organizing information so it's easily understood by humans is a good rule of thumb for helping the agents anyways!
