Agent Harnesses Need Their eBPF news update
UT Austin built ext, an eBPF-style agent harness using Z3 verification that hit zero violations in 550+ runs and lifted Opus coding solves from 14/27 to 22/27.
By Dillip Chowdary • Dec 03, 2026 • Source: ut-infraai.github.io

At a glance
- Authors
- Ron Yifeng Wang, Aditya Akella (UT Austin)
- Verifier
- Z3 SMT formal policy checker
- Safety record
- Zero violations across 550+ runs
- 200K audit
- Sonnet 4.6 rose 0/204 to 199 and 204
- Opus coding
- 14/27 to 22/27 solves at equal cost
- Availability
- Active development, waitlist open
In this post
Researchers Ron Yifeng Wang and Aditya Akella at the University of Texas at Austin have introduced ext, an extensible agent harness modeled on eBPF that lets AI coding agents optimize their own execution policies while mathematically proving operator safety rules, according to ut-infraai.github.io's report. Built to work with existing tools like Claude Code without modifying their source code, ext uses the Z3 SMT verifier to check every agent-authored policy before execution.
This article explains why hardcoded harness heuristics and OS exokernel-style self-modification fail on long-horizon coding tasks, how ext separates verified policies from trusted mechanisms, and what benchmarks show across safety audits, compaction thrashing, and reinforcement learning. Platform engineers and agent infrastructure builders can review the data to see where verifiable runtime hooks beat static thresholds.
01Why static heuristics and exokernels fail
Mainstream coding agents such as Claude Code and Codex rely on fixed harness heuristics chosen by developers, including preset compaction thresholds, generic summarization prompts, and static reasoning effort levels. In a test of Claude Haiku 5.5 across 11 tasks in a bash-only harness, six tasks succeeded with low reasoning effort, two needed medium, one required high, and two needed xhigh; forcing xhigh across every run cost up to 5.9x more than the cheapest successful level.
Prior attempts to hand control back to agents ran into two failure modes. Exposing controls such as compact() and set_effort() alongside a live context meter triggered "context anxiety" and dropped long-task success from 92% to 52%, while exokernel-inspired self-modifying harnesses like Exo allowed agents to rewrite harness code in ways that broke invariants, overspending a $0.30 budget in two of six runs and failing all seven spending-guard correctness tests.
02eBPF-inspired separation of mechanism and policy
Rather than letting an agent rewrite arbitrary harness source code, ext separates trusted mechanisms from untrusted policies through narrow, typed hooks in a restricted language. The harness retains ownership of core operations—calling models, recording tool outputs, and compacting context—and enforces baseline invariants such as keeping the original task statement intact and retaining the two most recent steps verbatim during compaction.
Agents author policies that decide when to compact, what context to preserve, or how to adjust execution behavior. Before loading any new policy or revision, ext passes it through the Z3 SMT verifier to prove that both built-in invariants and operator-defined constraints hold across every valid hook input.
03Provable safety across 550 audit runs
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
Across more than 550 evaluation runs, ext recorded zero rule violations in safety audits. On a 1.2M-token incident-log question-answering benchmark with a strict $0.30 spending cap and two project rules, ext stayed within budget in all six runs and answered every question correctly in five of them.
By verifying budget guards and context-preservation constraints formally prior to execution, ext eliminates the risk of buggy agent-written logic silently draining operator funds or discarding critical project instructions mid-run.
04Stopping compaction thrashing and lifting accuracy
Compaction thrashing happens when an agent's context repeatedly fills right after summarization—a pattern that causes vanilla Claude Code to terminate after three consecutive immediate refills. On a 200K-window incident audit where vanilla Sonnet 4.6 aborted both runs at 0/204, ext completed the audits with scores of 199/204 and 204/204.
| Benchmark & Model Setup | Vanilla Baseline | With ext Policy | Cost Impact |
|---|---|---|---|
| 200K Incident Audit (Sonnet 4.6) | 0/204 (2 aborts) | 199/204 & 204/204 | Completed |
| SWE-Marathon (100K budget) | Baseline pass rate | +12 percentage points | 0.85x cost |
| Multi-hop Research QA (100K) | 33% full success | 53% full success | 0.92x cost |
| 9 Short Coding Tasks (Opus, 1M) | 14/27 solves | 22/27 solves | 1.0x cost |
| 9 Short Coding Tasks (Sonnet, 1M) | 15/27 solves | 18/27 solves | 1.19x cost |
| 9 Short Coding Tasks (Haiku, 1M) | Baseline solves | Matched solves | 0.40x cost |
On long SWE-Marathon builds under a 100K token budget, ext raised test pass rates by 12 percentage points at 0.85x the baseline cost. Across nine tasks drawn from DeepSWE, SWE-bench Pro, and Terminal-Bench 2.1 at Claude Code's 1M context window, a reusable policy lifted Opus from 14/27 to 22/27 solves at equal cost and matched Haiku's solve count at 0.40x the cost.
05Reinforcement learning for policy synthesis
Beyond hand-crafted or single-session policies, the UT Austin researchers trained Qwen3.5-9B using reinforcement learning to synthesize safe, effective ext policies across runs. Using the Z3 verifier's acceptance decision as an RL reward boosted valid policy generation rates from 12.5% to 97.8%.
Training the model on downstream execution outcomes further lifted held-out research QA accuracy from 80.9% to 86.4% at comparable runtime cost. ext remains under active development with a public code release planned and an open waitlist for early testers.
Frequently asked questions
How does ext prevent AI agents from breaking harness safety rules?
Agents write execution policies in a restricted language through typed hooks, and the Z3 SMT verifier mathematically proves every policy satisfies built-in and operator rules before loading.
Does ext require modifying Claude Code's source code?
No. The UT Austin researchers designed ext to work alongside existing agent harnesses such as Claude Code without changing their source code.
Why did giving agents raw harness tools like compact() hurt performance?
Exposing tools like compact() and set_effort() with a live context meter caused "context anxiety" in testing, cutting long-task success from 92% to 52%.
What did reinforcement learning achieve with Qwen3.5-9B on ext policies?
Using Z3 verifier acceptance as an RL reward raised valid policy generation from 12.5% to 97.8%, and outcome training improved held-out research QA accuracy from 80.9% to 86.4%.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Tiger Global in talks to back India’s BharatPe at a steep valuation cut
Read →
Is OpenAI Codex Safe to Use? Security Risks, Sandbox Modes and Best Practices
Read →
WhatsApp sends a security alert for users on older iOS versions
Read →
We moved 1.7 TB off pgvector to our own Rust search engine
Read →
Today's Tech Pulse briefing
Full briefing →
Advertisement