hcom 0.1.7__py3-none-any.whl → 0.1.8__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/__init__.py +1 -1
- hcom/__main__.py +50 -2
- {hcom-0.1.7.dist-info → hcom-0.1.8.dist-info}/METADATA +2 -2
- hcom-0.1.8.dist-info/RECORD +7 -0
- hcom-0.1.7.dist-info/RECORD +0 -7
- {hcom-0.1.7.dist-info → hcom-0.1.8.dist-info}/WHEEL +0 -0
- {hcom-0.1.7.dist-info → hcom-0.1.8.dist-info}/entry_points.txt +0 -0
- {hcom-0.1.7.dist-info → hcom-0.1.8.dist-info}/top_level.txt +0 -0
hcom/__init__.py
CHANGED
hcom/__main__.py
CHANGED
|
@@ -724,7 +724,7 @@ def setup_hooks():
|
|
|
724
724
|
if 'hooks' not in settings:
|
|
725
725
|
settings['hooks'] = {}
|
|
726
726
|
|
|
727
|
-
hcom_send_permission = 'Bash(echo
|
|
727
|
+
hcom_send_permission = 'Bash(echo HCOM_SEND:*)'
|
|
728
728
|
if hcom_send_permission not in settings['permissions']['allow']:
|
|
729
729
|
settings['permissions']['allow'].append(hcom_send_permission)
|
|
730
730
|
|
|
@@ -1292,6 +1292,7 @@ def show_main_screen_header():
|
|
|
1292
1292
|
|
|
1293
1293
|
def cmd_help():
|
|
1294
1294
|
"""Show help text"""
|
|
1295
|
+
# Basic help for interactive users
|
|
1295
1296
|
print("""hcom - Claude Hook Comms
|
|
1296
1297
|
|
|
1297
1298
|
Usage:
|
|
@@ -1305,12 +1306,59 @@ Usage:
|
|
|
1305
1306
|
hcom help Show this help
|
|
1306
1307
|
|
|
1307
1308
|
Automation:
|
|
1308
|
-
hcom send 'msg' Send message
|
|
1309
|
+
hcom send 'msg' Send message to all
|
|
1309
1310
|
hcom send '@prefix msg' Send to specific instances
|
|
1310
1311
|
hcom watch --logs Show logs
|
|
1311
1312
|
hcom watch --status Show status
|
|
1313
|
+
hcom watch --wait [timeout] Wait and notify for new messages (seconds)
|
|
1312
1314
|
|
|
1313
1315
|
Docs: https://raw.githubusercontent.com/aannoo/claude-hook-comms/main/README.md""")
|
|
1316
|
+
|
|
1317
|
+
# Additional help for AI assistants when running in non-interactive mode
|
|
1318
|
+
if not sys.stdin.isatty():
|
|
1319
|
+
print("""
|
|
1320
|
+
|
|
1321
|
+
=== ADDITIONAL INFO ===
|
|
1322
|
+
|
|
1323
|
+
CONCEPT: HCOM creates multi-agent collaboration by launching multiple Claude Code
|
|
1324
|
+
instances in separate terminals that share a single conversation.
|
|
1325
|
+
|
|
1326
|
+
KEY UNDERSTANDING:
|
|
1327
|
+
• Single conversation - All instances share ~/.hcom/hcom.log
|
|
1328
|
+
• Agents are system prompts - "reviewer" loads .claude/agents/reviewer.md
|
|
1329
|
+
• CLI usage - Use 'hcom send' for messaging. Internal instances use 'echo HCOM_SEND:'
|
|
1330
|
+
• hcom open is directory-specific - always cd to project directory first
|
|
1331
|
+
|
|
1332
|
+
LAUNCH PATTERNS:
|
|
1333
|
+
hcom open 2 reviewer # 2 generic + 1 reviewer agent
|
|
1334
|
+
hcom open reviewer reviewer # 2 separate reviewer instances
|
|
1335
|
+
hcom open --prefix api 2 # Team naming: api-hova7, api-kolec
|
|
1336
|
+
hcom open test --claude-args "-p 'write tests'" # Pass 'claude' CLI flags
|
|
1337
|
+
|
|
1338
|
+
@MENTION TARGETING:
|
|
1339
|
+
hcom send "message" # Broadcasts to everyone
|
|
1340
|
+
hcom send "@api fix this" # Targets all api-* instances (api-hova7, api-kolec)
|
|
1341
|
+
hcom send "@hova7 status?" # Targets specific instance
|
|
1342
|
+
(Unmatched @mentions broadcast to everyone)
|
|
1343
|
+
|
|
1344
|
+
STATUS INDICATORS:
|
|
1345
|
+
• ◉ thinking, ▷ responding, ▶ executing - instance is working
|
|
1346
|
+
• ◉ waiting - instance is waiting for new messages (hcom send)
|
|
1347
|
+
• ■ blocked - instance is blocked by permission request (needs user approval)
|
|
1348
|
+
• ○ inactive - instance is inactive (timed out, disconnected, etc)
|
|
1349
|
+
|
|
1350
|
+
CONFIG:
|
|
1351
|
+
Environment overrides (temporary): HCOM_INSTANCE_HINTS="useful info" hcom send "hi"
|
|
1352
|
+
Config file (persistent): ~/.hcom/config.json
|
|
1353
|
+
|
|
1354
|
+
Key settings (all in config.json):
|
|
1355
|
+
terminal_mode: "new_window" | "same_terminal" | "show_commands"
|
|
1356
|
+
initial_prompt: "Say hi in chat", first_use_text: "Essential, concise messages only..."
|
|
1357
|
+
instance_hints: "", cli_hints: "" # Extra info for instances/CLI
|
|
1358
|
+
|
|
1359
|
+
EXPECT: Instance names are auto-generated (5-char format based on uuid: "hova7"). Check actual names
|
|
1360
|
+
with 'hcom watch --status'. Instances respond automatically in shared chat.""")
|
|
1361
|
+
|
|
1314
1362
|
return 0
|
|
1315
1363
|
|
|
1316
1364
|
def cmd_open(*args):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hcom
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.8
|
|
4
4
|
Summary: Lightweight CLI tool for real-time communication between Claude Code subagents using hooks
|
|
5
5
|
Author-email: aannoo <your@email.com>
|
|
6
6
|
License: MIT
|
|
@@ -92,7 +92,7 @@ hcom open test-writer --claude-args "-p 'write tests for any new code'"
|
|
|
92
92
|
hcom open reviewer --claude-args "-p 'review when @mentioned'"
|
|
93
93
|
|
|
94
94
|
# Pass multiple Claude flags
|
|
95
|
-
hcom open orchestrator --claude-args "--model
|
|
95
|
+
hcom open orchestrator --claude-args "--model sonnet
|
|
96
96
|
--resume session_id"
|
|
97
97
|
|
|
98
98
|
# Launch in specific directories
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
hcom/__init__.py,sha256=h_kF26j8HKI-8wQqLhfCVH-Qg6U5T_Im5sUNs6gneDE,96
|
|
2
|
+
hcom/__main__.py,sha256=2ROTl8889tbhtw3Xas4CvL69O6gidJoeX7gtNo-ECiE,77437
|
|
3
|
+
hcom-0.1.8.dist-info/METADATA,sha256=X5uTxHkelaG5rCVnUgIPkyTtPSqy-6E2e2_4iZml2B8,10363
|
|
4
|
+
hcom-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
+
hcom-0.1.8.dist-info/entry_points.txt,sha256=cz9K9PsgYmORUxNKxVRrpxLS3cxRJcDZkE-PpfvOhI8,44
|
|
6
|
+
hcom-0.1.8.dist-info/top_level.txt,sha256=8AS1nVUWA26vxjDQ5viRxgJnwSvUWk1W6GP4g6ldZ-0,5
|
|
7
|
+
hcom-0.1.8.dist-info/RECORD,,
|
hcom-0.1.7.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
hcom/__init__.py,sha256=yxqzLIr5XxsUrfSe-inggLeqMM300Z4PrewklOE1FCk,96
|
|
2
|
-
hcom/__main__.py,sha256=VsTjMMUpknJ_D638HT9KrLX7Aid0c9dPq8p020c5gZA,75178
|
|
3
|
-
hcom-0.1.7.dist-info/METADATA,sha256=rYV5yFW1j2FFvxKSvKrSKzGSq3FzFrM3pD04x2xRpwY,10370
|
|
4
|
-
hcom-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
-
hcom-0.1.7.dist-info/entry_points.txt,sha256=cz9K9PsgYmORUxNKxVRrpxLS3cxRJcDZkE-PpfvOhI8,44
|
|
6
|
-
hcom-0.1.7.dist-info/top_level.txt,sha256=8AS1nVUWA26vxjDQ5viRxgJnwSvUWk1W6GP4g6ldZ-0,5
|
|
7
|
-
hcom-0.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|