Skip to content

feat: support Hermes Agent and OpenCode and update Moltnet - #196

Merged
apresmoi merged 21 commits into
mainfrom
feat/hermes-opencode-runtimes
Nov 22, 2026
Merged

apresmoi merged 21 commits into
mainfrom
feat/hermes-opencode-runtimes

Conversation

@apresmoi

@apresmoi apresmoi commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Status

  • Add built-in Hermes Agent v0.23.3 and OpenCode v1.19.6 adapters. Each adapter owns native installation, workspace and model configuration, authentication, ACP wiring, training, and capture into a portable .eval.

  • Both harnesses accept native ChatGPT and SuperGrok logins. Hermes also accepts Nous Portal and MiniMax OAuth. OpenCode accepts GitHub Copilot login and the OpenCode Go plan key. The runtime guide includes Poe, Alibaba plans and GitLab Duo where the provider supplies a compatible plan key. Runtime support and setup

  • Select a harness with spawnfile auth login chatgpt --runtime <runtime> --profile <name>. Add --instance <id> to assign an account to a particular member. Services, ACP and training resolve the selected login. The Docker engine holds the writable native grant. OpenCode shares one native process across its chat and HTTP interfaces, and prevents competing deployments from refreshing the same grant.

  • Both adapters lower authored MCP and scoped awake Mneme access. Hermes adds timezone-aware native cron and supported Telegram, Discord and Slack policies. OpenCode can delegate to declared, text-only helpers on the parent's exact API-key or local model. Unsupported declarations are reported or rejected. Both retain native sessions across container replacement. Hermes reconciles authored workspace assets and refreshes declared Moltnet membership on reused volumes.

  • Pin Daimon 0.2.26 and Docker Hub image 0.2.26-4bdb427. A bank can schedule dreams alongside ordinary work. Isolated training trials keep the bank and suppress scheduled maintenance. Daimon release

Verification

  • Ran the real Linux arm64 harnesses with separate synthetic ChatGPT grants and an isolated provider fixture. The compiled mixed team requested zero model API keys. Each native agent completed a training turn, wrote a portable .eval through the production training driver, and passed offline regrading with a freshly installed CLI. Separate file-tool trials graded native tool completions and captured file contents.

  • Exercised both Moltnet members in a room added to an existing deployment and in a DM. Both used their native shell tool to send replies. Recreated the container, waited for both members to connect and repeated both exchanges. All four conversation-to-session mappings kept their original native session IDs. The room/DM pilot used the ACP-capable Moltnet main commit.

  • Concurrent real OpenCode ACP and attached training turns exchanged an expiring grant once and saved its replacement. Pinned Hermes Python tests confirmed single-use refresh behavior across processes. Tested native helper execution, five native messaging-policy fixtures, cron persistence, and plan-key catalog or endpoint selection with fixtures.

  • Installed the packed Spawnfile CLI into an empty consumer. All eight account or plan declarations compiled with the expected credential source. On the same 17 example and fixture projects it matched a pristine main build: 14 compiled with identical fingerprints and runtime lists, and three returned the same diagnostics. The external adapter fixture compiled its two independently registered harnesses after installing the package.

  • Verified the latest published Moltnet v0.1.22 source identity and both Linux archive checksums. Its binaries support the existing bridges. The merged ACP bridge requires a newer build. Moltnet release ACP merge

  • All eight GitHub checks passed at 2e1de33, including all 8,886 Vitest cases on Linux. The local final run passed 8,883 Vitest cases and 78 package-script tests. Three Linux-specific cases skipped on macOS. All 37 focused native login, legacy profile and ACP tests passed on Linux with Node 22, including those three cases. The Python bridge passed 374 tests. Typechecking, the production build and all six workspace import-boundary checks passed. JavaScript coverage was 96.32% of lines and 93.04% of branches.

  • An offline Linux arm64 pilot compiled a Spawnfile and ran the changed production Daimon CLI with real Mneme 0.1.3 and a simulated Codex process and gateway. A dream saved a memory, and the next ordinary turn recalled it on the original awake thread. The compiler selected the new source contract through a synthetic local image identity. The pilot made zero provider calls.

  • Verified Docker Hub index sha256:65d66b9f9482e88ba233f88d05197d16d27348bc445ed02b048233be5cfe7a7a, both Linux image manifests, and the capability receipts inside their layers. A default Spawnfile compile produced independent five-minute work and daily UTC dreams. The released ARM64 runtime parsed the generated config with networking disabled. Docker Hub publication

Next steps

  • Paid subscription entitlements and live Telegram, Discord or Slack delivery were not exercised. The accepted auth routes depend on provider plan and model access. Anthropic API keys work in both harnesses. Claude base-plan access requires the official client.
  • Tool-event coverage in both training drivers is partial. Hermes native delegation inherits its parent's tools. OpenCode has no native scheduler, permits one Moltnet network per subscription instance, and needs distinct grants for simultaneous separate deployments or training containers.

@apresmoi
apresmoi marked this pull request as ready for review November 20, 2026 21:29
@apresmoi
apresmoi merged commit def82bd into main Nov 22, 2026
8 checks passed
@apresmoi
apresmoi deleted the feat/hermes-opencode-runtimes branch November 22, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant