fleetdeck 0.3.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.
Files changed (88) hide show
  1. fleetdeck-0.3.0/.github/ISSUE_TEMPLATE/bug_report.yml +29 -0
  2. fleetdeck-0.3.0/.github/ISSUE_TEMPLATE/feature_request.yml +19 -0
  3. fleetdeck-0.3.0/.github/PULL_REQUEST_TEMPLATE.md +10 -0
  4. fleetdeck-0.3.0/.github/workflows/ci.yml +29 -0
  5. fleetdeck-0.3.0/.github/workflows/redirect.yml +31 -0
  6. fleetdeck-0.3.0/.github/workflows/release.yml +32 -0
  7. fleetdeck-0.3.0/.gitignore +11 -0
  8. fleetdeck-0.3.0/CHANGELOG.md +37 -0
  9. fleetdeck-0.3.0/CONTRIBUTING.md +40 -0
  10. fleetdeck-0.3.0/LICENSE +21 -0
  11. fleetdeck-0.3.0/PKG-INFO +245 -0
  12. fleetdeck-0.3.0/README.md +214 -0
  13. fleetdeck-0.3.0/SECURITY.md +8 -0
  14. fleetdeck-0.3.0/config.sample.yaml +81 -0
  15. fleetdeck-0.3.0/docs/ROADMAP.md +27 -0
  16. fleetdeck-0.3.0/docs/TROUBLESHOOTING.md +96 -0
  17. fleetdeck-0.3.0/docs/images/cover-devto.png +0 -0
  18. fleetdeck-0.3.0/docs/images/dashboard.png +0 -0
  19. fleetdeck-0.3.0/docs/images/demo.gif +0 -0
  20. fleetdeck-0.3.0/docs/images/files.png +0 -0
  21. fleetdeck-0.3.0/docs/images/help.png +0 -0
  22. fleetdeck-0.3.0/docs/images/logs-panel.png +0 -0
  23. fleetdeck-0.3.0/docs/images/new-agent.png +0 -0
  24. fleetdeck-0.3.0/docs/images/palette.png +0 -0
  25. fleetdeck-0.3.0/docs/images/permission.png +0 -0
  26. fleetdeck-0.3.0/docs/images/social-preview.png +0 -0
  27. fleetdeck-0.3.0/docs/images/tasks.png +0 -0
  28. fleetdeck-0.3.0/docs/images/terminal.png +0 -0
  29. fleetdeck-0.3.0/docs/launch/BLOG_POST.md +103 -0
  30. fleetdeck-0.3.0/docs/launch/LAUNCH.md +218 -0
  31. fleetdeck-0.3.0/docs/launch/cover.html +31 -0
  32. fleetdeck-0.3.0/install.sh +49 -0
  33. fleetdeck-0.3.0/packaging/claude-command-center/README.md +13 -0
  34. fleetdeck-0.3.0/packaging/claude-command-center/pyproject.toml +25 -0
  35. fleetdeck-0.3.0/pyproject.toml +50 -0
  36. fleetdeck-0.3.0/scripts/make_media.py +242 -0
  37. fleetdeck-0.3.0/src/fleetdeck/__init__.py +3 -0
  38. fleetdeck-0.3.0/src/fleetdeck/__main__.py +232 -0
  39. fleetdeck-0.3.0/src/fleetdeck/accounts.py +115 -0
  40. fleetdeck-0.3.0/src/fleetdeck/adapters/__init__.py +0 -0
  41. fleetdeck-0.3.0/src/fleetdeck/adapters/base.py +71 -0
  42. fleetdeck-0.3.0/src/fleetdeck/adapters/claude_cli.py +187 -0
  43. fleetdeck-0.3.0/src/fleetdeck/adapters/codex_cli.py +362 -0
  44. fleetdeck-0.3.0/src/fleetdeck/adapters/demo.py +331 -0
  45. fleetdeck-0.3.0/src/fleetdeck/config.py +323 -0
  46. fleetdeck-0.3.0/src/fleetdeck/db.py +511 -0
  47. fleetdeck-0.3.0/src/fleetdeck/gitinfo.py +169 -0
  48. fleetdeck-0.3.0/src/fleetdeck/models.py +178 -0
  49. fleetdeck-0.3.0/src/fleetdeck/paths.py +64 -0
  50. fleetdeck-0.3.0/src/fleetdeck/proc.py +92 -0
  51. fleetdeck-0.3.0/src/fleetdeck/redact.py +51 -0
  52. fleetdeck-0.3.0/src/fleetdeck/services/__init__.py +0 -0
  53. fleetdeck-0.3.0/src/fleetdeck/services/dispatcher.py +382 -0
  54. fleetdeck-0.3.0/src/fleetdeck/services/fleet.py +65 -0
  55. fleetdeck-0.3.0/src/fleetdeck/services/monitor.py +253 -0
  56. fleetdeck-0.3.0/src/fleetdeck/services/notifier.py +71 -0
  57. fleetdeck-0.3.0/src/fleetdeck/status.py +97 -0
  58. fleetdeck-0.3.0/src/fleetdeck/terminal.py +235 -0
  59. fleetdeck-0.3.0/src/fleetdeck/termrender.py +129 -0
  60. fleetdeck-0.3.0/src/fleetdeck/ui/__init__.py +0 -0
  61. fleetdeck-0.3.0/src/fleetdeck/ui/app.py +1295 -0
  62. fleetdeck-0.3.0/src/fleetdeck/ui/app.tcss +263 -0
  63. fleetdeck-0.3.0/src/fleetdeck/ui/commands.py +63 -0
  64. fleetdeck-0.3.0/src/fleetdeck/ui/screens/__init__.py +0 -0
  65. fleetdeck-0.3.0/src/fleetdeck/ui/screens/modals.py +623 -0
  66. fleetdeck-0.3.0/src/fleetdeck/ui/style.py +150 -0
  67. fleetdeck-0.3.0/src/fleetdeck/ui/views.py +230 -0
  68. fleetdeck-0.3.0/src/fleetdeck/ui/widgets/__init__.py +0 -0
  69. fleetdeck-0.3.0/src/fleetdeck/ui/widgets/agent_table.py +185 -0
  70. fleetdeck-0.3.0/src/fleetdeck/ui/widgets/bottom.py +27 -0
  71. fleetdeck-0.3.0/src/fleetdeck/ui/widgets/details.py +295 -0
  72. fleetdeck-0.3.0/src/fleetdeck/ui/widgets/header.py +87 -0
  73. fleetdeck-0.3.0/src/fleetdeck/ui/widgets/sidebar.py +227 -0
  74. fleetdeck-0.3.0/src/fleetdeck/ui/widgets/splitter.py +66 -0
  75. fleetdeck-0.3.0/src/fleetdeck/ui/widgets/terminal.py +119 -0
  76. fleetdeck-0.3.0/tests/conftest.py +77 -0
  77. fleetdeck-0.3.0/tests/fake_claude.py +132 -0
  78. fleetdeck-0.3.0/tests/fake_codex.py +62 -0
  79. fleetdeck-0.3.0/tests/test_accounts.py +134 -0
  80. fleetdeck-0.3.0/tests/test_accounts_ui.py +108 -0
  81. fleetdeck-0.3.0/tests/test_codex.py +238 -0
  82. fleetdeck-0.3.0/tests/test_core.py +263 -0
  83. fleetdeck-0.3.0/tests/test_integration.py +602 -0
  84. fleetdeck-0.3.0/tests/test_layout.py +182 -0
  85. fleetdeck-0.3.0/tests/test_quit.py +177 -0
  86. fleetdeck-0.3.0/tests/test_terminal.py +207 -0
  87. fleetdeck-0.3.0/tests/test_termrender.py +54 -0
  88. fleetdeck-0.3.0/tests/test_ui.py +372 -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: "`fleetdeck 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? (fleetdeck 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 `fleetdeck --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,31 @@
