I analyzed 246 repos and 57 papers on agent harnesses. Here's what actually works

Reddit r/AI_Agents News

Summary

Analysis of 246 open-source repositories and 57 papers on agent harnesses highlights best practices like human-written context, limiting tools, and incremental testing to improve AI agent performance.

It seems like more and more people are building agent harnesses (me included lol), but very few people are measuring whether they actually work. Since harness engineering is still a relatively new field, I wanted to do my own research to figure out which practices are emerging as best practices vs. which ones are just hype. So I looked at 246 open-source repositories and 57 publications to try to get a clearer picture. Thought I’d share some of my main takeaways here in case it saves anyone else from going down that rabbit hole. TLDR: The pattern is pretty clear: the best harnesses are small, evidence-based and constantly refined. What seems to work: Write the harness yourself (or have another human do it): An ETH Zurich study found that machine-generated context actually reduces task success compared to giving the agent no context at all, while increasing inference cost by 20%. Human-written context improved success by about 4%. So yeah, don't outsource writing the harness to an agent. Build the harness in response to observed failures: Modern agents are already pretty capable, the harness should compensate for actual weaknesses you've seen. In the same vein: Limit the tools and skills exposed to the agent: Only add skills or specialized subagents when there's a real need, not just because they are popular. Vercel removed 80% of their tools and success jumped from 80% to 100%, with half the tokens. Microsoft cut 100 tools down to 2. Less really is more here. Change one component at a time and measure the impact: Basically the scientific method. If you change 5 things and things get better, you have no idea which one helped (or which one is silently making things worse). Have both tests and evals: Just like code, a harness may contain bugs or overly verbose or ambiguous instructions that don’t work all the time. Don't assume your AGENTS.md, hooks, or scripts are doing anything just because they exist, as instructions can simply be ignored. Test both "should happen" and "should NOT happen" cases: This one bit me personally. If your tests only contain things that must be blocked, tightening the guard is always safe and loosening it is invisible. So the harness slowly drifts toward blocking everything and basically strangling the agent. One-sided evals create one-sided optimization. Curious to hear from others building agents: how are you measuring whether your harness is actually helping?
Original Article

Similar Articles

@xiaomovps: After researching so many AI agents, I increasingly believe the Harness is the direction most worth digging into deeply Recently I came across an article shared by Anthropic about long-running agents, and some of the ideas really resonated with me Because over the years I've both studied and worked with quite a few Harnesses, including Pi Agent, DeepSeek Harness, Claude Code, Codex, and Hermes Agent Through this process I found that every Harness is essentially quite similar, yet the outcomes they produce can differ greatly — the same model may perform differently across different Harnesses In my observations, it generally comes down to these issues: 1. First, context management When an agent is executing a complex task, it continuously accumulates context. How to retain important information, compress irrelevant content, and still understand the previous task after a context switch really tests the design of the Harness 2. Second, long-task execution capability I've hit quite a few pitfalls here myself — sometimes a task runs for tens of minutes and suddenly hangs, or a problem occurs midway and the only option is to start over So I believe a mature Harness shouldn't just be able to execute tasks; it also needs to consider task state, exception recovery, and how to resume execution from the point of interruption 3. Finally, result verification This is also something I feel is easily overlooked.很多时候 the agent tells you the task is complete, but the actual result may not meet expectations Without a reliable verification mechanism, no matter how strong the model is, it's hard to guarantee the final quality of complex tasks I hope the Harnesses on the market keep getting better, especially domestically developed ones — whether it's DeepSeek Harness or WorkBuddy. Only a strong model paired with a strong Harness is the only way forward If you're also researching this direction, I recommend taking a look: https://anthropic.com/engineering/effective-harnesses-for-long-running-agents…

X AI KOLs Timeline

Drawing on hands-on experience with Pi Agent, DeepSeek Harness, Claude Code, and more, the author argues that the Harness is the area most worth exploring in depth, shares an Anthropic article on long-running agents, and highlights three key challenges: context management, long-task execution, and result verification.