Skip to content

Hermes Agent

Hermes is a stable explicit-only target. Select it with --target hermes; it is not included in --target all because its project skills use the shared .agents/ root and cannot be safely auto-detected.

Hermes (by Nous Research) is a terminal-native autonomous agent that lives in a home directory (~/.hermes/) and talks to users over messaging platforms such as Telegram and Discord. Hermes natively reads two open standards that APM already emits:

  • the agentskills.io SKILL.md format for skills, and
  • the AGENTS.md context-file standard for instructions.

So the hermes target reuses APM’s existing skill and AGENTS.md output paths and adds one Hermes-specific writer for MCP servers (Hermes uses a YAML mcp_servers: block, distinct from the JSON mcpServers schema of other clients).

APM primitiveHermes surfaceLocation
skillsSkills system (agentskills.io).agents/skills/<name>/SKILL.md (project) or ~/.hermes/skills/<name>/SKILL.md (--global)
instructionsContext file (AGENTS.md)AGENTS.md at the project root
MCP serversmcp_servers: block~/.hermes/config.yaml (home-scoped for every explicit selection)

At project scope, skills land in .agents/skills/, which Hermes reads through its skills.external_dirs setting. At user scope (--global), skills land directly in the Hermes home.

Terminal window
# Project scope: skills -> .agents/skills/, MCP -> ~/.hermes/config.yaml
apm install --target hermes
# User scope: skills -> ~/.hermes/skills/, MCP -> ~/.hermes/config.yaml
apm install --target hermes --global

Run your normal apm compile flow when you also need AGENTS.md; Hermes shares that standard context-file output.

By default the user-scope root is ~/.hermes. Set HERMES_HOME to point APM at a different Hermes home (useful for containers and multi-profile setups):

Terminal window
export HERMES_HOME="$HOME/.config/hermes"
apm install --target hermes --global

When HERMES_HOME lives under $HOME, APM keeps the deploy root home-relative; otherwise it uses the absolute path. The directory does not need to exist yet. Hermes homes share one user lockfile; a global install removes stale skills only under the selected HERMES_HOME, leaving skills deployed to other homes in place.

When hermes is selected explicitly, APM writes MCP servers into the home-scoped mcp_servers: block of $HERMES_HOME/config.yaml (default ~/.hermes/config.yaml), even when package skills use project scope:

Explicit selection does not require an existing Hermes home or a hermes binary on PATH; APM creates the configured home as needed. Runtime-presence signals are only relevant to automatic discovery, and Hermes is never auto-discovered.

mcp_servers:
my-server:
command: npx
args: ["-y", "my-mcp-package"]
env:
MY_TOKEN: "..."
cwd: /srv/my-server # when declared
timeout: 120 # extra keys pass through
enabled: true

Remote servers are written with url and optional headers instead of command/args; an SSE server also gets transport: sse (Streamable HTTP needs no transport key). Other keys from the Hermes server reference, such as timeout, connect_timeout or auth, pass through from extra: (or unknown top-level keys) in the apm.yml declaration. Entries an earlier APM release wrote without these keys are rewritten on the next apm install; a same-name entry you wrote yourself is preserved and reported as a conflict. APM merges into the existing mcp_servers: block and preserves every other top-level key in config.yaml (model provider, platform settings, and so on). All writes go through APM’s YAML helper, so existing comments outside the managed block are the only thing not preserved by a safe-dump rewrite.

  • Skills deploy as SKILL.md content, unchanged from the agentskills.io format APM already produces.
  • Instructions compile to AGENTS.md, which Hermes reads as a first-class context file.
  • Agents, prompts, hooks, and commands are not part of the Hermes surface and are skipped for this target.
  • MCP servers not written: pass --target hermes; Hermes is never selected by automatic runtime discovery.
  • Skills not picked up at project scope: ensure Hermes’ skills.external_dirs includes .agents/skills/.
  • Wrong home directory: set HERMES_HOME to the Hermes home you want to target.

See also IDE and Tool Integration.

Copyright (c) Microsoft Corporation. General documentation: CC-BY-4.0. Software, code examples and OpenAPM: Apache-2.0. See scope and exclusions.