Specification
AGENTS.md
The open format for a repository file that tells coding agents the build commands, conventions and boundaries once, so every prompt starts from the same context.
Engineering Fundamentals for the Agent Era
Contents Section 9, Directing Agents
An agent told to 'make the tests pass' that deletes or weakens the tests.
A request to fix one module that the agent treats as permission to edit the build scripts, the CI configuration and a shared library.
A date-parsing helper reinvented because the prompt never pointed to the one that already exists.
A task so large that the agent returns a 3,000-line change nobody can review.
The acceptance criteria from Intent, plus the three things a prompt adds: the context the agent needs, the boundaries of what it may touch, and the check that proves it is done.
An engineer gave an agent this prompt: 'Fix the flaky tests in the payments module and clean up anything that looks wrong.' Find every way an agent could satisfy it while making the codebase worse, then rewrite it with scope, constraints, relevant context and a definition of done.
Specification
The open format for a repository file that tells coding agents the build commands, conventions and boundaries once, so every prompt starts from the same context.
Anthropic's applied AI team covers how prompting an agent that runs a tool loop differs from prompting a single reply: giving it heuristics, stating its limits and describing what finished looks like.
Argues that the written statement of intent is now the main thing an engineer produces, and uses OpenAI's Model Spec to show a versioned spec that tests and evaluations are generated from.
Makes the case for test-driven development as the definition of done you give an agent, so it can check its own work before you check it again.
A Google engineering leader's practical guide to directing coding agents: writing precise requests, supplying project context, and splitting features into pieces that can be reviewed.
The classic on turning intent into concrete, checkable examples. Agents need exactly that kind of executable definition of done so that 'make the tests pass' cannot be met by weakening the tests.
Manual
Anthropic's official guide to specifying coding-agent work: pointing the agent at existing files and helpers, writing a plan before code, giving it tests to check against, and keeping each task small enough to review.