Skip to content

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

1.3 KB
Raw Blame
// How much of a request the worker sends: the one definition. The worker cuts and keeps by these numbers
// (request-projection.mjs), and My Work's mapper (src/ui/my-work/src/live/to-work-model.ts), which also runs on the
// worker for the overview and each request's detail (overview.ts), reads them so it never cuts shorter than the worker
// did and can say when a list was cut. No imports, so every bundle, the browser's included, can load it.

/**
 * The longest a request's recorded ask is kept, in characters (request-projection.mjs requestText, a cut unchanged since
 * the projection began in #4838): a bound on each request's share of the snapshot every reader receives. A request's
 * session page shows the owner's words up to it, whole (design pass Phase 9).
 */
export const REQUEST_ASK_CHARS = 1200;

/**
 * The most records (work-state updates and observations) a request lists, newest first (request-projection.mjs
 * activityFor, a cap unchanged since #4838): a bound on each request's share of the full snapshot and of its detail.
 * Measured 2026-11-28 on the owner's data: 1 of 222 requests reached it, its 40 records 33,877 bytes (about 850 a row).
 * The cap is reached quietly here, so My Work says so wherever it counts them: "Latest 40 records", never a total.
 */
export const REQUEST_RECORD_LIMIT = 40;