For the last months my main project has been basically building a lab around Prime Intellect's open source agent harness (prime-agent-eray) and running it on long horizon tasks of my own, like managing mobile apps, freelance jobs and a B2B AI SaaS, and the thing I keep seeing over and over again is that the agent does not break in one obvious place. It makes one bad decision at a critical point (which website to create, which jobs to apply to, what kind of email campaign to run) and then keeps going on top of that decision for hours, executing it properly, which makes it even harder to catch since everything after that point looks fine.
My guess on why this happens is that the models are not trained for it. Nobody is RL training them with a rubric as the reward on how to engineer their own context for a task that takes days, so they cannot really understand their own context limitations and act on them, like calling an evaluator when the decision in front of them is a big one. So at this point that part has to be done by me.
What I am trying to build is a harness where, no matter how long the trajectory gets, the agent keeps making the sensible decisions with the taste that the operator would make himself. The way it works right now:
- every time I, as the operator, decide that the agent went off the track, the starting state and the final desired state are saved as a benchmark item
- the outcome is scored by an LLM judge with a rubric as the reward structure, just like how Scale AI does it, and before I trust any score I check the judge against my own labels on a held out set, because if the judge does not agree with the operator the whole benchmark means nothing
- the harness detects the critical decisions in a session and pulls the matching skill.md into its own context, which can make it spend much more compute right there, call a planner, a planner plus evaluator plus composer, or check the integrity of the sources it curated
The first end to end run was on 14 September, on a task that came from one of my real sessions: writing launch copy without researching the competitors first. Both raw harnesses (Prime Agent and Claude Code) scored 0.05, they skipped the research and wrote a single option. With the competitor research skill Prime Agent got 0.55 and Claude Code got 0.92, but this is one task with one repeat per arm and the skill partly passed by stating the things the rubric was checking, so it is not evidence of anything yet. The more useful outcome was the four bugs it exposed, the worst one being that the trials shared my own login, so a trial refreshing its token silently logged out my own daemon, and another one where the advisor's injected message was captured as a new benchmark request, so the system was basically creating tasks from its own output.
There are also lots of things I am not convinced about. If a skill wins part of a benchmark and then gets used in the trajectory of another session, does that skill actually carry my way of thinking for that task? It is very much subject to speculation. Inserting skills at the major decisions sometimes feels like it causes context rot, and I think at some point a LoRA fine-tune on the benchmark data might carry the taste better than the skill insertion, which is the stretch question of the project.
This is now my final-year project at the University of Sussex, supervised by Dr Peter Wijeratne.