@chipschat/hermes 1.0.5 → 1.0.7
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 +25 -3
- package/dist/THIRD-PARTY-NOTICES.md +1 -1
- package/dist/main.js +645 -141
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,12 +23,13 @@ Apache-2.0. Not published: a local repository until Chips's SDK is.
|
|
|
23
23
|
| The reply | `run.completed`'s `output`, else the `message.delta`s |
|
|
24
24
|
| Files in the reply | each `MEDIA:<path>` line of its own in the reply, taken out of the words and sent from the agent's folder; a file outside it is refused, and the reply says so. Each run is told how in its `instructions`, which Hermes adds to the system prompt, over its own hint that its API server sends only pictures |
|
|
25
25
|
| Cost | the run's tokens; a sub-agent's `cost_usd` as its step's share |
|
|
26
|
-
| An approval card | `approval.request` → `POST …/approval`: once, session or always where Hermes offers it, else once; deny for a no. One answered in Hermes's own tools is settled in Chips (ADR 0079) |
|
|
26
|
+
| An approval card | `approval.request` → `POST …/approval`: once, session or always where Hermes offers it, else once, and once for a command, which Chips remembers by how each part starts (Chips ADR 0239); deny for a no. One answered in Hermes's own tools is settled in Chips (ADR 0079) |
|
|
27
27
|
| "Not right?" on a reply (ADR 0200) | a run of the agent that said it, in its session in the room, after the room's other turns: told its reply and the person's note (or, for a bare 👎, that there was none), it answers again in its place |
|
|
28
28
|
| Fork (ADR 0087) | `POST /api/sessions/{id}/fork` of the agent's session in the room it is in (else the last it had), from its latest id when Hermes has compressed it, under an id made from the ask, so an ask heard twice forks once. Hermes ends the original as `branched`, and the original's runs go on in it. A turn still going isn't in the copy. An agent that never spoke is copied with nothing to remember |
|
|
29
29
|
| Stop | `POST …/stop` |
|
|
30
30
|
| A steer, a follow-up, an interrupt | `POST …/steer`; the next run of the turn; stop, then the next run with the words |
|
|
31
31
|
| Trouble on the harness | `GET /health` every 30 s, per profile |
|
|
32
|
+
| Restart on its page (ADR 0094) | Hermes's gateway restarted on this machine, and Hermes shown as restarting until its API server answers again (below) |
|
|
32
33
|
| Context (ADRs 0134, 0238) | the files Hermes builds the agent from: `SOUL.md` (who it is), `memories/USER.md` and `memories/MEMORY.md` in the profile's home, and the first project file with words in it in the folder Hermes's gateway works in (`.hermes.md`, `HERMES.md`, `AGENTS.md` and the rest Hermes looks for). The first profile's files and the project file are the harness's own set, since every new agent reads them; another profile's files are the agent's own until a fork reads them too. An edit is saved where Hermes reads it, only if the file is still the one the person changed. A memory file is saved as Hermes saves it, under its lock, entries apart by a line with only `§`, and an edit over Hermes's limit (2,200 and 1,375 characters unless `config.yaml` says others) is refused with how much to take out. The page says Hermes reads them when a conversation starts: a space already talking picks up a change after it next compacts |
|
|
33
34
|
| Context window (ADR 0146) | how full the agent's session is, from the webhook below: the last model call's prompt tokens, of its model's window. A sharp drop in a session is a compaction, and a turn past half the window says its peak. Read only: the limit is the profile's `compression.threshold` (75% under 512K tokens unless set higher), and Hermes can't be asked to compact from Chips. Nothing is shown until Hermes's first reading |
|
|
34
35
|
|
|
@@ -121,8 +122,29 @@ writes a launch agent (`~/Library/LaunchAgents/chat.chips.hermes.plist`; a syste
|
|
|
121
122
|
Linux) that runs the bridge from login and again whenever it stops, and ends: closing the terminal
|
|
122
123
|
or restarting the machine no longer takes it offline in Chips. Its log is
|
|
123
124
|
`~/Library/Logs/chips-hermes.log`. `npm run keep -- --stop` stops it and removes the file. Stop a
|
|
124
|
-
copy started by hand first: two answer twice.
|
|
125
|
-
|
|
125
|
+
copy started by hand first: two answer twice. When the bridge starts and nothing answers at a local
|
|
126
|
+
address, it starts Hermes's gateway (below), so Hermes comes back after a reboot too.
|
|
127
|
+
|
|
128
|
+
**Restart.** Restart on Hermes's page in Chips restarts Hermes's gateway, the process serving its
|
|
129
|
+
API server at the agents' address, when that is on this machine:
|
|
130
|
+
- Installed as Hermes's own service (`hermes gateway install`, so
|
|
131
|
+
`~/Library/LaunchAgents/ai.hermes.gateway.plist` or a systemd unit), `hermes gateway restart`.
|
|
132
|
+
- Run by hand, the process listening on the API's port is stopped (SIGTERM, then SIGKILL if it is
|
|
133
|
+
still there 15 s later), only if it is this user's `hermes gateway run`. Anything else there is
|
|
134
|
+
left alone, and Chips says so. Then `hermes gateway run` is started again with the same words, in
|
|
135
|
+
the folder it worked in, in a session of its own, its output added to
|
|
136
|
+
`~/Library/Logs/chips-hermes-gateway.log`.
|
|
137
|
+
|
|
138
|
+
Chips shows Hermes as restarting until its API server answers again, then fine, or in a line what
|
|
139
|
+
went wrong. Started with the bridge, it is the same, with `hermes gateway start` for a service. The
|
|
140
|
+
bridge asks for `restarts` when it joins with a code; a harness joined without it gets Restart
|
|
141
|
+
once Chips is told it takes it (`chips declare`, ADR 0046).
|
|
142
|
+
|
|
143
|
+
On a Mac whose Homebrew python@3.14 can't load macOS's expat, Hermes dies as it starts with
|
|
144
|
+
`Symbol not found: _XML_SetAllocTrackerActivationThreshold`. Then the bridge starts Hermes's entry
|
|
145
|
+
point (the one the `hermes` wrapper runs) directly, with the wrapper's variables and
|
|
146
|
+
`DYLD_LIBRARY_PATH=/opt/homebrew/opt/expat/lib`, which macOS would drop at the wrapper, and its log
|
|
147
|
+
says so.
|
|
126
148
|
|
|
127
149
|
**Folders.** Each agent gets a folder of its own, `~/chips-hermes/agents/<its name>`, made the
|
|
128
150
|
first time it is spoken to and kept by its Chips agent after a rename. Each run tells the agent it
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
`dist/main.js` in @chipschat/hermes 1.0.
|
|
3
|
+
`dist/main.js` in @chipschat/hermes 1.0.7 carries these packages, bundled in. Each one's
|
|
4
4
|
licence follows.
|
|
5
5
|
|
|
6
6
|
## @chipschat/harness 0.0.0 (Apache-2.0)
|