Agent harnesses — the scaffolding that decides when to compact context, which tools to expose, how hard to reason, when to stop — are almost universally built from fixed heuristics. Compact when the window is 70% full. Use all available tools. Reason at “medium” effort. These rules work on average but they’re set by whoever wrote the harness, not by the agent that knows what this particular task actually needs.
A post published December 1 from a group calling themselves UT InfraAI describes a different model, explicitly borrowed from eBPF: let the agent write policies for its own harness, then verify those policies before loading them. The system is called ext.
The eBPF analogy
eBPF lets kernel engineers attach small verified programs to hooks inside the Linux kernel — network packet filtering, syscall tracing, performance counters — without modifying kernel source or risking kernel stability. The kernel owns the mechanisms and enforces invariants; eBPF programs can customize behavior within those bounds because a verifier proves safety properties before any program runs.
Ext applies the same structure to agent harnesses. The harness owns the mechanisms (context window management, tool dispatch, budget accounting) and enforces operator-defined invariants. Agents write policies in “extLang,” a loop-free Python subset, targeting hooks like on_compaction_trigger, on_tool_output, or on_reasoning_effort. Before a policy loads, an SMT solver — Z3 — checks that it satisfies both default harness rules and any project-specific operator constraints. If the solver finds a violation, it generates a counterexample and returns it to the authoring model for revision. The whole thing takes about 24 ms per load.
The key insight the authors articulate is that agents have better context than the harness does. An agent running a 200K-token document audit knows it needs to preserve recent test output verbatim; a fixed compaction rule doesn’t. An agent working toward a $0.30 budget knows it’s close; a heuristic threshold doesn’t. Letting the agent write a policy for that specific run, then verifying it doesn’t violate safety properties, is a cleaner decomposition than trying to make a fixed heuristic smart enough to handle everything.
What the numbers show
The team reports zero rule violations across 556 audited runs. In budget enforcement tests — a task with a strict $0.30 ceiling — all six ext runs stayed under the cap; two runs using the “Exo” exokernel approach overspent. On a 200K-token audit task, unmodified Sonnet 4.6 scored 0 out of 204 on both runs (almost certainly due to compaction destroying state), while ext scored 199/204 and 204/204.
The task-success improvements are also real. Research QA success rate went from 33% to 53% at roughly the same cost. A coding task policy lifted Opus from 14/27 to 22/27 solves. Perhaps the most interesting result: they ran RL with the policy-authoring model itself as a trainable component, using policy execution outcomes as the reward signal. Verified-policy generation rate climbed from 12.5% to 97.8%, and held-out research QA accuracy improved from 80.9% to 86.4%.
What’s not there yet
The code isn’t released. There’s a waitlist. The evaluation is self-reported by the team on tasks of their choosing. That’s normal for a research preview, but it means ext is a system to watch, not one to deploy today.
There’s also a subtle design tension the paper acknowledges: the harness has to implement a lot of mechanism for policies to plug into. If your harness doesn’t expose a on_compaction_trigger hook, the agent can’t optimize compaction decisions regardless of how good its policy is. Ext works with Claude Code today by layering a host-side HTTP proxy, which gives it budget tracking and spending cap enforcement, but that’s already a nontrivial integration point.
The underlying idea — treat the agent’s harness configuration as a policy to be written and verified rather than a constant to be tuned — is worth taking seriously. Agent infrastructure has largely been a collection of one-size-fits-all choices. Ext is an argument that those choices should be task-specific, and that verification is the tool that makes task-specific safe.
