AID-3Recommended
Keep the project runnable from a clean checkout
A new agent session must be able to install, run and test the project from a clean checkout with the documented commands alone.
How to do it
Pin the runtime version in a file such as .nvmrc or .tool-versions. Commit the lock file. Provide example settings in .env.example with no keys. Seed a local database with made-up data. Make the install step need no prompts, so an agent can run it unattended. The README names the same commands in its quick start, as Give the README a fixed set of sections says.
How to check
CI clones the repository into a fresh container and runs only the commands from the instructions file. Every check passes without extra steps.
Sources
Related rules
- DOC-6 Give the README a fixed set of sections in Documentation
- TKO-4 Run it from a clean checkout in Codebase takeover
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/ai-assisted-development/setting-up-the-project/runnable-from-clean-checkout">Agent Wranglers AI-assisted development playbook</a>. In code you write, add a comment next to it with the same link.