| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Root's login shell ran hermes-attach, which starts hermes' tmux, and
root logs in automatically on the console. Root attaches with
hermes-attach when it wants to.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
hermes-tmux.service started at boot and restarted hermes whenever it
quit, and as its RuntimeDirectory, /run/hermes went away whenever it
stopped, so attaching failed with "error creating /run/hermes/tmux".
Now hermes-tmux.socket holds /run/hermes/tmux, and the first client
starts tmux (-D, on systemd's socket), whose config starts hermes in
session hermes. Quitting hermes ends the session, and with exit-empty
the server and the service, until the next client. Detaching doesn't.
Hermes imports provider plugins from copies under
~/.hermes/runtime/provider-plugins, a set per process, reclaimed by
later processes. Copies of the read-only plugin from before couldn't
be removed, and crashes leave theirs: remove them all at boot, before
any Hermes runs.
|
| |
|
|
|
|
|
| |
The gateway formats its stderr log lines with a timestamp of their own,
which journald adds anyway. Patch hermes-agent's source to leave it out
when stderr is the journal (JOURNAL_STREAM is set); the log files in
~/.hermes/logs keep theirs.
|
| |
|
|
|
|
|
|
|
| |
Managed (HERMES_MANAGED, or the module's .managed marker), Hermes
refuses to save config.yaml at all, so /model --global and hermes model
couldn't keep a change; only session-only /model worked. Set
HERMES_MANAGED=false, which wins over the marker, for the gateway, the
tmux and hermes' shells, and make config.yaml writable for hermes. The
settings here still replace their keys in config.yaml at every boot.
|
| |
|
|
|
|
|
|
| |
The gateway serves the Webapp, Hermes Desktop in a browser, on port
9120. Bound to 0.0.0.0, so the host can reach it at the guest's
address, which needs the dashboard's sign-in: username, password (or
its hash) and a token-signing secret, as HERMES_DASHBOARD_BASIC_AUTH_*
in hermes.env in the host's xchg, merged into ~/.hermes/.env at boot.
|
| |
|
|
|
| |
The classic CLI takes every Enter on the console as a newline, so there
was no way to send; the TUI (hermes --tui) sends.
|
| |
|
|
|
|
|
| |
2.1.329 isn't in nixpkgs master's manifest yet. npm's platform package
@anthropic-ai/claude-code-linux-x64 has the release's plain binary, and
the registry gives its integrity hash, so take it from there: no zstd,
and no checksum to copy from elsewhere.
|
| |
|
|
|
|
|
|
|
| |
The plugin's requests failed: "Claude Code 2.1.223 does not support this
model; version 2.1.280 or newer is required". nixos-26.05 has 2.1.223.
Override its claude-code with 2.1.328, version and checksum from
nixpkgs master's manifest. Release binaries are zstd-compressed now,
which 26.05's installPhase doesn't expect, so decompress them first.
x86_64-linux only, like the checksum.
|
| |
|
|
|
|
| |
The sources of hermes-agent, its flake inputs and the provider plugin
now come from fixed-output derivations. Their store paths are the same
as before, as name and hash are.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hermes knew the plugin (hermes plugins list) but not its provider.
Hermes imports a provider plugin from a snapshot: it copies the plugin
with shutil.copytree, modes included, and renames the copy from a
temporary directory into its place. Moving a directory to another
parent needs write permission on the directory itself, for its "..", so
with extraPlugins' symlink into the store, the copy is read-only, the
rename fails with EACCES for hermes (root could), and Hermes only logs
"Could not stage provider plugin".
Install a writable copy in hermes-agent-setup instead. extraPlugins'
old symlink goes away there, too, as the module removes nix-managed-*
links on each run.
|
| |
|
|
|
|
| |
Root's login shell attaches to hermes' tmux, and detaching gives the
shell back, but getting into the tmux again took tmux with the right
socket. hermes-attach does that, and the login shell uses it, too.
|
| |
|
|
|
| |
So hermes is on the PATH of hermes' shells, like the ones in new windows
of the tmux, and not only of the units.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Replace the anthropic provider, with its API key from /xchg, by the
Claude Subscription DirectSDK plugin from hermes-official-plugins. It
runs each turn through the claude CLI, from nixpkgs' claude-code, and
has no credentials of its own: log in once with claude auth login as
hermes, e.g. in a new window of the tmux. The login goes to ~/.claude,
i.e. into stateDir, so it lasts as long as the rest of the state.
The plugin needs Hermes 0.21.4, or main from 118984d7a02f on, which the
pinned revision includes.
|
| |
|
|
|
|
|
|
|
| |
profiles/perlless forbids perl in the system closure, and hermes-agent
brought it in twice: nixpkgs' git (send-email, gitweb & co.), on the
package's runtime PATH and the module's unit PATH, and wl-clipboard,
whose xdg-utils needs perl. Override the package with gitMinimal and
without wl-clipboard, which has no use without Wayland, and replace the
unit's PATH, as the package brings git itself.
|
| |
|
|
|
|
|
| |
hermes-agent patches patchelf for a bug of 0.19 (NixOS/patchelf#674).
nixos-26.05's patchelf is 0.15, which doesn't have that bug, and the
patch fails to apply to it. Make overrideAttrs a no-op on a patchelf
older than 0.19, in the pkgs only hermes-agent's flake sees.
|
| |
|
|
|
|
|
|
|
|
|
| |
nixos-26.05's fetchPnpmDeps calls pnpm.override for a pnpm >= 11, to
rebuild its nodejs-slim with a pinned SQLite. hermes-agent passes its
pinned pnpm 12, a plain attrset carrying nixpkgs' nodejs-slim, which has
no override. Give it one, in the pkgs only hermes-agent's flake sees.
This evaluates, but the build is untested: the pinned SQLite may make
the pnpm deps' fixed-output hash differ from hermes-agent's. With
nixos-unstable the overlay changes no derivation.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
flake-compat evaluates hermes-agent's flake with the nixpkgs locked in
its flake.lock, nixos-unstable. Instead, call the flake and its inputs
directly, with this system's pkgs as nixpkgs, which all of them follow
anyway. The other inputs are still fetched as locked. The NixOS
module is imported from its file, as the flake's nixosModules.default
needs pkgs, which imports can't use.
hermes-agent targets nixos-unstable: with nixos-26.05, evaluation fails
in fetchPnpmDeps, which expects a pnpm it can override.
|
| |
|
|
|
|
|
|
| |
The console is root's again. hermes runs as hermes in a tmux started by
hermes-tmux.service, and root's login shell attaches to it; detaching
gives root's shell back. tmux lets root attach to another user's
server. Quitting hermes ends the session, and systemd starts a new
one.
|
| |
|
|
|
|
|
| |
The console logs in as hermes instead of root, and the hermes CLI goes
into that user's packages instead of the system's. The user's home is
the service's stateDir, so the CLI finds the service's state at
~/.hermes without HERMES_HOME set system-wide.
|
|
|
Hermes Agent from its own NixOS module, imported through flake-compat,
with what this guest needs on top:
- nixos-init doesn't run activation scripts, so the module's setup runs
as hermes-agent-setup.service before the gateway
- state lives on the rw-store drive, as /var is a tmpfs
- the hermes user doesn't linger, as users.manageLingering is off
(hermes' cron needs a user manager; nothing else does)
The API key comes from /xchg/hermes.env.
|