Claude Code workbench for local CLI: automatic side TUI with usage, context, history, and Git patch restore.
中文说明见 README_CN.md。
/plugin marketplace add https://github.com/Siiichenggg/cc-workbench
/plugin install cc-workbench
/install
cargo build --release
Binary: target/release/cc-workbench
This tool wraps the real Claude CLI. The wrapper starts a TUI with the Claude process on the left and the workbench on the right.
alias claude="/path/to/target/release/cc-workbench"
which claude
Rename it to claude.real (same directory).
Place cc-workbench in the same directory and name it claude.
The wrapper will call claude.real automatically if it sits next to the wrapper binary. You can also force a command:
export CCWB_CLAUDE_CMD=claude.real
./scripts/install.sh /path/to/target/release/cc-workbench
Run claude as usual. The workbench appears automatically on the right.
Ctrl+Q: quitTab: focus history panelEnter (history): jump to message outputd (history): diff previewr (history): diff preview + restore prompty/n (diff): confirm/cancel restorePageUp/PageDown: scroll outputEnd: follow outputCreate .cc-workbench/config.json in your workspace (or ~/.cc-workbench/config.json) to set limits and providers.
Example:
{
"context_limit": 200000,
"compress_threshold": 0.85,
"usage_poll_seconds": 30,
"providers": [
{"type": "local", "name": "local-estimate", "limit_tokens": 200000},
{"type": "manual", "name": "claude", "limit_tokens": 1000000, "used_tokens": 12345},
{
"type": "httpjson",
"name": "glm",
"url": "https://api.example.com/usage",
"method": "GET",
"headers": {"Authorization": "Bearer YOUR_KEY"},
"used_pointer": "/data/used",
"limit_pointer": "/data/limit"
}
]
}
Per workspace data is stored in .cc-workbench/:
ccwb.sqlite session metadatasnapshots.git Git patch historybackup/ restore backups.cc-workbench.httpjson providers accept JSON Pointer paths (RFC 6901). Example: /data/usage/used.httpjson providers use curl under the hood (macOS default).You can add Claude/GLM/Minimax usage once you have their official usage endpoints and JSON paths. Example:
{
"type": "httpjson",
"name": "claude",
"url": "https://<official-usage-endpoint>",
"method": "GET",
"headers": {"Authorization": "Bearer <KEY>"},
"used_pointer": "/usage/used",
"limit_pointer": "/usage/limit"
}
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub p/siiichenggg-cc-workbench-plugins-cc-workbenchReal-time statusline HUD for Claude Code with GLM API balance tracking. Shows context usage, active tools, running agents, todo progress, and GLM token balance.
Real-time statusline HUD for Claude Code with GLM API balance tracking. Shows context usage, active tools, running agents, todo progress, and GLM token balance.
Live API usage in Claude Code statusline - colored progress bars, Git info, tokens, session metrics, device tracking, and more
Terminal HUD for Claude Code — real-time token, cost, git, and project monitor
Warns you before a rate limit or auto-compact, not after. A pure-bash Claude Code status bar (no jq, Node optional) for macOS, Linux, and Windows: usage pacing + burn-rate forecast, context warnings, live activity, cost, git, and 8 themes.
A rich statusline for Claude Code — context, rate limits, tool activity, token costs. Pure bash, no dependencies beyond jq.
Track per-device Claude Code usage, rejection reasons, and per-session stats from a single dashboard.
Real-time session dashboard for Claude Code — cost tracking, analytics, and smart alerts