hcom 0.1.0__py3-none-any.whl → 0.1.1__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.

hcom/__main__.py CHANGED
@@ -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
  {
@@ -0,0 +1,7 @@
1
+ hcom/__init__.py,sha256=TF-Q3b4Xkh9LTXMYh4JS-zHGLmVx9hiNqeU0lilogYw,96
2
+ hcom/__main__.py,sha256=ndSRUGtDduwo4-FB-cnThy2Ij7ZfNuLpF-ctGcaOacc,68808
3
+ hcom-0.1.1.dist-info/METADATA,sha256=n9zEinwdkRlLn3a4ScwwieN76gMYd1w_EuHisSJ11Dw,10494
4
+ hcom-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ hcom-0.1.1.dist-info/entry_points.txt,sha256=cz9K9PsgYmORUxNKxVRrpxLS3cxRJcDZkE-PpfvOhI8,44
6
+ hcom-0.1.1.dist-info/top_level.txt,sha256=8AS1nVUWA26vxjDQ5viRxgJnwSvUWk1W6GP4g6ldZ-0,5
7
+ hcom-0.1.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- hcom/__init__.py,sha256=TF-Q3b4Xkh9LTXMYh4JS-zHGLmVx9hiNqeU0lilogYw,96
2
- hcom/__main__.py,sha256=TIdmomB1z9SPco-Oidt6AloE5-abhS6aanhLUpRzk7s,68712
3
- hcom-0.1.0.dist-info/METADATA,sha256=O2sTsNatksZ1SVwl2dPbprJKI0gRLeOFUlHMPDvtrg4,10545
4
- hcom-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
- hcom-0.1.0.dist-info/entry_points.txt,sha256=cz9K9PsgYmORUxNKxVRrpxLS3cxRJcDZkE-PpfvOhI8,44
6
- hcom-0.1.0.dist-info/top_level.txt,sha256=8AS1nVUWA26vxjDQ5viRxgJnwSvUWk1W6GP4g6ldZ-0,5
7
- hcom-0.1.0.dist-info/RECORD,,
File without changes