agents.md Might Actually Mislead Your Agent

johnlindquist · x · 2026-07-15

The author highlights an observation by swyx: many models are now "over-optimized" to follow agents.md, to the point where they can no longer judge if a file is outdated or should be ignored.

He shares a real-world example: after setting up a 5-stage task, he found the agent stuck at stage 0 the next day. Logs revealed that an agent had written "stage 0 is the target" into its context, causing the system to spend 8 hours repeatedly refining and validating stage 0.

The core conclusion is that if you don't clearly review what's in agents.md before starting a task, you're essentially performing an indirect prompt injection on yourself. Using /plan, /goal, /skill, or even leaving it blank can completely alter the agent's execution path.

Original post →

More from coding & agent

coding & agent channel →