1
+ name: Publish redirect package
2
+
3
+ # One-off: publishes claude-command-center (the old name) as a code-less package
4
+ # that depends on fleetdeck. Run manually after fleetdeck is on PyPI.
5
+ on:
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: astral-sh/setup-uv@v5
14
+ - run: uv build --directory packaging/claude-command-center --out-dir dist
15
+ - uses: actions/upload-artifact@v4
16
+ with:
17
+ name: dist
18
+ path: dist/
19
+
20
+ publish:
21
+ needs: build
22
+ runs-on: ubuntu-latest
23
+ environment: pypi
24
+ permissions:
25
+ id-token: write
26
+ steps:
27
+ - uses: actions/download-artifact@v4
28
+ with:
29
+ name: dist
30
+ path: dist/
31
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -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,11 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ .pytest_cache/
5
+ dist/
6
+ build/
7
+ *.egg-info/
8
+ *.db
9
+ *.db-wal
10
+ *.db-shm
11
+ .playwright-mcp/
@@ -0,0 +1,37 @@
1
+ # Changelog
2
+
3
+ ## 0.3.0 — 2026-12-01
4
+
5
+ - **Multiple accounts:** connect several Claude Code logins (separate `CLAUDE_CONFIG_DIR`s, including `claude setup-token` logins via a Keychain item) and ChatGPT via Codex CLI. `Ctrl+A` (or clicking the header chip) switches the active account, which is the default for new agents. Projects and individual launches can choose an account. The sidebar has an Accounts filter and the agent list an Account column. `fleetdeck accounts --discover [--save]` finds existing logins.
6
+ - **Codex (ChatGPT) agents:** launch (`codex exec --json`, detached, logged), follow up in the same thread (`exec resume`), attach (`codex resume`), stop and read logs. Real token counts come from Codex's own events. Only the read-only and workspace-write sandboxes are used; bypass flags are refused.
7
+ - **Renamed to FleetDeck.** It now covers more than Claude Code: the package is `fleetdeck` (formerly `claude-command-center`), the command is `fleetdeck`, and the repo is github.com/RatulSikder97/fleetdeck (old links redirect). `claude-center` still works as an alias. Settings and history are copied automatically from `~/.config/claude-center` to `~/.config/fleetdeck` (the old folder is kept), and `CLAUDE_CENTER_HOME` is still honoured.
8
+ - **Terminal tab** (`Ctrl+T`): a real interactive shell (pty + VT emulation) in the selected agent's directory, or the project's when no agent is selected. There's one shell per directory, kept while the dashboard runs. Keys (Ctrl+C, Tab, arrows…) go to the shell; `Ctrl+]` returns to the agent list; shells are closed on quit.
9
+ - **Resizable panels:** drag the dividers between Projects, Agents and Details, or use `[` `]` (Details) and `{` `}` (Projects). Widths are saved in config.yaml and restored on start. The agent list always keeps at least 50 columns. `\` zooms Details to full width, which is handy for the terminal and logs.
10
+ - **Arrow-key navigation:** `←`/`→` move between Projects, Agents and Details. Inside Details they switch tabs, and `←` on the first tab goes back. Text fields and the terminal keep their arrow keys.
11
+ - **Visual refresh:** titled panels (live agent count, focused panel highlighted), header status chips, a two-line details header (status, task, agent · project · branch), tab icons, sectioned overview with a "what does this agent need" call to action, and empty states with key badges.
12
+
13
+ ## 0.2.0 — 2026-11-30
14
+
15
+ - **Follow-ups** (`m`): send a new prompt to a finished agent without attaching. The live session is stopped, the dispatcher waits until Claude Code has released it, then it's resumed in place with `claude --bg --resume`. Follow-ups for a busy agent wait in the queue. If Claude Code forks a copy anyway, it's reported.
16
+ - **Task chains:** "Run after" on new tasks. A dependent starts only once its prerequisite completes, and is cancelled if the prerequisite fails or is cancelled.
17
+ - **Adaptive polling:** 2 s while you're watching and something is active; `idle_refresh_interval` (10 s) while the terminal is unfocused or nothing is running or queued; an immediate refresh on focus.
18
+ - Database schema v2, migrated automatically from v0.1.0.
19
+ - Session matching ignores runs that started before the current attempt was claimed, so a previous turn's "done" state can't complete a new task.
20
+ - **Responsive agent table:** shows as many columns as fit, in priority order, and gives spare width to names and tasks. The details panel scales with the window. No more columns cut off behind a horizontal scrollbar.
21
+
22
+ ## 0.1.1 — 2026-11-30
23
+
24
+ - **Fix:** quitting (`q`, `Ctrl+Q`, or clicking Quit) left the dashboard frozen instead of exiting. An internal attribute shadowed a Textual flag of the same name, which made the app drop its own exit message.
25
+ - Added regression tests that launch the real program in a terminal and require `q` / `Ctrl+Q` to exit cleanly and restore the terminal.
26
+
27
+ ## 0.1.0 — 2026-11-30
28
+
29
+ First public release.
30
+
31
+ - Five-panel dashboard: header, project sidebar, agent table, details, activity feed
32
+ - Live status from `claude agents --json --all`: running, waiting, permission, planning, completed, failed, idle
33
+ - Launch, attach, logs (VT-rendered), diff, stop, respawn and remove for background agents
34
+ - Per-project task queues with priorities, templates, pause/resume, retry and a concurrency cap
35
+ - Git worktree isolation, per-environment `CLAUDE_CONFIG_DIR` (office / personal)
36
+ - Secret redaction, Catppuccin themes, rebindable keys, command palette
37
+ - `--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/fleetdeck
9
+ cd fleetdeck
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/fleetdeck --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
+ `fleetdeck.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/fleetdeck/adapters/` | `Backend` protocol, real CLI adapter, demo backend |
33
+ | `src/fleetdeck/services/` | monitor (polling), dispatcher (queues), notifier |
34
+ | `src/fleetdeck/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/fleetdeck/__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,245 @@
1
+ Metadata-Version: 2.5
2
+ Name: fleetdeck
3
+ Version: 0.3.0
4
+ Summary: Terminal mission control for coding agents: run, watch and steer Claude Code and Codex agents across all your projects
5
+ Project-URL: Homepage, https://github.com/RatulSikder97/fleetdeck
6
+ Project-URL: Issues, https://github.com/RatulSikder97/fleetdeck/issues
7
+ Project-URL: Changelog, https://github.com/RatulSikder97/fleetdeck/blob/main/CHANGELOG.md
8
+ Author: Ratul Sikder
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Keywords: ai-agents,chatgpt,claude,claude-code,codex,dashboard,developer-tools,openai,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
+ # ◆ FleetDeck
35
+
36
+ **Mission control for coding agents: run, watch and steer Claude Code and Codex (ChatGPT) agents, across all your projects and accounts, from one terminal.**
37
+
38
+ [![CI](https://github.com/RatulSikder97/fleetdeck/actions/workflows/ci.yml/badge.svg)](https://github.com/RatulSikder97/fleetdeck/actions/workflows/ci.yml)
39
+ [![PyPI](https://img.shields.io/pypi/v/fleetdeck.svg)](https://pypi.org/project/fleetdeck/)
40
+ [![Python](https://img.shields.io/badge/python-3.12%2B-blue.svg)](https://www.python.org/)
41
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
42
+
43
+ <img src="docs/images/demo.gif" alt="fleetdeck demo: dashboard, live logs, task queue, new agent, command palette" width="100%">
44
+
45
+ `pipx install fleetdeck` · `fleetdeck --demo`
46
+
47
+ </div>
48
+
49
+ ---
50
+
51
+ You've got coding agents running in four repos, maybe on two Claude accounts
52
+ and ChatGPT. One is waiting on a permission prompt, one finished ten minutes
53
+ ago, one failed, and you don't know which, because each one lives in a
54
+ different terminal tab.
55
+
56
+ **fleetdeck** puts them all in one keyboard-driven dashboard:
57
+
58
+ - 🟠 **See who needs you.** Agents waiting on a permission prompt or your input sort to the top and trigger a notification.
59
+ - ⏎ **Jump in instantly.** `Enter` attaches to the agent's real Claude Code session; `←` brings you back.
60
+ - ❯ **Terminal for every agent.** `Ctrl+T` opens a real shell in the selected agent's directory (or worktree) right inside the dashboard; `Ctrl+]` jumps back.
61
+ - ↻ **Follow up without attaching.** Press `m` on a finished agent, type the next instruction, and it continues the same conversation in the background.
62
+ - 📋 **Queue work.** Per-project task queues with priorities, templates and a concurrency cap. The dispatcher starts agents as slots free up.
63
+ - ⛓ **Chain tasks.** "Run B after A" starts B only once A completes; if A fails, B is cancelled.
64
+ - 🌳 **No collisions.** A second agent in the same repo automatically gets its own git worktree.
65
+ - 👥 **Every account, one screen.** Connect several Claude Code logins and ChatGPT (via Codex CLI). Switch the active account with `Ctrl+A`, pick one per project or per agent, and filter by account in the sidebar.
66
+ - ◎ **Codex too.** Launch, follow up, attach, stop and read logs for Codex agents, with real token counts.
67
+ - 🔒 **Safe by design.** It never passes bypass flags or approves anything for you, and it redacts secrets from logs and diffs.
68
+
69
+ It uses the logins you already have (Claude subscription or API, ChatGPT)
70
+ through the public `claude` and `codex` CLIs. No extra API keys, no scraping of
71
+ private files.
72
+
73
+ <table>
74
+ <tr>
75
+ <td><img src="docs/images/dashboard.png" alt="Dashboard"><br><sub><b>Dashboard</b>: projects, agents, details</sub></td>
76
+ <td><img src="docs/images/logs-panel.png" alt="Live logs"><br><sub><b>Live logs</b>: preview with Space</sub></td>
77
+ </tr>
78
+ <tr>
79
+ <td><img src="docs/images/terminal.png" alt="Terminal"><br><sub><b>Terminal</b>: a shell in the agent's directory</sub></td>
80
+ <td><img src="docs/images/new-agent.png" alt="New agent"><br><sub><b>New agent</b>: templates, model, plan mode, worktree</sub></td>
81
+ </tr>
82
+ </table>
83
+
84
+ ## Install
85
+
86
+ ```bash
87
+ pipx install fleetdeck # or: uv tool install fleetdeck
88
+ fleetdeck doctor # checks Python, git, the claude CLI
89
+ fleetdeck --demo # try it with simulated agents
90
+ fleetdeck # the real thing
91
+ ```
92
+
93
+ Requires Python 3.12+, git, and [Claude Code](https://docs.claude.com/en/docs/claude-code)
94
+ 2.1+ (it uses `claude agents`, `--bg` and `attach`). Works on macOS and Linux.
95
+
96
+ <details>
97
+ <summary>From source</summary>
98
+
99
+ ```bash
100
+ git clone https://github.com/RatulSikder97/fleetdeck
101
+ cd fleetdeck && ./install.sh # uv tool → pipx → private venv
102
+ ```
103
+ </details>
104
+
105
+ Register projects with `p` in the app, or from the shell:
106
+
107
+ ```bash
108
+ fleetdeck add-project ~/code/api --group office --test-command "npm test"
109
+ fleetdeck add-project ~/code/side-project
110
+ ```
111
+
112
+ ## Keys
113
+
114
+ | Key | Action | Key | Action |
115
+ |---|---|---|---|
116
+ | `n` | New agent | `a` | Queue a task |
117
+ | `Enter` | Attach to agent | `Space` | Preview live logs |
118
+ | `l` | Full-screen logs | `d` | Git diff |
119
+ | `s` | Stop (asks first) | `r` | Restart (`claude respawn`) |
120
+ | `f` `/` | Filter | `t` | Pin project |
121
+ | `p` | Add project | `x` | Run project tests |
122
+ | `m` | Follow up on a finished agent | `z` | Pause / resume dispatch |
123
+ | `Ctrl+T` | Terminal in the agent's directory (`Ctrl+]` leaves) | `←` `→` | Move between Projects · Agents · Details |
124
+ | `[` `]` | Narrow / widen Details (or drag its edge) | `{` `}` | Narrow / widen Projects |
125
+ | `\` | Zoom Details to full width | | |
126
+ | `Ctrl+P` | Command palette | | |
127
+ | `1`–`5` | Dashboard · Projects · Sessions · Tasks · Settings | `?` | Help |
128
+
129
+ Every key can be rebound in `~/.config/fleetdeck/config.yaml`.
130
+ Double-click a row to attach.
131
+
132
+ ## Status colours (only what Claude Code reports)
133
+
134
+ | | Status | From `claude agents --json` |
135
+ |---|---|---|
136
+ | 🟢 | Running | `state: working` / `status: busy` |
137
+ | 🟡 | Waiting for input | `waitingFor: input needed / dialog open` |
138
+ | 🟠 | Permission required | `waitingFor: permission prompt / sandbox request / worker request` |
139
+ | 🟣 | Planning | working **and** launched by fleetdeck in plan mode |
140
+ | 🔵 | Completed | `state: done` |
141
+ | 🔴 | Failed | `state: failed` |
142
+ | ⚪ | Idle / Stopped | `status: idle` / `state: stopped` |
143
+
144
+ No made-up progress bars or token counters. If the CLI doesn't report a
145
+ value, the dashboard shows `—`.
146
+
147
+ ## How it works
148
+
149
+ ```
150
+ claude agents --json --all ──► Monitor ──► status + project + git branch ──► UI
151
+ │
152
+ task queue (SQLite) ──► Dispatcher ──► claude --bg --name … [--worktree] <prompt>
153
+ │
154
+ Enter ──► claude attach <id> (TUI suspends, you talk to Claude, ← returns)
155
+ ```
156
+
157
+ | Purpose | Command |
158
+ |---|---|
159
+ | Discover / monitor | `claude agents --json --all` (polled, single-flight) |
160
+ | Launch | `claude --bg --name … [--model] [--permission-mode] [--worktree] [--append-system-prompt] <prompt>`, run in the project's directory |
161
+ | Follow up | `claude stop <id>`, then wait for the process to exit, then `claude --bg --resume <session> <prompt>`. Resuming a live session would fork a copy, so it continues in place instead. |
162
+ | Codex | `codex exec --json -s read-only\|workspace-write <prompt>` (detached, events logged to a file), follow-up with `codex exec … resume <thread> <prompt>`, attach with `codex resume <thread>`. Bypass flags and `danger-full-access` are never used. |
163
+ | Logs | `claude logs <id>`, replayed through a VT emulator so it reads like the terminal |
164
+ | Control | `claude stop` / `respawn` / `rm <id>`, each with a confirmation dialog |
165
+
166
+ Quitting the dashboard leaves every agent running; they belong to Claude
167
+ Code, not to fleetdeck.
168
+
169
+ ## Configuration
170
+
171
+ `~/.config/fleetdeck/config.yaml` controls:
172
+
173
+ - theme
174
+ - refresh interval
175
+ - max concurrent agents (default 4)
176
+ - default model and permission mode
177
+ - worktree policy
178
+ - notifications (toast, bell, desktop)
179
+ - environments
180
+ - key bindings
181
+
182
+ See [`config.sample.yaml`](config.sample.yaml) for every key with defaults.
183
+
184
+ ```yaml
185
+ environments:
186
+ office:
187
+ env:
188
+ CLAUDE_CONFIG_DIR: ~/.claude-office # separate account for work projects
189
+ ```
190
+
191
+ ## Accounts
192
+
193
+ ```bash
194
+ fleetdeck accounts --discover # finds ~/.claude-* and ~/.codex-* logins
195
+ fleetdeck accounts --discover --save # adds the signed-in ones to config.yaml
196
+ ```
197
+
198
+ ```yaml
199
+ accounts:
200
+ - {name: personal, provider: claude} # your default login
201
+ - {name: work, provider: claude, home: ~/.claude-work} # CLAUDE_CONFIG_DIR
202
+ - name: b # setup-token login
203
+ provider: claude
204
+ home: ~/.claude-b
205
+ token_keychain: claude-account-b # macOS Keychain item; read at runtime only
206
+ - {name: chatgpt, provider: codex} # Codex CLI / ChatGPT
207
+ active_account: personal
208
+ ```
209
+
210
+ With no `accounts:` section, FleetDeck uses your default Claude login, plus
211
+ ChatGPT via Codex if `codex` is installed. Each project can set a default
212
+ account, and the new-agent form lets you pick per launch. Tokens are never
213
+ written to config, the database or logs.
214
+
215
+ Codex has no machine-readable session list, so FleetDeck shows the Codex runs
216
+ it started itself (they keep running if you quit). Non-interactive Codex can't
217
+ ask for approvals, so its sandbox bounds it: plan mode is read-only, everything
218
+ else is workspace-write.
219
+
220
+ ## FAQ
221
+
222
+ **Does it need an Anthropic API key?** No. It drives the `claude` CLI you
223
+ already use, so whatever login Claude Code has, it uses.
224
+
225
+ **Can it approve permission prompts for me?** No, by design. Press `Enter`
226
+ to attach and answer the prompt in Claude Code itself.
227
+
228
+ **Where's token usage or cost?** The CLI doesn't expose it in a structured
229
+ way, and fleetdeck won't guess.
230
+
231
+ **Ctrl+1…5 don't work.** Most terminals don't send those keys. Use `1`–`5`.
232
+
233
+ More in [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md).
234
+
235
+ ## Contributing
236
+
237
+ PRs welcome; see [CONTRIBUTING.md](CONTRIBUTING.md). The test suite (unit,
238
+ integration against a fake `claude` binary, and headless UI tests) runs in
239
+ about 35 seconds without Claude Code installed.
240
+
241
+ ## License
242
+
243
+ MIT © Ratul Sikder
244
+
245
+ <sub>FleetDeck is an independent community project and is not affiliated with or endorsed by Anthropic or OpenAI. "Claude" and "Claude Code" are trademarks of Anthropic, PBC; "ChatGPT" and "Codex" are trademarks of OpenAI.</sub>