Commit Graph
3 Commits
Author SHA1 Message Date
dckc 3f9ba54477 feat: Endo-compatible host, downloads folder, Nix tools PATH
- the fake host serves a subset of @endo/agent-mcp-stdio's catalog,
  with its names, schemas and answers; evaluate takes only
  E(name).method(arg, ...), and __getMethodNames__
- demo.py --host endo: a real Endo daemon (endo-but-for-bots, llm),
  its guest served by the package's broker
- a downloads folder: the host writes, Hermes reads at ~/Downloads;
  BindReadOnlyPaths on Linux, a virtiofs share on macOS
- .#demo-tools: Hermes and the checks get their whole PATH from the store
- each run saves its MCP messages and a transcript
- the guide: tools as system calls, names as file descriptors;
  no Linux networking, but WebApps
- grants match a named URL before "download"

Generated-by: Claude Opus 5.5
2026-11-29 23:15:06 -06:00
dckc 783e4c595f feat: teach the guest call, WebApps and define; install through the host
- guide/endo-guest.md, served as the MCP resource endo://guide: names
  and messages, toybox-style call, WebApps, define, and moving bytes
  over host.sock from the shell.
- The fake host gains call, define (toybox's modules-and-slots shape,
  recorded for the host) and a WebApp narrowed to one URL, with
  getBase64 for bytes, since toybox's fetch device answers text.
- demo.py --task install: with a real model, Hermes installs six and ms
  with no network but package-index WebApps its host grants; on macOS
  under sandbox-exec with outbound network denied. Checked by importing
  both from where Hermes put them.
- Temp cleanup logs, rather than fails, when Hermes's detached helpers
  are still writing.

Generated-by: Claude Opus 5.5
2026-11-29 17:14:02 -06:00
dckc e38d681a9e feat: Hermes confined to act only as an Endo guest
A NixOS module (nix/hermes-guest.nix) layers confinement on upstream's
services.hermes-agent: no network (PrivateNetwork), an empty /run with
two Unix sockets bound back in, and no user manager. Hermes reaches the
world through host.sock, the guest's Endo methods (listMessages,
request, lookup, reply, ...) as MCP, and llm.sock, an inference proxy
that holds the API key.

The same unit runs on a Linux host (nix/linux-host.nix) and in a vfkit
microVM on macOS (nix/vfkit-vm.nix), where systemd relays the two
sockets over vsock to launchd on the host (nix/darwin-host.nix).

test/demo.py runs unmodified Hermes against a fake host and a scripted
model, and checks what the host received.

Generated-by: Claude Opus 5.5
2026-11-29 16:34:39 -06:00