Ten Working Principles for AI Projects
An AGENTS.md template drawn from my projects: define the outcome, respect the evidence, and make the work checkable.
In short
- Write down what could go wrong and how to catch it, alongside what you want the AI to do.
- Adapt the ten principles to your project: name the source files, required checks, and operational boundaries.
- The reusable AGENTS.md template is linked below. It sets expectations; it does not guarantee compliance or replace verification.
I distilled the working agreements from my projects into ten principles and an AGENTS.md template. They apply to coding, analysis, and product maintenance. Each asks what success means, what could go wrong, and how to check.
| Principle | In practice |
|---|---|
| 1. Start with the outcome | State the intended behavior, a plausible failure, and the smallest check that could expose it. |
| 2. Know what the evidence covers | Check identity, grain, units, population, and time window. Missing is not zero; historical decisions cannot use future information. |
| 3. Define the question before the method | Define the metric and target quantity. Separate exploration from prespecified tests; report uncertainty and negative findings. |
| 4. Make the smallest sufficient change | Preserve unrelated work, follow necessary dependencies, and fix generated files through their source. |
| 5. Test independently | Derive expected answers from business rules or independent evidence, never from the output under test. |
| 6. Keep results tied to current intent | Before applying a delayed response or restoring state, check that its inputs and scope still apply. |
| 7. Respect filtering and ordering | Specify where filtering, ranking, and truncation happen. Limit conclusions to the population actually checked. |
| 8. Verify in the real context | Account for unfinished and failed work. Check the configuration and revision actually deployed. |
| 9. Preserve authorization and recovery | Protect secrets and existing work. Confirm the target and effects of an action, and keep a way back. |
| 10. Leave useful evidence | Report changes, checks, skips, and versions. Record where a lesson applies, and retire stale guidance. |
I recommend the template as a starting point for making expectations explicit. To use it, name the project’s goal, source files, required checks, and design references. Replace general instructions with checks someone can actually run.
Add a lasting rule when a problem is likely to recur and the instruction would help prevent it. Keep it specific to the project. For example:
- If regenerating a file keeps overwriting manual fixes, name the source file to edit and the command to regenerate it.
- If an analysis repeatedly mixes incompatible units, require unit checks before combining the data.
- If a release passes locally but fails on direct links, include opening those links on the deployed site in the release checklist.