hermes-to-claude 0.1.10 โ 0.2.0
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.
- package/README.md +26 -8
- package/dist/hbridge.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# Hermes-Claude
|
|
1
|
+
# Hermes-to-Claude (h2c)
|
|
2
2
|
|
|
3
3
|
**Hermes-Agent** controls multiple **Claude Code** instances via HTTP โ one agent, many Claude workers. No Pro/Max subscription required.
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
๐ฑ User ----HTTP----> ๐ค Hermes-Agent ----h2c----> ๐ญ Claude Code (deploy role)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
โ----h2c----> ๐ง Claude Code (coding role)
|
|
8
|
+
โ----h2c----> ๐งช Claude Code (testing role)
|
|
9
|
+
โ----h2c----> ๐ฌ Claude Code (building role)
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
---
|
|
@@ -33,11 +33,22 @@ h2c requires **Node.js โฅ 20**. Install it for your platform:
|
|
|
33
33
|
| macOS | `brew install node` |
|
|
34
34
|
| Windows | `winget install OpenJS.NodeJS` or download from https://nodejs.org |
|
|
35
35
|
|
|
36
|
-
###
|
|
36
|
+
### Installation
|
|
37
|
+
|
|
38
|
+
**For End User**, One command to install globally:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install -g hermes-to-claude
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This makes the `h2c` command available everywhere on your system.
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
**For Developer**, For contributors who want to hack on h2c itself:
|
|
37
48
|
|
|
38
49
|
```bash
|
|
39
50
|
git clone https://github.com/xuhancn/hermes-to-claude.git
|
|
40
|
-
cd hermes-claude
|
|
51
|
+
cd hermes-to-claude
|
|
41
52
|
npm install && npm run build
|
|
42
53
|
```
|
|
43
54
|
|
|
@@ -60,7 +71,14 @@ This starts the HTTP server. The port is derived from the working directory (see
|
|
|
60
71
|
When Hermes-Agent runs on a server with no display, no manual command is needed. Export the **environment variable** before starting h2c:
|
|
61
72
|
|
|
62
73
|
```bash
|
|
63
|
-
|
|
74
|
+
# Linux / macOS
|
|
75
|
+
H2C_HOME=1
|
|
76
|
+
|
|
77
|
+
# Windows (Command Prompt)
|
|
78
|
+
set H2C_HOME=1
|
|
79
|
+
|
|
80
|
+
# Windows (PowerShell)
|
|
81
|
+
$env:H2C_HOME = "1"
|
|
64
82
|
```
|
|
65
83
|
|
|
66
84
|
With Home mode active, the server listens on `127.0.0.1` only. Authentication is **disabled** โ safe because only local processes can reach it. Hermes-Agent connects without managing keys.
|
|
@@ -73,7 +91,7 @@ The port is **deterministic**: `MD5(cwd)` โ first 2 bytes โ `9200 + (value %
|
|
|
73
91
|
- Claude reads its own CLAUDE.md, skills, and project files from that directory
|
|
74
92
|
- Port = project โ you always know which Claude you're talking to
|
|
75
93
|
|
|
76
|
-
The auth key (`
|
|
94
|
+
The auth key (`h2c_` + 8 random base52 characters) is written to `~/.h2c_key` once and reused across all directories on the same machine. All HTTP endpoints (except `/health`) require HTTP Basic Auth with username `bridge` and the key as password.
|
|
77
95
|
|
|
78
96
|
---
|
|
79
97
|
|
package/dist/hbridge.mjs
CHANGED
|
@@ -1582,7 +1582,7 @@ function stopStatusBar(intervalId) {
|
|
|
1582
1582
|
|
|
1583
1583
|
// src/hbridge/cli.mjs
|
|
1584
1584
|
import { networkInterfaces } from "os";
|
|
1585
|
-
var H2C_VERSION = "
|
|
1585
|
+
var H2C_VERSION = "v214.0.24bb25b";
|
|
1586
1586
|
var server = null;
|
|
1587
1587
|
var statusBarInterval = null;
|
|
1588
1588
|
function getLocalIPs() {
|