Relay CLI tool saves Claude session context when rate limited

Relay is a Rust CLI tool that solves context loss when Claude sessions get interrupted by rate limits. It reads Claude's .jsonl session transcripts from disk and creates complete snapshots of your session state.
What Relay does
The tool was built after a developer lost 45 minutes of context when their Claude session was interrupted at 6:20 PM with a 7 PM deadline. The interruption meant losing track of edited files, debugging errors, and decisions made during the session, leading to wasted time rebuilding context and introducing bugs.
Commands and features
relay status- shows exactly where you left off in your sessionrelay resume- generates a context prompt you can paste into your next Claude session so it picks up right where it stoppedrelay history- shows past sessionsrelay diff- shows what changed between sessions
The tool saves session snapshots that include your conversation, tool calls, todos, git state, errors, and everything else from your Claude session. You can save these snapshots, copy them to clipboard, or load them into a new Claude session when your rate limit resets.
Technical details
Relay has 32 tests passing, GitHub Actions CI, and proper releases. The entire tool was built in a Claude code session. It's free and open source under the MIT license.
This type of tool is useful for developers who work with AI coding assistants and experience context loss between sessions, particularly when dealing with rate limits or session interruptions during critical work periods.
📖 Read the full source: r/ClaudeAI
👀 See Also

Building a Self-Improving Knowledge System with Claude Code and Obsidian
A developer built a 25-tool system that gives Claude Code persistent memory through semantic search, knowledge graphs, and spaced repetition over an Obsidian vault. The system indexes content with bge-m3 embeddings, detects contradictions, auto-prunes stale notes, and generates Obsidian Canvas maps automatically.

Statespace: Build Interactive Web Apps for OpenClaw Agents with Markdown
Statespace is a free, open-source framework for building and sharing AI-friendly web apps that OpenClaw agents can navigate and interact with using pure Markdown. It allows you to define tools, components, and instructions in Markdown files that agents access over HTTP.

Understudy: A Teachable Desktop Agent That Learns Tasks by Demonstration
Understudy is a local-first desktop agent runtime that can operate GUI apps, browsers, shell tools, files, and messaging in one session. You demonstrate a task once, it records screen video and semantic events, extracts intent rather than coordinates, and turns it into a reusable skill.

InsForge: A Backend Semantic Layer for Claude Code Agents
InsForge exposes six backend primitives—authentication, Postgres database, S3-compatible storage, edge/serverless functions, model gateway, and site deployment—as structured components that Claude Code agents can inspect and configure via MCP instead of guessing API integrations.