2026-11-27 16:21 UTC

Agent Archive offers cross-agent coding-session handoffs

state: expiredheat: lowuncertainty: mediumrelevance: mediumagent-session-handoff cross-agent-continuity session-archivalJohn Wang

What is this?

Agent Archive is an MIT-licensed Go CLI that collects coding-agent session transcripts, lets users search and browse them, and can hand off conversation context between Claude Code, Codex, and Cursor. Its README describes local use, optional backups to a user-owned S3 or R2 bucket, and background collection via launchd on macOS or a systemd timer on Linux. The project author, John Wang, introduced it on Hacker News; the supplied sources document features, not widespread adoption.

Why it matters

Agent Archive addresses a practical gap for people who switch between coding agents or machines: session context can be browsed, backed up, and handed from one agent to another. That makes it a useful experiment in cross-agent continuity, and its user-owned storage may appeal to developers who want control over transcripts. The supplied evidence establishes the project’s advertised features, not broad adoption, reliability in varied workflows, or a wider shift in how developers work.

Current assessment

John Wang presented Agent Archive on Hacker News as a tool he built to resume coding work across Claude Code, Codex, and machines. Its README describes a Go CLI that collects transcripts, supports browsing and handoff, and optionally backs them up to a user-owned S3 or R2 bucket; it also reports usage statistics. Collection uses app hooks and a background job on macOS or Linux, so setup and handling of sensitive transcripts are practical considerations. Web results show ongoing development activity in project pull requests, but provide no independent adoption or impact metrics. The notable development is a concrete, cross-agent continuity workflow—not evidence that it has become widely used. Worth tracking for functionality, integrations, privacy safeguards, and signs of user uptake.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

09-21 14:00⭐ origin echo-reconstructed"Session handoffs and backups for Claude Code, Codex, and Cursor. Continue a Claude Code session in Codex, or vice-versa. You can pick a ses
John Wang (GitHub: wangjohn; HN: johnjwang) on github (echo) · attributed from hn.story.50168300
—
10-20 15:54first on hacker news · published · +697.9hShow HN: Agent Archive – Session Handoffs and Backups for Claude Code and Codex
johnjwang
—
10-20 15:54amplified on hacker news 👑hn.story.50168300
johnjwang
peak 2 · 0 comments · 98% of case engagement
10-20 19:30our radar first saw it · +701.5hdiscovery anchor: hn.story.50168300—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Agent Archive – Session Handoffs and Backups for Claude Code and Codex
Retrieved article excerpt

Open article · Retrieved 2026-10-20T21:31:12.683500+00:00

# agent-archive

### Session handoffs and backups for Claude Code, Codex, and Cursor

