resume-cli: Hit Claude Code Limits? Resume Your AI Coding Session in Codex or Copilot

calendar_today ago • schedule2 min read
— Originally published at nevolin.be

Diagram connecting GitHub Copilot, Cursor, Anthropic Claude and OpenAI Codex logos with arrows in a diamond.

Hit Claude limits? Don't feel defeated. I built a small CLI tool to seamlessly resume your AI coding sessions in Copilot or Codex: resume-cli.

The problem: usage limits in the middle of a session

If you work with AI coding agents all day, you know the moment. You are deep into a session, the agent has all the context, and you hit your usage limit. Starting over in another tool means explaining everything again.

resume-cli removes that friction.

What resume-cli does

It is an interactive terminal UI that lists your recent sessions from Claude Code, Codex and Copilot in one place. You select a session, choose which tool to continue in, and you're back to work.

▶ Claude Code    Apr 07 14:32  2h ago    refactor the auth middleware
  Copilot        Apr 07 11:05  5h ago    add pagination to the API
  Codex          Apr 06 09:14  1d ago    fix the flaky test in parser

Continue in: ◀ Claude Code ▶   ↑↓ navigate · tab: switch tool · ↵ launch · q quit

Use the arrow keys to pick a session, Tab to cycle the target tool, Enter to launch, and q or Esc to quit. Only tools installed on your machine show up.

How it works

Sessions are read directly from each tool's local storage:

Tool Session directory
Claude Code ~/.claude/projects/
Codex ~/.codex/sessions/
Copilot ~/.copilot/session-state/

Same-tool resume uses the tool's native --resume <uuid> flag. No data is copied or converted.

Cross-tool resume starts the target tool with an initial message pointing to the original session file. The AI reads it and continues from where you left off, with the full conversation history as context.

Install

The quickest way: ask your AI agent to install it for you.

Or add a resume function to your shell profile. For bash, in ~/.bashrc:

resume() {
  local cmd
  cmd=$(FORCE_COLOR=3 npx -y ai-resume-cli@latest)
  [ $? -eq 0 ] && [ -n "$cmd" ] && eval "$cmd"
}

Reload your shell and type resume from anywhere. The README also has versions for zsh, fish and PowerShell. You need Node.js 18+ and at least one of Claude Code, Codex or Copilot CLI. It runs on macOS, Linux and Windows.

Have fun!

Ilja Nevolin

This article was originally published on nevolin.be.

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

The Sovereign Vault — A Comprehensive Guide to Protocol-Driven AI

Ken W. Algerverified - Jun 4

AAIF Hits 10 Projects. Its CTO on What to Adopt Now and the Security Gaps Left Open

Tom Smithverified - Oct 23

Dozens of email accounts: learning AI coding tools as a student

rahuldk1105 - Oct 27

I spent years trying to get AI agents to collaborate. Then Opus 4.6 and Codex 5.3 wrote the rules

snapsynapseverified - Apr 20

Your AI Agent Doesn't Need Your Token: Edera's Ariadne Conill on Object Capabilities

Tom Smithverified - Nov 5
chevron_left
257 Points • 7 Badges
6Posts
1Comments
Tech, Strategy, Engineering, Sustainability

Related Jobs

View all jobs →

Commenters (This Week)

1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!