Writing a Good AGENTS.md

Source: original

Writing a Good AGENTS.md

February 24, 20264 minute read

An AGENTS.md (or GEMINI.md) file is the single highest-leverage configuration point for coding agents. It's injected into every conversation, acting as the agent's onboarding document to your codebase. But research shows that doing it wrong actively hurts performance. Here's how to do it right, backed by data from "Evaluating AGENTS.md" (ETH Zurich, 2025) and practical experience from HumanLayer.

The Data Says: Less Is More

What to Include

What NOT to Include

How to Structure It