r/PiCodingAgent • • 13d 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?

1 Upvotes

10 comments sorted by

View all comments

1

u/electric-dragon-80kv 13d ago

This is not 100% solvable but you can approximate it by having adversarial steps with subagents. Split your task into deliverable and verifiable steps, and after each step apply a set of adversarial steps focusing on different aspects. Code review, spec loyalty, proof of work could be separate steps. You can go even further and define adversarial steps for the adversarial steps themselves.

1

u/Hubba_Bubba_Lova 10d ago

This is a good idea. Do you automate the adversarial steps? Do you grill-me type of defining them? Or do you have a review plugin that automatically does this? Do you use separate clean sessions for the adversarial work?

1

u/electric-dragon-80kv 10d ago

There is an orchestrator which is in charge of executing these loops and coordinating. Each task requires a different approach. Some tasks will require a more rigorous, hands on approach while others can be mostly left to the agents to figure out. I wrote my own extension for this: https://github.com/electric-dragon-80000v/pi-cowboy