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
My Work wireframe
A structural wireframe of the My Work LIVE spec (.scratch/work-state-spec/SPEC.md), in React with shadcn/ui and AI Elements. Sample data only. Visual design still goes through image mockups (spec §11).
npm install
npm run dev # http://localhost:5173
npm run coverage # checks every UI requirement is on screen, writes COVERAGE.md
How coverage works
src/spec/requirements.tslists every requirement in the spec with an id (R5.6is §5;D5is decision 5 in §15). Each one is markedui,backendorprocess.- Wireframe elements are wrapped in
<Req ids={['R5.6']}>. Turn on Show spec IDs in Workspace (Developer options) to see the ids on screen, and hover one to read the requirement. npm run coveragefails if auirequirement has no tag, and writesCOVERAGE.mdwith where each one appears.
What's where
| Screen | File | AI Elements used |
|---|---|---|
| The top bar on every page (My Work, Focus areas, Requests, Review Stack, My Rules, Find work, Memory, "…"), the phone's bottom bar, and the loading and "Local work couldn't load" screens that draw the same bar | src/components/app-bar.tsx, src/components/app-shell.tsx, the places in src/ui/app-places.ts (shared with Memory) |
— |
| My Work (home): what waits on you, the lead request, the others beside it, the first three focus areas | src/pages/my-work.tsx, lead choice in src/live/home-lead.ts |
— |
| A focus area's page: its head (crumb, name, goal, picture), its sub focus cards with More and All requests (or its list), Not started, About this area and Area options; a sub focus page with Rename, Merge into and each row's Move to another sub focus | src/pages/focus-area.tsx, src/components/focus-header.tsx, src/components/sub-focus-dialog.tsx, the card rule in src/live/area-page.ts |
— |
| Focus areas, with the last focus change and its Undo above its tabs: Current (the kept areas in the owner's order, a find box and a sort) | src/pages/focus-areas.tsx |
— |
| Focus areas' Suggested tab: one suggestion at a time, Keep area, Dismiss, Rename, Merge, Undo | src/pages/focus-areas-suggested.tsx |
Confirmation |
| Focus areas' Past focus tab: the saved months, newest or busiest first, then the areas marked done | src/pages/focus-areas-past.tsx, orders in src/live/past-focus.ts |
— |
| Build story: the saved narrative, reached from Past focus | src/pages/build-story.tsx |
— |
| Requests: status tabs, one line per request, By agent, Team | src/pages/requests.tsx |
— |
| A shipped request's open follow-ups, in the request page | src/components/open-follow-ups.tsx |
— |
| Request page: whose move first, then its doors (Conversation, Records, Deliverables) and one session's reply box | src/pages/request.tsx, what each door holds in src/live/request-page.ts |
Chain of Thought, Task, Queue |
| Find work (Cmd K): focus areas, requests and rules in use already loaded, grouped by what they open, then "Search loaded memories" | src/pages/find-work.tsx, the matching in src/live/find-work.ts |
— |
| Workspace ("…"): Appearance, This computer, Tools and support | src/pages/workspace.tsx |
— |
| Machine and sync: this computer, cloud sync, focus review, worker version, the last learning run, unlinked records | src/pages/machine-sync.tsx |
— |
| The one failure line under a page title after a failed review | src/components/review-failed-line.tsx, the review's states in src/live/refresh-line.ts |
— |
| Review Stack | src/pages/review-stack.tsx |
— |
| My Rules: In use by scope, Suggestions one at a time with Up next, Dismissed with Undo, the rules file preview | src/pages/my-rules.tsx, its tabs in src/live/rules-page.ts, the card's order in src/live/rule-queue.ts, sample rules in src/data-rules.ts |
Confirmation, Inline Citation |
The sample's sub focuses (src/data-sub-focuses.ts) are made by the worker's own row builders and reducer from a router answer written in scripts/sample-sub-focuses.ts (bun scripts/sample-sub-focuses.ts --write); a test holds the file to what the script makes.
In sample mode (?source=sample), the sample strip switches between At home (localhost) and On the go (cmem.ai), which changes the live source, Refresh behavior and where edits are saved from. Setup (?setup=1) lives in src/setup/.
Shared request state
src/data.ts REQUESTS is the one source of request state. updateRequest() replaces an entry in place and checks the lifecycle rules (assertConsistentRequest: state, stage, progress and next move must agree), and useRequests() re-renders on change, so Home, Requests, a focus area's page and the request page show the same state. The 7-second demo (playDemoUpdates) finishes the wireframe request as one coherent change; "Mark checked" hands a request back to you to ship and never marks it shipped.
Truth rules in the sample: the ship estimate only shows with two or more advancing progress readings (measuredEstimate), progress states its review coverage, and work-product links without a real target render as sample instead of a dead link. Agent marks and the cmem mark are inlined in src/components/brand.tsx. Generation cost is not shown (the owner dropped it on Oct 20, 2026).
Recorded request copy
The live mapper (src/live/to-work-model.ts) displays generated request-group and title-cache titles from the worker. Grouped requests with a progress review use its summary, including when their title comes from the title cache. These recorded texts do not depend on the optional human-copy provider. Ungrouped requests and groups awaiting their first review retain the human-copy path; raw prompt-derived titles are not treated as generated display text. Reviews and observations count as recorded work even when no work-state item exists. A review superseded by a newer explicit lifecycle cannot supply the current summary; historical partial readings remain available.