Why does my AI coding agent keep drifting, and what can I do about it?
The post describes an AI coding agent that drifts off task even with a short CLAUDE.md, an AGENTS.md and rules files, compacted sessions and fresh chats. The member asks whether others see it and what else to try. It drew 188 comments. One reply says to constrain each prompt, ask for tests, set clear limits for when the work is done and use a smaller model to solve problems before handing execution to the larger one.
