small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

persistent-agent: an agent that lives across days writes its own dated memories as it goes and folds them in rarely

A summary written as a spec for another coding agent keeps rules and drops what happened between people: a session's memory of one morning kept "Ana: I can exist thru the day" and lost every word of the conversation it came from. `persistent-agent` shares coding-lcm's graph and tools, but the agent writes each memory itself, in the first person and dated, soon after its stretch happens: when a turn ends with a memory's worth (`chunkTokens`) since the last, a background call replays the request that turn just sent, with a note asking for the memory at its end, so the provider reads the whole prefix from its cache. Memories wait in `lcm_pending_memory`, shown nowhere, and a fold at `foldTokens` publishes the chain of them that starts before the verbatim tail (`tailTokens`), so the request only appends between folds. The oldest are consolidated in the agent's voice past `memoryTokens`, and a forced fold re-forms a coding-lcm session's recent or failed spec leaves from their rows. Each memory shows as a note naming it and its span in absolute local time, answered by an assistant turn holding the memory; there is no notes layer, since the newest memory ends with what is still open. A background call now answers its reply text as well as its usage (`compaction.Answer`), nodes record their `voice`, and `lcm_list` shows when each fold's rows were written.


Author nekomimi.pet
Date Commit Parent bd24c5d0