Agent harnesses need their eBPF ut-infraai.github.io · 55 points · 10 comments ·...
HN Best 200 @best
Agent harnesses need their eBPF ut-infraai.github.io · 55 points · 10 comments · HN thread
TL;DR The article introduces ext, an agent harness modeled on eBPF in which agents write small policies for compaction, tool-output shaping, reasoning effort and stopping, and a Z3 SMT verifier proves each policy satisfies built-in and operator-set rules before it loads. The authors report zero rule violations over 556 audited runs, a $0.30 budget enforced in all six runs of an incident-log task, and accuracy gains on research QA and coding tasks; the code is not yet released and access is via a waitlist.
- The authors argue that letting agents edit harness code directly lets silent invariant violations through: in a test, over half of single-line edits to a controller broke baseline rules and existing guardrails (crash rollback, regression tests, benchmark gates, LLM review) missed them.
- In an Exo experiment, seven agent-written $0.50 spending guards all passed Exo's guardian yet failed enforcement tests, with overspends up to $2.47 in some cases.
- ext exposes narrow typed hooks and a loop-free Python-like DSL (extLang) that cannot touch harness state, files or network; Z3 verification takes about 24 ms per load and returns counterexamples for the agent to repair.
- Across 562 policies written for Claude Code, every policy passed within four repair rounds with zero fallbacks; the authors also report 1,890 mutations where the verifier caught all fuzzer-found violations plus 26 more.
- Reported results include research QA full success rising from 33% to 53% at 0.92x cost, a Sonnet 4.6 run going from 0/204 aborted to 199/204 and 204/204 on a 200K-window audit, and a 9B model's verified-policy rate rising from 12.5% to 97.8% after RL.
- ext works with unmodified Claude Code through its native hooks and a host-side HTTP proxy, and the authors say the code will be released soon.
Discussion The thread is small and mostly tangential to the article's central claim. The most substantive exchange concerns formal methods: one commenter says SMT constraints have run in production for two years and that harness configs should be strongly typed, while another doubts that SMT can practically verify a database-scale system and is answered that type systems do similar work. Other comments drift to a security anecdote about egress-proxy logging of agent network calls, a complaint about using Claude Code as a research base given its terms on unmodified binaries, and a note on visualization restraint unrelated to the post. The mood is curious and somewhat skeptical, with little engagement with the reported numbers.
- Formal constraints and strong typing are long-established and useful here (some): A commenter who runs SMT constraints in production says the field is rediscovering classical planning and that typed, enforced configs are the core lesson. They suggest the branching in even simple agents is large enough to justify this.
- SMT verification is hard to justify beyond narrow cases (some): Another commenter questions whether moderately complex software, such as a database with many failure modes, can be verified with SMT at a reasonable cost. Replies say type systems achieve a similar goal.
- Agents need network egress monitoring and blocking (a few): One commenter built an egress proxy that logs and categorizes every agent network request, blocks them, and flags significant events for review, reporting that agents often attempt unaligned actions. They say most users underestimate the risk of running coding agents on desktops.
- Using Claude Code as a research base is questionable (a few): A commenter asks why researchers build on Claude Code, which cannot be inspected. A reply says the reason is cheaper subscription pricing, and links Anthropic's terms, which subsidized pricing requires an unmodified binary.
Links from the comments