If you are using Claude Code for multi-day projects, you know the pain of the agent forgetting your architecture on day two. I dug into an open-source runtime that fixes this by taking exact snapshots of the request state. The standard workaround for context drift is to cram every architectural decision, rule, and preference into a massive CLAUDE.md file. But once that file gets past a few hundred lines, the agent starts ignoring the nuances. You end up spending the first 20 minutes of every session re-explaining the project. I recently started testing an open-source MIT project, and it completely changes how agent memory works. Instead of relying on a single markdown file, it uses a four-layer memory architecture. The most important layer is what they call “compaction boundaries.” Here is how it works under the hood: When you hit a run boundary, the runtime creates a durable handoff artifact. This isn’t just a summary text. It records the recent runtime context, preserves the specific turn IDs, and defines an explicit restoration order. When you start a new session the next day, the agent doesn’t start from zero. It loads that compaction boundary, pulls in the normalized turn artifacts (which include token usage, prompt-section IDs, and request fingerprints), and resumes with the actual context intact. It also separates “raw streamed events” (used for live UI updates) from “markdown memory projections” (for durable recalled knowledge). The result is that your agent actually remembers why you structured the auth flow a certain way yesterday, without you having to write a novel in CLAUDE.md. It turns Claude Code from a one-off task runner into a continuously operating worker. It runs locally on Node 22+ and wraps the agent in an Electron desktop workspace. It supports Anthropic models, but you can also route it through OpenRouter or even local Ollama models. If you’re building complex projects and fighting context amnesia, the architecture is worth reviewing. Repo ⭐️ : https://github.com/holaboss-ai/holaboss-ai submitted by /u/canoesenpai
Originally posted by u/canoesenpai on r/ClaudeCode
