Post
Memory Systems XXIV: The Sidecar Pivot
In Sidecar and Harness I drew the line: a harness owns the loop, and a sidecar runs beside a loop something else owns. The test was whether the contract stays small.
That line now gives the memory system in this series two jobs. It still owns the memory-control loop: Serve, Propose, Reconcile, and Dream. It also has to be the working example of how a sidecar should live: its own process, a Serve that fails open, room for other narrow sidecars beside it, and a contract a future proxy can speak without rewriting the sidecar.
That is not a second product stuffed into the first. It is the same bet at a larger scale. If memory can stay a process instead of a taxonomy, a sidecar can stay a process instead of a harness.
The bet comes with rules. Each sidecar is its own OS process, and a small supervisor starts it, checks its health, and restarts it when it crashes. Serve is a bounded read with a hard latency budget. If it times out, crashes, or cannot be reached, the main loop gets an empty Serve and a log line, and keeps going. An empty Serve is not an error. It is the correct degradation, the “just worse” from Sidecar and Harness made literal. Propose, Thread updates, Reconcile, and Dream run off the critical path, so they can be slow without making the agent slow. Nothing is captured automatically. Writes enter only through an explicit Propose.
How Serve reaches the agent matters as much. It arrives through the host’s own lifecycle hooks, before each model step, not as a tool the model decides to call. A tool call puts memory back on the model’s agenda. A hook keeps it a precondition.
MemSidecar is still a useful prior for the scheduling half [1]. It is right that memory delivery belongs off the main agent’s critical path. It is also the warning. Its Hooks mode binds memory entries to executable condition functions generated by an LLM, and its Foresight mode runs an independent agent that predicts queries and caches the results [1]. Either one can turn a sidecar into a second harness that happens to run next door. So the rules here refuse both: no LLM-authored predicate decides what Serve admits, and no second agent owns prefetch.
The strongest objection is that the process boundary is overhead. An in-process library is faster and simpler, and a sidecar whose fallback is an empty Serve is a memory system that sometimes forgets. That is the trade. My claim is that it is worth it. In process, a memory crash is a harness crash, and “remove it and the agent still runs” is a hope. Across a process boundary, it is a test you can run.
What stays open is whether the boundary stays cheap. How small can the host adapter stay across Claude Code and Cursor hooks, and what Serve latency budget is honest for a local coding agent?
[1] Qijia Zhuang, Rui Liu, and Yuxiang Ren, “Who Schedules Agent Memory? A Sidecar Approach to Long-Horizon Tasks”, arXiv 2611.00779, 2026
A philosophical exploration in memory systems, part 24. Terms · Previous: Search Is Not Serve · Next: eBPF and the Sidecar