SessionFree — AI skill for Claude Code
SessionFree is a Python CLI tool for migrating AI coding-agent sessions between Hermes, dsh, Codex, pi, OpenClaw, and Claude Code.
How to install SessionFree
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open guCiel/SessionFree and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What SessionFree does
SessionFree is a Python CLI tool for migrating AI coding-agent sessions between Hermes, dsh, Codex, pi, OpenClaw, and Claude Code. It preserves messages, tool calls, reasoning, timestamps, and metadata, supports JSON export and batch migration, and distills conversations into reusable fixes, commands, decisions, pitfalls, and preferences.
Alternatives in AI
- Dashboard Icons — 3,400+ curated icons and logos for dashboards and AI agents 8.9k ★
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- Iai Personal Memory Engine — A cyber brain for your AI 866 ★
README
sessionfree
**中文** | [English](./README.en.md)
跨 Agent 会话历史共享工具:读取本机某个 AI 编码 Agent 的 session 历史, **原封不动**转换为另一个 Agent 的 session 格式,迁移后在目标 Agent 里加载并 (视 agent 而定)继续使用(resume)这段对话。各目标的续话实测状态见下方表格。
支持 Agent:`hermes` / `dsh` / `codex` / `pi` / `openclaw` / `claude`(Claude Code)
此外还提供**会话沉淀(distill)**:从会话历史里提炼出可复用、值得长期沉淀的 知识(修复 / 命令 / 踩坑 / 决策 / 偏好),存成结构化 JSON,并可渲染或写回 agent 记忆。详见下方「会话沉淀」。
纯 Python 实现,无硬性第三方依赖(读取/写入 dsh 的 zstd 会话时需 `zstandard` 包或系统 `zstd` 命令)。
安装
macOS Homebrew 的 Python 有 PEP 668(externally-managed)保护,不能直接 `pip install` 到系统环境,用下面两种方式之一:
# 方式一:venv(推荐,开发期改代码即时生效)
python3 -m venv ~/.venvs/sessionfree
source ~/.venvs/sessionfree/bin/activate
pip install -e . # 安装 sfree 命令
pip install zstandard # 可选:dsh 会话是 zstd 压缩的
# 方式二:pipx(全局命令,无需激活环境)
brew install pipx
pipx ensurepath
pipx install --editable .
不安装也可直接使用:
python3 -m sessionfree.cli <子命令>
快速上手
# 1. 查看各 agent 有多少会话
sfree list
# 2. 看某个会话内容
sfree show dsh
sfree show hermes --md
# 3. 迁移:dsh 的会话 → hermes(一步到位)
sfree migrate dsh --to hermes --as-id my_first_import
# 4. 迁移到文件型 agent(claude / codex / pi / dsh / openclaw)
sfree migrate hermes --to claude --cwd /path/to/project
sfree migrate pi --to codex
# 5. 批量迁移:路径下的会话全部迁移
sfree migrate dsh --all --to hermes --filter-cwd /path/to/project
sfree migrate hermes --all --to claude --filter-cwd /path/to/project --days 30 --max 10 --dry-run
sfree migrate pi --all --to json --out ./exports # 批量导出明文 JSON
# 6. 导出为明文 JSON(任何 agent 都可以)
sfree convert dsh --to json --out ./exports
sfree migrate hermes --to json --out ./exports # 一步导出到目录
# 7. 指定源文件路径(不加 --file 时自动用默认位置)
sfree migrate dsh --file /path/to/session.v3.jsonl.zstd --to hermes
sfree convert pi --file /path/to/session.jsonl --to json --out ./exports
sfree migrate hermes --file /path/to/state.db --to
Related Skills
HelloLynk
The missing link between your AIs. Let Claude Code, Codex, OpenClaw, TRAE Work, WorkBuddy and DSH message each
Opencode Langsmith Tracing
LangSmith tracing plugin for opencode — captures sessions, LLM calls, tool calls, reasoning, and context compa
Pigeon
Let your AI agents talk to each other. Pigeon carries messages between two open AI coding sessions (Claude Cod
AgentsChat
AgentsChat (Agents Chat) — Shared MCP rooms & social network for AI coding agents (Claude Code, Codex, DSH, An
Claude Code To Codex
A comprehensive, field-level mapping between Claude Code and OpenAI Codex for practitioners migrating AI-agent
Agent Gateway
One command to launch and switch between all your AI coding agents — Claude Code, Codex, Gemini, Grok, OpenCod
Related Agents
GPT Chat
Conducts a conversation with a GPT model (Codex) as a separate conversational partner—the thread persists betw
Ds Pro
DSH (DeepSeek Harness) worker on the pro tier - stronger reasoning. Delegate harder subtasks: multi-file chang
Company OS Liaison
Bevox Company OS Liaison — read-only bridge between the blueprint's management personas and the real Company O