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

Squeez tool compresses bash output 90%+ to extend Claude Code context window
Squeez is a hook that automatically compresses raw bash output like ps aux, docker logs, and git log before it reaches Claude Code. It reduces token usage by 92.8% on average across 19 common commands, helping sessions last longer.

Claude Code Hook Monitors WIP Accumulation in AI Coding Workflows
A developer built a UserPromptSubmit hook for Claude Code that surfaces work-in-progress accumulation across four queues: uncommitted changes over 200 lines, three or more unpushed commits, pushed commits without changeset files, and release PRs open longer than 24 hours.

Open-source Claude Code plugin simulates Chief Data & AI Office with 22 specialized agents
An open-source Claude Code plugin called AI CDAIO Office uses 22 specialized AI agents to simulate a complete Chief Data & AI Office, generating actual PPTX, DOCX, and XLSX files for strategy documents, governance frameworks, and board materials.

Hollow AgentOS reduces Claude Code token usage by 68.5% with JSON-native OS for AI agents
Hollow AgentOS is a JSON-native operating system for AI agents that cuts Claude Code's token usage by 68.5% by eliminating wasteful shell command overhead. It plugs into Claude Code via MCP, runs local inference through Ollama, and is MIT licensed.