Update or append AGENTS.md with durable, time-saving learnings discovered during tasks (e.g., more than 10 minutes saved, repeated confusion, missing setup steps or gotchas). Use at the end of every task whenever such information is identified.
Capture new, durable operational knowledge in AGENTS.md so future work avoids repeated confusion and time loss.
AGENTS.md at the repo root (or the project-specific location if documented).AGENTS.md:
cmd to regenerate Y before retrying.”path/to/tool instead of system version; otherwise build breaks.”ENV_VAR=... when running script or it hangs.”