[Go 1.27](https://github.com/wangjohn/agent-archive/blob/main/go.mod)
[License: MIT](https://github.com/wangjohn/agent-archive/blob/main/LICENSE)

Continue a Claude Code session in Codex, or vice-versa. You can pick a session and bring its conversation context into another coding agent. Add your own S3 or R2 bucket for automatic backups and access from other machines.

OpenAI and Anthropic are constantly one-upping each other for the best model and harness, but it's a pain to switch between their coding agents, especially if you have multiple computers and accounts. You lose your conversation history as you switch and then have to search in multiple places to figure out where you were working on something. You also can't introspect your sessions as easily.

`agent-archive` solves these problems, and can perform the following:

- **Continue across agents and computers.** Run `agent-archive handoff` to pick a session and continue with its context. After setup, you can also ask Claude Code or Codex to continue a previous session by name; the agent uses the CLI to find it and load its context. Useful when you hit rate limits or want to switch models ([handoff guide](https://github.com/wangjohn/agent-archive/blob/main/docs/guides/handoff.md)).

  [Browse sessions, select a Claude Code session, and continue the work in Codex](https://github.com/wangjohn/agent-archive/blob/main/docs/assets/demos/handoff.gif)
- **Archive automatically.** Upload Claude Code, Codex, and Cursor transcripts to your own S3 or R2 bucket.
- **Browse your session history.** Use `agent-archive list` to browse sessions across coding agents. Filter by topic, project, branch, or PR number, then open a session to revisit the conversation ([browsing guide](https://github.com/wangjohn/agent-archive/blob/main/docs/guides/list-and-show.md)).

  [Browse 151 synthetic sessions across agents and filter the list by topic](https://github.com/wangjohn/agent-archive/blob/main/docs/assets/demos/list.gif)
- **See your usage and spend.** Track session counts, tokens, and estimated spend with `agent-archive stats`, broken down by agent, model, and project ([usage guide](https://github.com/wangjohn/agent-archive/blob/main/docs/guides/stats.md)).

  [Agent Archive stats showing 150 sessions, estimated spend, and usage across agents](https://github.com/wangjohn/agent-archive/blob/main/docs/assets/demos/stats.gif)

## Quickstart

1. **Install:**

   ```
   curl -fsSL https://raw.githubusercontent.com/wangjohn/agent-archive/v0.2.2/install.sh | AGENT_ARCHIVE_VERSION=v0.2.2 sh
   ```

   Release binaries cover macOS (Intel and Apple Silicon) and Linux (x86-64 and arm64).
2. **Continue a session in another agent**:

   ```
   agent-archive handoff
   ```

   Pick an existing Claude Code or Codex session, choose the receiving agent, and continue with its conversation context.
3. **Enable automatic archiving (optional)**:

   ```
   agent-archive setup
   ```

   Connect your own S3 or R2 bucket if you want your sessions backed up and available from another computer.

[Setup guide](https://github.com/wangjohn/agent-archive/blob/main/docs/getting-started/setup.md) · [Bucket options](https://github.com/wangjohn/agent-archive/blob/main/docs/getting-started/bucket.md) · [Platforms](https://github.com/wangjohn/agent-archive/blob/main/docs/getting-started/install.md#platforms) · [Privacy](https://github.com/wangjohn/agent-archive/blob/main/docs/security/privacy.md) · [Multiple machines](https://github.com/wangjohn/agent-archive/blob/main/docs/guides/multiple-machines.md)

## How it works

```
flowchart LR
  A["Claude Code · Codex · Cursor"] -- "lifecycle hooks" --> H["agent-archive _hook<br/>records the session"]
  H --> S[("local state<br/>~/.local/share/agent-archive")]
  L["launchd job (macOS) or<br/>systemd timer (Linux)<br/>every 60 s"] --> C["collector<br/>filter → bundle → upload → verify"]
  S --> C
  T --> D["supported Codex discovery<br/>creation-time consent"] --> S
  C --> B[("your S3 / R2 bucket")]
  B --> R["list · show · handoff"]
  T["transcripts already<br/>on this machine"] --> BF["backfill"] --> S
```

 Loading

Setup edits each included app's hook settings, adds one background job (a LaunchAgent on macOS, a systemd user timer on Linux), and writes two skill files for Claude Code (in `~/.claude/skills`) and two for Codex and Cursor together (in `~/.agents/skills`; `agent-archive setup --no-skills` skips them); for Cursor it also adds a missing `version` field ([everything it changes](https://github.com/wangjohn/agent-archive/blob/main/docs/getting-started/setup.md#what-setup-changes-on-your-machine)). Old sessions are deleted from the bucket after 90 days by default.

## Command reference

| Command | What it does | Example |
| --- | --- | --- |
| `setup` | Configure apps, projects, and storage. | `agent-archive setup` |
| `status` | Check collection and detected agents; `status --issues` opens problems, and `status claude` shows one app in full. | `agent-archive status` |
| `sync` | Collect and upload pending sessions now. | `agent-archive sync` |
| `pause`, `resume` | Pause collection, uploads, and cleanup until you resume ([everyday commands](https://github.com/wangjohn/agent-archive/blob/main/docs/guides/troubleshooting.md#everyday-commands)). | `agent-archive pause` |
| `list` | Find archived sessions, by filters or by a few words. | `agent-archive list "retention"` |
| `search` | Search conversation text in a private local index ([search guide](https://github.com/wangjohn/agent-archive/blob/main/docs/guides/search.md)). | `agent-archive search "upload checksum"` |
| `show` | View a session's summary, or its transcript with `--transcript`. | `agent-archive show SESSION_ID` |
| `stats` | See your usage: tokens by day, estimated cost, agents, models, projects, highlights. | `agent-archive stats --days 7` |
| `backfill` | Preview sessions already on this machine for import. | `agent-archive backfill --dry-run` |
| `handoff` | Continue a session in another agent; inside Claude Code, `/handoff codex`. | `agent-archive handoff` |

For all commands and options, see the [CLI reference](https://github.com/wangjohn/agent-archive/blob/main/docs/reference/cli.md) or run `agent-archive help COMMAND`.

[Documentation](https://github.com/wangjohn/agent-archive/blob/main/docs/README.md) · [Troubleshooting](https://github.com/wangjohn/agent-archive/blob/main/docs/guides/troubleshooting.md) · [FAQ](https://github.com/wangjohn/agent-archive/blob/main/docs/guides/faq.md) · [Privacy](https://github.com/wangjohn/agent-archive/blob/main/docs/security/privacy.md)

## Contributing and security

See [CONTRIBUTING.md](https://github.com/wangjohn/agent-archive/blob/main/CONTRIBUTING.md); test without touching your real machine ([sandbox recipe](https://github.com/wangjohn/agent-archive/blob/main/dev/contributing/testing.md)). Report vulnerabilities privately as [SECURITY.md](https://github.com/wangjohn/agent-archive/blob/main/SECURITY.md) describes. Changes are in [CHANGELOG.md](https://github.com/wangjohn/agent-archive/blob/main/CHANGELOG.md). Released under the [MIT License](https://github.com/wangjohn/agent-archive/blob/main/LICENSE).
johnjwang20
🟧 echo.github ⭐"Session handoffs and backups for Claude Code, Codex, and Cursor. Continue a Claude Code session in Codex, or vice-versa. You can pick a sesJohn Wang (GitHub: wangjohn; HN: johnjwang)——

Interpretation history

Decision trace