Open SourceScore: 84

RSES CLI: Hand Off Coding Sessions Between Claude Code, Codex, and OpenCode in One Command

RSES CLI lets you seamlessly transfer active coding sessions between Claude Code, Codex CLI, and OpenCode with a single command, preserving context and task history.

GAlex Martin & AI Research Desk·3h ago·3 min read·3 views·AI-Generated
Share:
Source: news.ycombinator.comvia hn_claude_codeSingle Source
RSES CLI: Hand Off Coding Sessions Between Claude Code, Codex, and OpenCode in One Command

What It Does — Session Transfer Without Context Loss

RSES (pronounced "resume") is a new CLI tool that solves a specific but critical problem for developers using multiple AI coding assistants: how to transfer an active coding session between different tools without losing context. With a single command like rses claude with codex --last, you can:

  • Read the current Codex session (including task description, git log, last N conversation turns, and file pointers)
  • Build a structured handoff document
  • Launch Claude Code with that context as the first message
  • Continue working exactly where you left off

The tool works in all six directions between Claude Code, Codex CLI, and OpenCode, making it a true polyglot for AI-assisted development workflows.

Setup — Zero Configuration Required

Installation is straightforward:

npm i -g rses-cli

That's it. The tool is ~1200 lines of code with one dependency (commander for CLI parsing) and uses Node 22+'s built-in SQLite for session indexing. No configuration files, no API keys to manage (it reads from your existing tool configurations), and no complex setup.

When To Use It — Specific Workflow Scenarios

1. Model-Switching for Specialized Tasks

Start a complex refactoring in Claude Code, then hand off to Codex 5.3 for specific optimization patterns where Codex excels. The shorthand command rses cc w cdx --last transfers the entire session context.

2. Cost Optimization

Begin exploratory work with Claude Opus 4.6 in Claude Code, then switch to a more cost-effective model in OpenCode once the architecture is solidified, preserving all the reasoning and decisions made.

3. Tool-Specific Features

Use Claude Code for its superior MCP server integration and GitHub awareness, then switch to another tool for features unique to that platform, all while maintaining session continuity.

4. Collaborative Handoffs

When pairing with another developer who prefers a different toolchain, you can export your session state and they can import it into their preferred environment.

How It Works Under the Hood

RSES reads the session storage formats of each tool (which are typically JSON or SQLite databases), extracts:

  • The original task description
  • Git history and current state
  • Conversation history (configurable with --last N)
  • File pointers and current working directory context

It then structures this into a coherent narrative that the receiving tool can understand as a "pre-filled" session, effectively creating a warm start rather than a cold beginning.

Integration with Existing Claude Code Workflows

This tool complements rather than replaces existing Claude Code features. You can still use:

  • CLAUDE.md for project-specific instructions
  • MCP servers for tool integration
  • Auto Mode for autonomous execution

RSES simply adds the ability to exit Claude Code, switch to another tool, and return later without context loss—or to leverage multiple tools in a single development session.

Limitations and Considerations

  • Currently CLI-only (no IDE integration)
  • Requires Node 22+ for SQLite support
  • Session transfer is one-way at a time (though you can chain commands)
  • Doesn't transfer tool-specific configurations, only session context

For developers who regularly switch between AI coding assistants based on task requirements, RSES eliminates the friction of restarting conversations and re-explaining context.

AI Analysis

## What Claude Code Users Should Do Differently **Install RSES today if you use multiple AI coding tools.** The zero-config setup means you can start session-switching immediately. Keep it in your toolkit for those moments when you need a different model's strengths mid-task. **Create aliases for common handoff patterns.** If you frequently switch from Claude Code to Codex for optimization work, add `alias cc2cdx='rses claude with codex --last'` to your shell config. For the reverse direction: `alias cdx2cc='rses codex with claude --last'`. **Use RSES before abandoning a stuck session.** Instead of starting fresh in another tool when Claude Code isn't making progress, transfer the session with `rses claude with codex --last 10` (preserving the last 10 turns) to give a different model the full context of what's been tried. **Combine with Claude Code's MCP servers.** RSES transfers the session context but not tool integrations. After switching tools, you might need to re-enable specific MCP servers in the new environment, but the core reasoning and task context will be preserved. ## gentic.news Analysis This development reflects the growing **multi-tool reality** for AI-assisted development. As noted in our March 25th article "How to Build a Multi-Agent Dev System," developers are increasingly using specialized tools for different phases of work. RSES formalizes what many were doing manually: copying conversation history between tools. The tool's emergence follows **Claude Code's recent surge in adoption** (143 articles this week alone, surpassing 100,000 GitHub stars) and aligns with Anthropic's focus on **workflow automation** (as seen in the March 25th introduction of Claude Code hooks). RSES represents a community-built solution to a workflow gap that official tools haven't addressed. Interestingly, RSES bridges **competing ecosystems**—Claude Code (Anthropic), Codex (OpenAI), and OpenCode—suggesting developers care more about practical workflow efficiency than platform loyalty. This mirrors the trend we observed in "The Claude OAuth Workaround Is Dead," where developers create pragmatic solutions across tool boundaries. As Claude Code continues to integrate more **MCP servers** (mentioned in 24 prior articles) and **automation hooks** (March 25th), tools like RSES will become increasingly valuable for orchestrating multi-tool workflows without context fragmentation.
Enjoyed this article?
Share:

Related Articles

More in Open Source

View all