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

Blindspot MCP: An External Brain for AI Coding Agents
Blindspot MCP is a tool that indexes full codebases using tree-sitter and SQLite to help AI coding agents understand symbols, dependencies, and relationships across files, preventing changes that break code outside their immediate context.

Claude-Code v2.1.63 adds HTTP hooks, slash commands, and fixes memory leaks
Claude-Code v2.1.63 introduces HTTP hooks for JSON-based external calls, adds /simplify and /batch slash commands, and fixes multiple memory leaks in long-running sessions. The release also improves MCP server handling and VSCode integration.
Spine Swarm: Multi-Agent AI System on Visual Canvas for Non-Coding Projects
Spine Swarm is a multi-agent system that works on an infinite visual canvas to complete complex non-coding projects like competitive analysis, financial modeling, SEO audits, pitch decks, and interactive prototypes. The system uses blocks as abstractions on top of AI models that can be connected to pass context between different model types.

Context-Engineered Study System for Claude Code Acts as Persistent Tutor
A developer built a study system using Claude Code that tracks progress across sessions, probes understanding, works through exercises, and adapts to learning styles. The system uses structured markdown files to shape agent behavior and includes tools for extracting textbook pages from PDFs.