Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
TypeScript aiai-agentsai-memoryanthropicartificial-intelligencechromadbclaudeclaude-agent-sdkclaude-agentsclaude-codeclaude-code-pluginclaude-skillsembeddingslong-term-memorymem0memory-engineopenmemoryragsqlitesupermemory
/** Writes the file (the shared ledger adapter renames it under its database write lock) and reports whether recording it
* is complete or, with the decision already saved, left for its reconciler. */
export type SharedFileWrite = () => { materialization: 'complete' | 'pending'; reason?: string } | void;
/** readHash: the hash of the file the value was built from; the writer refuses the value when the file changed since. */
export type SharedFileWriteOptions = { readHash?: string };
export function registerSharedFileWriter(directory: string, beforeWrite: (name: string, value: unknown, options?: SharedFileWriteOptions) => SharedFileWrite | null): () => void;
export function beforeSharedFileWrite(path: string, value: unknown, options?: SharedFileWriteOptions): SharedFileWrite | null;