hcom 0.3.0__py3-none-any.whl → 0.4.0__py3-none-any.whl

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.

Potentially problematic release.


This version of hcom might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hcom
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: CLI tool for launching multiple Claude Code terminals with interactive subagents, headless persistence, and real-time communication via hooks
5
5
  Author: aannoo
6
6
  License-Expression: MIT
@@ -41,7 +41,7 @@ CLI tool for launching multiple Claude Code terminals with interactive [subagent
41
41
  uvx hcom open 2
42
42
  ```
43
43
 
44
- **Install** (optional)
44
+ **Install**
45
45
  ```bash
46
46
  pip install hcom
47
47
  hcom open 2
@@ -51,39 +51,40 @@ hcom open 2
51
51
  |---------|-------------|
52
52
  | `hcom open [n]` | Launch `n` instances or named agents |
53
53
  | `hcom watch` | View live dashboard and messaging |
54
- | `hcom clear` | Clear and start new conversation |
55
- | `hcom cleanup` | Safely remove hcom hooks, preserving your project settings |
54
+ | `hcom stop` | Disable hcom chat for instance |
55
+ | `hcom start` | Enable hcom chat for instance |
56
56
 
57
57
 
58
58
  ## 🦆 What It Does
59
59
 
60
- `hcom open` adds hooks to the `.claude/settings.local.json` file in the current folder and launches terminals with claude code that remain active, waiting to respond to messages in the shared chat. Normal Claude Code opened with `claude` remains unaffected by hcom.
60
+ `hcom open` adds hooks to the `.claude/settings.local.json` file in the current folder and launches terminals with claude code that remain active, waiting to respond to messages in the shared chat. Normal Claude Code opened with `claude` remains unaffected by hcom, but can opt-in via `hcom start` and opt-out with `hcom stop`.
61
61
 
62
- ### Subagents in their own terminal
62
+
63
+ ### Interactive subagents in their own terminal
63
64
  ```bash
64
65
  # Launch subagents from your .claude/agents
65
- hcom open planner code-writer reviewer
66
+ hcom open -a planner -a code-writer -a reviewer
66
67
  ```
67
68
 
68
69
  ### Persistent headless instances
69
70
  ```bash
70
71
  # Launch one headless instance (default 30min timeout)
71
72
  hcom open -p
73
+ hcom stop # Stop it earlier than timeout
72
74
  ```
73
75
 
74
76
  ### Groups and direct messages
75
77
  ```bash
76
- hcom open --prefix cool # Creates cool-hovoa7
77
- hcom open --prefix cool # Creates cool-homab8
78
+ hcom open 2 -t cool # Creates cool-hovoa7 & cool-homab8
78
79
  hcom send '@cool hi, you are cool'
79
80
  hcom send '@homab8 hi, you are cooler'
80
81
  ```
81
82
 
82
- ### Persistent thinking mode
83
+ ### Toggle HCOM in Claude Code
83
84
  ```bash
84
- # Thinking mode maintains for entire session
85
- HCOM_INITIAL_PROMPT="ultrathink and do x" hcom open
86
- # Every new message reply uses ultrathink
85
+ claude # Start normal Claude Code
86
+ 'run hcom start' # Start HCOM for this instance to receive messages
87
+ 'run hcom stop' # Stop HCOM for this instance, continue as normal claude code
87
88
  ```
88
89
 
89
90
  ---
@@ -107,26 +108,48 @@ HCOM_INITIAL_PROMPT="ultrathink and do x" hcom open
107
108
  <details>
108
109
  <summary><strong>🥨 All Commands</strong></summary>
109
110
 
110
-
111
- | Command | Description |
112
- |---------|-------------|
113
- | `hcom open [n]` | Launch n Claude instances (or named agents) |
114
- | `hcom open -p` | Launch headless process |
115
- | `hcom open --prefix <p> [n]` | Launch with `<p>` prefix (e.g., api-hova7) |
116
- | `hcom open --claude-args "..."` | Pass flags to Claude Code |
117
- | `hcom watch` | Conversation/status dashboard |
118
- | `hcom clear` | Clear and archive conversation |
119
- | `hcom cleanup` | Safely Remove HCOM hooks from current directory while preserving your settings (`--all` for all directories) |
120
- | `hcom kill [name]` | Kill specific instance (--all for all running instances) |
121
-
122
- ### Automation Commands
123
- | Command | Description |
124
- |---------|-------------|
125
- | `hcom send 'message'` | Send message to all instances |
126
- | `hcom send '@alias msg'` | Send to specific instances alias or prefix |
127
- | `hcom watch --logs` | View message log history (non-interactive) |
128
- | `hcom watch --status` | Show instance status as JSON (non-interactive) |
129
- | `hcom watch --wait [timeout]` | Wait and notify for new messages |
111
+ ```bash
112
+ Usage:
113
+ hcom open [count] [-a agent]... [-t prefix] [-p] [-- claude-args]
114
+ hcom watch [--logs|--status|--wait [SEC]]
115
+ hcom stop [target] [--force]
116
+ hcom start [target]
117
+ hcom send "msg"
118
+
119
+ Commands:
120
+ open Launch Claude instances (default count: 1)
121
+ watch Monitor conversation dashboard
122
+ stop Stop instances, clear conversation, or remove hooks
123
+ start Start stopped instances
124
+ send Send message to instances
125
+
126
+ Open options:
127
+ [count] Number of instances per agent (default 1)
128
+ -a, --agent AGENT Agent to launch (repeatable)
129
+ -t, --prefix PREFIX Team prefix for names
130
+ -p, --background Launch in background
131
+
132
+ Stop targets:
133
+ (no arg) Stop HCOM for current instance (when inside)
134
+ <alias> Stop HCOM for specific instance
135
+ all Stop all instances + clear & archive conversation
136
+ hooking Remove hooks from current directory
137
+ hooking --all Remove hooks from all tracked directories
138
+ everything Stop all + clear conversation + remove all hooks
139
+
140
+ Start targets:
141
+ (no arg) Start HCOM for current instance (when inside)
142
+ <alias> Start HCOM for specific instance
143
+ hooking Install hooks in current directory
144
+
145
+ Watch options:
146
+ --logs Show message history
147
+ --status Show instance status JSON
148
+ --wait [SEC] Wait for new messages (default 60s)
149
+
150
+ Stop flags:
151
+ --force Force stop (deny Bash tool use)
152
+ ```
130
153
 
131
154
  </details>
132
155
 
@@ -136,36 +159,28 @@ HCOM_INITIAL_PROMPT="ultrathink and do x" hcom open
136
159
  <summary><strong>🗿 Examples</strong></summary>
137
160
 
138
161
  ```bash
139
- # Instances can be privately @mentioned by alias or prefix
140
- hcom open --prefix cool # Creates cool-hovoa7
141
- hcom open --prefix cool # Creates cool-hovob8
142
- hcom open --prefix notcool # creates notcool-hovoc9
143
-
144
- # Send a targeted message in dashboard
145
- @notcool i think you smell good
146
- @cool that other guy is smelly
147
- @hovoa7 im lying about the smelly thing
148
-
149
- # Launch 3 headless instances that die after 60 seconds of inactivity
162
+ # Launch 3 headless instances that time out after 60 seconds of inactivity
150
163
  HCOM_WAIT_TIMEOUT="60" hcom open 3 -p
151
- # Manually kill all instances
152
- hcom kill --all
164
+ # Stop all instances
165
+ hcom stop all
153
166
 
154
167
  # Launch multiple of the same subagent
155
- hcom open reviewer reviewer reviewer
168
+ hcom open 3 -a reviewer
169
+
170
+ # Launch mixed agents with team prefix
171
+ hcom open -t api -a backend -a frontend
156
172
 
157
173
  # Launch agent with specific prompt
158
- HCOM_INITIAL_PROMPT='write tests' hcom open test-writer
174
+ HCOM_INITIAL_PROMPT='write tests' hcom open -a test-writer
159
175
 
160
176
  # Resume instance (hcom chat will continue)
161
- hcom open --claude-args "--resume session_id"
177
+ hcom open -- --resume session_id
162
178
 
163
179
  # Text appended to all messages recieved by instance
164
180
  HCOM_INSTANCE_HINTS="remember where you came from" hcom open
165
181
 
166
182
  # Pass multiple Claude flags
167
- hcom open orchestrator --claude-args "--model sonnet --resume session_id"
168
- ```
183
+ hcom open -a orchestrator -- --model sonnet --resume session_id
169
184
 
170
185
  </details>
171
186
 
@@ -237,8 +252,8 @@ When running `hcom watch`, each instance shows its current state:
237
252
  - ▷ **delivered** (cyan) - Just received a message
238
253
  - ◉ **waiting** (blue) - Waiting for messages
239
254
  - ■ **blocked** (yellow) - Permission request pending
240
- - ○ **inactive** (red) - Timed out/disconnected
241
- - ○ **unknown** (gray) - No status data
255
+ - ○ **inactive** (red) - Closed/timed out/ended
256
+ - ○ **unknown** (gray) - No status data or stale
242
257
  - **(bg)** suffix - Instance running in background headless mode
243
258
 
244
259
  </details>
@@ -250,7 +265,7 @@ When running `hcom watch`, each instance shows its current state:
250
265
 
251
266
  hcom adds hooks to your project directory's `.claude/settings.local.json`:
252
267
 
253
- 1. **Sending**: Claude agents use `$HCOM send "message"` internally (you use `hcom send` from terminal or dashboard)
268
+ 1. **Sending**: Claude uses `hcom send "message"` to communicate
254
269
  2. **Receiving**: Other Claudes get notified via Stop hook or immediate delivery after sending
255
270
  3. **Waiting**: Stop hook keeps Claude in a waiting state for new messages
256
271
 
@@ -261,7 +276,7 @@ hcom adds hooks to your project directory's `.claude/settings.local.json`:
261
276
 
262
277
  ### Architecture
263
278
  - **Single conversation** - All instances share one global conversation
264
- - **Opt-in participation** - Only Claude Code instances launched with `hcom open` join the chat
279
+ - **Opt-in participation** - Only Claude code instances launched with `hcom open` join automatically, normal instances can use `hcom start`/`stop`
265
280
  - **@-mention filtering** - Target messages to specific instances or teams
266
281
 
267
282
  ### File Structure
@@ -407,26 +422,31 @@ HCOM_TERMINAL_COMMAND="tmux split-window -h {script}" hcom open 3
407
422
 
408
423
  ### Archive Conversation / Start New
409
424
  ```bash
410
- hcom clear
425
+ hcom stop all
411
426
  ```
412
427
 
413
- ### Kill Running Instances
428
+ ### Stop Running Instances
414
429
  ```bash
415
- # Kill specific instance
416
- hcom kill hovoa7
430
+ # Stop specific instance
431
+ hcom stop hovoa7
417
432
 
418
- # Kill all instances
419
- hcom kill --all
433
+ # Stop all and archive
434
+ hcom stop all
420
435
  ```
421
436
 
422
- ### Remove HCOM hooks from current directory
437
+ ### Start Stopped Instances
423
438
  ```bash
424
- hcom cleanup
439
+ # Start specific instance
440
+ hcom start hovoa7
425
441
  ```
426
442
 
427
- ### Remove HCOM hooks from all directories
443
+ ### Remove HCOM hooks
428
444
  ```bash
429
- hcom cleanup --all
445
+ # Current directory
446
+ hcom stop hooking
447
+
448
+ # All directories
449
+ hcom stop hooking --all
430
450
  ```
431
451
 
432
452
  ### Remove hcom Completely
@@ -0,0 +1,7 @@
1
+ hcom/__init__.py,sha256=fRfNVuDui5tvzbAHMkivkebtGYsOoxtHFP7IoeXKf-I,96
2
+ hcom/__main__.py,sha256=3IdNrNypn0Xuuqzs2QURcl2qiI6sRXqR6Bh9C5Jtag4,142409
3
+ hcom-0.4.0.dist-info/METADATA,sha256=Ibwp8oDPN91qCgKWFLFJpsQjIkeYzZ92xwk1KuQkdHk,16244
4
+ hcom-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ hcom-0.4.0.dist-info/entry_points.txt,sha256=cz9K9PsgYmORUxNKxVRrpxLS3cxRJcDZkE-PpfvOhI8,44
6
+ hcom-0.4.0.dist-info/top_level.txt,sha256=8AS1nVUWA26vxjDQ5viRxgJnwSvUWk1W6GP4g6ldZ-0,5
7
+ hcom-0.4.0.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- hcom/__init__.py,sha256=Z-5YQGxdxqql7HKYC3ph20mKUiIhuMXPCMZWk7_Oc-A,96
2
- hcom/__main__.py,sha256=Lmd8k2TZahDpgHaLLIPEYTmeECx6J_C4le1-iiIEUA8,121919
3
- hcom-0.3.0.dist-info/METADATA,sha256=drYuK3PxAH01dYsRxv6FEVZEge23HqM3PA9-1Sj5t-M,15873
4
- hcom-0.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
- hcom-0.3.0.dist-info/entry_points.txt,sha256=cz9K9PsgYmORUxNKxVRrpxLS3cxRJcDZkE-PpfvOhI8,44
6
- hcom-0.3.0.dist-info/top_level.txt,sha256=8AS1nVUWA26vxjDQ5viRxgJnwSvUWk1W6GP4g6ldZ-0,5
7
- hcom-0.3.0.dist-info/RECORD,,
File without changes