Today I discovered a powerful tool for agentic programming: a PRODUCT.md file
that describes what the product is and isn’t.
AGENTS.md guides coding agents; PRODUCT.md focuses on product context.
Instead of execution guardrails, it tells the agent what the product is about,
answering questions like:
- What is this application?
- What’s a description of the core user experience?
- How do important features work from a user’s perspective?
- How does the application look and feel?
- What devices are supported?
- What is omitted or out of scope?
Example:
# Google Maps Product
Google Maps is our web mapping platform and consumer application. We offer
satellite imagery, aerial photography, street maps, 360° interactive panoramic
views of streets (Street View)...
Think of it like you interviewed your head of product about the application for an hour and then transcribed their conversation.
The payoff comes when you add this sentence to the start of each prompt:
Read PRODUCT.md and AGENTS.md, then inspect the application.
The agent immediately knows a lot, makes better choices and fewer mistakes.
This works well when you know a lot about the application yourself— you’ve built it before, done extensive testing, or are documenting an existing product. A time I found this particularly useful was rebuilding an MVP with a bunch of lessons learned. I knew what I wanted and spared the agent many cycles by front-loading that context.