Feature: Assign a dedicated Hermes profile to each Hermes bot (instead of the global active_profile)
Problem
Orca starts every Hermes-type bot with the ACTIVE Hermes profile (~/.hermes/active_profile).
Per-bot separation is limited to the Orca home (bot SOUL.md, MEMORY.md, AGENTS.md) — the Hermes
identity itself (SOUL, skills, MCP servers, model routing, agent memory) is shared.
Real-world consequence: a bot can carry the right name of an existing Hermes agent while actually running a completely different one. In our fleet this happened twice: a bot named after our local agent "Elio" ran a different profile's model/tools/memory, silently drifted from the real Elio (and hit "Model Resolution failed" because that other profile's model config didn't match the bot chat), and had to be deleted. A bot that is identical for every bot except its name is not usable as a distinct crew member.
Proposed solution
- Optional per-bot override in the bot config:
hermesProfile: <name>(falls back toactive_profilewhen unset, so existing setups keep working). - Bot card / chat header should surface which Hermes profile the bot runs, to make identity visible.
- Chat model picker should offer models from the bot's own profile (providers of that profile).
Why this matters
Name-carrying bots that run a foreign agent break trust in "one agent, one identity" setups. With per-bot profiles, Hermes agents that already exist as profiles (with their own SOUL, skills, MCP servers) can be exposed via Orca without duplication.
Thanks for reporting. We’re looking into this
Second report from a Linux fleet running Orca 1.4.274 with multiple Hermes profiles (default + profiles/builder + profiles/wiki-bot). Confirmed the limitation — plus some source/runtime-level details that may make the implementation cheaper:
-
The hermes adapter launch is hardcoded. In
orcad-server.jsthe bot-session adapter is{agent:"hermes", command:"hermes", args:()=>["acp"], env:{}};HERMES_HOMEis resolved from the Orca runtime process env (falls back to~/.hermes). Live check across all three bot sessions: everyhermes acpchild hasHERMES_HOME=…/.hermes(default profile), and the spawn env contains no per-bot identifier (no bot-name/id var; cwd is/), so a PATH-shim wrapper can't branch per bot either. -
Existing overrides are host-global only. Settings → Agents → Hermes Command (
agentCmdOverrides.hermes) is parsed as program + prefixArgs and does work —hermes -p builderyieldshermes -p builder acp— andagentDefaultEnv.hermescan injectHERMES_HOME. But both apply to every hermes bot on the runtime, which pushes fleets into the "oneorca serveper profile" workaround (separate ports, separate OS users to avoid~/.orca/~/.config/orcacollisions, pairing each host). That's heavy for what should be a bot-level field. -
A per-session hook already exists internally. The session/workspace schema carries a
commandOverride(≤8192 chars) and the launch resolver merges it overagentCmdOverrides({...settings.agentCmdOverrides, [agent]: commandOverride}), but no UI/CLI exposes it. Wiring that same value onto the bot record (bot.json/ bot card) could be the minimal v1 mechanism — thenhermesProfile: <name>in the proposed design is essentially a friendly alias for a per-bot command/env override.
+1 on hermesProfile. Supporting the visibility ask too: showing which profile a bot actually runs in the bot card / chat header would have caught our misconfiguration immediately.
Side note: the skill-sharing half of this problem is already solvable on 1.4.274 via skillProjects + symlinked .agents/skills (realpath-following recursive scan, zero copy-sync). What this issue covers is the remaining, genuinely blocked half: separate memory, session history, model routing, and per-profile config per bot.
Hi all, thanks for looking into this 🙏
Same need here! We run our Hermes officers as Orca bots on a headless orca serve (Linux, 1.4.278), and each bot has to run on its own Hermes profile, used in place, never imported or copied.
Good news, the hook point is already there:
- A new chat resolves its home from the launch env (
directoryAccountBinding('HERMES_HOME', …)inhermes-acp-launch-spec.ts), and the session record pins it - So resumes, the shared tool gateway and the
orca-statusplugin all follow that home
What we did: at chat create (structured-session-create-support.ts, before resolveAccountHome) we set HERMES_HOME=<root>/profiles/<name> when the chat's folder has a .hermes-profile file. Works for bots (their home folder) and plain chats, no UI needed.
Two gaps we hit:
refreshProfileOrcaStatusContentonly refreshes the plugin in a profile that already enablesorca-status, so a fresh profile needshermes -p <name> plugins enable orca-statusonce- The bot's model picker shows the default profile's models (the catalog read has no workspace)
The clean version would be an optional hermesProfile on the bot record, falling back to active_profile, applied at the same point.
Happy to open a PR for it if this direction works for you!
Thanks 🙏
Confirming from a macOS fleet (Orca 1.4.284) with multiple Hermes profiles (elara, klaus, aria, …). Strongly in favor of the hermesProfile: <name> override with fallback to active_profile.
Measured facts (all current on 1.4.284):
- Bots share one launch path: every Hermes bot session starts via the same provider command, roughly
~/.local/bin/hermes acp— andhermes acpitself takes no profile flag (hermes acp --helpoffers none). - Profile comes from the global active profile: every running
hermes acpchild carriesHERMES_HOME=…/.hermes/profiles/<active>— including sessions that serve bots named for other existing Hermes agents. Per-bot separation today is only the Orca home (SOUL.md / MEMORY.md / AGENTS.md), the Hermes identity is shared. - Launch env has no bot identifier: aside from a generic
ORCA_AGENT_SESSION_SPAWN_TOKENthere is nothing in the child env that a wrapper script could map to a bot name. So a shell-level workaround (wrapper that setsHERMES_HOMEper bot) cannot work reliably — the per-bot binding has to be made by Orca at chat creation, as described above.
Useful confirmation of this issue's direction: since a new chat resolves its Hermes home from the launch env (and the session record pins it), setting HERMES_HOME per bot chat at launch should flow through to resumes, the shared tool gateway and the orca-status plugin automatically — no profile copy needed; existing profiles could be referenced in place.
One more macOS data point, plus a detail that may make this cheap to implement.
Environment: macOS, Orca 1.4.282, Hermes Agent 0.23.6 (local git install), 8 Hermes profiles registered (default, rd-lead, legal, chief, hr, accountant, …). Two of them are meant to be two Orca bots (a team lead and a reviewer); today both would silently run whichever profile active_profile points at.
Measured on this host: the bot's launch line is literally
orca-provider-exec … -- /Users/looper/.local/bin/hermes acp
with no profile argument and no per-bot environment, and the bot's config file carries only agent (no room for a profile today). So the bot identity (name, SOUL.md, MEMORY.md in the Orca home) and the Hermes identity (profile SOUL, skills, MCP, memory, model routing) can diverge exactly as described above.
Why the fix should be small: Hermes pre-parses --profile/-p from sys.argv before its imports (hermes_cli/main.py, "cache HERMES_HOME at import time"), so the flag works on the acp subcommand path even though hermes acp --help does not list it. Verified here:
$ hermes -p rd-lead acp --version
0.23.6
So a hermesProfile: <name> bot field only needs to append -p <name> to the existing hermes acp argv (or set HERMES_HOME to the profile home); no adapter changes are required. Fallback to active_profile when unset keeps current setups working, as proposed above.
Related: #53042 asks for the same binding as part of a bot-scoped launch policy; its comment thread also notes --extra-agent-args is refused for Hermes automations today, so the config field is the path that stays usable for both chats and automation runs.
— asked by 哥哥 via 🧭 研发组长