Claude Hub for VS Code
English · 简体中文
English
Monitor, manage, and visualize Claude Code sessions inside VS Code. Claude Hub provides a single-page dashboard, a status-bar HUD, a session browser with search, paging, fork, and delete, plus controls for MCP servers and skills.
Features
- Dashboard. A vertical accordion replaces a tab bar. The live panel stays open and shows the session indicator, context-window progress, input / cache / write / output tokens, estimated cost, and the Git branch. Tool activity and the todo list expand only while they are in use.
- Sessions. Filter by all sessions, the current workspace, or active sessions. Search by project, title, or Git branch, and page through long histories. Fork copies a session’s full transcript into a new UUID so you can open it or resume it with
claude --resume. Delete removes a session record.
- Workspace scope. Current-workspace mode follows the folder open in VS Code. All-sessions mode lists every Claude Code session on the machine.
- MCP and skills. Claude Hub lists configured MCP servers and can enable or disable them. Installed skills are listed, and
SKILL.md opens in the editor.
- Environment. View and edit the API base URL. Open the global
~/.claude/settings.json and the project CLAUDE.md from the dashboard.
- Status bar. A compact item reports context usage, the running tool, and todo progress. Hover shows a progress bar, token breakdown, and common actions.
Commands
Open the Command Palette with Ctrl+Shift+P / Cmd+Shift+P.
| Command |
Action |
Claude Hub: Refresh Claude Code Status |
Rescan sessions and subscription usage |
Claude Hub: Toggle Workspace / All Sessions Filter |
Switch between the current workspace and all sessions |
Claude Hub: Switch Focused Claude Session |
Pick the session shown in the dashboard |
Claude Hub: Fork Claude Session |
Copy the current session into a new session |
Claude Hub: Delete Claude Session |
Delete a session record |
Claude Hub: Open Active Session Transcript |
Open the session .jsonl transcript |
Claude Hub: Open Claude Code Settings |
Open ~/.claude/settings.json |
Settings
{
// "currentWorkspace" or "all"
"claudeHub.filterMode": "currentWorkspace",
"claudeHub.showStatusBarItem": true,
// Seconds without activity before a session is idle. 0 never marks a session idle.
"claudeHub.idleTimeout": 180,
// How often to rescan session files, in seconds.
"claudeHub.refreshInterval": 15,
// Context-window colors: yellow at 50%, red at 75%.
"claudeHub.warningThreshold": 50,
"claudeHub.dangerThreshold": 75,
// Exact model id -> token limit.
"claudeHub.modelContextLimits": {
"claude-3-7-sonnet": 200000
},
// Read the 5-hour subscription quota from local credentials.
"claudeHub.fetchSubscriptionUsage": true,
// Claude config directory. Empty uses ~/.claude.
"claudeHub.configDir": "",
// "auto" follows VS Code, or set "zh-CN" or "en".
"claudeHub.language": "auto"
}
Development
npm install
npm run compile
npm test
# Windows
.\scripts\package.ps1
# macOS / Linux
./scripts/package.sh
Acknowledgements
简体中文
在 VS Code 里监控、管理并查看 Claude Code 会话。Claude Hub 提供单页仪表盘、状态栏 HUD、可搜索和分页的会话列表(支持分叉与删除),以及 MCP 服务和技能的管理。
功能
- 仪表盘。 用纵向手风琴代替横向标签。实时面板保持展开,显示会话指示、上下文进度、输入 / 缓存命中 / 写入 / 输出 Token、预估费用和 Git 分支。工具耗时和待办清单只在有内容时展开。
- 会话。 可按全部、当前工作区或活跃中过滤,并按项目名、标题或 Git 分支搜索,长列表分页浏览。分叉会把会话的完整记录复制为新的 UUID,可直接打开,或在终端用
claude --resume 继续。删除会移除一条会话记录。
- 工作区范围。 当前工作区模式跟随 VS Code 正在打开的文件夹。全部会话模式列出本机所有 Claude Code 会话。
- MCP 与技能。 列出已配置的 MCP 服务,并可启停。已安装技能会列出来,
SKILL.md 可在编辑器中打开。
- 环境。 查看并修改 API Base URL,从仪表盘打开全局
~/.claude/settings.json 和项目里的 CLAUDE.md。
- 状态栏。 紧凑显示上下文占用、正在运行的工具和待办进度。悬停卡片包含进度条、Token 明细和常用操作。
命令
用 Ctrl+Shift+P / Cmd+Shift+P 打开命令面板。
| 命令 |
作用 |
Claude Hub: 刷新 Claude Code 状态 |
重新扫描会话和订阅额度 |
Claude Hub: 切换当前工作区 / 全局所有会话过滤 |
在当前工作区与全部会话之间切换 |
Claude Hub: 切换聚焦查看的 Claude 会话 |
选择仪表盘当前显示的会话 |
Claude Hub: 分叉当前会话 (Fork Session) |
把当前会话复制为一条新会话 |
Claude Hub: 删除 Claude 会话记录 |
删除一条会话记录 |
Claude Hub: 打开当前会话底层运行日志 |
打开该会话的 .jsonl 记录 |
Claude Hub: 打开 Claude Code 配置中心 |
打开 ~/.claude/settings.json |
设置
{
// "currentWorkspace"(仅当前工作区)或 "all"(全部会话)
"claudeHub.filterMode": "currentWorkspace",
// 是否显示状态栏
"claudeHub.showStatusBarItem": true,
// 闲置判定秒数,默认 180。设为 0 表示永不标为闲置。
"claudeHub.idleTimeout": 180,
// 重新扫描会话文件的间隔(秒)
"claudeHub.refreshInterval": 15,
// 上下文占用颜色:50% 黄色,75% 红色
"claudeHub.warningThreshold": 50,
"claudeHub.dangerThreshold": 75,
// 模型 ID -> Token 上限
"claudeHub.modelContextLimits": {
"claude-3-7-sonnet": 200000
},
// 是否从本地凭据读取 5 小时订阅配额
"claudeHub.fetchSubscriptionUsage": true,
// Claude 配置目录,留空则为 ~/.claude
"claudeHub.configDir": "",
// "auto" 跟随 VS Code,也可设为 "zh-CN" 或 "en"
"claudeHub.language": "auto"
}
本地开发
npm install
npm run compile
npm test
# Windows
.\scripts\package.ps1
# macOS / Linux
./scripts/package.sh
致谢