claude-command-center 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- claude_command_center-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +29 -0
- claude_command_center-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +19 -0
- claude_command_center-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +10 -0
- claude_command_center-0.1.0/.github/workflows/ci.yml +29 -0
- claude_command_center-0.1.0/.github/workflows/release.yml +32 -0
- claude_command_center-0.1.0/.gitignore +10 -0
- claude_command_center-0.1.0/CHANGELOG.md +13 -0
- claude_command_center-0.1.0/CONTRIBUTING.md +40 -0
- claude_command_center-0.1.0/LICENSE +21 -0
- claude_command_center-0.1.0/PKG-INFO +204 -0
- claude_command_center-0.1.0/README.md +173 -0
- claude_command_center-0.1.0/SECURITY.md +8 -0
- claude_command_center-0.1.0/config.sample.yaml +63 -0
- claude_command_center-0.1.0/docs/TROUBLESHOOTING.md +75 -0
- claude_command_center-0.1.0/docs/images/cover-devto.png +0 -0
- claude_command_center-0.1.0/docs/images/dashboard.png +0 -0
- claude_command_center-0.1.0/docs/images/demo.gif +0 -0
- claude_command_center-0.1.0/docs/images/files.png +0 -0
- claude_command_center-0.1.0/docs/images/help.png +0 -0
- claude_command_center-0.1.0/docs/images/logs-panel.png +0 -0
- claude_command_center-0.1.0/docs/images/new-agent.png +0 -0
- claude_command_center-0.1.0/docs/images/palette.png +0 -0
- claude_command_center-0.1.0/docs/images/permission.png +0 -0
- claude_command_center-0.1.0/docs/images/social-preview.png +0 -0
- claude_command_center-0.1.0/docs/images/tasks.png +0 -0
- claude_command_center-0.1.0/docs/launch/BLOG_POST.md +103 -0
- claude_command_center-0.1.0/docs/launch/LAUNCH.md +218 -0
- claude_command_center-0.1.0/docs/launch/cover.html +31 -0
- claude_command_center-0.1.0/install.sh +49 -0
- claude_command_center-0.1.0/pyproject.toml +50 -0
- claude_command_center-0.1.0/scripts/make_media.py +223 -0
- claude_command_center-0.1.0/src/claude_center/__init__.py +3 -0
- claude_command_center-0.1.0/src/claude_center/__main__.py +171 -0
- claude_command_center-0.1.0/src/claude_center/adapters/__init__.py +0 -0
- claude_command_center-0.1.0/src/claude_center/adapters/base.py +64 -0
- claude_command_center-0.1.0/src/claude_center/adapters/claude_cli.py +156 -0
- claude_command_center-0.1.0/src/claude_center/adapters/demo.py +276 -0
- claude_command_center-0.1.0/src/claude_center/config.py +213 -0
- claude_command_center-0.1.0/src/claude_center/db.py +406 -0
- claude_command_center-0.1.0/src/claude_center/gitinfo.py +169 -0
- claude_command_center-0.1.0/src/claude_center/models.py +166 -0
- claude_command_center-0.1.0/src/claude_center/paths.py +33 -0
- claude_command_center-0.1.0/src/claude_center/proc.py +92 -0
- claude_command_center-0.1.0/src/claude_center/redact.py +51 -0
- claude_command_center-0.1.0/src/claude_center/services/__init__.py +0 -0
- claude_command_center-0.1.0/src/claude_center/services/dispatcher.py +261 -0
- claude_command_center-0.1.0/src/claude_center/services/monitor.py +226 -0
- claude_command_center-0.1.0/src/claude_center/services/notifier.py +71 -0
- claude_command_center-0.1.0/src/claude_center/status.py +97 -0
- claude_command_center-0.1.0/src/claude_center/termrender.py +124 -0
- claude_command_center-0.1.0/src/claude_center/ui/__init__.py +0 -0
- claude_command_center-0.1.0/src/claude_center/ui/app.py +859 -0
- claude_command_center-0.1.0/src/claude_center/ui/app.tcss +213 -0
- claude_command_center-0.1.0/src/claude_center/ui/commands.py +61 -0
- claude_command_center-0.1.0/src/claude_center/ui/screens/__init__.py +0 -0
- claude_command_center-0.1.0/src/claude_center/ui/screens/modals.py +446 -0
- claude_command_center-0.1.0/src/claude_center/ui/style.py +120 -0
- claude_command_center-0.1.0/src/claude_center/ui/views.py +220 -0
- claude_command_center-0.1.0/src/claude_center/ui/widgets/__init__.py +0 -0
- claude_command_center-0.1.0/src/claude_center/ui/widgets/agent_table.py +117 -0
- claude_command_center-0.1.0/src/claude_center/ui/widgets/bottom.py +27 -0
- claude_command_center-0.1.0/src/claude_center/ui/widgets/details.py +205 -0
- claude_command_center-0.1.0/src/claude_center/ui/widgets/header.py +64 -0
- claude_command_center-0.1.0/src/claude_center/ui/widgets/sidebar.py +187 -0
- claude_command_center-0.1.0/tests/conftest.py +69 -0
- claude_command_center-0.1.0/tests/fake_claude.py +89 -0
- claude_command_center-0.1.0/tests/test_core.py +220 -0
- claude_command_center-0.1.0/tests/test_integration.py +385 -0
- claude_command_center-0.1.0/tests/test_termrender.py +54 -0
- claude_command_center-0.1.0/tests/test_ui.py +255 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Something doesn't work as expected
|
|
3
|
+
labels: [bug]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: what
|
|
7
|
+
attributes:
|
|
8
|
+
label: What happened?
|
|
9
|
+
description: What you did, what you expected, what you saw instead.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: doctor
|
|
14
|
+
attributes:
|
|
15
|
+
label: "`claude-center doctor` output"
|
|
16
|
+
render: text
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
19
|
+
- type: input
|
|
20
|
+
id: terminal
|
|
21
|
+
attributes:
|
|
22
|
+
label: Terminal + OS
|
|
23
|
+
placeholder: "iTerm2 3.5 on macOS 15 / WezTerm on Ubuntu 24.04"
|
|
24
|
+
- type: textarea
|
|
25
|
+
id: logs
|
|
26
|
+
attributes:
|
|
27
|
+
label: Relevant activity-feed lines or tracebacks
|
|
28
|
+
description: Please check that nothing sensitive is included.
|
|
29
|
+
render: text
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Suggest an idea
|
|
3
|
+
labels: [enhancement]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: problem
|
|
7
|
+
attributes:
|
|
8
|
+
label: What problem would this solve?
|
|
9
|
+
validations:
|
|
10
|
+
required: true
|
|
11
|
+
- type: textarea
|
|
12
|
+
id: idea
|
|
13
|
+
attributes:
|
|
14
|
+
label: What would you like to happen?
|
|
15
|
+
- type: textarea
|
|
16
|
+
id: cli
|
|
17
|
+
attributes:
|
|
18
|
+
label: Claude Code CLI support
|
|
19
|
+
description: Is the data/command this needs exposed by the `claude` CLI? (claude-center only uses public CLI commands.)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
## What & why
|
|
2
|
+
|
|
3
|
+
## How it was tested
|
|
4
|
+
- [ ] `.venv/bin/pytest -q` passes
|
|
5
|
+
- [ ] Tried it in `claude-center --demo` (and against a real CLI if it touches the adapter)
|
|
6
|
+
|
|
7
|
+
## Checklist
|
|
8
|
+
- [ ] No new Claude Code CLI flags or JSON fields assumed without checking `claude --help` / docs
|
|
9
|
+
- [ ] Nothing bypasses Claude Code's permission prompts
|
|
10
|
+
- [ ] New UI text that can contain user data goes through `redact()`
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
os: [ubuntu-latest, macos-latest]
|
|
14
|
+
python: ["3.12", "3.13"]
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: astral-sh/setup-uv@v5
|
|
19
|
+
- name: Install
|
|
20
|
+
run: |
|
|
21
|
+
uv venv -p ${{ matrix.python }} .venv
|
|
22
|
+
uv pip install --python .venv -e '.[dev]'
|
|
23
|
+
- name: Configure git for tests
|
|
24
|
+
run: |
|
|
25
|
+
git config --global user.name ci
|
|
26
|
+
git config --global user.email ci@example.invalid
|
|
27
|
+
git config --global init.defaultBranch main
|
|
28
|
+
- name: Test
|
|
29
|
+
run: .venv/bin/pytest -q
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Publish to PyPI when a version tag (v*) is pushed. Uses PyPI trusted
|
|
4
|
+
# publishing: add this repo as a trusted publisher on pypi.org first.
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
tags: ["v*"]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
- uses: astral-sh/setup-uv@v5
|
|
15
|
+
- run: uv build
|
|
16
|
+
- uses: actions/upload-artifact@v4
|
|
17
|
+
with:
|
|
18
|
+
name: dist
|
|
19
|
+
path: dist/
|
|
20
|
+
|
|
21
|
+
publish:
|
|
22
|
+
needs: build
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
environment: pypi
|
|
25
|
+
permissions:
|
|
26
|
+
id-token: write
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/download-artifact@v4
|
|
29
|
+
with:
|
|
30
|
+
name: dist
|
|
31
|
+
path: dist/
|
|
32
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 — 2026-11-30
|
|
4
|
+
|
|
5
|
+
First public release.
|
|
6
|
+
|
|
7
|
+
- Five-panel dashboard: header, project sidebar, agent table, details, activity feed
|
|
8
|
+
- Live status from `claude agents --json --all`: running, waiting, permission, planning, completed, failed, idle
|
|
9
|
+
- Launch, attach, logs (VT-rendered), diff, stop, respawn and remove for background agents
|
|
10
|
+
- Per-project task queues with priorities, templates, pause/resume, retry and a concurrency cap
|
|
11
|
+
- Git worktree isolation, per-environment `CLAUDE_CONFIG_DIR` (office / personal)
|
|
12
|
+
- Secret redaction, Catppuccin themes, rebindable keys, command palette
|
|
13
|
+
- `--demo` mode with simulated agents; `doctor`, `add-project` and `init-config` commands
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for helping! Issues and PRs are welcome.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git clone https://github.com/RatulSikder97/claude-command-center
|
|
9
|
+
cd claude-command-center
|
|
10
|
+
uv venv -p 3.12 .venv && uv pip install --python .venv -e '.[dev]'
|
|
11
|
+
.venv/bin/pytest -q # ~35 s, no Claude Code needed
|
|
12
|
+
.venv/bin/claude-center --demo # simulated agents
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Ground rules
|
|
16
|
+
|
|
17
|
+
1. **Only public `claude` CLI behaviour.** Verify a command or JSON field with
|
|
18
|
+
`claude --help` or the docs before using it. Never read
|
|
19
|
+
`~/.claude/jobs`, sockets or credentials.
|
|
20
|
+
2. **Never fabricate.** If the CLI doesn't report something (model, tokens,
|
|
21
|
+
progress), show `—`.
|
|
22
|
+
3. **Never weaken permissions.** No bypass flags, no auto-approving prompts.
|
|
23
|
+
4. **Redact.** Anything rendered that can contain user data goes through
|
|
24
|
+
`claude_center.redact.redact`.
|
|
25
|
+
5. **Tests.** Adapter changes need an integration test against
|
|
26
|
+
`tests/fake_claude.py`. UI changes need a pilot test in `tests/test_ui.py`.
|
|
27
|
+
|
|
28
|
+
## Layout
|
|
29
|
+
|
|
30
|
+
| Path | What |
|
|
31
|
+
|---|---|
|
|
32
|
+
| `src/claude_center/adapters/` | `Backend` protocol, real CLI adapter, demo backend |
|
|
33
|
+
| `src/claude_center/services/` | monitor (polling), dispatcher (queues), notifier |
|
|
34
|
+
| `src/claude_center/ui/` | Textual app, widgets, views, modals, TCSS |
|
|
35
|
+
| `scripts/make_media.py` | regenerates `docs/images/*` from demo mode |
|
|
36
|
+
|
|
37
|
+
## Releasing
|
|
38
|
+
|
|
39
|
+
Bump `version` in `pyproject.toml` and `src/claude_center/__init__.py`,
|
|
40
|
+
update `CHANGELOG.md`, then tag `vX.Y.Z` and push. CI publishes to PyPI.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ratul Sikder
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: claude-command-center
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Multi-project terminal command center for Claude Code background agents
|
|
5
|
+
Project-URL: Homepage, https://github.com/RatulSikder97/claude-command-center
|
|
6
|
+
Project-URL: Issues, https://github.com/RatulSikder97/claude-command-center/issues
|
|
7
|
+
Project-URL: Changelog, https://github.com/RatulSikder97/claude-command-center/blob/main/CHANGELOG.md
|
|
8
|
+
Author: Ratul Sikder
|
|
9
|
+
License: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: ai-agents,claude,claude-code,dashboard,developer-tools,terminal,textual,tui
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console :: Curses
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Software Development
|
|
21
|
+
Classifier: Topic :: Terminals
|
|
22
|
+
Requires-Python: >=3.12
|
|
23
|
+
Requires-Dist: pyte>=0.8.2
|
|
24
|
+
Requires-Dist: pyyaml>=6.0
|
|
25
|
+
Requires-Dist: rich>=13.7
|
|
26
|
+
Requires-Dist: textual<9,>=8.0
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
|
|
29
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
<div align="center">
|
|
33
|
+
|
|
34
|
+
# ◆ Claude Command Center
|
|
35
|
+
|
|
36
|
+
**Mission control for Claude Code: run, watch and steer background agents across all your projects from one terminal.**
|
|
37
|
+
|
|
38
|
+
[](https://github.com/RatulSikder97/claude-command-center/actions/workflows/ci.yml)
|
|
39
|
+
[](https://pypi.org/project/claude-command-center/)
|
|
40
|
+
[](https://www.python.org/)
|
|
41
|
+
[](LICENSE)
|
|
42
|
+
|
|
43
|
+
<img src="docs/images/demo.gif" alt="claude-center demo: dashboard, live logs, task queue, new agent, command palette" width="100%">
|
|
44
|
+
|
|
45
|
+
`pipx install claude-command-center` · `claude-center --demo`
|
|
46
|
+
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
You've got Claude Code agents running in four repos. One is waiting on a
|
|
52
|
+
permission prompt, one finished ten minutes ago, one failed, and you don't
|
|
53
|
+
know which, because each one lives in a different terminal tab.
|
|
54
|
+
|
|
55
|
+
**claude-center** puts them all in one keyboard-driven dashboard:
|
|
56
|
+
|
|
57
|
+
- 🟠 **See who needs you.** Agents waiting on a permission prompt or your input sort to the top and trigger a notification.
|
|
58
|
+
- ⏎ **Jump in instantly.** `Enter` attaches to the agent's real Claude Code session; `←` brings you back.
|
|
59
|
+
- 📋 **Queue work.** Per-project task queues with priorities, templates and a concurrency cap. The dispatcher starts agents as slots free up.
|
|
60
|
+
- 🌳 **No collisions.** A second agent in the same repo automatically gets its own git worktree.
|
|
61
|
+
- 🏢 **Office ≠ personal.** Per-environment `CLAUDE_CONFIG_DIR` keeps your accounts and projects separate.
|
|
62
|
+
- 🔒 **Safe by design.** It never passes bypass flags or approves anything for you, and it redacts secrets from logs and diffs.
|
|
63
|
+
|
|
64
|
+
It uses your existing Claude Code login (subscription or API) through the
|
|
65
|
+
public `claude` CLI. No extra API key, no scraping of private files.
|
|
66
|
+
|
|
67
|
+
<table>
|
|
68
|
+
<tr>
|
|
69
|
+
<td><img src="docs/images/dashboard.png" alt="Dashboard"><br><sub><b>Dashboard</b>: projects, agents, details</sub></td>
|
|
70
|
+
<td><img src="docs/images/logs-panel.png" alt="Live logs"><br><sub><b>Live logs</b>: preview with Space</sub></td>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr>
|
|
73
|
+
<td><img src="docs/images/tasks.png" alt="Task queues"><br><sub><b>Task queues</b>: priorities, retry, pause</sub></td>
|
|
74
|
+
<td><img src="docs/images/new-agent.png" alt="New agent"><br><sub><b>New agent</b>: templates, model, plan mode, worktree</sub></td>
|
|
75
|
+
</tr>
|
|
76
|
+
</table>
|
|
77
|
+
|
|
78
|
+
## Install
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
pipx install claude-command-center # or: uv tool install claude-command-center
|
|
82
|
+
claude-center doctor # checks Python, git, the claude CLI
|
|
83
|
+
claude-center --demo # try it with simulated agents
|
|
84
|
+
claude-center # the real thing
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Requires Python 3.12+, git, and [Claude Code](https://docs.claude.com/en/docs/claude-code)
|
|
88
|
+
2.1+ (it uses `claude agents`, `--bg` and `attach`). Works on macOS and Linux.
|
|
89
|
+
|
|
90
|
+
<details>
|
|
91
|
+
<summary>From source</summary>
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
git clone https://github.com/RatulSikder97/claude-command-center
|
|
95
|
+
cd claude-command-center && ./install.sh # uv tool → pipx → private venv
|
|
96
|
+
```
|
|
97
|
+
</details>
|
|
98
|
+
|
|
99
|
+
Register projects with `p` in the app, or from the shell:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
claude-center add-project ~/code/api --group office --test-command "npm test"
|
|
103
|
+
claude-center add-project ~/code/side-project
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Keys
|
|
107
|
+
|
|
108
|
+
| Key | Action | Key | Action |
|
|
109
|
+
|---|---|---|---|
|
|
110
|
+
| `n` | New agent | `a` | Queue a task |
|
|
111
|
+
| `Enter` | Attach to agent | `Space` | Preview live logs |
|
|
112
|
+
| `l` | Full-screen logs | `d` | Git diff |
|
|
113
|
+
| `s` | Stop (asks first) | `r` | Restart (`claude respawn`) |
|
|
114
|
+
| `f` `/` | Filter | `t` | Pin project |
|
|
115
|
+
| `p` | Add project | `x` | Run project tests |
|
|
116
|
+
| `z` | Pause / resume dispatch | `Ctrl+P` | Command palette |
|
|
117
|
+
| `1`–`5` | Dashboard · Projects · Sessions · Tasks · Settings | `?` | Help |
|
|
118
|
+
|
|
119
|
+
Every key can be rebound in `~/.config/claude-center/config.yaml`.
|
|
120
|
+
Double-click a row to attach.
|
|
121
|
+
|
|
122
|
+
## Status colours (only what Claude Code reports)
|
|
123
|
+
|
|
124
|
+
| | Status | From `claude agents --json` |
|
|
125
|
+
|---|---|---|
|
|
126
|
+
| 🟢 | Running | `state: working` / `status: busy` |
|
|
127
|
+
| 🟡 | Waiting for input | `waitingFor: input needed / dialog open` |
|
|
128
|
+
| 🟠 | Permission required | `waitingFor: permission prompt / sandbox request / worker request` |
|
|
129
|
+
| 🟣 | Planning | working **and** launched by claude-center in plan mode |
|
|
130
|
+
| 🔵 | Completed | `state: done` |
|
|
131
|
+
| 🔴 | Failed | `state: failed` |
|
|
132
|
+
| ⚪ | Idle / Stopped | `status: idle` / `state: stopped` |
|
|
133
|
+
|
|
134
|
+
No made-up progress bars or token counters. If the CLI doesn't report a
|
|
135
|
+
value, the dashboard shows `—`.
|
|
136
|
+
|
|
137
|
+
## How it works
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
claude agents --json --all ──► Monitor ──► status + project + git branch ──► UI
|
|
141
|
+
│
|
|
142
|
+
task queue (SQLite) ──► Dispatcher ──► claude --bg --name … [--worktree] <prompt>
|
|
143
|
+
│
|
|
144
|
+
Enter ──► claude attach <id> (TUI suspends, you talk to Claude, ← returns)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
| Purpose | Command |
|
|
148
|
+
|---|---|
|
|
149
|
+
| Discover / monitor | `claude agents --json --all` (polled, single-flight) |
|
|
150
|
+
| Launch | `claude --bg --name … [--model] [--permission-mode] [--worktree] [--append-system-prompt] <prompt>`, run in the project's directory |
|
|
151
|
+
| Logs | `claude logs <id>`, replayed through a VT emulator so it reads like the terminal |
|
|
152
|
+
| Control | `claude stop` / `respawn` / `rm <id>`, each with a confirmation dialog |
|
|
153
|
+
|
|
154
|
+
Quitting the dashboard leaves every agent running; they belong to Claude
|
|
155
|
+
Code, not to claude-center.
|
|
156
|
+
|
|
157
|
+
## Configuration
|
|
158
|
+
|
|
159
|
+
`~/.config/claude-center/config.yaml` controls:
|
|
160
|
+
|
|
161
|
+
- theme
|
|
162
|
+
- refresh interval
|
|
163
|
+
- max concurrent agents (default 4)
|
|
164
|
+
- default model and permission mode
|
|
165
|
+
- worktree policy
|
|
166
|
+
- notifications (toast, bell, desktop)
|
|
167
|
+
- environments
|
|
168
|
+
- key bindings
|
|
169
|
+
|
|
170
|
+
See [`config.sample.yaml`](config.sample.yaml) for every key with defaults.
|
|
171
|
+
|
|
172
|
+
```yaml
|
|
173
|
+
environments:
|
|
174
|
+
office:
|
|
175
|
+
env:
|
|
176
|
+
CLAUDE_CONFIG_DIR: ~/.claude-office # separate account for work projects
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## FAQ
|
|
180
|
+
|
|
181
|
+
**Does it need an Anthropic API key?** No. It drives the `claude` CLI you
|
|
182
|
+
already use, so whatever login Claude Code has, it uses.
|
|
183
|
+
|
|
184
|
+
**Can it approve permission prompts for me?** No, by design. Press `Enter`
|
|
185
|
+
to attach and answer the prompt in Claude Code itself.
|
|
186
|
+
|
|
187
|
+
**Where's token usage or cost?** The CLI doesn't expose it in a structured
|
|
188
|
+
way, and claude-center won't guess.
|
|
189
|
+
|
|
190
|
+
**Ctrl+1…5 don't work.** Most terminals don't send those keys. Use `1`–`5`.
|
|
191
|
+
|
|
192
|
+
More in [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md).
|
|
193
|
+
|
|
194
|
+
## Contributing
|
|
195
|
+
|
|
196
|
+
PRs welcome; see [CONTRIBUTING.md](CONTRIBUTING.md). The test suite (unit,
|
|
197
|
+
integration against a fake `claude` binary, and headless UI tests) runs in
|
|
198
|
+
about 35 seconds without Claude Code installed.
|
|
199
|
+
|
|
200
|
+
## License
|
|
201
|
+
|
|
202
|
+
MIT © Ratul Sikder
|
|
203
|
+
|
|
204
|
+
<sub>Claude Command Center is an independent community project and is not affiliated with or endorsed by Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic, PBC.</sub>
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# ◆ Claude Command Center
|
|
4
|
+
|
|
5
|
+
**Mission control for Claude Code: run, watch and steer background agents across all your projects from one terminal.**
|
|
6
|
+
|
|
7
|
+
[](https://github.com/RatulSikder97/claude-command-center/actions/workflows/ci.yml)
|
|
8
|
+
[](https://pypi.org/project/claude-command-center/)
|
|
9
|
+
[](https://www.python.org/)
|
|
10
|
+
[](LICENSE)
|
|
11
|
+
|
|
12
|
+
<img src="docs/images/demo.gif" alt="claude-center demo: dashboard, live logs, task queue, new agent, command palette" width="100%">
|
|
13
|
+
|
|
14
|
+
`pipx install claude-command-center` · `claude-center --demo`
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
You've got Claude Code agents running in four repos. One is waiting on a
|
|
21
|
+
permission prompt, one finished ten minutes ago, one failed, and you don't
|
|
22
|
+
know which, because each one lives in a different terminal tab.
|
|
23
|
+
|
|
24
|
+
**claude-center** puts them all in one keyboard-driven dashboard:
|
|
25
|
+
|
|
26
|
+
- 🟠 **See who needs you.** Agents waiting on a permission prompt or your input sort to the top and trigger a notification.
|
|
27
|
+
- ⏎ **Jump in instantly.** `Enter` attaches to the agent's real Claude Code session; `←` brings you back.
|
|
28
|
+
- 📋 **Queue work.** Per-project task queues with priorities, templates and a concurrency cap. The dispatcher starts agents as slots free up.
|
|
29
|
+
- 🌳 **No collisions.** A second agent in the same repo automatically gets its own git worktree.
|
|
30
|
+
- 🏢 **Office ≠ personal.** Per-environment `CLAUDE_CONFIG_DIR` keeps your accounts and projects separate.
|
|
31
|
+
- 🔒 **Safe by design.** It never passes bypass flags or approves anything for you, and it redacts secrets from logs and diffs.
|
|
32
|
+
|
|
33
|
+
It uses your existing Claude Code login (subscription or API) through the
|
|
34
|
+
public `claude` CLI. No extra API key, no scraping of private files.
|
|
35
|
+
|
|
36
|
+
<table>
|
|
37
|
+
<tr>
|
|
38
|
+
<td><img src="docs/images/dashboard.png" alt="Dashboard"><br><sub><b>Dashboard</b>: projects, agents, details</sub></td>
|
|
39
|
+
<td><img src="docs/images/logs-panel.png" alt="Live logs"><br><sub><b>Live logs</b>: preview with Space</sub></td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr>
|
|
42
|
+
<td><img src="docs/images/tasks.png" alt="Task queues"><br><sub><b>Task queues</b>: priorities, retry, pause</sub></td>
|
|
43
|
+
<td><img src="docs/images/new-agent.png" alt="New agent"><br><sub><b>New agent</b>: templates, model, plan mode, worktree</sub></td>
|
|
44
|
+
</tr>
|
|
45
|
+
</table>
|
|
46
|
+
|
|
47
|
+
## Install
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pipx install claude-command-center # or: uv tool install claude-command-center
|
|
51
|
+
claude-center doctor # checks Python, git, the claude CLI
|
|
52
|
+
claude-center --demo # try it with simulated agents
|
|
53
|
+
claude-center # the real thing
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Requires Python 3.12+, git, and [Claude Code](https://docs.claude.com/en/docs/claude-code)
|
|
57
|
+
2.1+ (it uses `claude agents`, `--bg` and `attach`). Works on macOS and Linux.
|
|
58
|
+
|
|
59
|
+
<details>
|
|
60
|
+
<summary>From source</summary>
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
git clone https://github.com/RatulSikder97/claude-command-center
|
|
64
|
+
cd claude-command-center && ./install.sh # uv tool → pipx → private venv
|
|
65
|
+
```
|
|
66
|
+
</details>
|
|
67
|
+
|
|
68
|
+
Register projects with `p` in the app, or from the shell:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
claude-center add-project ~/code/api --group office --test-command "npm test"
|
|
72
|
+
claude-center add-project ~/code/side-project
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Keys
|
|
76
|
+
|
|
77
|
+
| Key | Action | Key | Action |
|
|
78
|
+
|---|---|---|---|
|
|
79
|
+
| `n` | New agent | `a` | Queue a task |
|
|
80
|
+
| `Enter` | Attach to agent | `Space` | Preview live logs |
|
|
81
|
+
| `l` | Full-screen logs | `d` | Git diff |
|
|
82
|
+
| `s` | Stop (asks first) | `r` | Restart (`claude respawn`) |
|
|
83
|
+
| `f` `/` | Filter | `t` | Pin project |
|
|
84
|
+
| `p` | Add project | `x` | Run project tests |
|
|
85
|
+
| `z` | Pause / resume dispatch | `Ctrl+P` | Command palette |
|
|
86
|
+
| `1`–`5` | Dashboard · Projects · Sessions · Tasks · Settings | `?` | Help |
|
|
87
|
+
|
|
88
|
+
Every key can be rebound in `~/.config/claude-center/config.yaml`.
|
|
89
|
+
Double-click a row to attach.
|
|
90
|
+
|
|
91
|
+
## Status colours (only what Claude Code reports)
|
|
92
|
+
|
|
93
|
+
| | Status | From `claude agents --json` |
|
|
94
|
+
|---|---|---|
|
|
95
|
+
| 🟢 | Running | `state: working` / `status: busy` |
|
|
96
|
+
| 🟡 | Waiting for input | `waitingFor: input needed / dialog open` |
|
|
97
|
+
| 🟠 | Permission required | `waitingFor: permission prompt / sandbox request / worker request` |
|
|
98
|
+
| 🟣 | Planning | working **and** launched by claude-center in plan mode |
|
|
99
|
+
| 🔵 | Completed | `state: done` |
|
|
100
|
+
| 🔴 | Failed | `state: failed` |
|
|
101
|
+
| ⚪ | Idle / Stopped | `status: idle` / `state: stopped` |
|
|
102
|
+
|
|
103
|
+
No made-up progress bars or token counters. If the CLI doesn't report a
|
|
104
|
+
value, the dashboard shows `—`.
|
|
105
|
+
|
|
106
|
+
## How it works
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
claude agents --json --all ──► Monitor ──► status + project + git branch ──► UI
|
|
110
|
+
│
|
|
111
|
+
task queue (SQLite) ──► Dispatcher ──► claude --bg --name … [--worktree] <prompt>
|
|
112
|
+
│
|
|
113
|
+
Enter ──► claude attach <id> (TUI suspends, you talk to Claude, ← returns)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
| Purpose | Command |
|
|
117
|
+
|---|---|
|
|
118
|
+
| Discover / monitor | `claude agents --json --all` (polled, single-flight) |
|
|
119
|
+
| Launch | `claude --bg --name … [--model] [--permission-mode] [--worktree] [--append-system-prompt] <prompt>`, run in the project's directory |
|
|
120
|
+
| Logs | `claude logs <id>`, replayed through a VT emulator so it reads like the terminal |
|
|
121
|
+
| Control | `claude stop` / `respawn` / `rm <id>`, each with a confirmation dialog |
|
|
122
|
+
|
|
123
|
+
Quitting the dashboard leaves every agent running; they belong to Claude
|
|
124
|
+
Code, not to claude-center.
|
|
125
|
+
|
|
126
|
+
## Configuration
|
|
127
|
+
|
|
128
|
+
`~/.config/claude-center/config.yaml` controls:
|
|
129
|
+
|
|
130
|
+
- theme
|
|
131
|
+
- refresh interval
|
|
132
|
+
- max concurrent agents (default 4)
|
|
133
|
+
- default model and permission mode
|
|
134
|
+
- worktree policy
|
|
135
|
+
- notifications (toast, bell, desktop)
|
|
136
|
+
- environments
|
|
137
|
+
- key bindings
|
|
138
|
+
|
|
139
|
+
See [`config.sample.yaml`](config.sample.yaml) for every key with defaults.
|
|
140
|
+
|
|
141
|
+
```yaml
|
|
142
|
+
environments:
|
|
143
|
+
office:
|
|
144
|
+
env:
|
|
145
|
+
CLAUDE_CONFIG_DIR: ~/.claude-office # separate account for work projects
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## FAQ
|
|
149
|
+
|
|
150
|
+
**Does it need an Anthropic API key?** No. It drives the `claude` CLI you
|
|
151
|
+
already use, so whatever login Claude Code has, it uses.
|
|
152
|
+
|
|
153
|
+
**Can it approve permission prompts for me?** No, by design. Press `Enter`
|
|
154
|
+
to attach and answer the prompt in Claude Code itself.
|
|
155
|
+
|
|
156
|
+
**Where's token usage or cost?** The CLI doesn't expose it in a structured
|
|
157
|
+
way, and claude-center won't guess.
|
|
158
|
+
|
|
159
|
+
**Ctrl+1…5 don't work.** Most terminals don't send those keys. Use `1`–`5`.
|
|
160
|
+
|
|
161
|
+
More in [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md).
|
|
162
|
+
|
|
163
|
+
## Contributing
|
|
164
|
+
|
|
165
|
+
PRs welcome; see [CONTRIBUTING.md](CONTRIBUTING.md). The test suite (unit,
|
|
166
|
+
integration against a fake `claude` binary, and headless UI tests) runs in
|
|
167
|
+
about 35 seconds without Claude Code installed.
|
|
168
|
+
|
|
169
|
+
## License
|
|
170
|
+
|
|
171
|
+
MIT © Ratul Sikder
|
|
172
|
+
|
|
173
|
+
<sub>Claude Command Center is an independent community project and is not affiliated with or endorsed by Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic, PBC.</sub>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Security
|
|
2
|
+
|
|
3
|
+
claude-center runs locally and only calls the public `claude` CLI and `git`.
|
|
4
|
+
It never passes permission-bypass flags and never answers Claude Code's
|
|
5
|
+
permission prompts. Logs, diffs and errors are redacted before display.
|
|
6
|
+
|
|
7
|
+
Found a vulnerability? Please **don't open a public issue**. Use GitHub's
|
|
8
|
+
[private vulnerability reporting](../../security/advisories/new) instead.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Claude Command Center — sample configuration
|
|
2
|
+
# Copy to ~/.config/claude-center/config.yaml (or run `claude-center init-config`).
|
|
3
|
+
# Every key is optional; omitted keys use the defaults shown here.
|
|
4
|
+
|
|
5
|
+
theme: catppuccin-mocha # catppuccin-{mocha,macchiato,frappe,latte}, tokyo-night, nord, dracula, gruvbox, rose-pine
|
|
6
|
+
refresh_interval: 2.0 # seconds between `claude agents --json --all` polls
|
|
7
|
+
git_refresh_interval: 5.0 # seconds between git status refreshes per directory
|
|
8
|
+
log_refresh_interval: 2.0 # seconds between `claude logs <id>` refreshes for the selected agent
|
|
9
|
+
log_lines: 400 # lines of log tail kept in the details panel
|
|
10
|
+
command_timeout: 15.0 # seconds before a CLI call is abandoned
|
|
11
|
+
|
|
12
|
+
max_concurrent_agents: 4 # active background sessions before the dispatcher holds tasks
|
|
13
|
+
dispatch_paused: false # start with automatic task dispatch paused
|
|
14
|
+
|
|
15
|
+
claude_binary: claude # path or name of the Claude Code CLI
|
|
16
|
+
default_model: null # e.g. opus / sonnet; null = Claude Code's own default
|
|
17
|
+
default_permission_mode: default # default | plan | acceptEdits | auto (bypass modes are refused)
|
|
18
|
+
worktree_isolation: auto # auto: isolate only when the repo already has an active agent
|
|
19
|
+
# always: every dispatched agent gets its own git worktree
|
|
20
|
+
# never: agents share the working tree
|
|
21
|
+
show_interactive_sessions: true
|
|
22
|
+
|
|
23
|
+
notifications:
|
|
24
|
+
toast: true # in-app toast on permission / input / completed / failed
|
|
25
|
+
bell: false # terminal bell
|
|
26
|
+
desktop: false # macOS Notification Center / notify-send
|
|
27
|
+
|
|
28
|
+
# Environments are applied to every `claude` invocation for projects that use
|
|
29
|
+
# them. Point CLAUDE_CONFIG_DIR at a separate directory to keep an office
|
|
30
|
+
# account fully isolated from a personal one.
|
|
31
|
+
environments:
|
|
32
|
+
default:
|
|
33
|
+
env: {}
|
|
34
|
+
office:
|
|
35
|
+
env: {}
|
|
36
|
+
# env:
|
|
37
|
+
# CLAUDE_CONFIG_DIR: ~/.claude-office
|
|
38
|
+
personal:
|
|
39
|
+
env: {}
|
|
40
|
+
|
|
41
|
+
# Rebind any action. Comma-separated alternatives use Textual key names.
|
|
42
|
+
keybindings:
|
|
43
|
+
new_agent: n
|
|
44
|
+
add_project: p
|
|
45
|
+
attach: enter
|
|
46
|
+
preview: space
|
|
47
|
+
logs: l
|
|
48
|
+
diff: d
|
|
49
|
+
stop: s
|
|
50
|
+
restart: r
|
|
51
|
+
search: f,slash
|
|
52
|
+
pin: t
|
|
53
|
+
new_task: a
|
|
54
|
+
run_tests: x
|
|
55
|
+
toggle_dispatch: z
|
|
56
|
+
refresh: ctrl+r
|
|
57
|
+
view_dashboard: ctrl+1,1
|
|
58
|
+
view_projects: ctrl+2,2
|
|
59
|
+
view_sessions: ctrl+3,3
|
|
60
|
+
view_tasks: ctrl+4,4
|
|
61
|
+
view_settings: ctrl+5,5
|
|
62
|
+
help: question_mark
|
|
63
|
+
quit: q
|