The context file is the highest-leverage artifact in vibe coding: every correction you make either evaporates or lands in AGENTS.md. Bootstrapping it by hand is tedious; asking the agent to derive it from the actual code is fast and surprisingly accurate — with one guardrail that does all the work: “check real code, do not invent rules”. Without it, agents draft aspirational conventions nobody follows.

Run this on day one of any repo, then keep the file alive: when the agent breaks a convention, add a line under the right heading instead of just fixing the output.