Session memory and diagnostics
AFK sessions are durable records of agent work. They keep prompts, decisions, tool calls, outputs, cost/context usage, assignments, and final answers available for follow-up turns, resumes, recalls, exports, and diagnostics.
Session history
The Hub stores completed agent messages, user messages, tool calls, tool results, structural events, assignment metadata, and shared-session participant lifecycle events. Live streaming chunks are coalesced into final messages for history so reconnecting browsers receive a clean transcript instead of every partial chunk.
Billing entitlements determine how far back archived sessions are visible: Free keeps 14 days, Trial keeps 60 days, Pro, Max, and Team keep 1 year, Business keeps 2 years, and Enterprise can be unlimited or custom.
Archived sessions
Archived sessions are hidden from active workspace lists but remain available from Account → History until retention or cleanup removes them. Archived sessions cannot be resumed directly: restore the session first, then resume it from the normal active list.
| Action | What it does |
|---|---|
| Export | Downloads a Markdown or JSON transcript without restoring the session. |
| Restore | Moves an archived session back to the active/history lists so it can be opened and resumed. |
| Delete forever | Permanently removes the archived session and stored transcript. Personal account owners and org admins can do this. |
| Preview cleanup | Shows how many archived sessions would be purged by the current retention policy before deleting them. |
Org managers and admins can filter archived history by member. Permanent cleanup is restricted to account owners or org admins; members can use retained history according to normal visibility rules but cannot purge org archives.
Retention cleanup
Billing controls the maximum visible archive window, and your History tab can also set a cleanup policy such as "purge archived sessions after 90 days." AFK can preview matching sessions, show a small sample, and then permanently delete the matching archives on request.
Export conversation
Use the chat UI export action to download a full session transcript as Markdown or JSON. Exports are generated server-side from stored session history and checked against the same session ownership, participant, and visibility rules as normal history access.
- Markdown is useful for human-readable handoff notes, postmortems, and PR descriptions.
- JSON preserves structured messages, tool calls, and metadata for automation or archival workflows.
Cross-session recall
Agents can use recall_sessions to search prior sessions andrecall_session_excerpt to fetch focused transcript excerpts. Recall obeys the same owner, org, and retention rules as archived history. Agents are instructed to retry with exact session names and broad terms before treating a past conclusion as unavailable.
Status diagnostics
Run /status in chat or use the get_session_statustool to inspect the live runtime state for a session. Diagnostics include execution environment, workspace/worktree details, active provider/model, base URL, mode, current LLM stream state when a model request is in flight, AGENTS.md layers, path-scoped rules, memory files, hooks, plugins, skills, and MCP servers.
Use diagnostics when a session behaves differently from expected — for example, if the wrong provider/model is active, a project skill did not load, an MCP server is missing, or a worktree path differs from the original repository root.
Usage and quota visibility
Sessions track token usage, cost, context-window consumption, and model changes. The workspace dashboard also shows remaining provider credit and quota when the stored connection can read it: Claude, ChatGPT, xAI, OpenCode Go, and GitHub Copilot subscriptions, Kimi subscription usage, and remaining credit for OpenRouter, DeepSeek, and Kimi API (Moonshot) keys.
OpenAI, Anthropic, Gemini, Azure, Groq, Mistral, Together, Perplexity, Cerebras, and local connections do not expose remaining credit on the inference key AFK stores, so those cards stay hidden.