r/PiCodingAgent • u/AlexzanderZone • 17d ago
Question Agent drift
Is the agent drifting from original plan a result of the model or harness? Im using QFN gyro-M and pi-blackhole but with the observational memory component is turned off due to the workers going every turn bogging the process down because im on a potato. I Told the agent to start step 5, walked away and at some point it had drifted from the orginal plan.md... it was a mess. Ever since then after every compaction im afraid it will drift. So, now every so often I'll have it do a "drift check". Is there an extension or skill I can add to the harness to help prevent this?
View all comments
1
u/gandazgul 17d ago
It's partly both. LLMs want to get to the objective as quick as possible so if skipping parts of the plan still achieves this it will do it. In my experience you need plans written with goals in mind rather than imperative language (instead of: do this, use: at the end X should behave this way) but also you need strong system prompts not just regular prompts or skills to keep the LLM aligned to the plan.
You have both here plus adversarial reviews of the plan and the code. https://runwield.dev/
Built in Pi all local works with any sub or API key Pi supports as well as using Antigravity via custom agents and MCP.