by iamvicliu
把 Claude Code、Codex、Cursor 等 10 种 AI Agent 的本地会话汇到一处,统一搜索、阅读和管理(macOS,支持 Apple 芯片和 Intel 芯片)。
# Add to your Claude Code skills
git clone https://github.com/iamvicliu/AgentHubSee how AgentHub compares with popular alternatives.
AgentHub is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by iamvicliu. 把 Claude Code、Codex、Cursor 等 10 种 AI Agent 的本地会话汇到一处,统一搜索、阅读和管理(macOS,支持 Apple 芯片和 Intel 芯片)。. It has 53 GitHub stars.
AgentHub's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/iamvicliu/AgentHub" and add it to your Claude Code skills directory (see the Installation section above).
AgentHub is primarily written in TypeScript. It is open-source under iamvicliu on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh AgentHub against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
把 Claude Code、Codex、Cursor 等 10 种 AI Agent 的本地会话汇到一处,统一搜索、阅读和管理。
用了好几个 AI 工具以后,想找回“上周那次是怎么解决的”,往往得挨个打开各个工具翻各家的历史记录。AgentHub 把这些会话收进一个列表:一次搜索就能搜遍所有 Agent,打开就能顺畅地读完整段对话。

⌘K 随时启动搜索。
⌘F 查找,⌘G / ⌘⇧G 跳到下一个 / 上一个;⌘[ 返回列表,筛选和搜索都还在。
在本机扫描会话里可能泄露的 API 密钥、密码、私钥和个人信息,方便在截图、复制或分享对话之前先检查一遍。扫描只在本机进行,但不能代替你自己的判断。
配合 AgentHub 的 Raycast 扩展「AgentHub会话搜索」,在 Raycast 里就能直接搜遍所有 Agent 的会话:
Raycast 扩展需要另外安装,源码和安装步骤见 AgentHub会话搜索。
agenthub://session/... 链接可以直接打开某个会话并高亮其中一条消息,方便从笔记、Raycast 等工具跳回来。

| Agent | 搜索和阅读 | 在终端继续 | 在 AgentHub 删除原始会话 | 改名同步回原 Agent | 用真实会话实测 |
|---|---|---|---|---|---|
| Claude Code | ✓ | ✓ | ✓(会话还在运行时会拒绝) | — | ✓ |
| Codex CLI | ✓ | ✓ | ✓ | ✓ | ✓ |
| Cursor | ✓ | — | — | — | ✓ |
| DeepSeek Harness | ✓ | — | — | — | ✓ |
| Gemini CLI | ✓ | ✓ | ✓ | — | ⚠️ 未实测 |
| Hermes | ✓ | — | ✓(永久删除,不进废纸篓) | ✓ | ✓ |
| OpenClaw | ✓ | — | — | — | ⚠️ 未实测 |
| OpenCode | ✓ | ✓ | — | — | ✓ |
| Pi | ✓ | ✓ | ✓ | — | ⚠️ 未实测 |
| WorkBuddy | ✓ | — | ✓ | — | ✓ |
⚠️ 以下内容还没有用真实数据实测过,只用测试数据验证了读取格式,可能有问题,遇到了欢迎反馈:
- Gemini CLI、OpenClaw、Pi 三个 Agent 的全部功能(搜索阅读、在终端继续、删除)。
- OpenCode 和 Pi 用
agenthub://链接跳转到某条消息。- Cursor 的命令行版(cursor-agent)的会话不支持,只支持 Cursor 编辑器里的对话。
- Intel 芯片版是在 Apple 芯片的 Mac 上交叉编译的,还没在 Intel 真机上运行过。
到 Releases 下载和你的 Mac 芯片对应的安装包:
AgentHub-版本号-Apple-Silicon.dmgAgentHub-版本号-Intel.dmg不确定是哪种芯片:点屏幕左上角的苹果菜单 → 「关于本机」,「芯片」一栏写 Apple M 开头的就是 Apple 芯片,「处理器」一栏写 Intel 的就是 Intel 芯片。
打开 DMG,把 AgentHub 拖进“应用程序”文件夹。
第一次打开时,macOS 会提示“无法验证开发者”或“已损坏,无法打开”。这是因为安装包没有经过 Apple 公证,不是文件真的坏了。任选一种方式放行:
打开“系统设置 → 隐私与安全性”,在页面下方找到 AgentHub,点“仍要打开”;
或者在“终端”里运行下面这行,然后重新打开:
xattr -dr com.apple.quarantine /Applications/AgentHub.app
也可以按下方“开发与打包”自己构建。
~/.agenthub/,会话原文仍由各 Agent 自己保存。以下是技术说明,普通使用可以跳过。
| Agent | 默认读取位置 | 可用的环境变量 |
|---|---|---|
| Claude Code | ~/.claude/projects/<项目>/<id>.jsonl |
SPOOL_CLAUDE_DIR |
| Codex CLI | ~/.codex/sessions/**/rollout-*.jsonl(及 .jsonl.zst) |
SPOOL_CODEX_DIR |
| Cursor | ~/.cursor/projects/<工作区>/agent-transcripts/<id>/<id>.jsonl,标题等取自 globalStorage/state.vscdb |
CURSOR_DATA_DIR、SPOOL_CURSOR_DIR、SPOOL_CURSOR_STATE_DB |
| DeepSeek Harness | ~/.dsh/sessions/<项目>/<id>/session.v<N>.jsonl[.zstd] |
DSH_HOME、SPOOL_DSH_DIR |
| Gemini CLI | ~/.gemini/tmp/**/chats/session-*.json[l] |
GEMINI_CLI_HOME、SPOOL_GEMINI_DIR |
| Hermes | ~/.hermes/state.db、~/.hermes/sessions/*.jsonl |
HERMES_HOME、SPOOL_HERMES_DIR |
| OpenClaw | ~/.openclaw/agents/*/agent/openclaw-agent.sqlite、*/sessions/*.jsonl |
OPENCLAW_STATE_DIR、SPOOL_OPENCLAW_DIR |
| OpenCode | ~/.local/share/opencode/opencode.db |
OPENCODE_DATA_DIR、SPOOL_OPENCODE_DIR |
| Pi | ~/.pi/agent/sessions/ |
SPOOL_PI_DIR |
| WorkBuddy | ~/.workbuddy/projects/<项目>/<id>.jsonl |
WORKBUDDY_CONFIG_DIR、SPOOL_WORKBUDDY_DIR |
features.local_thread_store_compression 后,会把约 7 天未写入的会话压缩成 .jsonl.zst,AgentHub 两种格式都能读。~/.cursor/chats/*/store.db 暂未接入。~/.agenthub/agenthub.db,设置、日志、备份也在 ~/.agenthub/;开发模式用 ~/.agenthub-dev/,可用 SPOOL_DATA_DIR 指定。~/Library/Application Support/AgentHub。com.vicliu.agenthub,链接协议 agenthub://,链接格式见 本地会话链接。使用仓库声明的 pnpm 版本:
pnpm install --frozen-lockfile
pnpm run rebuild:native:node
pnpm --filter @spool/app typecheck
pnpm exec vp test run apps/app/src packages/core/src packages/session-view/src --no-file-parallelism
pnpm run package:mac
pnpm run package:mac,Intel 芯片用 pnpm run package:mac:x64。签名和公证需要你自己的开发者证书。better-sqlite3 必须匹配运行时;切到 Electron 开发时运行 pnpm run rebuild:native:electron。scripts/release.sh:它面向上游的 npm 包发布,AgentHub 只发布桌面应用。apps/
app/ AgentHub 桌面应用(Electron)
cli/ 上游的命令行工具
web/ 上游的网站与在线阅读器
backend/ 上游的云端服务
packages/
core/ 本地会话读取、索引(SQLite)与全文搜索
redact/ 敏感信息检测
session-kit/ 会话数据模型与解析
session-view/ 会话渲染组件
share-kit/ 上游的分享与导出
AgentHub 基于 Spool v0.6.3 开发,感谢上游作者的开源实现。AgentHub 保留原作者署名和许可证,与 Spool 官方无关联,也不是 Spool 的新版本。
问题和建议请提交到 Issues。
MIT
“Spool” and the Spool logo are trademarks of TypeSafe Limited. The MIT License covers the source code only and does not grant permission to use the Spool name or logo. See TRADEMARK.md.