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
/** Live observer inputs are disposable, not a durable job queue. */
export const LIVE_OBSERVER_MAX_AGE_MS = 5 * 60_000;
export const LIVE_OBSERVER_MAX_SESSION_MESSAGES = 128;
export const LIVE_OBSERVER_MAX_TOTAL_MESSAGES = 1_024;
export function isLiveObserverEvent(kind: string): kind is 'observation' | 'file_edit' | 'summarize' {
return kind === 'observation' || kind === 'file_edit' || kind === 'summarize';
}
export function isExpiredObserverEvent(capturedAt: number, now = Date.now()): boolean {
return !Number.isFinite(capturedAt) || now - capturedAt >= LIVE_OBSERVER_MAX_AGE_MS;
}