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
export interface WorkViewRequest extends Record<string, unknown> {
id: string;
lifecycle?: { explicit?: boolean; complete?: boolean; status?: string } | null;
contentFingerprint?: string;
legacyContentFingerprint?: string;
review?: { checked: boolean; checkedAtEpoch: number | null; actor: 'local-user' | 'shared-user' | null; available: boolean; mode?: 'local' | 'shared'; hash?: string | null; version?: number; conflict?: boolean; legacy?: boolean; pending?: boolean; message?: string };
sharedReviewDescriptor?: import('./shared-reviews.mjs').SharedReviewDescriptor;
sharedReview?: import('./shared-reviews.mjs').SharedReviewState;
/** The conversation its my-focus placement is keyed by (my-focus.mjs placeRequests). */
anchorConversationKey?: string | null;
/** Its live focus area ('other' for Other); absent while it is not sorted yet (my-focus.mjs placeRequests). */
focusAreaId?: string;
/** Its sub focus in that area; absent while it has none (my-focus.mjs placeRequests). */
subFocusId?: string;
}
export interface WorkViewSnapshot extends Record<string, unknown> {
revision: number | string;
source: { connected: boolean; error?: string | null; [key: string]: unknown };
humanRequests: WorkViewRequest[];
/** The judge's open suggestions (request-groups.mjs openSuggestions); each is also on its conversation's request as `suggestion`. */
suggestions?: import('./request-groups.mjs').RequestSuggestion[];
}
export class WorkStateSource {
localDeviceId: string;
agentRevision: number;
constructor(options?: { databasePath?: string; currentProject?: string; parentProject?: string; titleCachePath?: string | null; ledgerDir?: string | null; pollIntervalMs?: number; localDeviceId?: string });
read(options?: { maxActivityAgeMs?: number }): { agentView: WorkViewSnapshot; [key: string]: unknown };
readRules(): { rules: import('./my-rules.mjs').SavedRule[]; source: { connected: boolean; error: string | null; lastCheckedAt: string } };
invalidateActivity(workState?: boolean): void;
evidence(kind: string, id: number): Record<string, unknown> | null;
file(kind: string, id: number, index: number, localDeviceId?: string): string | null;
/** The bucket copy a deliverables row names, while it exists: its path, title and kind; null otherwise. */
deliverable(id: number): { id: number; title: string; kind: string; path: string } | null;
close(): void;
}
export function reduceWorkState(entries: Array<Record<string, any>>, options?: Record<string, any>): any;
export { readFocus, readFocusAreas } from './my-focus.mjs';