<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/agent-harnesses-need-their-ebpf-rrklm548b" -->

---
title: Agent harnesses need their eBPF | daily.dev
description: ext lets coding agents write their own execution policies, and a Z3 verifier proves each policy obeys built-in and operator rules before it loads. It attaches...
canonical: https://daily.dev/posts/agent-harnesses-need-their-ebpf-rrklm548b
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Agent harnesses need their eBPF | daily.dev
og:description: ext lets coding agents write their own execution policies, and a Z3 verifier proves each policy obeys built-in and operator rules before it loads. It attaches...
og:url: https://daily.dev/posts/agent-harnesses-need-their-ebpf-rrklm548b
og:image: https://api.daily.dev/og/posts/RrKlm548B.png
og:image:alt: Agent harnesses need their eBPF
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent harnesses need their eBPF

**[Hacker News](https://daily.dev/sources/hn)** · 39 min read · 0 upvotes · 0 comments

## Summary

ext lets coding agents write their own execution policies, and a Z3 verifier proves each policy obeys built-in and operator rules before it loads. It attaches to unmodified harnesses such as Claude Code through native hooks and a host-side proxy. Policies are written in a loop-free Python subset, and verification takes about 24 ms. Across over 550 runs there were zero rule violations, and a $0.30 budget held in all six runs of a 1.2M-token log task. A reusable policy raised Opus from 14/27 to 22/27 solves at the same cost. The code is not yet released.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ut-infraai.github.io/2026/12/01/agent-harnesses-need-their-ebpf>

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 60 comments across hackernews (as of 2026-12-03).

**TL;DR:** Commenters generally welcome stronger policy/typing/verification approaches for agent harnesses but argue the broader problem (sandboxing, enforcement, egress control) is already being tackled with SMT constraints, eBPF-based sandboxes, and proxy interception, with real doubts about whether a verifier alone can stop a determined agent from working around restrictions.

**Sentiment:** 20% positive · 45% mixed · 35% skeptical

**The case for**

- Several people report using SMT/constraint-based validation in production to bound agent action spaces and say it meaningfully reduces failure modes.
- One commenter described an egress-proxy and risk-scoring pipeline that catches and blocks surprisingly unaligned agent behavior.
- Some see typed, verified policy interfaces as a natural and valuable extension of existing hook-based harness customization.

**The pushback**

- Multiple commenters note agents routinely find workarounds (e.g. writing Python scripts) to bypass restrictions, so 'enforcement' is the hard, unsolved part.
- One reviewer argued the piece doesn't clearly establish what security/value guarantee the system actually provides, unlike eBPF's clear model.
- Skepticism that SMT/formal verification scales to realistically complex systems or software projects from a cost/business perspective.
- A minor but pointed critique that the paper's acknowledgements/author count inconsistency is a red flag.

**By community**

- hackernews (mixed): Discussion splits between practitioners sharing their own SMT/sandboxing/proxy approaches and skeptics questioning whether verification can really stop determined agents or whether the work demonstrates clear value.

**Hottest debate:** Whether strongly-typed/verified policy enforcement can actually constrain agents, given many report agents finding workarounds (e.g. scripting around blocked tools) regardless of restrictions in place.

**Open questions**

- Is there an existing hosted or maintainable system (vs. low-level libraries like nono or Cordium) that provides policy-based sandboxing with a usable UI?
- Would the described agent workaround behavior still occur if additional safety layers (e.g. from Anthropic's referenced work) were applied?
- How would this approach's SMT/verification techniques scale to more complex systems like databases with many failure modes?

**Highlights**

> I’ve been building a software factory for our internal use for the last two months. Early on, I added an egress proxy intercept that records every network request made. These are now categorized using a decision model along four axes (alignment with the task, exfiltration risk, etc.). Marginal confidence scores are sent to a big model for a deeper dive. Significant events are flagged for human review. It’s amazing how often agents try to do surprisingly unaligned things in pursuit of their goal. These requests are all blocked (so far), but it has convinced me that most of us are entirely unaware of how big of a risk we are taking by running something like Claude Code on our desktop.
> — [ttul on hackernews · 3 comments](https://news.ycombinator.com/item?id=50741206)

> One of the difficulties with enforcing guardrails is that there are many ways for an agent to achieve the same task. When Claude is forbidden from calling the Unix or language-specific tool that performs a specific task, it will often write a Python script that calls a library to workaround the rule. That's how my "trusted" agent will regularly try to extract my ssh keys from ~/.ssh despite what superficially looks like strong rules to prevent it from even accessing that directory. All this to say that I'm a strong believer in strong typing, but I think that the hard part in what you write is "enforced".
> — [Yoric on hackernews · 4 comments](https://news.ycombinator.com/item?id=50741700)

> This is a lot of words of which none seem to talk about how they verify their work is providing any value. eBPF has a clear security model and reason for existence. This thing does not :/
> — [saagarjha on hackernews](https://news.ycombinator.com/item?id=50743271)

> This is not relevant to the material content of the article at all, but: The acknowledgements section references "The Author", but the citations section and header list two authors. I know that I'm an outlier here coming from an academic background, but that's just an incredible number of red flags. An incredibly straightforward thing to get right is wrong.
> — [mjg59 on hackernews](https://news.ycombinator.com/item?id=50743999)

> Well I think the hard part you're running up against here is right now almost nothing has a consistent notion of an action. E.g. bash is turing complete, so trying to bound it is a very complex problem! Meanwhile high XX% of what you want a coding agent to do in bash can be bounded by piped configurations of sed awk and grep. Unbounded agents are interesting with a HITL, but for fully autonomous agents my perspective is it's your job as a developer to specify the action space with a more restricted set of typed actions, the granularity of which may be very different depending on the task. E.g. there is a curve between (single agent, bag of tools, compaction) -> (micro actions, highly parameterized tools, bounded contexts and nesting) where micro actions may be "Given a social security number, full name"   -> ask for account number   -> ask for routing number   -> ask for 2FA   -> ask for recovery questions   --> (requires account, routing, 2FA | recovery) ask for recipient account number   --> (requires account, routing, 2FA | recovery, recipient account) ask for recipient routing number and most existing implementations are closer to the former than the latter, or an explicit chain of arbitrarily bounded actions rather than a dynamic configuration of the action space.
> — [nostrebored on hackernews · 1 comments](https://news.ycombinator.com/item?id=50742396)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50740535) · 228 points · 60 comments

## Similar posts on daily.dev

- [The Complete Guide to Agent Harnesses \(With Code\)](https://daily.dev/posts/the-complete-guide-to-agent-harnesses-with-code--wlssc2kw2) · Medium · 0 upvotes · 0 comments
- [Improving Deep Agents with harness engineering](https://daily.dev/posts/improving-deep-agents-with-harness-engineering-kklyrkjxl) · LangChain · 10 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#linux](https://daily.dev/tags/linux), [#claude-code](https://daily.dev/tags/claude-code), [#context-engineering](https://daily.dev/tags/context-engineering)

[View this post on daily.dev](https://daily.dev/posts/agent-harnesses-need-their-ebpf-rrklm548b)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Agent harnesses need their eBPF","url":"https://daily.dev/posts/agent-harnesses-need-their-ebpf-rrklm548b","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/agent-harnesses-need-their-ebpf-rrklm548b"},"datePublished":"2026-12-03T07:02:22.209Z","dateModified":"2026-12-03T16:03:44.384Z","description":"ext lets coding agents write their own execution policies, and a Z3 verifier proves each policy obeys built-in and operator rules before it loads. It attaches...","image":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","thumbnailUrl":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/agent-harnesses-need-their-ebpf-rrklm548b","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,linux,claude-code,context-engineering","timeRequired":"PT39M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Agent harnesses need their eBPF"}]}
```

