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%.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.