ccmux 2.0.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.
- ccmux-2.0.0/LICENSE +21 -0
- ccmux-2.0.0/PKG-INFO +108 -0
- ccmux-2.0.0/README.md +79 -0
- ccmux-2.0.0/ccmux/__init__.py +3 -0
- ccmux-2.0.0/ccmux/__main__.py +6 -0
- ccmux-2.0.0/ccmux/cli.py +2244 -0
- ccmux-2.0.0/ccmux/config.py +99 -0
- ccmux-2.0.0/ccmux/state/__init__.py +41 -0
- ccmux-2.0.0/ccmux/state/instance.py +69 -0
- ccmux-2.0.0/ccmux/state/session.py +31 -0
- ccmux-2.0.0/ccmux/state/store.py +252 -0
- ccmux-2.0.0/ccmux/ui/__init__.py +19 -0
- ccmux-2.0.0/ccmux/ui/sidebar/__init__.py +15 -0
- ccmux-2.0.0/ccmux/ui/sidebar/__main__.py +38 -0
- ccmux-2.0.0/ccmux/ui/sidebar/process_id.py +28 -0
- ccmux-2.0.0/ccmux/ui/sidebar/sidebar.tcss +112 -0
- ccmux-2.0.0/ccmux/ui/sidebar/sidebar_app.py +220 -0
- ccmux-2.0.0/ccmux/ui/sidebar/snapshot.py +203 -0
- ccmux-2.0.0/ccmux/ui/sidebar/widgets/__init__.py +6 -0
- ccmux-2.0.0/ccmux/ui/sidebar/widgets/instance_row.py +162 -0
- ccmux-2.0.0/ccmux/ui/sidebar/widgets/non_interactive_static.py +11 -0
- ccmux-2.0.0/ccmux/ui/sidebar/widgets/repo_header.py +8 -0
- ccmux-2.0.0/ccmux/ui/sidebar/widgets/repo_instances_list.py +42 -0
- ccmux-2.0.0/ccmux/ui/tmux/__init__.py +9 -0
- ccmux-2.0.0/ccmux/ui/tmux/config.py +122 -0
- ccmux-2.0.0/ccmux/ui/tmux/tmux.conf +59 -0
- ccmux-2.0.0/ccmux.egg-info/PKG-INFO +108 -0
- ccmux-2.0.0/ccmux.egg-info/SOURCES.txt +35 -0
- ccmux-2.0.0/ccmux.egg-info/dependency_links.txt +1 -0
- ccmux-2.0.0/ccmux.egg-info/entry_points.txt +2 -0
- ccmux-2.0.0/ccmux.egg-info/requires.txt +10 -0
- ccmux-2.0.0/ccmux.egg-info/top_level.txt +1 -0
- ccmux-2.0.0/pyproject.toml +52 -0
- ccmux-2.0.0/setup.cfg +4 -0
- ccmux-2.0.0/tests/test_sidebar.py +617 -0
- ccmux-2.0.0/tests/test_state.py +509 -0
- ccmux-2.0.0/tests/test_tmux_formatting.py +318 -0
ccmux-2.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 TheHumbleTransistor
|
|
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.
|
ccmux-2.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ccmux
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Claude Code Multiplexer - Manage multiple Claude Code instances
|
|
5
|
+
Author: Ray Kampmeier
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/TheHumbleTransistor/ccmux
|
|
8
|
+
Project-URL: Repository, https://github.com/TheHumbleTransistor/ccmux
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: cyclopts>=2.0.0
|
|
22
|
+
Requires-Dist: rich>=13.0.0
|
|
23
|
+
Requires-Dist: textual>=1.0.0
|
|
24
|
+
Requires-Dist: tomli>=1.0.0; python_version < "3.11"
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
27
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
# ccmux
|
|
31
|
+
|
|
32
|
+
<!-- TODO: add demo GIF -->
|
|
33
|
+
<!-- <img src="docs/demo.gif" alt="ccmux demo" width="800"> -->
|
|
34
|
+
|
|
35
|
+
A streamlined terminal-UI for juggling concurrent Claude Code sessions.
|
|
36
|
+
|
|
37
|
+
## Features
|
|
38
|
+
|
|
39
|
+
- **Visual sidebar** — see all sessions at a glance; red highlights tell you instantly when Claude needs your attention
|
|
40
|
+
- **CLI session management** — create, list, activate, remove sessions from the terminal
|
|
41
|
+
- **Git worktree isolation** — spin up duplicate sessions on isolated branches; use `ccmux.toml` files to add additional steps when spinning up worktrees, such as setting up untracked build dependencies
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
git clone git@github.com:TheHumbleTransistor/ccmux.git
|
|
47
|
+
pip install ./ccmux
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Quick Start
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
ccmux # auto-creates a session for the current directory or attaches to an existing one
|
|
54
|
+
ccmux new # create a new session from the current directory's repo
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Commands
|
|
58
|
+
|
|
59
|
+
| Command | Description |
|
|
60
|
+
|---------|-------------|
|
|
61
|
+
| *(default)* | Auto-attach to existing session or create one |
|
|
62
|
+
| `new [NAME]` | Create a new session (add `-w` for worktree) |
|
|
63
|
+
| `list` | List all sessions with status and branch info |
|
|
64
|
+
| `attach` | Attach to the ccmux tmux session |
|
|
65
|
+
| `activate [NAME]` | Reopen Claude Code in a session's tmux window |
|
|
66
|
+
| `deactivate [NAME]` | Close tmux window (keeps session) |
|
|
67
|
+
| `remove [NAME]` | Permanently delete a session |
|
|
68
|
+
| `rename OLD NEW` | Rename a session |
|
|
69
|
+
| `kill` | Kill entire ccmux session |
|
|
70
|
+
| `which` | Print current session name (useful for scripting) |
|
|
71
|
+
| `detach` | Detach from tmux |
|
|
72
|
+
| `export-tmux-config` | Export tmux config to a file |
|
|
73
|
+
|
|
74
|
+
## Worktree Configuration
|
|
75
|
+
|
|
76
|
+
Drop a `ccmux.toml` in your repo root to run commands after worktree creation:
|
|
77
|
+
|
|
78
|
+
```toml
|
|
79
|
+
[worktree]
|
|
80
|
+
post_create = [
|
|
81
|
+
"ln -s $CCMUX_REPO_ROOT/node_modules $CCMUX_INSTANCE_PATH/node_modules",
|
|
82
|
+
"cp $CCMUX_REPO_ROOT/.env $CCMUX_INSTANCE_PATH/.env",
|
|
83
|
+
]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Commands run inside the new worktree with these environment variables:
|
|
87
|
+
|
|
88
|
+
| Variable | Description |
|
|
89
|
+
|----------|-------------|
|
|
90
|
+
| `CCMUX_REPO_ROOT` | Absolute path to the main repository |
|
|
91
|
+
| `CCMUX_INSTANCE_PATH` | Absolute path to the new worktree |
|
|
92
|
+
| `CCMUX_INSTANCE_NAME` | Name of the new instance |
|
|
93
|
+
| `CCMUX_SESSION` | ccmux tmux session name |
|
|
94
|
+
|
|
95
|
+
## Contributing
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
git clone git@github.com:TheHumbleTransistor/ccmux.git
|
|
99
|
+
cd ccmux
|
|
100
|
+
pip install -e ".[dev]"
|
|
101
|
+
pytest tests/ -v
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
PRs welcome — open an issue first for large changes.
|
|
105
|
+
|
|
106
|
+
## License
|
|
107
|
+
|
|
108
|
+
MIT — see [LICENSE](LICENSE)
|
ccmux-2.0.0/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# ccmux
|
|
2
|
+
|
|
3
|
+
<!-- TODO: add demo GIF -->
|
|
4
|
+
<!-- <img src="docs/demo.gif" alt="ccmux demo" width="800"> -->
|
|
5
|
+
|
|
6
|
+
A streamlined terminal-UI for juggling concurrent Claude Code sessions.
|
|
7
|
+
|
|
8
|
+
## Features
|
|
9
|
+
|
|
10
|
+
- **Visual sidebar** — see all sessions at a glance; red highlights tell you instantly when Claude needs your attention
|
|
11
|
+
- **CLI session management** — create, list, activate, remove sessions from the terminal
|
|
12
|
+
- **Git worktree isolation** — spin up duplicate sessions on isolated branches; use `ccmux.toml` files to add additional steps when spinning up worktrees, such as setting up untracked build dependencies
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
git clone git@github.com:TheHumbleTransistor/ccmux.git
|
|
18
|
+
pip install ./ccmux
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Quick Start
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ccmux # auto-creates a session for the current directory or attaches to an existing one
|
|
25
|
+
ccmux new # create a new session from the current directory's repo
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
29
|
+
|
|
30
|
+
| Command | Description |
|
|
31
|
+
|---------|-------------|
|
|
32
|
+
| *(default)* | Auto-attach to existing session or create one |
|
|
33
|
+
| `new [NAME]` | Create a new session (add `-w` for worktree) |
|
|
34
|
+
| `list` | List all sessions with status and branch info |
|
|
35
|
+
| `attach` | Attach to the ccmux tmux session |
|
|
36
|
+
| `activate [NAME]` | Reopen Claude Code in a session's tmux window |
|
|
37
|
+
| `deactivate [NAME]` | Close tmux window (keeps session) |
|
|
38
|
+
| `remove [NAME]` | Permanently delete a session |
|
|
39
|
+
| `rename OLD NEW` | Rename a session |
|
|
40
|
+
| `kill` | Kill entire ccmux session |
|
|
41
|
+
| `which` | Print current session name (useful for scripting) |
|
|
42
|
+
| `detach` | Detach from tmux |
|
|
43
|
+
| `export-tmux-config` | Export tmux config to a file |
|
|
44
|
+
|
|
45
|
+
## Worktree Configuration
|
|
46
|
+
|
|
47
|
+
Drop a `ccmux.toml` in your repo root to run commands after worktree creation:
|
|
48
|
+
|
|
49
|
+
```toml
|
|
50
|
+
[worktree]
|
|
51
|
+
post_create = [
|
|
52
|
+
"ln -s $CCMUX_REPO_ROOT/node_modules $CCMUX_INSTANCE_PATH/node_modules",
|
|
53
|
+
"cp $CCMUX_REPO_ROOT/.env $CCMUX_INSTANCE_PATH/.env",
|
|
54
|
+
]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Commands run inside the new worktree with these environment variables:
|
|
58
|
+
|
|
59
|
+
| Variable | Description |
|
|
60
|
+
|----------|-------------|
|
|
61
|
+
| `CCMUX_REPO_ROOT` | Absolute path to the main repository |
|
|
62
|
+
| `CCMUX_INSTANCE_PATH` | Absolute path to the new worktree |
|
|
63
|
+
| `CCMUX_INSTANCE_NAME` | Name of the new instance |
|
|
64
|
+
| `CCMUX_SESSION` | ccmux tmux session name |
|
|
65
|
+
|
|
66
|
+
## Contributing
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
git clone git@github.com:TheHumbleTransistor/ccmux.git
|
|
70
|
+
cd ccmux
|
|
71
|
+
pip install -e ".[dev]"
|
|
72
|
+
pytest tests/ -v
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
PRs welcome — open an issue first for large changes.
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
MIT — see [LICENSE](LICENSE)
|