Defining "Done" for Coding Agents: A Task Completion Protocol in AGENTS.md

RevolutionaryBee7106 · reddit · 2026-07-27

A developer found that AI coding agents often report "done" while leaving failing tests or lint errors, causing subsequent tasks to start from a broken state.

To fix this, he implemented a Task Completion Protocol in AGENTS.md. Agents are now required to:

He notes that instruction priority is crucial, as injected instructions from the agent harness can sometimes override the AGENTS.md protocol.

Original post →

More from coding & agent

coding & agent channel →