hn.today

Agent Harnesses Need Their eBPF

ut-infraai.github.io295 points93 comments
Screenshot of Agent Harnesses Need Their eBPF

Agent harnesses manage an AI agent’s tools, context, permissions, and execution, but their fixed rules can make poor choices for particular tasks. Giving agents direct control through tools and a context meter can distract them: in five long-horizon tasks, success fell from 92% to 52%. Letting agents rewrite harness code creates a different problem: conventional checks can miss silent violations of safety rules or reject harmless changes. The proposed system, ext, takes inspiration from eBPF rather than operating-system exokernels. It keeps core mechanisms and invariants under harness control, while agents express execution policies through restricted, typed hooks. Before a policy runs, an SMT verifier checks that it obeys built-in and operator-defined rules for every valid input.

In early tests, ext recorded no rule violations across more than 550 runs. It enforced a $0.30 spending limit in all six incident-log analysis runs, while answering every question in five. Its compaction policies also prevented failures seen with standard harnesses: on a 200K-context audit, it scored 199/204 and 204/204 where vanilla Sonnet failed both runs; on long software builds, it raised the share of tests passed by 12 percentage points at 0.85 times the cost. Other policies improved research QA success from 33% to 53% at comparable cost and increased Opus coding solves from 14/27 to 22/27. Training a model with verifier feedback raised safe policy generation from 12.5% to 97.8%, and improved held-out research accuracy from 80.9% to 86.4%.

Read on ut-infraai.github.io93 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

FreeHand

FreeHand

FreeHand is an AI agent harness that gives frontier models a shell, editable memory, and control over tools and timeouts instead of prescribing workflows. Across 11 tests, it beat first-party harnesses for three frontier model families, averaging 5.1 points higher at 49% lower cost, while preset harnesses still performed better with weaker models. (microsoft.github.io)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.