Agent session history
Browse and resume past Claude, Codex, Muse Code, Cursor, Gemini, and other agent sessions from Orca's right sidebar.
Orca scans the on-disk session transcripts that supported agent CLIs leave behind and lists them in a right-sidebar panel called Agent Session History. Pick a past session, click Resume, and Orca runs the agent's resume command in a fresh terminal — same cwd, same session ID, no manual --resume flag wrangling.
Open the panel
Open the right sidebar and switch to the Agents tab. The panel header reads "Agent Session History".
The header shows a count like 12 shown · 47 recent and a search box. Type to filter by session title, working directory, branch, model, or preview text from the conversation.
Session History can also search indexed transcripts from other connected computers and paired Orca Servers. Turn on Search inside sessions for the computers you want under Settings → Session History (or use Enable on all computers). Orca shows a host-scope notice when a computer is offline or has not granted indexing access. Searchable data stays on each computer; the local panel still lets you browse sessions that have not been added to the index.
For scripts and terminal workflows, use orca search to query the same index without opening the panel.
Scope
The scope toggle at the top of the panel decides which sessions appear:
- Workspace — sessions from the current workspace or worktree, depending on the active workspace context.
- Project — sessions that resolve to the active Orca project.
- All — every session Orca found across every agent on this machine.
Remote workspaces can browse local history, but resume actions only run from local workspaces — Orca tells you so in the panel when the active worktree is remote.
View options
The view-options menu (next to the search box) controls which agents are scanned and how sessions are grouped:
- Agents — toggle individual CLIs on or off (Claude, Codex, Muse Code, Hermes, Pi, OMP, Prime Agent, Cursor, Gemini, Antigravity, Rovo Dev, Copilot, OpenCode, Grok, OpenClaw, Devin, Droid, Kimi, Kiro, CodeBuddy, ZCode, Qoder). Disabled agents are skipped during the scan. Use Select all / Clear in the Agents header to flip every agent at once — Clear leaves none selected so you can turn on only the CLI you care about without unchecking a long list. An empty selection shows No agents selected instead of the usual empty-filter message.
- Group —
Project,Folder(one heading percwd), orAgent(one heading per CLI). - Hide empty sessions — drop sessions with zero recorded messages.
Use the sort control above the session list to order browsing by Last updated or Created. When you search, that control offers Most relevant or Newest instead. Equally relevant matches show the newer session first. Your search sort is remembered separately from the browsing sort. If a search reaches its scan limit, choose Show more below the results to search further back.
Resume a session
Click a session row to open its details: working directory, branch, model, message count, First prompt, and the latest conversation turns. First prompt loads the untruncated first user message from the transcript when you expand details (list rows only keep a short preview for search). Use Copy on that card to put the full ask on the clipboard — useful for reusing a long prompt without reopening the log. You can also drag an enabled session row into the workspace to resume it. From the row's actions you can:
-
Resume — opens a new terminal in the session's
cwdand runs the agent's resume command (e.g.claude --resume <id>,codex resume <id>,muse resume <session-id>,pi --session <session_file>,prime-agent --resume <path>,cursor-agent --resume <id>,acli rovodev run --restore <id>). Codex sessions also re-exportCODEX_HOMEwhen the original session set one. -
Resume in New Native Chat — opens a new structured chat tab with the previous conversation visible, for eligible sessions (Claude must resume in its original workspace; Codex can resume in another workspace; a chat that started in a folder workspace resumes in that same folder). Resume in New CLI does the reverse, forking a structured chat's conversation into a terminal. Both are also on the tab's right-click menu. Once a conversation is reserved for structured chat, terminal Resume is no longer available for it. See Chat UI for availability.
Droid and Kimi terminal sessions can also use Resume in New Chat; the chat resumes in the session’s original folder. Hermes terminal sessions can use Resume in New Chat in their original workspace and profile. See Hermes Chat requirements.
Pi resumes from the on-disk session file reported by its hooks (--session <path>), not from a bare session id. If that file is missing, Resume is unavailable for that row even when a session id exists.
- Copy resume command — copies the same shell command to the clipboard for use in an external terminal.
- Copy session ID / Copy log path — for scripting or attaching transcripts to bug reports.
- Open log / Reveal log — open the raw transcript file in Orca, or jump to it in your OS file manager.
- Open cwd — open the session's working directory as a workspace.
Where the transcripts come from
Orca reads each agent's own on-disk session store — Codex's ~/.codex/sessions, Claude's ~/.claude history, Muse Code's ~/.local/share/muse/sessions, Cursor's session log, OpenCode's legacy session files or ~/.local/share/opencode/opencode.db, CodeBuddy's project transcripts under .codebuddy/projects, ZCode's stored transcripts, Qoder's ~/.qoder/projects transcripts, and so on. There's nothing extra to enable; if the CLI writes a transcript, it shows up in the panel after the next scan. Use the Refresh Session History button in the header to rescan on demand.
Next steps
- Hot-swap Codex accounts — switch the Codex login behind an active session without restarting it.
- Hooks & memory — control what context an agent picks up on every launch (including resumed sessions).