hcom 0.1.0__tar.gz → 0.1.1__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.

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.1.0
3
+ Version: 0.1.1
4
4
  Summary: Lightweight CLI tool for real-time messaging between Claude Code instances/subagents using hooks
5
5
  Author-email: aannoo <your@email.com>
6
6
  License: MIT
@@ -28,7 +28,7 @@ Description-Content-Type: text/markdown
28
28
 
29
29
  # Claude Code Hook Comms
30
30
 
31
- Lightweight CLI tool for real-time messaging between Claude Code instances/subagents using [hooks](https://docs.anthropic.com/en/docs/claude-code/hooks).
31
+ Lightweight CLI tool for launching and real-time communication between claude code subagents/instances using [hooks](https://docs.anthropic.com/en/docs/claude-code/hooks).
32
32
 
33
33
  ## 🦆 What It Does
34
34
 
@@ -38,7 +38,7 @@ Creates a group chat where you and multiple interactive Claude Code subagents ca
38
38
 
39
39
  ## 🦷 Key Features
40
40
 
41
- - **New Window** - Claude subagents open in new terminals
41
+ - **New Terminal Window** - Launch claude code subagents in new terminals
42
42
  - **Multi-Agent Communication** - Claude instances talk to each other across projects
43
43
  - **@Mention Targeting** - Send messages to specific subagents or teams
44
44
  - **Live Dashboard** - Real-time monitoring of all instances
@@ -46,35 +46,37 @@ Creates a group chat where you and multiple interactive Claude Code subagents ca
46
46
 
47
47
  ## 🎪 Quick Start
48
48
 
49
- ### Download
49
+ ### Use Without Installing
50
50
  ```bash
51
- curl -sL https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/hcom.py | sudo tee /usr/local/bin/hcom > /dev/null && sudo chmod +x /usr/local/bin/hcom
51
+ uvx hcom open 2
52
52
  ```
53
53
 
54
- <details>
55
- <summary><strong>🦑 Windows</strong></summary>
56
-
57
- ```powershell
58
- # Download Python file
59
- Invoke-WebRequest -Uri "https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/hcom.py" -OutFile "hcom.py"
60
-
61
- # Run python file directly
62
- python path/to/hcom.py open 2
63
- ```
64
- </details>
54
+ *[ Installation Options](#-installation-options)*
65
55
 
66
56
  ### Usage
67
57
  ```bash
68
- # 1. Launch 3 Claude instances connected to group chat
69
- hcom open 3
58
+ # Launch 3 default Claude instances connected to group chat
59
+ uvx hcom open 3
70
60
 
71
- # 2. View/send messages in dashboard
72
- hcom watch
61
+ # Launch researcher and code-writer from your .claude/agents
62
+ uvx hcom open researcher code-writer
63
+
64
+ # View/send messages in dashboard
65
+ uvx hcom watch
66
+
67
+ # Clear messages
68
+ uvx hcom clear
73
69
  ```
74
70
 
71
+ ## 🦐 Requirements
72
+
73
+ - Python 3.6+
74
+ - [Claude Code](https://claude.ai/code)
75
+
75
76
 
77
+ ### More Launch Examples
76
78
 
77
- ### Launch Claude Code Agents
79
+ #### Launch Claude Code Agents
78
80
  ```bash
79
81
  # Launch researcher and code-writer from your .claude/agents
80
82
  hcom open researcher code-writer
@@ -83,7 +85,7 @@ hcom open researcher code-writer
83
85
  hcom open backend-coder frontend-coder orchestrator tester
84
86
  ```
85
87
 
86
- ### Launch Headless Mode
88
+ #### Launch Headless Mode
87
89
  ```bash
88
90
  # Launch researcher and code-writer from your .claude/agents and work in background
89
91
  hcom open researcher code-writer --claude-args "-p"
@@ -92,7 +94,7 @@ hcom open researcher code-writer --claude-args "-p"
92
94
  hcom open --claude-args "-p 'review git code changes when you get notified'"
93
95
  ```
94
96
 
95
- ### Launch with Options
97
+ #### Launch with Options
96
98
  ```bash
97
99
  # Launch researcher and code-writer from your .claude/agents and work in background
98
100
  hcom open researcher code-writer --prefix 'greenteam'
@@ -108,6 +110,31 @@ hcom open 2 backend-coder frontend-coder
108
110
  - Python 3.6+
109
111
  - [Claude Code](https://claude.ai/code)
110
112
 
113
+ ## 🦒 Installation Options
114
+
115
+ **Option 1: Use without installing (uvx) - recommended**
116
+ ```bash
117
+ uvx hcom open 3 # Runs latest version, no installation needed
118
+ ```
119
+
120
+ **Option 2: Install with uv**
121
+ ```bash
122
+ uv tool install hcom
123
+ hcom open 3
124
+ ```
125
+
126
+ **Option 3: Install with pip**
127
+ ```bash
128
+ pip install hcom
129
+ hcom open 3
130
+ ```
131
+
132
+ **Option 4: Download script directly**
133
+ ```bash
134
+ curl -sL https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/hcom.py > hcom
135
+ chmod +x hcom
136
+ ./hcom open 3
137
+ ```
111
138
 
112
139
  ## 🥨 Commands
113
140
 
@@ -227,22 +254,9 @@ your-project/
227
254
 
228
255
 
229
256
  <details>
230
- <summary><strong>🧈 Launching Claude Code</strong></summary>
231
-
232
- ### Launching Claude Code
233
-
234
- Use `hcom open` to automatically launch Claude instances with proper setup:
235
-
236
- ```bash
237
- # Launch 3 generic instances
238
- hcom open 3
257
+ <summary><strong>🥔 Terminal Customization</strong></summary>
239
258
 
240
- # Launch with custom terminal mode
241
- hcom open 2 # Uses terminal_mode from config
242
-
243
- # Launch named agents
244
- hcom open writer researcher
245
- ```
259
+ ### Terminal Mode
246
260
 
247
261
  Configure terminal behavior in `~/.hcom/config.json`:
248
262
  - `"terminal_mode": "new_window"` - Opens new terminal windows (default)
@@ -253,15 +267,10 @@ Configure terminal behavior in `~/.hcom/config.json`:
253
267
  ```bash
254
268
  # For single instance work
255
269
  HCOM_TERMINAL_MODE=same_terminal hcom open
256
- # This runs Claude directly in your current terminal
270
+ # This runs Claude code directly in your current terminal
257
271
  ```
258
272
 
259
- </details>
260
-
261
- <details>
262
- <summary><strong>🥔 Integrations</strong></summary>
263
-
264
- ### Custom Terminal Integration
273
+ ### Custom Terminal Examples
265
274
 
266
275
  Configure `terminal_command` in `~/.hcom/config.json` to use your preferred terminal:
267
276
 
@@ -279,13 +288,6 @@ Configure `terminal_command` in `~/.hcom/config.json` to use your preferred term
279
288
  }
280
289
  ```
281
290
 
282
- ### Windows Terminal
283
- ```json
284
- {
285
- "terminal_command": "wt new-tab cmd /k \"{env} & {cmd}\""
286
- }
287
- ```
288
-
289
291
  ### Kitty
290
292
  ```json
291
293
  {
@@ -1,6 +1,6 @@
1
1
  # Claude Code Hook Comms
2
2
 
3
- Lightweight CLI tool for real-time messaging between Claude Code instances/subagents using [hooks](https://docs.anthropic.com/en/docs/claude-code/hooks).
3
+ Lightweight CLI tool for launching and real-time communication between claude code subagents/instances using [hooks](https://docs.anthropic.com/en/docs/claude-code/hooks).
4
4
 
5
5
  ## 🦆 What It Does
6
6
 
@@ -10,7 +10,7 @@ Creates a group chat where you and multiple interactive Claude Code subagents ca
10
10
 
11
11
  ## 🦷 Key Features
12
12
 
13
- - **New Window** - Claude subagents open in new terminals
13
+ - **New Terminal Window** - Launch claude code subagents in new terminals
14
14
  - **Multi-Agent Communication** - Claude instances talk to each other across projects
15
15
  - **@Mention Targeting** - Send messages to specific subagents or teams
16
16
  - **Live Dashboard** - Real-time monitoring of all instances
@@ -18,35 +18,37 @@ Creates a group chat where you and multiple interactive Claude Code subagents ca
18
18
 
19
19
  ## 🎪 Quick Start
20
20
 
21
- ### Download
21
+ ### Use Without Installing
22
22
  ```bash
23
- curl -sL https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/hcom.py | sudo tee /usr/local/bin/hcom > /dev/null && sudo chmod +x /usr/local/bin/hcom
23
+ uvx hcom open 2
24
24
  ```
25
25
 
26
- <details>
27
- <summary><strong>🦑 Windows</strong></summary>
28
-
29
- ```powershell
30
- # Download Python file
31
- Invoke-WebRequest -Uri "https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/hcom.py" -OutFile "hcom.py"
32
-
33
- # Run python file directly
34
- python path/to/hcom.py open 2
35
- ```
36
- </details>
26
+ *[ Installation Options](#-installation-options)*
37
27
 
38
28
  ### Usage
39
29
  ```bash
40
- # 1. Launch 3 Claude instances connected to group chat
41
- hcom open 3
30
+ # Launch 3 default Claude instances connected to group chat
31
+ uvx hcom open 3
42
32
 
43
- # 2. View/send messages in dashboard
44
- hcom watch
33
+ # Launch researcher and code-writer from your .claude/agents
34
+ uvx hcom open researcher code-writer
35
+
36
+ # View/send messages in dashboard
37
+ uvx hcom watch
38
+
39
+ # Clear messages
40
+ uvx hcom clear
45
41
  ```
46
42
 
43
+ ## 🦐 Requirements
44
+
45
+ - Python 3.6+
46
+ - [Claude Code](https://claude.ai/code)
47
+
47
48
 
49
+ ### More Launch Examples
48
50
 
49
- ### Launch Claude Code Agents
51
+ #### Launch Claude Code Agents
50
52
  ```bash
51
53
  # Launch researcher and code-writer from your .claude/agents
52
54
  hcom open researcher code-writer
@@ -55,7 +57,7 @@ hcom open researcher code-writer
55
57
  hcom open backend-coder frontend-coder orchestrator tester
56
58
  ```
57
59
 
58
- ### Launch Headless Mode
60
+ #### Launch Headless Mode
59
61
  ```bash
60
62
  # Launch researcher and code-writer from your .claude/agents and work in background
61
63
  hcom open researcher code-writer --claude-args "-p"
@@ -64,7 +66,7 @@ hcom open researcher code-writer --claude-args "-p"
64
66
  hcom open --claude-args "-p 'review git code changes when you get notified'"
65
67
  ```
66
68
 
67
- ### Launch with Options
69
+ #### Launch with Options
68
70
  ```bash
69
71
  # Launch researcher and code-writer from your .claude/agents and work in background
70
72
  hcom open researcher code-writer --prefix 'greenteam'
@@ -80,6 +82,31 @@ hcom open 2 backend-coder frontend-coder
80
82
  - Python 3.6+
81
83
  - [Claude Code](https://claude.ai/code)
82
84
 
85
+ ## 🦒 Installation Options
86
+
87
+ **Option 1: Use without installing (uvx) - recommended**
88
+ ```bash
89
+ uvx hcom open 3 # Runs latest version, no installation needed
90
+ ```
91
+
92
+ **Option 2: Install with uv**
93
+ ```bash
94
+ uv tool install hcom
95
+ hcom open 3
96
+ ```
97
+
98
+ **Option 3: Install with pip**
99
+ ```bash
100
+ pip install hcom
101
+ hcom open 3
102
+ ```
103
+
104
+ **Option 4: Download script directly**
105
+ ```bash
106
+ curl -sL https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/hcom.py > hcom
107
+ chmod +x hcom
108
+ ./hcom open 3
109
+ ```
83
110
 
84
111
  ## 🥨 Commands
85
112
 
@@ -199,22 +226,9 @@ your-project/
199
226
 
200
227
 
201
228
  <details>
202
- <summary><strong>🧈 Launching Claude Code</strong></summary>
203
-
204
- ### Launching Claude Code
205
-
206
- Use `hcom open` to automatically launch Claude instances with proper setup:
207
-
208
- ```bash
209
- # Launch 3 generic instances
210
- hcom open 3
229
+ <summary><strong>🥔 Terminal Customization</strong></summary>
211
230
 
212
- # Launch with custom terminal mode
213
- hcom open 2 # Uses terminal_mode from config
214
-
215
- # Launch named agents
216
- hcom open writer researcher
217
- ```
231
+ ### Terminal Mode
218
232
 
219
233
  Configure terminal behavior in `~/.hcom/config.json`:
220
234
  - `"terminal_mode": "new_window"` - Opens new terminal windows (default)
@@ -225,15 +239,10 @@ Configure terminal behavior in `~/.hcom/config.json`:
225
239
  ```bash
226
240
  # For single instance work
227
241
  HCOM_TERMINAL_MODE=same_terminal hcom open
228
- # This runs Claude directly in your current terminal
242
+ # This runs Claude code directly in your current terminal
229
243
  ```
230
244
 
231
- </details>
232
-
233
- <details>
234
- <summary><strong>🥔 Integrations</strong></summary>
235
-
236
- ### Custom Terminal Integration
245
+ ### Custom Terminal Examples
237
246
 
238
247
  Configure `terminal_command` in `~/.hcom/config.json` to use your preferred terminal:
239
248
 
@@ -251,13 +260,6 @@ Configure `terminal_command` in `~/.hcom/config.json` to use your preferred term
251
260
  }
252
261
  ```
253
262
 
254
- ### Windows Terminal
255
- ```json
256
- {
257
- "terminal_command": "wt new-tab cmd /k \"{env} & {cmd}\""
258
- }
259
- ```
260
-
261
263
  ### Kitty
262
264
  ```json
263
265
  {
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hcom"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "Lightweight CLI tool for real-time messaging between Claude Code instances/subagents using hooks"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.6"
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- Claude Hook Comms
4
- A lightweight multi-agent communication and launching system for Claude instances
3
+ hcom - Hook Communications
4
+ A simplified multi-agent communication system for Claude instances
5
5
  """
6
6
 
7
7
  import os
@@ -390,7 +390,11 @@ def build_env_string(env_vars, format_type="bash"):
390
390
  return ' '.join(f'export {k}={shlex.quote(str(v))};' for k, v in env_vars.items())
391
391
  elif format_type == "powershell":
392
392
  # PowerShell environment variable syntax
393
- return ' ; '.join(f'$env:{k}="{str(v).replace('"', '`"')}"' for k, v in env_vars.items())
393
+ items = []
394
+ for k, v in env_vars.items():
395
+ escaped_value = str(v).replace('"', '`"')
396
+ items.append(f'$env:{k}="{escaped_value}"')
397
+ return ' ; '.join(items)
394
398
  else:
395
399
  return ' '.join(f'{k}={shlex.quote(str(v))}' for k, v in env_vars.items())
396
400
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hcom
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Lightweight CLI tool for real-time messaging between Claude Code instances/subagents using hooks
5
5
  Author-email: aannoo <your@email.com>
6
6
  License: MIT
@@ -28,7 +28,7 @@ Description-Content-Type: text/markdown
28
28
 
29
29
  # Claude Code Hook Comms
30
30
 
31
- Lightweight CLI tool for real-time messaging between Claude Code instances/subagents using [hooks](https://docs.anthropic.com/en/docs/claude-code/hooks).
31
+ Lightweight CLI tool for launching and real-time communication between claude code subagents/instances using [hooks](https://docs.anthropic.com/en/docs/claude-code/hooks).
32
32
 
33
33
  ## 🦆 What It Does
34
34
 
@@ -38,7 +38,7 @@ Creates a group chat where you and multiple interactive Claude Code subagents ca
38
38
 
39
39
  ## 🦷 Key Features
40
40
 
41
- - **New Window** - Claude subagents open in new terminals
41
+ - **New Terminal Window** - Launch claude code subagents in new terminals
42
42
  - **Multi-Agent Communication** - Claude instances talk to each other across projects
43
43
  - **@Mention Targeting** - Send messages to specific subagents or teams
44
44
  - **Live Dashboard** - Real-time monitoring of all instances
@@ -46,35 +46,37 @@ Creates a group chat where you and multiple interactive Claude Code subagents ca
46
46
 
47
47
  ## 🎪 Quick Start
48
48
 
49
- ### Download
49
+ ### Use Without Installing
50
50
  ```bash
51
- curl -sL https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/hcom.py | sudo tee /usr/local/bin/hcom > /dev/null && sudo chmod +x /usr/local/bin/hcom
51
+ uvx hcom open 2
52
52
  ```
53
53
 
54
- <details>
55
- <summary><strong>🦑 Windows</strong></summary>
56
-
57
- ```powershell
58
- # Download Python file
59
- Invoke-WebRequest -Uri "https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/hcom.py" -OutFile "hcom.py"
60
-
61
- # Run python file directly
62
- python path/to/hcom.py open 2
63
- ```
64
- </details>
54
+ *[ Installation Options](#-installation-options)*
65
55
 
66
56
  ### Usage
67
57
  ```bash
68
- # 1. Launch 3 Claude instances connected to group chat
69
- hcom open 3
58
+ # Launch 3 default Claude instances connected to group chat
59
+ uvx hcom open 3
70
60
 
71
- # 2. View/send messages in dashboard
72
- hcom watch
61
+ # Launch researcher and code-writer from your .claude/agents
62
+ uvx hcom open researcher code-writer
63
+
64
+ # View/send messages in dashboard
65
+ uvx hcom watch
66
+
67
+ # Clear messages
68
+ uvx hcom clear
73
69
  ```
74
70
 
71
+ ## 🦐 Requirements
72
+
73
+ - Python 3.6+
74
+ - [Claude Code](https://claude.ai/code)
75
+
75
76
 
77
+ ### More Launch Examples
76
78
 
77
- ### Launch Claude Code Agents
79
+ #### Launch Claude Code Agents
78
80
  ```bash
79
81
  # Launch researcher and code-writer from your .claude/agents
80
82
  hcom open researcher code-writer
@@ -83,7 +85,7 @@ hcom open researcher code-writer
83
85
  hcom open backend-coder frontend-coder orchestrator tester
84
86
  ```
85
87
 
86
- ### Launch Headless Mode
88
+ #### Launch Headless Mode
87
89
  ```bash
88
90
  # Launch researcher and code-writer from your .claude/agents and work in background
89
91
  hcom open researcher code-writer --claude-args "-p"
@@ -92,7 +94,7 @@ hcom open researcher code-writer --claude-args "-p"
92
94
  hcom open --claude-args "-p 'review git code changes when you get notified'"
93
95
  ```
94
96
 
95
- ### Launch with Options
97
+ #### Launch with Options
96
98
  ```bash
97
99
  # Launch researcher and code-writer from your .claude/agents and work in background
98
100
  hcom open researcher code-writer --prefix 'greenteam'
@@ -108,6 +110,31 @@ hcom open 2 backend-coder frontend-coder
108
110
  - Python 3.6+
109
111
  - [Claude Code](https://claude.ai/code)
110
112
 
113
+ ## 🦒 Installation Options
114
+
115
+ **Option 1: Use without installing (uvx) - recommended**
116
+ ```bash
117
+ uvx hcom open 3 # Runs latest version, no installation needed
118
+ ```
119
+
120
+ **Option 2: Install with uv**
121
+ ```bash
122
+ uv tool install hcom
123
+ hcom open 3
124
+ ```
125
+
126
+ **Option 3: Install with pip**
127
+ ```bash
128
+ pip install hcom
129
+ hcom open 3
130
+ ```
131
+
132
+ **Option 4: Download script directly**
133
+ ```bash
134
+ curl -sL https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/hcom.py > hcom
135
+ chmod +x hcom
136
+ ./hcom open 3
137
+ ```
111
138
 
112
139
  ## 🥨 Commands
113
140
 
@@ -227,22 +254,9 @@ your-project/
227
254
 
228
255
 
229
256
  <details>
230
- <summary><strong>🧈 Launching Claude Code</strong></summary>
231
-
232
- ### Launching Claude Code
233
-
234
- Use `hcom open` to automatically launch Claude instances with proper setup:
235
-
236
- ```bash
237
- # Launch 3 generic instances
238
- hcom open 3
257
+ <summary><strong>🥔 Terminal Customization</strong></summary>
239
258
 
240
- # Launch with custom terminal mode
241
- hcom open 2 # Uses terminal_mode from config
242
-
243
- # Launch named agents
244
- hcom open writer researcher
245
- ```
259
+ ### Terminal Mode
246
260
 
247
261
  Configure terminal behavior in `~/.hcom/config.json`:
248
262
  - `"terminal_mode": "new_window"` - Opens new terminal windows (default)
@@ -253,15 +267,10 @@ Configure terminal behavior in `~/.hcom/config.json`:
253
267
  ```bash
254
268
  # For single instance work
255
269
  HCOM_TERMINAL_MODE=same_terminal hcom open
256
- # This runs Claude directly in your current terminal
270
+ # This runs Claude code directly in your current terminal
257
271
  ```
258
272
 
259
- </details>
260
-
261
- <details>
262
- <summary><strong>🥔 Integrations</strong></summary>
263
-
264
- ### Custom Terminal Integration
273
+ ### Custom Terminal Examples
265
274
 
266
275
  Configure `terminal_command` in `~/.hcom/config.json` to use your preferred terminal:
267
276
 
@@ -279,13 +288,6 @@ Configure `terminal_command` in `~/.hcom/config.json` to use your preferred term
279
288
  }
280
289
  ```
281
290
 
282
- ### Windows Terminal
283
- ```json
284
- {
285
- "terminal_command": "wt new-tab cmd /k \"{env} & {cmd}\""
286
- }
287
- ```
288
-
289
291
  ### Kitty
290
292
  ```json
291
293
  {
File without changes
File without changes
File without changes
File without changes
File without changes