# albedo_ext_persistent_agent `albedo_ext_persistent_agent` forms dated, first-person memories in the background and uses them to compact long-lived sessions. - [`extension`](src/albedo_ext_persistent_agent.gleam) returns the extension declaration. - [`extension.gleam`](src/albedo_ext_persistent_agent/extension.gleam) contributes the `persistent-agent` compaction strategy, settings, and an owned memory-forming worker. - The strategy reads and writes the [shared LCM graph](../../packages/albedo_lcm/README.md) under the `lcm-memory` owner. - Cleanup removes session graph and failure records. The transfer declaration leaves failed-merge records behind, while `lcm-memory` moves the graph. See [the compaction reference](../../robot-docs/compaction.md).