Post
Memory Systems XXV: eBPF and the Sidecar
The previous part set rules for how a sidecar should live. eBPF is a good stress test of them. OpenAI and Cisco’s Shirudo put it in front of me [1], and I asked whether it could replace the loop I run in Python.
eBPF lets small programs run at specific points inside Linux, so they can observe activity and apply targeted protections to a running system without a restart [1]. Shirudo’s README lists observing process executions, network activity, and privilege changes, and hardening for LLM agents [2]. My read is that it is an excellent observer: it can see what an agent touched without changing the agent, and Dream could use that.
It is the wrong layer for the sidecar, for reasons the rules already state.
Serve is a precondition. It arrives through the host’s lifecycle hook before each model step. eBPF sees events after they happen. It can watch the agent, but it cannot put the right Thread in front of the model first.
Nothing is captured automatically. A kernel hook sees everything, and that is the pull toward auto-capture the rules refuse. Writes enter only through an explicit Propose.
Reconcile and Dream need more room. The verifier checks every eBPF program against safety rules before it loads [1]. My claim is that this is the right design for a guard and the wrong one for judging a Thread against a Narrative, which needs ordinary userspace and a model.
The contract has to travel. My sidecar is a process behind a small socket contract that a future L7 proxy can speak. eBPF is Linux-kernel specific, and Shirudo’s production targets need a kernel with its patches and a TPM 2.0 [2]. Because eBPF lives inside Linux, it doesn’t follow a coding agent running on a Mac.
The strongest objection is that eBPF needs no host adapter. It watches every agent the same way. I agree, and it is the case for using it as an observer. But the adapter is the thin part that puts Serve ahead of the decision. Removing it removes the position that makes Serve a precondition.
So eBPF could sit beside the sidecar, posting what it saw for Dream to weigh. It cannot be the sidecar. What stays open is whether observing from outside the agent tells Dream anything the hooks do not.
[1] OpenAI, “OpenAI and Cisco introduce Shirudo”, November 23, 2026
[2] shirudo-dev, “shirudo”, README
A philosophical exploration in memory systems, part 25. Terms · Previous: The Sidecar Pivot