ext Gives Coding Agents eBPF-Style Guardrails and Cuts Compaction Thrashing

Agent Harnesses Need Their eBPF

Coding agents like Claude Code rely on hardcoded heuristics for compaction, reasoning effort, and context management, and letting agents rewrite their own harness invites silent rule violations. The authors propose ext, which borrows eBPF's model: the harness owns mechanisms and invariants, while agents write policies through typed hooks that an SMT verifier checks before loading. Across 550+ runs it produced zero rule violations, lifted a 200K-window audit from 0/204 to 204/204, and raised multi-hop QA success from 33% to 53% at the same cost.

Poorly written policies and buggy implementations hurt the human operator, not just the agent: they burn the operator's budget, violate project constraints, and cause tasks the operator cares about to fail.
  1. nostrebored

    There is an entire domain of classical planning that people developing harnesses are rediscovering. We have had SMT constraints running in production for two years, and it is largely a useful endeavor.

    The entire gist of this can be summed up by saying that configs should be strongly typed and enforced.

    The fact that people run agents without these constraints or this level of auditability should be concerning! The harnesses that people use and solutions built for them are generally just a sandbox and a prayer.

    Even for relatively simple agents, building these SMT constraints should give people a healthy fear over the amount of branching that they have in their agents today. Relatively simple agents can have state spaces that overflow 2^64 (and that is only if you're asserting on presence and not value).

    Cool to see people poking around here, jump in, the water is warm.

  2. Dayshine

    Does anyone know of any projects, or even paid services, which support even really basic policies like this agent sandbox can access these package repos and these authenticated APIs? With https MITM, a way to get git in and out without exposing your actual git service, cost limits, reasonable UX for terminal, etc?

  3. winrid

    I was building a thing [0] to sandbox agents, but seems like a lot of people just trust the LLM ^_^ watchly uses eBPF and nfqueue too. The idea is it can pull you in the loop as needed. You can configure patterns/scripts for what file or network paths to isolate. People probably just use bubblewrap with some kind of plugins to do what I'm trying to do, now. any pivot ideas welcome :)

    [0] https://watch.ly

  4. agentdev001

    I don't understand why folks go with Claude Code for these things. You cannot read the source code- why do something 'researchy' on top of it?

  5. tinco

    Execution traces to guide and constrain LLM behavior is really interesting. At Bosun we use eBPF to help companies migrate legacy codebases to modern stacks. Designed for Linux of course but recently we did an Oracle Forms migration project and our verification technique worked perfectly well for intercepting desktop UI and DB calls as well.

    https://blog.bosun.ai/oracle-forms-migration-parity/

More from this day

2026-12-03