pi-session-loader
Load CodeX and Claude Code sessions into PI
Package details
Install pi-session-loader from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-session-loader- Package
pi-session-loader- Version
0.1.1- Published
- May 29, 2026
- Downloads
- 388/mo · 8/wk
- Author
- huang.xinghui
- License
- MIT
- Types
- extension
- Size
- 38.3 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
PI Session Loader
加载 CodeX 和 Claude Code 会话到 PI 中继续工作。
安装
pi install npm:pi-session-loader
使用
加载 CodeX 会话
/load-session codex:<session-id>
加载 Claude Code 会话
/load-session claude:<session-id>
通过文件路径加载
/load-session /path/to/session.jsonl
支持的格式
- CodeX JSONL:
~/.codex/sessions/目录下的会话文件 - Claude Code JSONL:
~/.claude/projects/目录下的会话文件
命令
| 命令 | 描述 |
|---|---|
/load-session <id> |
加载指定会话 |
示例
# 加载 CodeX 会话
/load-session codex:019e674d-b7d4-7253-99a9-928d7c945275
# 加载 Claude Code 会话
/load-session claude:0dc54a6f-a4d3-4e43-b380-5351681c451c
开发
# 运行测试
npm test
# 重新生成类型定义
npx tsc --declaration