The game-dev part of my brain keeps wondering why Claude Code-style agents still don’t have a real save state. In games, a save file is portable. You can stop mid-quest, move to another machine, load later, and continue from the same checkpoint. With agents, “state” is usually scattered across in-memory variables, a giant context window, tool side effects, and whatever logs or memory files happen to exist. If you’ve ever had a session compact right when it finally understood the codebase, you know the feeling. I was reading through the open-source Holaboss runtime, and the interesting part is that it doesn’t try to “save the model.” It saves the runtime around the model. The split looks roughly like this: state/runtime.db stores execution truth: normalized turn_results , compaction boundaries, request snapshots, queue/session state, and durable memory metadata memory/ stores the human-readable durable memory bodies AGENTS.md stays as the human-authored instruction surface instead of becoming a dumping ground for runtime state So the “save file” is less “one huge transcript” and more: workspace files + runtime.db
- indexed memory files + explicit restore ordering What I like about this design is that future runs restore from durable runtime artifacts first, then inject a small relevant memory subset. That feels much closer to a game checkpoint / VM snapshot mental model than hoping the agent can infer everything from raw chat history. It’s obviously not perfect determinism. You’re not serializing model internals, and external side effects still need to be handled carefully. But for Claude Code-style workflows, this feels like a much saner answer to compaction, multi-session continuity, and handoff between machines. Curious how people here are handling this today: hooks + markdown memory MCP memory servers SQLite-backed continuity / checkpoint layers something else entirely? If you want to inspect the architecture yourself, the repo I was reading . Worth skimming the Architecture Overview and memory sections even if you’re building a different stack. submitted by /u/Careful_Equal8851
Originally posted by u/Careful_Equal8851 on r/ClaudeCode
