Your agents lose context every time you switch. Reinstate carries it
across. Indexes 11 agents in stable v0.6.0. Full
continuity on 2 — Claude Code and Codex.
Reinstate is the open-source continuity layer for coding-agent work: search, resume, and hand off tasks across agents, projects, environments, and devices, with optional encrypted sync through your own S3-compatible storage.
Stable v0.6.0 adds Reinstate Hop (cloud continuity), the interactive TUI
switcher, and moves OpenCode to T5 and Kimi Code CLI to T2 on top of the
Phase 4 structured handoff and Phase 5 universal agent coverage: an agent
catalog with an explicit tier per agent, rein doctor --agents with a
redacted storage probe, session discovery for eleven agents, and structured
handoff from five. A structured handoff continues the same task in a new
Claude Code or Codex session. v0.6.0 is certified by native Windows x64
tagged-artifact acceptance PASS (215/215 required rows) on candidate
v0.6.0-rc.8, under the single-platform waiver in
ADR 0005;
Apple Silicon macOS acceptance is deferred to
#403 until that
hardware returns. Intel macOS and Linux/WSL2 downloads remain
preview/unverified pending issues
#97 and
#98.
Why · Features · Quick start · Agents · How it works · Docs · Roadmap · Contributing
Created & maintained by Harjot Singh Rana · harjot.co
Even on one machine, you can have twenty sessions across Claude Code, Codex, projects, branches, and worktrees. Finding the right thread later becomes a memory problem. Switching agents can also mean re-explaining the task when the source agent is closed, logged out, or rate-limited.
Then you open your MacBook on the couch.
Git has the code. The agent does not have the conversation — the rejected approaches, the files already read three times, the style constraints you established mid-thread. Vendor tools save sessions locally. Switching machines is context death.
flowchart LR
subgraph Desktop["🖥️ Desktop (Windows)"]
D["20 sessions<br/>full context"]
end
subgraph Laptop["💻 Laptop (macOS)"]
L["empty history<br/>MCP + skills B<br/>start from zero"]
end
D -.-x|context dies| L
style D fill:#1f2937,stroke:#f87171,color:#f9fafb
style L fill:#1f2937,stroke:#f87171,color:#f9fafb
Reinstate makes state portable:
flowchart LR
subgraph Desktop["🖥️ Desktop"]
A["Claude/Codex sessions"]
end
subgraph Cloud["☁️ Encrypted cloud"]
B["your R2 / S3-compatible bucket<br/>ciphertext only"]
end
subgraph Laptop["💻 Laptop"]
C["resume · same IDs"]
end
A -->|push · age E2E| B
B -->|pull · remap paths| C
style A fill:#064e3b,stroke:#34d399,color:#ecfdf5
style B fill:#0c4a6e,stroke:#22d3ee,color:#e0f2fe
style C fill:#312e81,stroke:#818cf8,color:#e0e7ff
| What you get | |
|---|---|
| Local recovery | Configless local index/search/resume for Claude Code and Codex |
| Multi-agent | Structured handoffs continue the same task in a new Claude Code or Codex session |
| Verified resume | v0.3.0 checks the workspace, agent, capabilities, and recognized runtimes before launch |
| Offline-capable origin | Works when the other machine is off (stored sync, not a live relay) |
| Path remapping | Windows ↔ macOS project paths rewritten so --resume actually finds sessions |
| Zero-knowledge | Client-side encryption; bring-your-own storage |
| Bounded previews | Metadata and a short user-prompt preview, never a default transcript dump |
| Privacy-safe environment truth | Capability names and state may be indexed; contents, commands, values, credentials, and raw URLs are excluded |
| Open source | Apache-2.0 · auditable · patent grant · no vendor lock-in |
Native vendor sync typically serves its own ecosystem. Unreviewed Syncthing/Drive copies can preserve source-device absolute paths or include sensitive artifacts. Reinstate instead provides Claude/Codex same-vendor × cross-device × encrypted × path-aware continuity.
Phase 5 stable v0.6.0:
- Directional structured handoff — Claude Code, Codex, OpenCode, Grok Build, and Qwen Code are destinations; those five plus Gemini CLI and Kimi Code CLI are sources
- No source model dependency — parse and checkpoint locally while the source CLI is closed, logged out, rate-limited, or offline
- Auditable fidelity — each component is labeled
exact,normalized,summarized,referenced, oromitted, with reasons - Destination capability diff — report missing tools, MCP servers, skills, instructions, attachments, and context before launch
- Private local capsules — owner-only artifacts and append-only lineage
under
$REINSTATE_HOME/handoffs/, hard-excluded from sync - Safe destination launch — start a new session through the vendor's documented CLI; never write vendor-internal session files
- Prompt-level acknowledgement — ask the destination to restate the task, workspace truth, uncertainty, and next action before mutation
Also included from stable v0.3.0:
- Configless local index —
rein sessionsworks withoutinitor cloud storage - Literal search — prompt, file, branch, project, agent, and session identity
- Metadata-first inspect — bounded user-prompt preview; no full transcript mode
- Native continuation —
last,resume, andforklaunch the source vendor - Interactive switcher — bare
reinon a TTY; deterministic JSON for automation - Read-only expansion — Gemini CLI and OpenCode discovery without mutation
- Verified resume — deterministic environment reports on
inspect, native dry-runs, direct launches,last, and picker selections - Workspace truth — offline repository identity, branch, HEAD, and privacy-safe working-tree checks without fetching or printing filenames
- Agent and capability checks — fail-closed Claude/Codex version and layout verification plus bounded, name-only instruction, skill, and MCP inventory
- Runtime checks — recognized Node and Go declarations inspected without running project scripts
- Exact authorization — warnings require terminal confirmation or every
invocation-scoped
--allow-environment-warning CHECK_ID; blockers cannot be overridden
Also included from stable v0.1.0:
- Cross-device session sync — continue the same Claude/Codex thread on another machine
- Multi-agent adapters — same-vendor Claude Code and Codex session continuity
- End-to-end encryption — age, passphrase-derived keys
- Bring-your-own storage — Cloudflare R2, AWS S3, and S3-compatible storage
- OS-aware path remapping — the hard problem treated as the product
- Safe by default — credential denylist, atomic restore, conflict forks, local backups
- Simple sync CLI —
rein init·push·pull·status·diff·conflicts(reinis the short alias;reinstateis the full command — same binary)
Later, Reinstate will extend continuity beyond sessions: declare MCP servers, skills, hooks/loops, plugins, marketplaces, instruction files, and safe settings once, then preview and apply the correct native configuration across Claude Code, Codex, Grok, OpenCode, Gemini CLI, and multiple devices. This is planned, not part of the current CLI. See Universal agent configuration.
Reinstate Hop is the optional hosted tier, shipped in v0.6.0: sign in and a
locker (a storage bucket provisioned for exactly one account) syncs
sessions with no bucket, key, or endpoint of your own to manage, through
ordinary rein commands — rein login / rein whoami, rein init --hop,
rein account init / recover / join / status, rein devices /
approve / revoke, rein hop status / credentials, rein sync verify,
rein sync migrate --to byo, and rein daemon — no build tag, no flag.
The locker holds only ciphertext, except keyring.v1.json, which is
plaintext by design. The hosted control plane this client talks to by
default is not open yet, so the client ships anyway and the protocol above
is public and testable today against a control plane you run yourself or
point at with REINSTATE_HOP_URL; v0.6.0 is certified on native Windows
x64 only, with macOS acceptance deferred until that hardware returns. See
docs/hop.md and
ADR 0005.
Platform boundary: stable
v0.6.0is certified by native Windows x64 tagged-artifact acceptance PASS (215/215 required rows) on candidatev0.6.0-rc.8, under the single-platform waiver in ADR 0005. Apple Silicon macOS acceptance is deferred to #403 until that hardware returns and is not claimed. Earlier stable releases (v0.5.1and before) passed dual-platform tagged-artifact acceptance on both Apple Silicon macOS and native Windows x64. The earlier candidatev0.5.2-rc.1was published but never certified; its content ships insidev0.6.0. Intel macOS and Linux/WSL2 remain optional and unverified (#97, #98).CLI: prefer short alias
rein. Full namereinstateworks the same.
From this repository, with Go 1.25.13 or newer:
make build
export REINSTATE_HOME="$HOME/.reinstate-phase3-local"
./bin/rein sessions
./bin/rein search "stripe webhook retry" --agent claude
./bin/rein inspect claude:SESSION_ID
./bin/rein last --dry-run
./bin/rein resume codex:SESSION_ID --dry-run
./bin/rein fork claude:SESSION_ID --dry-run
./bin/rein handoff claude:SESSION_ID --to codex --dry-run
./bin/reinOn native Windows PowerShell, build .\bin\rein.exe with
go build -o .\bin\rein.exe .\cmd\reinstate, set $env:REINSTATE_HOME, and
use that executable for the same commands.
These commands refresh a private derived index at
$REINSTATE_HOME/cache/session-index-v2.sqlite. Its owner-only .lock and
.write.lock files protect destructive repair and serialize writers/rebuilds across concurrent
rein/reinstate processes. None is synced. These commands do not require
init, storage credentials, a passphrase, or a network backend.
Stable v0.3.0 adds an environment report to inspect and native dry-runs.
A first launch truthfully warns with baseline.unavailable; it never
manufactures a historical match. Review the report, then either confirm on a
TTY or acknowledge every current warning explicitly in automation:
./bin/rein resume claude:SESSION_ID \
--allow-environment-warning baseline.unavailableAcknowledgements apply only to that invocation. Missing workspaces,
unrecognized agent versions/layouts, known repository replacement, stale
source metadata, and verifier failures remain non-overridable. A private
reinstate_prelaunch_observed baseline is stored only after the authorized
same-vendor child exits successfully. Native resume/fork remains same-vendor.
Bare rein opens the numbered switcher only on a TTY. For scripts use
rein sessions --json; a non-TTY bare invocation exits promptly with that
hint.
macOS, Linux, or WSL2:
curl -fsSL https://reinstate.dev/install.sh | shNative Windows PowerShell:
irm https://reinstate.dev/install.ps1 | iexBoth bootstraps pin and verify v0.6.0, install without elevation, and
print the next command:
rein version --json
rein initApple Silicon macOS with Homebrew:
brew install HarjjotSinghh/tap/reinstateThe GitHub Release and reinstate.dev installers pin v0.6.0. The Homebrew
tap may still list an earlier release until its formula is updated. Intel macOS
and Linuxbrew remain optional and unverified.
Reinstate waits at most 30 seconds for replacement approval; set
REINSTATE_CONFIRM_TIMEOUT_SECONDS=1..300 to choose a shorter or longer bound.
Shells without timed-read support refuse immediately and preserve the installed
binary. For deliberate automation, review the version change first and set
REINSTATE_CONFIRM_REPLACE=1.
rein init --project github.com/acme/app=/absolute/path/to/app
rein list --agent AGENT
rein push --agent AGENT --session SESSION_ID --dry-run
rein push --agent AGENT --session SESSION_IDUse the S3/R2 service endpoint as the endpoint and enter the bucket separately.
Reinstate refuses to overwrite an initialized home by default. The explicit
--force path backs up prior config and state together before replacement.
rein init --profile-id <DEVICE_A_PROFILE_ID> \
--project github.com/acme/app=/different/local/path
rein status
rein pull --agent AGENT --session SESSION_ID --dry-run
rein pull --agent AGENT --session SESSION_ID
# Then use the same vendor's native resume UI or command.Reinstate verifies the encrypted remote manifest during additional-device init
before saving local configuration. Require status to show the expected
sessions after setup.
Full walkthrough: docs/getting-started.md
Support is a published tier (T0–T5), not a yes-or-no list.
| Agent | Tier | Local index | Native resume/fork | Handoff source | Handoff target | Encrypted sync |
|---|---|---|---|---|---|---|
| Claude Code | T5 | ✅ full | ✅ same-vendor | ✅ | ✅ | ✅ |
| OpenAI Codex CLI | T5 | ✅ full | ✅ same-vendor | ✅ | ✅ | ✅ |
| Gemini CLI | T2 | ✅ read-only | — | ✅ source-only | — | — |
| OpenCode | T5 | ✅ read-only | ✅ same-vendor | ✅ | ✅ | ✅ |
| Grok Build | T4 | ✅ read-only | ✅ same-vendor | ✅ | ✅ | — |
| Kimi Code CLI | T2 | ✅ read-only | — | ✅ source-only | — | — |
| Qwen Code | T4 | ✅ read-only | ✅ same-vendor | ✅ | ✅ | — |
| Pi | T1 | ✅ read-only | — | — | — | — |
| Cursor CLI | T1 | ✅ read-only | — | — | — | — |
| GitHub Copilot CLI | T1 | ✅ read-only | — | — | — | — |
| Cline | T1 | ✅ read-only | — | — | — | — |
This table is stable v0.6.0, which indexes all 11 agents above.
Stable v0.4.0 indexed 5 — Claude Code, Codex CLI, Gemini CLI, Grok Build,
and OpenCode.
Structured handoff in stable v0.6.0 starts a new destination session.
Native resume/fork and encrypted sync remain same-vendor.
Details: docs/adapters.md
flowchart TB
subgraph Agents["Coding agents on disk"]
CC[Claude Code]
CX[Codex]
GM[Gemini CLI]
OC[OpenCode]
end
subgraph Local["Local continuity · no config/cloud"]
AD[Read adapters]
IX[Private derived index]
Q[Search · inspect · switcher]
EX[Same-vendor launch plan]
end
subgraph Sync["Optional encrypted sync"]
NM[Normalize paths]
EN[Encrypt · age]
SY[Manifest · push/pull]
end
BK[(Your bucket<br/>R2 / S3-compatible)]
Agents --> AD --> IX --> Q --> EX --> Agents
Agents --> NM --> EN --> SY
SY <-->|ciphertext only| BK
SY -->|pull · decrypt · remap · atomic restore| Agents
- Local read adapters derive bounded metadata and user-prompt search text
- Index stores owner-only SQLite session rows and private prelaunch baselines; it never enters sync
- Verified resume (stable
v0.3.0) observes the fresh workspace, agent, capabilities, and runtimes and applies exact warning/blocker policy - Executors launch a supported session through its native vendor
- Pathmap rewrites known structural paths for optional cross-device sync
- Crypto/sync encrypt before upload and restore atomically with backups
For a structured handoff, Reinstate freezes a read-only source boundary, parses it locally, verifies the live workspace, builds a private continuity capsule, and launches a new destination session through the destination vendor's documented CLI. Imported history is inert evidence; no source model call or vendor-internal write is part of this path.
Deep dive: docs/architecture.md · research diagram:
| Guarantee | Detail |
|---|---|
| E2E encryption | Ciphertext only on remote storage |
| Credential denylist | auth.json and tokens never synced by default |
| Private local index | Owner-only derived metadata; no assistant/tool-output corpus |
| No vendor API keys required | Local files only |
| Verified-resume boundary | Offline checks, exact warning consent, non-overridable blockers |
| Structured-handoff boundary | Redaction before write, inert imported history, no vendor-store mutation |
| Fail-safe restore | Backups + conflict forks |
Report vulnerabilities privately: SECURITY.md · model: docs/security-model.md
| Doc | Description |
|---|---|
| Website | reinstate.dev — product, documentation, compatibility, and security |
| Getting started | Configless local index plus optional encrypted sync |
| Features and commands | What shipped in v0.1.0 through v0.6.0 |
| Verified resume | Phase 3 environment report, provenance, policy, and privacy contract |
| Cross-agent handoff | Phase 4 scope, fidelity, security, storage, and directional support |
| Architecture | Pipeline, packages, design principles |
| Adapters | Per-agent layouts & support matrix |
| Universal configuration | Planned MCP/skills/loops/plugins/settings portability |
| Security model | Threat model & defaults |
| Reinstate Hop | Hosted-tier sign-in (rein login, rein whoami), the locker, device approval, rein sync verify, leaving for your own bucket (rein sync migrate --to byo), and the public protocol |
| Locker object format and threat model | What is written to storage, byte by byte; what the operator can and cannot see; how rein sync verify checks each claim |
| Comparison | vs native sync, claude-sync, DIY |
| FAQ | Common questions |
| Troubleshooting | Path remap, conflicts, large histories |
| Roadmap | Phases & non-goals |
| Contributing | Dev setup & PR process |
| Releasing | Maintainer release checklist |
| Package-manager publishing | Maintainer registry rollout and authentication guide |
| Support | How to get help |
| Governance | Decision making |
| Changelog | Release history |
↗ Open interactive star history · Stargazers
| Metric | Link |
|---|---|
| Pulse | pulse |
| Traffic | graphs/traffic |
| Commits | graphs/commit-activity |
| Code frequency | graphs/code-frequency |
| Network | network |
| Stars | stargazers · star-history |
| Phase | Focus | Status |
|---|---|---|
| 0 | Contracts, diagnostics, installers, fixtures, release trust | ✅ |
| 1 | Claude + Codex encrypted same-vendor session sync | ✅ |
| 2 | Configless local index, search, native resume/fork | ✅ |
| 3 | Verified resume (stable v0.3.0) |
✅ |
| 4 | Structured cross-agent handoffs (stable v0.4.0) |
✅ |
| 5 | Universal agent coverage (stable v0.5.1) |
✅ |
| 6C | Cloud continuity — Hop hosted sync, device registry, daemon (stable v0.6.0) |
✅ |
| 6A–6B | Universal agent configuration + auth coordination | 📋 |
| 7 | Project continuity — shared context and memory across agents | 📋 |
| 8 | Reinstate Console (thin client) | 💭 |
| 9 | Team continuity | 💭 |
Full detail: ROADMAP.md
| Channel | Tag | Notes |
|---|---|---|
| Latest | Stable builds | |
| Pre-release | Early adopters | |
| SemVer | pre-1.0 | Breaking changes possible in minors — see CHANGELOG |
Install from GitHub Releases. Every published release must include checksums, SBOMs, a source archive, and an artifact attestation.
| Lead | Harjot Singh Rana (@HarjjotSinghh) |
| Site | harjot.co |
| X | @HarjjotSinghh |
See MAINTAINERS.md · AUTHORS · CODEOWNERS
Contributions are welcome — code, adapters, docs, and bug reports.
- Read CONTRIBUTING.md and the Code of Conduct
- Open an issue for larger changes
- Fork → branch → PR
make deps && make test && make buildGood first issues: good first issue
- Questions — open a redacted question issue
- Bugs / features — Issues
- Security — SECURITY.md (private)
- Support guide — SUPPORT.md
If you use Reinstate in research or publications:
@software{rana_reinstate_2026,
author = {Rana, Harjot Singh},
title = {Reinstate: Encrypted multi-agent session sync for AI coding tools},
year = {2026},
url = {https://github.com/HarjjotSinghh/reinstate},
license = {Apache-2.0}
}Also see CITATION.cff.
Licensed under the Apache License, Version 2.0 © 2026 Harjot Singh Rana.
Copyright 2026 Harjot Singh Rana
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
See NOTICE for third-party acknowledgements. Product names of third-party agents are trademarks of their respective owners; Reinstate is an independent project and is not affiliated with or endorsed by those vendors.