Guide
Best tools to search and resume AI coding agent sessions (2026)
AI coding agents like Claude Code, Codex, and opencode leave behind a rich trail of prompts, tool calls, and debugging decisions. By default, that trail stays locked to the machine and agent that created it. In 2026, you can solve that with built-in CLI pickers, IDE hubs like VS Code Agent Sessions, first-party cloud sandboxes, observability platforms like Langfuse, local community tools, or a synced session store like Atuin Threads. Here is how each approach compares and where each one fits best.
curl --proto '=https' --tlsv1.2
-LsSf https://setup.atuin.sh | sh
What actually matters when choosing a session tool
Not every developer needs the same thing. Someone working inside VS Code all day has very different needs from a team tracking spend in dashboards, or a terminal-first engineer splitting work between a desktop, a laptop, and three different coding agents. Six questions separate the options:
Full disclosure: this guide is published by Atuin, and we build Atuin Threads. Where a commercial platform, IDE hub, or community tool is the better fit — for cloud VMs, cost dashboards, or broad IDE coverage — we say so plainly.
-
01
Full-content search
Can you search inside prompts, replies, and tool outputs by keyword, repo, branch, or model, or only scroll recent titles?
-
02
Cross-machine continuity
Does history follow you from desktop to laptop, and can you resume a local session on arrival without copying files by hand?
-
03
Cross-agent handoff
Can you start a session in Claude Code and continue it in Codex or opencode, with tool calls or context intact?
-
04
Agent & MCP access
Can a running agent query past sessions as a tool call without resuming them, instead of making you paste summaries?
-
05
Retention & provider coverage
Does it keep sessions after Claude Code's 30-day default cleanup, and does it support the agents and editors you use?
-
06
Privacy & storage model
Does data stay on your machine? If it syncs or lives in the cloud, is it end-to-end encrypted or server-readable?
2026 comparison at a glance
The tools people reach for in 2026 fall into six distinct categories — from built-in CLI resume and major commercial platforms to local-first open-source tools.
| Capability | Atuin Threads | Native CLIs | VS Code Agent Sessions | Codex Cloud & Claude Web | Langfuse | Local community CLIs |
|---|---|---|---|---|---|---|
| Primary model | Local SQLite + E2E sync CLI/TUI | Built-in CLI / TUI | IDE sidebar & Agents window | Vendor-hosted cloud VMs | LLM tracing & analytics platform | Local indexers & handoff CLIs (cass, cli-continues) |
| Agents covered | 12 terminal agents | 1 per CLI | Copilot, Claude, Codex in VS Code | 1 vendor's agent per platform | Claude Code, Codex, Copilot, Cursor, OpenCode, Kiro, Augment | 16–30+ providers (incl. Cursor, Gemini, Aider) |
| Full-content search | ✓Indexed SQLite + filters | —Recency / title pickers | Workspace & session list | Web / app session list | ✓Full-text trace search & filters | ✓Hybrid local search (cass) |
| Cross-machine resume | ✓E2E encrypted sync + native restore | —Local disk only | Cloud & SSH hosts while connected | ✓Any browser / app (cloud tasks) | —View traces; no resume | SSH / rsync search (cass); local-only handoff |
| Cross-agent handoff | ✓Native session + mapped tool calls | —No | —Separate per agent | —Single vendor | —No | ✓Markdown handoff doc (cli-continues) |
| MCP / agent search | ✓Built-in MCP (threads + shell) | —No | —No | —No | ✓MCP over traces & prompts | Robot / JSON CLI output (cass) |
| Cost dashboards & evals | Token counts per thread | Local usage only | Copilot plan limits | Vendor billing dashboard | ✓Cost dashboards, alerts & evals | Quota tracking in macOS GUIs (Agent Sessions) |
| Pricing & data residency | MIT; free offline & personal E2E sync; self-hostable | Included with each CLI; local disk | Included with VS Code + Copilot / agent plan | Included in ChatGPT Plus/Pro or Claude Pro/Max; vendor cloud | Free tier, Pro from $29/mo, or self-hosted; server-readable | Free & open source; local disk |
Details verified against upstream docs and repositories as of late 2026: Claude Code, Codex CLI, opencode, VS Code Agent Sessions, Langfuse, cass, and cli-continues.
The six approaches, reviewed honestly
Each category solves a real slice of the problem. Picking the right one comes down to whether you work in the terminal or an IDE, whether you want local execution or cloud VMs, and whether you need analytics or resumable sessions.
-
01
Native agent CLIs (
claude --resume,codex resume,opencode --continue)Best for: Reopening your most recent session in the same directory with zero extra tools installed.
Every major CLI agent now ships its own resume flow. Claude Code offers
claude --resume,claude --continue, and--fork-session. Codex CLI hascodex resumeand in-session/resume. opencode hasopencode --continue,--session <id>, and--fork. There is nothing extra to install, and continuing the session you just closed takes one command.Where they fall short: Even on a single machine, their pickers are built around recency rather than full-content search, none can search or open another agent's transcripts, and Claude Code deletes local transcripts after 30 days by default unless you raise
cleanupPeriodDaysin settings. Across machines, local transcripts do not follow you at all. -
02
Atuin Threads (
atuin resume&atuin mcp)Best for: Terminal-first developers — whether on one machine offline or across several — who want fast full-content search, cross-agent handoff, E2E-encrypted sync, and MCP access to past sessions and shell history.
Atuin Threads captures prompts, replies, and tool calls from 12 terminal coding agents (Claude Code, Codex, opencode, GitHub Copilot CLI, Antigravity, Grok Build, Hermes Agent, Kiro, Pi, oh-my-pi, Mistral Vibe, and Amp) into a local SQLite database alongside your shell history. Even on a single machine with sync off,
atuin resumeis faster than scanning raw JSONL files, searches every prompt and reply with repo/branch/model filters, keeps sessions past Claude Code's 30-day cleanup, and lets you fork or hand off a session to another agent with tool calls mapped over. Turn on opt-in end-to-end encrypted sync (free for personal use on Atuin Cloud, or self-hosted under MIT) and the same picker restores native transcripts on any of your machines. Its built-in MCP server lets running agents query past threads and shell commands without resuming them.Trade-offs to know: Capture is opt-in via
atuin setupand requires Atuin 18.24+. It covers 12 terminal agents rather than IDE-only tools like Cursor's editor UI or Aider. Individual tool payloads are clipped around 64 KiB on capture, reasoning blocks are dropped on cross-agent handoff, and Amp threads (which live on Amp's servers) can be continued into another agent but cannot be forked or targeted. -
03
VS Code Agent Sessions
Best for: Developers who live in VS Code and want one editor UI to run and monitor Copilot, Claude, and Codex sessions side by side.
VS Code Agent Sessions brings local, background, and GitHub cloud agent runs into one sidebar and Agents window — including Copilot, Claude, and OpenAI Codex. If your workflow stays inside VS Code and GitHub, it removes a lot of tab-juggling without adding another tool.
Trade-offs to know: Sessions are tied to VS Code workspaces and remote/cloud hosts rather than syncing standalone terminal CLI transcripts between machines. It does not convert a Claude session into a Codex session, and it does not expose your terminal history over MCP.
-
04
First-party cloud surfaces (Codex Cloud & Claude Code on the web)
Best for: Unattended cloud tasks and switching between laptop, browser, and phone within one vendor's ecosystem.
Both OpenAI (Codex Cloud across web, ChatGPT desktop, IDE, and mobile) and Anthropic (Claude Code cloud sessions and Remote Control) let you kick off tasks in vendor-managed VMs and reopen them from another device. Because the environment lives in the cloud, uncommitted files and session state travel with the task automatically.
Trade-offs to know: Each platform covers only its own agent and runs code on the vendor's cloud VMs rather than your local machine. Your local terminal sessions (and other agents like opencode or Pi) still stay stranded on local disk, and cross-agent handoff is not supported.
-
05
Langfuse (LLM observability & tracing)
Best for: Engineering teams that want cost dashboards, alerts, evals, and centralized trace search across coding agents.
Langfuse is an open-core commercial LLM observability platform (hosted cloud or self-hosted) with integrations for Claude Code, Codex, Copilot, Cursor, OpenCode, Kiro, and Augment Code. It excels at reconstructing failed runs, searching traces across a team, tracking per-developer spend, and exposing traces via MCP.
Trade-offs to know: Langfuse is built to measure and inspect traces, not to resume sessions on another machine or continue them in a different agent. Traces live on a server that reads them to power dashboards rather than end-to-end encrypted local stores. See our dedicated Atuin vs Langfuse breakdown for more detail.
-
06
Local community tools (
cass,cli-continues, and desktop viewers)Best for: Single-machine workflows where you want maximum provider coverage, a native desktop GUI, or zero background daemons.
The open-source ecosystem around local transcripts is genuinely strong. cass (Rust) indexes 30+ providers — including Cursor, Gemini CLI, and Aider — with hybrid search, robot/JSON output for agents, and SSH/rsync remote search. cli-continues (MIT) reads 16 CLIs read-only with no daemon and hands off sessions locally via a generated markdown summary. And desktop viewers like Agent Sessions (macOS, with Claude/Codex quota tracking) and Sessions Viewer (cross-platform) give you a fast local UI for reading and resuming transcripts.
Trade-offs to know: Most local community tools assume your transcripts stay on one disk (or reachable over SSH) and rely on the agent's live files not being deleted by cleanup. They generally do not offer background end-to-end encrypted sync or native tool-call conversion across agents.
Why cross-machine sync is the hardest gap to DIY
Most local session tools focus on searching or viewing files that already sit on one disk. The moment you switch from a desktop to a laptop, or SSH into a dev box and later work offline on a flight, local-only tools go blank.
Syncing agent folders with Dropbox, iCloud, or Syncthing works for a one-off JSONL file, but breaks down quickly in daily use: agents like
opencode (opencode.db) and Codex (state_5.sqlite) keep SQLite databases that can conflict or corrupt under
file-level sync, and encoded project paths differ between macOS and Linux.
We break down exact storage paths, formats, and retention rules for Claude Code, Codex, opencode, and Cursor in why coding agents lose context between machines.
-
01
Independent encrypted record store
Instead of syncing raw agent folders, Atuin captures turns into its own SQLite database and syncs encrypted records with a key that never leaves your devices.
-
02
Native transcript restoration on arrival
When you run
atuin resumeon another machine — or after Claude Code's 30-day cleanup has deleted the local file — Atuin writes or catches up the agent's native transcript on disk before opening it. -
03
Opt-in and self-hostable
Sync is off until you enable it. Keep everything offline on one machine, use free personal sync on Atuin Cloud, or run the MIT-licensed sync server on your own infrastructure.
Resuming a session vs searching it over MCP
Looking up past agent work usually means one of two things, and most tools only solve one of them.
Resuming picks up an old conversation where it left off — useful when you are mid-task, switching machines, or handing a stuck Claude Code session over to Codex.
Searching over MCP is for when you want to stay in your current session and ask your running agent what an earlier session discovered. With Atuin's MCP server connected, an agent can search both your synced threads and your shell history (including exit codes and working directories) and bring back the answer without switching sessions.
Which tool should you pick?
Match the tool to the friction you actually hit today.
| Your situation | Recommended option | Why |
|---|---|---|
| Just reopening your last session with zero extra installs | Native CLI (claude --resume, codex resume, opencode --continue) |
Already built in and fast for the conversation you just closed. Raise cleanupPeriodDays in Claude Code if you want more than 30 days. |
| You live in VS Code across Copilot, Claude & Codex | VS Code Agent Sessions | Unified editor sidebar for local, background, and GitHub cloud sessions without leaving VS Code. |
| Async cloud tasks from web or mobile | Codex Cloud or Claude Code on the web | Vendor-managed cloud VMs keep uncommitted changes and task state synced across browser, desktop, and phone. |
| Team cost dashboards, alerts & evals | Langfuse | Purpose-built LLM observability with per-developer spend tracking, trace search, and eval pipelines. |
| Search across 30+ providers (incl. Cursor/Aider) or a native Mac GUI | cass, cli-continues, or Agent Sessions | Broad local provider coverage, zero-daemon markdown handoffs, or a native macOS GUI with quota stats. |
| Fast full-text search, cross-agent resume, MCP, or multi-machine sync | Atuin Threads | Faster than native pickers even offline on one machine (with no 30-day expiry), plus E2E-encrypted cross-machine sync, native cross-agent resume, MCP access, and shell history. |
Try Atuin Threads
If cross-machine sync, cross-agent handoff, or MCP search is what you are missing, setup takes two commands. Atuin works completely offline by default; sync is opt-in.
For the full walk-through and the per-agent capability matrix, see the resume agent sessions guide or Atuin for agents.
-
01 Install Atuin (18.24+)
The installer runs
atuin setup, which walks you through turning on Threads capture, MCP, and optional sync.curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh -
02 Already installed? Run setup
Turn on Threads capture, optional sync, and MCP for your installed agents in one interactive flow.
atuin setup -
03 Import existing sessions
Capture records new sessions automatically. Run this once to pull in sessions already on this machine.
atuin threads import
Frequently asked questions
Can I resume a Claude Code session in Codex on a different machine?
Yes, with Atuin Threads. Run atuin setup on both machines to turn on Threads capture and sync, pull your git branch on the second machine, and run atuin resume. Select the Claude Code session and pick Codex under "Continue in" — Atuin writes a new Codex session with the conversation and mapped tool calls, leaving the original untouched.
What happens to Claude Code sessions after 30 days?
Claude Code deletes local session transcripts after 30 days by default, controlled by cleanupPeriodDays in its settings. Raising that value keeps local files longer, or Atuin Threads keeps its own copy in SQLite and restores the transcript to disk when you run atuin resume.
When should I use Langfuse or VS Code Agent Sessions instead of Atuin Threads?
Pick Langfuse when you need cost dashboards, alerts, and evals across a team (see Atuin vs Langfuse). Pick VS Code Agent Sessions when you work entirely inside VS Code and want one sidebar for Copilot, Claude, and Codex. Pick Atuin Threads when you run local terminal agents across multiple machines and want E2E-encrypted sync, native resume, cross-agent handoff, and MCP search.
Does Atuin send my session history to an AI provider?
No. Session history is stored in a local SQLite database on your machine. Sync is opt-in and end-to-end encrypted before upload, so the hosted or self-hosted server stores ciphertext it cannot read. History only reaches a model when an agent you run queries it locally over MCP.
Can an agent search past sessions without resuming them?
Yes. Connecting Atuin's MCP server in atuin setup lets a running agent search your threads and shell history (with exit codes and working directories) and read matching turns without leaving or resuming the current session.
Do I need to pay or use the cloud to use Atuin Threads?
No. Atuin is MIT open source, free offline forever, and free for personal end-to-end encrypted sync on Atuin Cloud. You can also self-host the sync server.