At what point should an agent stop relying on the model and let the harness take over?

Reddit r/AI_Agents Tools

Summary

A developer building a Rust agent runtime asks where the boundary should sit between model-driven reasoning and harness-managed reliability — retries, loop detection, context compaction, rollback, and recovery — and seeks practitioner advice on what belongs where.

I've been building an agent runtime in Rust and I've started questioning how much of the "agent" should actually live inside the model. The basic loop is easy: model → tool call → result → model → repeat Then the ugly cases show up. The model repeats a tool call. A command fails halfway through. Context gets too large. A previous operation needs to be rolled back. The session needs to survive a restart. The model says it's finished while the actual task clearly isn't. My current approach is to keep reasoning in the model and move reliability/state management into the harness. Things like retries, context compaction, loop detection, worktree handling, approval gates and recovery. I'm still not sure where the boundary should be. For people who have built agent runtimes or coding agents, what did you initially put inside the model that you eventually moved into the harness? And what do you think should always stay model-driven?
Original Article

Similar Articles

How to Build a Reliable Agent Harness (48 minute read)

TLDR AI

This article serves as a postmortem and playbook for building reliable agent harnesses, detailing architectural lessons from omp and the transition to omp² while advocating for design principles that manage complexity effectively.

best of the best agentic harnesses do this…

Reddit r/AI_Agents

The author shares insights on building effective agent harnesses: the best ones minimize LLM reliance for trivial tasks and reserve LLMs for complex reasoning, distinguishing genuine harnesses from simple wrappers.