Claude Terminal Hub: stop hunting for folders to resume Claude Code sessions

Claude Terminal Hub: 不再需要为了恢复 Claude Code 会话而到处找文件夹

Every time I went back to an old Claude Code session, the process was the same: open Explorer, remember which folder that project lived in, open a terminal there, type claude --resume <id> from memory or paste it from somewhere. I got tired of it and built Claude Terminal Hub. 每当我想要回到之前的 Claude Code 会话时,流程总是千篇一律:打开资源管理器,回想项目所在的文件夹,在其中打开终端,凭记忆输入 claude --resume <id> 或者从某处粘贴命令。我对此感到厌倦,于是开发了 Claude Terminal Hub。

What it does

它能做什么

It’s a Windows desktop app, built with Electron, that lists your recent Claude Code sessions from every project on the machine in a single screen. It reads the .jsonl files Claude Code writes to ~/.claude/projects, zero configuration needed. Each session shows an AI-generated title and the last prompt sent, sorted by recent activity. One click on a session opens a terminal panel in the right folder, already running claude --resume. You can keep up to 4 panels open side by side, each one a real PowerShell process via node-pty, not a fake console. Arrow keys, vim, the Claude Code TUI itself, all work normally inside the panel. 这是一个基于 Electron 构建的 Windows 桌面应用,它可以在一个屏幕上列出你电脑中所有项目的近期 Claude Code 会话。它会自动读取 Claude Code 写入 ~/.claude/projects.jsonl 文件,无需任何配置。每个会话都会显示 AI 生成的标题和最后发送的提示词,并按活跃时间排序。点击某个会话,即可在对应的文件夹中打开一个终端面板,并自动运行 claude --resume。你可以并排打开最多 4 个面板,每个面板都是通过 node-pty 运行的真实 PowerShell 进程,而非模拟控制台。方向键、Vim 以及 Claude Code 的 TUI(终端用户界面)在面板内均可正常使用。

Under the hood

技术实现

Main process (Node) reads only the first and last KB of each .jsonl file, not the full transcript, to list sessions fast even with a large session history. A narrow contextBridge between main and renderer, no broad IPC surface. React frontend, one xterm.js instance per terminal panel. Each panel spawns a real PowerShell process through node-pty, so shell state, arrow keys, and TUIs behave like a native terminal. 主进程(Node)仅读取每个 .jsonl 文件的前后 1KB 数据,而非完整记录,从而确保即使在会话历史记录庞大的情况下也能快速列出列表。主进程与渲染进程之间通过精简的 contextBridge 通信,没有冗余的 IPC 接口。前端采用 React,每个终端面板对应一个 xterm.js 实例。每个面板通过 node-pty 启动真实的 PowerShell 进程,因此 Shell 状态、方向键和 TUI 的表现与原生终端完全一致。

Getting it

如何获取

Windows installer ready (NSIS), no admin rights required. Open source on GitHub: https://github.com/obrenoalvim/claude-terminal-hub 提供 Windows 安装程序 (NSIS),无需管理员权限。项目已在 GitHub 开源:https://github.com/obrenoalvim/claude-terminal-hub

Does anyone else miss multiplexing Claude Code terminals like this, or already solved it a different way? 还有其他人像我一样怀念这种 Claude Code 终端多路复用的功能吗?或者你已经有其他的解决方案了?