Agent Session Resume banner
HughesCuit HughesCuit

Agent Session Resume

Development community

Description

Resume memory from other coding agents' sessions (Codex / OpenCode / Claude Code / Cursor) in the current working directory

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

agent-session-resume

An [Agent Skills](https://agentskills.io) skill that lets your current coding agent **restore the memory of past sessions from other agents** — Codex, OpenCode, Claude Code, Cursor, Kimi Code, and Kimi Work — filtered to the current working directory, so you can pick up work where you left off, no matter which tool you started it in.

What it does

  • Lists another agent's sessions for the project you're in (cwd-matched)
  • Lets you pick one or more sessions
  • Exports clean Markdown transcripts (tool calls, reasoning, token stats, subagent chatter, and injected system blocks filtered out)
  • Your current agent reads the export, summarizes the restored context, and keeps working

Install

npx skills add HughesCuit/agent-session-resume

Or manually — copy this folder into your agent's skill directory, e.g.:

# Claude Code
cp -r agent-session-resume ~/.claude/skills/

# Codex / Cursor / Kimi Code CLI / Gemini CLI / Copilot (shared .agents layout)
cp -r agent-session-resume ~/.agents/skills/

Usage

Just tell your agent something like:

Restore the codex session I had for this project

or run the bundled CLI yourself (pure Python 3, no dependencies):

# List sessions for the current directory (all sources)
python3 scripts/agent_sessions.py list

# Filter by source / include archived / all directories
python3 scripts/agent_sessions.py list --source claude
python3 scripts/agent_sessions.py list --archived --all

# Export one or more sessions as Markdown
python3 scripts/agent_sessions.py export 1 -o /tmp/session.md
python3 scripts/agent_sessions.py export 1 3 --max-chars 120000 --full -o /tmp/sessions.md

Supported session stores

Source Store
Codex ~/.codex/sessions/YYYY/MM/DD/*.jsonl
OpenCode ~/.local/share/opencode/opencode.db (read-only)
Claude Code ~/.claude/projects//*.jsonl
Cursor `~/.cursor/projects//agent-transcripts//