Skip to content
Harjot Singh Rana

Full-Stack & AI Product Engineer

All projects

Reinstate

Open-source Go CLI for coding-agent session continuity. Finds and resumes Claude Code and Codex sessions locally, and syncs them across macOS, Windows, Linux, and WSL2 through client-side age encryption and your own S3-compatible storage—with OS-aware path remapping so resume works after a machine switch.

Screenshot of ReinstateScreenshot of Reinstate (dark mode)

Case study

Situation

Reinstate addresses a specific gap in AI-assisted development: the code survives a device switch, but the agent's working context does not. A session started on one machine should be findable and resumable on another without leaving the agent's local storage behind.

Constraint

Agent sessions are vendor-specific and contain absolute paths, sensitive files, and state that should not be copied blindly. Sync needed to preserve native resume while handling path remapping, credential exclusion, conflicts, backups, and offline use.

Stack

GoageS3GitHub Actions

What I built

  • Built Claude Code and Codex adapters that discover sessions, map them to projects, and restore them to the native locations those agents already understand.
  • Added client-side age encryption and bring-your-own R2/S3 storage so the remote bucket stores ciphertext, not a Reinstate-held copy of the work.
  • Hardened restore with OS-aware path remapping, credential denylisting, dry-run checks, atomic writes, backups, and conflict forks.

Outcome

Passed 23/23 Mac–Windows acceptance tests for path remapping and conflict-safe restore. The result is an Apache-2.0 CLI that keeps the user's bucket, keys, and agent sessions under their control.

Role
Creator and maintainer
Timeline
July 2026 · ongoing

Technical detailGo; Cobra; age; S3-compatible storage; OS keyring; path mapping; atomic restore; GitHub Actions.

Discuss a systems build

Key features

  • Configless local index and search across sessions, prompts, files, projects
  • Native resume, last, and fork for Claude Code and Codex
  • Encrypted push/pull via age and user-owned S3-compatible storage
  • OS-aware path remapping so --resume works after switching machines
  • Pre-launch checks for workspace, agent layout, and capabilities
  • Interactive TTY switcher with deterministic JSON for automation
  • Read-only discovery for Gemini CLI and OpenCode sessions
  • Apache-2.0: no Reinstate account; your bucket, your keys