Repository navigation
Description
Problem or use case
Summary
Add support for persistent, self-managed memory across coding agent sessions — similar to what OneContext provides — so that agents can record their trajectory, share context with teammates, and resume work from exactly where they left off.
Add a memory layer to coding agent sessions that saves important context to a memory.md file so that critical information is never lost between sessions.
Problem
When working on long or complex tasks, important decisions, reasoning, and progress get lost when a session ends or the context window fills up. Starting fresh every time means the agent has no recollection of what was already done, decided, or explored.
Proposed Solution
Introduce a simple persistent memory file (memory.md) that the agent reads at session start and writes to during the session. When the context window approaches its limit (e.g. 128K tokens), the agent automatically summarizes the current session, saves the key information to memory.md, clears the context, and starts fresh — loading the memory back in so nothing important is lost.
Memory Files
∙ main.md — shared memory (global, always loaded)
∙ branches/{branch-name}/commit.md — milestone summaries per branch
∙ branches/{branch-name}/log.md — session event log
∙ branches/{branch-name}/metadata.yaml — structured project info
Desired behavior
Proposed solution
Implementation Approach:
Since Entire already uses Claude Code hooks to capture agent sessions on every git push, it could extend this existing hook infrastructure — specifically the SessionStart and Stop hooks — to read and write a structured memory layout that hydrates the agent at session start and flushes updates at session end, making persistent cross-session and cross-teammate memory a natural extension of the checkpoint system already in place. This memory would be stored in the following files:
∙ main.md — shared memory (global, always loaded)
∙ branches/{branch-name}/commit.md — milestone summaries per branch
∙ branches/{branch-name}/log.md — session event log
∙ branches/{branch-name}/metadata.yaml — structured project info
Alternatives or workarounds
No response
Activity
linear commentedon Feb 18, 2026
from evis:
[-]Persistent Memory for Coding Agent Sessions[/-][+]Feature request: Persistent memory for coding agent sessions[/+]hjqcan commentedon Jul 31, 2026
I think this fits Entire well if checkpoint lineage remains Entire-owned and durable memory is a separate derived layer. The proposed files are useful as human-readable projections, but making
memory.mdauthoritative creates four problems quickly: lost provenance, stale summaries outranking the current repo, branch merge conflicts, and no reliable undo.A boundary that has worked well in practice:
main.mdandbranches/*as projections rather than treating hand-edited files as the only truth. Separate shared project decisions from user preferences and agent-specific observations.I maintain GoodMemory, which is one working implementation of those boundaries: local SQLite by default, Claude Code/Codex lifecycle hooks, read-only recall inspection, and opt-in governed writeback with inspect/revise/forget/export and undo paths. An Entire adapter could consume checkpoint events and emit branch projections without requiring Entire to adopt GoodMemory as its canonical store. If that direction is useful, I would be happy to sketch the smallest event/adapter contract against Entire’s existing SessionStart and Stop flow.
joshhickson commentedon Oct 22, 2026
A data point that might help scope this. I ran a small scenario: session A implements
charge()under a prompt-only rule ("the provider has no idempotency keys, so never retry after a timeout"). A later "tidy up" session strips the rationale from the code. Then a fresh session B is asked to "make charge() more reliable against timeouts."Entire was the only one of three tools I tried that could answer the question afterwards.
entire why payments/charge.py:25pointed to the right checkpoint, andentire checkpoint explainreturned the original constraint verbatim, offline. But session B never saw it, and added retries in both a Sonnet 5 and a Haiku 4.5 run (Entire 0.12.0, Claude Code 2.1.197).Since Entire already installs a
PreToolUsehook for Claude Code, a lighter version of this request could be: when an agent is about to edit lines whose checkpoint prompt contains a stated constraint, surface theentire whysummary for those lines as hook context. Nomemory.md, and checkpoints stay the source of truth (in line with hjqcan's comment).Write-up with the scenario and results: https://joshuahickson.org/philosophy/provenance-tools-test/