Continue a coding-agent session in Claude Code, Codex, or Pi
Project description
Session Handoff
note: this project was prototyped rapidly (in about 15 minutes) by gpt-5.6-sol. use at your own discretion.
Continue a coding task in another coding agent by pointing it to the previous agent's session file.
Supported agents:
- Claude Code
- Codex CLI
- Pi
Session Handoff does not summarize the conversations. It only searches for the file path of latest coding session transcript belonging to the current working directory.
Install
uv tool install session-handoff
# or
pipx install session-handoff
From a local checkout:
uv tool install .
Use
Run handoff inside the project you want to continue:
# Launch Codex with the latest Claude Code session.
handoff claude codex
# Print the prompt instead of launching the destination.
handoff claude codex --prompt
# All directions are supported.
handoff codex pi
handoff pi claude
The generated prompt is:
Read the previous coding session at <path>, understand the task, inspect the current working directory, and continue from where the previous agent stopped.
Ask clarifying questions if required.
Session selection
Handoff matches the current working directory against metadata in each agent's local history and chooses the matching file with the newest modification time.
| Agent | Default history location |
|---|---|
| Claude Code | ~/.claude/projects/*/*.jsonl |
| Codex | ~/.codex/sessions/**/rollout-*.jsonl |
| Pi | ~/.pi/agent/sessions/**/*.jsonl |
It fails when no session matches the current directory.
Native location overrides are supported:
CLAUDE_CONFIG_DIRCODEX_HOMEPI_CODING_AGENT_SESSION_DIRPI_CODING_AGENT_DIR
Development
Run the tests:
PYTHONPATH=src python -m unittest discover -s tests -v
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file session_handoff-0.1.0.tar.gz.
File metadata
- Download URL: session_handoff-0.1.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baef9b4f8cf4232c6c12c9b38be90f5d457c33f66b3c260210ef0a3e9555d8b2
|
|
| MD5 |
1f8c6c919fb1e43a9ad4aefc4c5ead35
|
|
| BLAKE2b-256 |
719d714c98feca4a0f46097bdef543d61e15bcc3ae4e12c76e7a2e382eab0238
|
File details
Details for the file session_handoff-0.1.0-py3-none-any.whl.
File metadata
- Download URL: session_handoff-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1045d11bc038ed90f38124231ae1cac1c8a4bf6eef95421496f4b346c694efb
|
|
| MD5 |
e04f2b70810ed24085e4dad7ff5451dd
|
|
| BLAKE2b-256 |
e27c8e4f315f725c226e92e143e7f9929f15b77f3d919bd189dbe48a1b7c25ac
|