AI agent harnesses, the software that runs an agent, often hard-code how they operate, such as when to compact the conversation and how much to let the model reason. On December 1, 2026, researchers at the University of Texas at Austin introduced ext on their blog, an extension mechanism in which the agent writes its own operating policies and each one is verified before it is loaded (the authors' blog). It has not been published as a paper, and all figures are the authors' own evaluation. The authors say they will release the code soon and invite those who want to try it to join a waitlist.
The problem: hard-coded harness operations
The authors point out that harnesses such as Claude Code hard-code things like how full the context must be before compaction starts, generic summarization prompts, and the reasoning effort. Because the best way to operate differs by task, their starting point is to let the agent decide these policies itself.
They caution that how control is handed over matters. With an earlier approach that gave the agent tools to operate the harness and a live display of the remaining context directly, success on long tasks fell from 92% to 52%.
How ext works
In ext, the agent writes its operating policies in a language called extLang.
- Policies are written for typed hooks covering compaction, tool outputs, the check before stopping, reasoning effort and more. In Claude Code, ext is called from hooks such as PreCompact, PostToolUse and Stop.
- extLang is a loop-free subset of Python limited to conditionals, arithmetic, comparisons, min, max, abs and constants. A policy can only read the state a hook exposes and return a value of the expected type; it cannot change the harness's state or access files.
- Before a policy is loaded, the SMT solver Z3 proves that it satisfies the built-in rules and the operator's rules for every valid input. A policy that fails is not loaded and goes back to the model that wrote it to be fixed.
The authors compare the arrangement, in which the host owns the mechanisms and enforces the rules while extensions decide policy in restricted code, to eBPF in Linux. It does not actually run eBPF. It connects to Claude Code through hooks and a host-side proxy without changing Claude Code's source. The spending cap is enforced by this proxy on each model request. All 562 policies that Haiku, Sonnet and Opus wrote for Claude Code reportedly passed verification within four rounds of repair. The Z3 proofs cover the defined range of inputs and the rules as modeled; they do not prove every action the agent takes.

Main results
According to the authors, host-side logs of 556 runs with ext, covering 13,717 model requests, showed zero dropped task constraints, zero context budget overruns and zero test-file edits. This is what the authors observed in those runs.
On a task of answering three questions from a log of about 1.2 million tokens, they ran Haiku 5.5, Sonnet 5.5 and Opus 5.5 twice each, six runs in total. ext enforced a USD 0.30 cap on the host side; all six runs stayed within budget, and five answered all three questions correctly. Here the operator added two rules that make policies trim oversized outputs to fit the remaining budget, and the agent itself was not told the budget. Exo, an earlier self-improving agent that the authors ran themselves for comparison, was told the budget in the prompt. Exo answered every question in all six runs, but both Opus runs went over the cap (by 45% and 85%). The authors themselves note that the dollar amounts are not directly comparable, because the baseline prompt overhead and caching differ from Exo's.
Improvements were also reported on other tasks:
- An incident-record audit with a 200K context (Sonnet 4.6): plain Claude Code stopped partway in both runs, scoring 0/204; ext scored 199/204 and 204/204.
- Long build tasks (a 100K-token context budget): the share of tests passed rose by 12 points, at 0.85× the run cost.
- Research QA across many documents (Haiku 5.5, 102 runs each): the share of runs answering all 24 questions correctly rose from 33% to 53%.
- Nine short coding tasks (Opus 5.5, three runs each): solves rose from 14/27 to 22/27. On the three tasks not used to develop the policy, it solved 9/9 (plain Claude Code: 8/9). With the same policy, Sonnet 5.5 rose from 15/27 to 18/27, and Haiku 5.5 kept the same number of solves at 0.40× the cost.
Limits
Costs can also go up. On long tasks (Haiku 5.5, a 32K context budget), ext raised success from 92% to 100%, at 1.30× the cost of the plain harness, including writing the policy. The authors note that this was 27% and 45% cheaper than the other fixed settings that also reached 100%.
As of the blog post, the code has not been released, and the post does not mention a paper or third-party replication.
What to check when setting rules for running AI agents
Companies running AI agents should check the following:
- Are budgets and rules that must be followed only stated in the prompt?
- Can limits and rules be enforced by mechanisms on the host side?
- Have you separated what the agent may decide about its own operation from what the operator fixes?
This research shows an approach of making agents follow rules through mechanisms rather than prompts. But the figures are the authors' own evaluation, and the code has not been released yet.
Elith builds AI products for enterprises and conducts advanced research, with AI safety and security as its foundation. We share trends in AI safety and security, along with insights from research and practice, through Elith AI Signal. We will continue to read research on the operation and safety of AI agents from primary sources and report on it.

