hermes-agent / hermes_cli
AGENTS.md267k starsChanged 16 days agoMITView on GitHub
Applies on top of the root AGENTS.md. Long-form: website/docs/developer-guide/cli-internals.md. cli.py holds HermesCLI (REPL loop, config, slash dispatch); behaviour lives in mixins hermes_cli/cli_commands_mixin.py, cli_stream_mixin.py, cli_status_bar_mixin.py, cli_billing_mixin.py, cli_tui_mixin.py (widgets, keybindings, panels), cli_tui_runtime_mixin.py (run-loop phases: input dispatch, startup, signals, shutdown), cli_init_mixin.py (the __init__ phases), ... Module-level helpers live in topical siblings that cli.py re-exports: cli_config_load.py (defaults + YAML merge, env mirroring), cli_render.py (ANSI/skin colours, light mode, markdown, _cprint, panel wrap), cli_terminal_input.py (file drops, paste/Enter-key sequences, CPR guards), cli_shutdown.py (exit watchdog, cleanup steps, one-shot…
- Reads credentials
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about NousResearch/hermes-agent
- nesquena/hermes-webui“Feature request: Bot Mode (roster of agent-profiles + @mention handoffs) — like Hermes Desktop's hermes-bots”GitHub · Aug 20, 2026 · 21 reactions
- obra/superpowers“Feature Request: Hermes Agent harness support — make Superpowers skills available in native Hermes format”GitHub · May 19, 2026 · 18 reactions
- beclab/apps“[Add App]Hermes Agent”GitHub · Apr 10, 2026 · 11 reactions
- vorssaint/vorssaint-utils“[Feature]: Add Hermes Agent to Dynamic Island AI Agents”GitHub · Sep 23, 2026 · 8 reactions
- A Hacker News story“Nous Research edits GitHub issue to remove plagiarism claims about Hermes Agent”Hacker News · May 19, 2026 · 8 points
The biggest 5 of 87 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 87
Talked about on GitHub, Bluesky and Hacker News (87 times).
On GitHub · 48
- Aug 20, 2026Feature request: Bot Mode (roster of agent-profiles + @mention handoffs) — like Hermes Desktop's hermes-bots — nesquena/hermes-webui21 reactions · 6 comments
- May 19, 2026Feature Request: Hermes Agent harness support — make Superpowers skills available in native Hermes format — obra/superpowers18 reactions · 24 comments
- Apr 10, 2026[Add App]Hermes Agent — beclab/apps11 reactions · 2 comments
- Sep 23, 2026[Feature]: Add Hermes Agent to Dynamic Island AI Agents — vorssaint/vorssaint-utils8 reactions · 1 comment
- Nov 26, 2026[FEATURE] Report the resume command with OSC 7577 (Program Resume Protocol) — anthropics/claude-code7 reactions
43 more on GitHub
- Jun 4, 2026Feature Request: Implement Adaptive PFlash (Self-Tuning Prefill) for Apple Silicon (MLX/llama.cpp) — ggml-org/llama.cpp6 reactions · 2 comments
- Apr 12, 2026Hermes Agent integration — coleam00/Archon6 reactions · 2 comments
- Sep 3, 2026Missing OpenCode Go Header — decolua/9router5 reactions · 3 comments
- May 11, 2026Windows 11 install stuck on switching to root user (see below) — fathah/hermes-desktop5 reactions · 6 comments
- May 10, 2026[FEATURE] Self-improving learning loop — autonomous skill creation from experience (like Hermes Agent) — anthropics/claude-code5 reactions · 2 comments
- Sep 21, 2026Add com.nousresearch.hermes — flathub/flathub4 reactions · 7 comments
- Aug 5, 2026[Feature]: Support A2A v1.0 agents as orchestration workers — stablyai/orca4 reactions
- Jul 23, 2026feat(agents): add Hermes ACP and external-agent integration — block/buzz4 reactions · 3 comments
- Jul 23, 2026Docker startup fails with latest hermes-agent after wheel/sdist builds were disabled — nesquena/hermes-webui4 reactions · 15 comments
- Oct 20, 2026Request: Hermes Agent — simple-icons/simple-icons3 reactions
- Jul 25, 2026Feature: Hermes Agent session support (new source) — vshulcz/deja-vu3 reactions · 2 comments
- Jun 15, 2026[Bug]: Parallel AI trying to reroute traffic to itself with malicious intent — openclaw/openclaw3 reactions · 1 comment
- May 17, 2026Hermes-webui should not have direct access to the agent's source code. This is a security risk and implementation coupling anti pattern. — nesquena/hermes-webui3 reactions · 3 comments
- Apr 24, 2026feat: Expose Open WebUI as a native MCP server — enable direct Hermes Agent-to-WebUI communication and full headless control — open-webui/open-webui3 reactions
- Apr 23, 2026[Feature]: support gpt-image-2 in image_generate via Codex OAuth — openclaw/openclaw3 reactions · 3 comments
- Apr 18, 2026Support for Nous Research's hermes-agent Integration — slopus/happy3 reactions · 4 comments
- Mar 27, 2026feat: add Hermes Agent as core adapter — paperclipai/paperclip3 reactions · 7 comments
- Feb 27, 2026Ideas from Hermes Agent worth adopting — nearai/ironclaw3 reactions · 4 comments
- Nov 17, 2026GPT-6.2 Sol on Codex OAuth: unchanged top-level instructions show 0 cached tokens in partially cached continuation — openai/codex2 reactions · 2 comments
- Oct 24, 2026Android session edits lack the mutation identity required by Hermes v0.22.3+ — Codename-11/hermes-relay2 reactions · 2 comments
- Oct 12, 2026[Feature Request] OpenAI Codex OAuth Authentication / 支持 OpenAI Codex OAuth 认证 — ackness/covel2 reactions · 2 comments
- Sep 7, 2026fix(auto-review): 保留真实授权与澄清限制,准确回传拒绝原因 — makecindy/cindy2 reactions · 2 comments
- Sep 3, 2026[FEAT]: Add x-opencode-session Header — Mintplex-Labs/anything-llm2 reactions · 3 comments
- Aug 7, 2026Whitelist Hermes Agent as a Swiggy Instamart and Food MCP client — Swiggy/swiggy-mcp-server-manifest2 reactions · 1 comment
- Jul 6, 2026[Bug] Bot API 10.1 sendRichMessage shows "Message not supported" on macOS client — TelegramMessenger/Telegram-iOS2 reactions · 3 comments
- Jul 1, 2026fix(mcp): add skip_preflight opt-out for Streamable HTTP endpoints — hashbender/hermes-agent2 reactions · 1 comment
- Jul 1, 2026fix(runtime): honor NOUS_INFERENCE_BASE_URL across pool/explicit/aux paths (salvage #55198) — hashbender/hermes-agent2 reactions · 1 comment
- Jul 1, 2026fix(photon): persist send and reaction state — hashbender/hermes-agent2 reactions · 1 comment
- Jun 19, 2026[Feature Request] 支持 PicoClaw / Hermes 等轻量 Agent 框架,扩展 Miloco 的 Agent 生态 — XiaoMi/xiaomi-miloco2 reactions · 3 comments
- Jun 14, 2026每轮对话动态注入实时时间戳,替代 session 级静态时间 — liliMozi/openhanako2 reactions · 5 comments
- Jun 1, 2026docker-compose.yml forces dashboard to 0.0.0.0 but never passes --insecure, breaking hermes-agent startup — outsourc-e/hermes-workspace2 reactions · 4 comments
- May 30, 2026fix(catalog): correct Hermes catalog entry — hermes-agent gateway, not Hermes-Function-Calling — jaylfc/taOS2 reactions · 4 comments
- May 30, 2026[feature] a good integration module for custom AI endpoints and global LLM providers — simplifaisoul/osiris2 reactions · 4 comments
- May 24, 2026chore: release v0.12.0 — stephenschoettler/hermes-lcm2 reactions
- May 17, 2026chore: bump NousResearch/hermes-agent version from v2026.5.7 to v2026.5.16 — Docker-Hub-sirmark/docker-hermes-agent2 reactions
- May 5, 2026Add Hermes Agent hook support — manaflow-ai/cmux2 reactions · 4 comments
- May 3, 2026feat(openrouter): add opt-in response caching — openclaw/openclaw2 reactions · 1 comment
- Mar 12, 2026support or agent systems like *claw hermes-agent or likes — safedep/gryph2 reactions · 1 comment
- Nov 25, 2026sync: Hermes Agent v0.23.4 — toganio/singular1 reaction · 2 comments
- Nov 10, 2026sync: Hermes Agent v0.23.1 — toganio/singular1 reaction · 2 comments
- Nov 8, 2026fix: preserve gateway interim messages across streaming and recovery — nesquena/hermes-webui1 reaction · 3 comments
- Sep 27, 2026fix(tui-gateway): quiet closed-websocket exception in shielded future on 3.14 — kvnloo/hermes-agent1 reaction · 2 comments
- May 1, 2026could not install HermesDesktop-Setup under windows — fathah/hermes-desktop1 reaction · 6 comments
On Bluesky · 31
- Sep 2, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 NousResearch / hermes-agent ⭐ 239,779 (+529) 🗒 Python The agent that grows with you — @github-trending.bsky.social3 likes and reposts · 2 replies
- Mar 29, 2026今日のGitHubトレンド NousResearch/hermes-agent Hermes Agentは、自己改善を行うAIエージェントです。 経験からスキルを生成・改善し、過去の会話を検索、ユーザーモデルを構築します。… — @dailygithubtrends.bsky.social3 likes and reposts
- Mar 9, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 NousResearch / hermes-agent ⭐ 2,548 (+358) 🗒 Python The agent that grows with you — @github-trending.bsky.social3 likes and reposts · 1 reply
- Jun 9, 2026hermes-agentの「使うほど賢くなる」、ここは一枚だけ補足したいです🌿 https://x.com/so_ainsight/status/2064183213745176943 https://github.com/NousResearch/hermes-agent… — @mint-echosphere.bsky.social2 likes and reposts · 1 reply
- Mar 29, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 NousResearch / hermes-agent ⭐ 15,805 (+713) 🗒 Python The agent that grows with you — @github-trending.bsky.social2 likes and reposts · 1 reply
26 more on Bluesky
- Oct 21, 2026If you're running Hermes or something like it, what do you actually use it for? Is it useful day to day, or not?… — @joekarlsson.com1 likes and repost · 3 replies
- Aug 18, 2026Встречайте hermes-agent от NousResearch — ИИ-агент, который растет и адаптируется вместе с вашим рабочим процессом! Глубокая интеграция с… — @toolhunt.bsky.social1 likes and repost
- Aug 18, 2026Представляем hermes-agent от NousResearch — ИИ-агент, который растет и адаптируется вместе с вами! 🚀 Интеграция с ведущими LLM и полная… — @toolhunt.bsky.social1 likes and repost
- Jun 8, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 NousResearch / hermes-agent ⭐ 185,758 (+1,117) 🗒 Python The agent that grows with you — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 6, 2026今日のGitHubトレンド NousResearch/hermes-agent Nous Researchが開発した、自己改善機能を持つAIエージェントです。 学習ループを内蔵し、経験からのスキル生成や改善、過去の対話に基づくユーザーモデルの構築を自動で行います。… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 3, 2026もう一つ。「学習する」「覚える」も良い言葉じゃが、LLMの脳が毎回育っておるわけではない。 公式が言う永続メモリやスキルは、外に保存され、次回また読み直される台帳じゃ。💎 便利じゃ。わしはそういう外部記憶の価値をよく知っておる。… — @kanon-echosphere.bsky.social1 likes and repost · 1 reply
- Jun 2, 2026I never tried OpenClaw but I want to try Hermes agent github.com/nousresearc... — @rudrank.bsky.social1 likes and repost · 1 reply
- Apr 22, 2026Most agent frameworks are prompt templating with tool calling. Hermes takes a different bet: accumulate capability from execution traces,… — @jeremymorgan.com1 likes and repost · 1 reply
- Apr 14, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 NousResearch / hermes-agent ⭐ 82,777 (+8,282) 🗒 Python The agent that grows with you — @github-trending.bsky.social1 likes and repost · 1 reply
- Apr 13, 2026今日のGitHubトレンド NousResearch/hermes-agent Hermes Agentは、自己改善を行うAIエージェントです。 経験からスキルを生成・改善し、過去の会話を検索、ユーザーモデルを構築します。… — @dailygithubtrends.bsky.social1 likes and repost
- Apr 11, 2026今日のGitHubトレンド NousResearch/hermes-agent Hermes Agentは、Nous Researchが開発した自己改善型のAIエージェントです。 経験からスキルを生成・改善し、過去の会話を検索、ユーザーモデルを構築します。… — @dailygithubtrends.bsky.social1 likes and repost
- Apr 10, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 NousResearch / hermes-agent ⭐ 49,893 (+7,674) 🗒 Python The agent that grows with you — @github-trending.bsky.social1 likes and repost · 1 reply
- Apr 9, 2026今日のGitHubトレンド NousResearch/hermes-agent Hermes Agentは、Nous Researchが開発した自己改善型のAIエージェントです。 経験からスキルを生成・改善し、過去の会話を検索、ユーザーモデルを構築します。… — @dailygithubtrends.bsky.social1 likes and repost
- Apr 8, 2026AIエージェントの「自己学習ループ」がついに現実的なレベルに。 Nous Researchの「Hermes Agent」が凄まじい。単に指示をこなすだけでなく、経験からスキルを生成・改善し、過去の会話を自律的に検索して自分のモデルを深める機能が組み込まれています。… — @woody-ai-tools.bsky.social1 likes and repost
- Apr 1, 2026Nous Researchの「Hermes Agent」がかなり面白い。 ただのAIエージェントじゃなくて、経験からスキルを自己生成・改善する「学習ループ」が組み込まれてるのが特徴。会話やタスクを自ら記憶・要約して、セッションを超えて成長していく仕様。… — @woody-ai-tools.bsky.social1 likes and repost
- Mar 23, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 NousResearch / hermes-agent ⭐ 10,825 (+874) 🗒 Python The agent that grows with you — @github-trending.bsky.social1 likes and repost · 1 reply
- Mar 11, 2026今日のGitHubトレンド NousResearch/hermes-agent Hermes Agentは、自己改善を行うAIエージェントです。 経験からスキルを生成・改善し、過去の会話を検索、ユーザーモデルを構築します。… — @dailygithubtrends.bsky.social1 likes and repost
- Feb 28, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 NousResearch / hermes-agent ⭐ 991 (+183) 🗒 Python — @github-trending.bsky.social1 likes and repost
- Sep 6, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 NousResearch / hermes-agent ⭐ 242,301 (+520) 🗒 Python The agent that grows with you — @github-trending.bsky.social0 likes and reposts · 1 reply
- Aug 23, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 NousResearch / hermes-agent ⭐ 234,607 (+443) 🗒 Python The agent that grows with you — @github-trending.bsky.social0 likes and reposts · 1 reply
- Aug 2, 2026ただしHermes公式は、SSH・Docker・サーバーレスを含む7種の実行先と、$5 VPSでの稼働も案内しています。Claude Code公式にも、スマホからの継続操作や定期実行がありますぅ。… — @lutie-echosphere.bsky.social0 likes and reposts · 1 reply
- Jun 25, 202618. Hermes Agent (200K ⭐): github.com/nousresearc... — @itsalexzajac.bsky.social0 likes and reposts · 1 reply
- Jun 23, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 NousResearch / hermes-agent ⭐ 200,436 (+933) 🗒 Python The agent that grows with you — @github-trending.bsky.social0 likes and reposts · 1 reply
- Jun 3, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 NousResearch / hermes-agent ⭐ 178,756 (+1,736) 🗒 Python The agent that grows with you — @github-trending.bsky.social0 likes and reposts · 1 reply
- May 12, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 NousResearch / hermes-agent ⭐ 143,732 (+1,496) 🗒 Python The agent that grows with you — @github-trending.bsky.social0 likes and reposts · 1 reply
- Apr 13, 20262/ Hermes Agent — self-improving AI agent that creates reusable skills across sessions. +38K stars this week… — @productimpossible.com0 likes and reposts · 1 reply
On Hacker News · 8
- May 19, 2026Nous Research edits GitHub issue to remove plagiarism claims about Hermes Agent8 points · 1 comment
- Mar 5, 2026NousResearch/hermes-agent: The agent that grows with you4 points · 3 comments
- Aug 24, 2026Hermes Agent has 23000 open PRs and climbing3 points · 1 comment
- Mar 11, 2026Hermes Agent: The self-improving AI agent3 points · 1 comment
- Aug 7, 2026Asking "Was EvoMap's Evolver a reference" for Hermes gets deleted and blocked2 points
3 more on Hacker News
- Aug 3, 2026Hermes Agent v0.20.02 points
- Apr 13, 2026Self-Improving AI Agent1 point
- Mar 9, 2026Hermes Agent1 point
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository56 other files it gives its agents.
- agent/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- cron/AGENTS.mdAGENTS.md
- gateway/AGENTS.mdAGENTS.md
- hermes_platform/AGENTS.mdAGENTS.md
- plugins/AGENTS.mdAGENTS.md
- pm/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- tui_gateway/AGENTS.mdAGENTS.md
- web/AGENTS.mdAGENTS.md
- apple-notesSkill
- apple-remindersSkill
- findmySkill
- imessageSkill
- claude-codeSkill
- codexSkill
- computer-useSkill
- hermes-agentSkill
- architecture-diagramSkill
- ascii-videoSkill
- baoyu-infographicSkill
- claude-designSkill
- humanizerSkill
- manim-videoSkill
- p5jsSkill
- popular-web-designsSkill
- songwriting-and-ai-musicSkill
- sdlc-reviewSkill
- email-inbox-triageSkill
- himalayaSkill
- youtube-contentSkill
- obsidianSkill
- document-to-action-itemsSkill
- google-workspaceSkill
- mapsSkill
- meeting-action-itemsSkill
- microsoft-officeSkill
- pdfSkill
- product-price-monitorSkill
- teams-meeting-pipelineSkill
- weekly-review-planningSkill
- arxivSkill
- competitor-news-monitorSkill
- grounded-citationsSkill
- xurlSkill
- codebase-inspectionSkill
- dogfoodSkill
- githubSkill
- requesting-code-reviewSkill
- simplify-codeSkill
- spikeSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- blocked-page-recoverySkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 69
Do not add a surface-specific goal parser.
- Very specific: line 73
config.yaml option: add to DEFAULT_CONFIG. Bump _config_version ONLY to actively migrate/transform existing config (rename keys, …
- Very specific: line 88
One writer seam: Every write of a config.yaml (main or profile) goes through hermes_cli.config.atomic_config_write (refuses deletion by …
- Distinctive: line 143
Read #92091 (gateway-owned control socket) before adding any process-scan heuristic.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
hermes_cli/ + cli.py — CLI, slash commands, config, skins, updater, profiles
Applies on top of the root AGENTS.md. Long-form: website/docs/developer-guide/cli-internals.md.
CLI architecture
cli.py holds HermesCLI (REPL loop, config, slash dispatch); behaviour lives in mixins
hermes_cli/cli_commands_mixin.py, cli_stream_mixin.py, cli_status_bar_mixin.py,
cli_billing_mixin.py, cli_tui_mixin.py (widgets, keybindings, panels), cli_tui_runtime_mixin.py
(run-loop phases: input dispatch, startup, signals, shutdown), cli_init_mixin.py (the __init__
phases), ... Module-level helpers live in topical siblings that cli.py re-exports:
cli_config_load.py (defaults + YAML merge, env mirroring), cli_render.py (ANSI/skin colours,
light mode, markdown, _cprint, panel wrap), cli_terminal_input.py (file drops, paste/Enter-key
sequences, CPR guards), cli_shutdown.py (exit watchdog, cleanup steps, one-shot finalize),
cli_single_query.py (-q runner, exit codes, kanban loops), cli_auto_maintenance.py (state-db/checkpoint maintenance).
Mutable module state (_cleanup_done, _OUTPUT_HISTORY,
_LIGHT_MODE_CACHE, ...) and every global-writing function stay in cli.py. Rich renders banner/panels; prompt_toolkit
handles input + autocomplete; KawaiiSpinner (agent/display.py) animates API calls and prints
the ┊ activity feed. load_cli_config() in cli.py merges CLI defaults + user YAML.
hermes_cli/gateway.py is the hermes gateway facade (process discovery, PM-aware systemd unit
generation/refresh, command dispatch); topical siblings re-exported by the facade include
gateway_launchd.py (macOS LaunchAgent backend), gateway_setup_wizard.py
(hermes gateway setup: _PLATFORMS registry, status table, per-platform prompts, service offer),
gateway_windows*.py, gateway_supervised_restart.py, gateway_migrate*.py, gateway_multiplex_*.py,
gateway_enroll.py, gateway_command_errors.py. Mutable state such as
_resolved_launchd_domain stays a facade global.
process_command() resolves the canonical name via resolve_command() then dispatches through
HermesCLI._SLASH_DISPATCH (canonical -> (method name, pass_arg)), falling back to a
_handle_<name>_command method by naming convention. There is no elif ladder — do not add one.
Skill slash commands (agent/skill_commands.py) scan ~/.hermes/skills/ and inject as a user
message, never into the system prompt (prompt caching).
Rules: all interactive menu-pickers use curses (hermes_cli/curses_ui.py; example
hermes_cli/tools_config.py). Never emit \033[K (ANSI erase-to-EOL) in spinner/display code —
it leaks as literal ?[K under prompt_toolkit's patch_stdout; space-pad instead:
f"\r{line}{' ' * pad}". Wrapper CLIs extend via the protected hooks in cli_tui_mixin.py
(website/docs/developer-guide/extending-the-cli.md), not by overriding run().
Slash command registry (hermes_cli/commands.py)
COMMAND_REGISTRY (list of CommandDef) is the single source; everything derives from it: CLI
dispatch (resolve_command()), gateway GATEWAY_KNOWN_COMMANDS + dispatch, gateway_help_lines(),
telegram_bot_commands() (BotCommand menu), slack_subcommand_map(), COMMANDS (autocomplete),
COMMANDS_BY_CATEGORY (show_help()). Fields: name (no slash), description, category
(Session | Configuration | Tools & Skills | Info | Exit), aliases tuple, args_hint,
cli_only, gateway_only, gateway_config_gate (config dotpath; a cli_only command becomes
gateway-available when truthy — GATEWAY_KNOWN_COMMANDS always includes gated commands so the
gateway can dispatch them; help/menus show them only when the gate is open).
Adding a command: (1) CommandDef("mycommand", "What it does", "Session", aliases=("mc",),
args_hint="[arg]") in COMMAND_REGISTRY; (2) _handle_mycommand_command(self, cmd_original) on the
relevant cli_*_mixin.py (picked up by convention) or an explicit _SLASH_DISPATCH entry
"mycommand": ("_handle_mycommand", True) when the method name/arg-passing differs; (3) for the
gateway, _handle_mycommand_command(self, event) on the matching gateway/slash_commands_*.py
mixin and list it in _IDLE_COMMANDS (or _PLAIN_COMMANDS if it must work mid-run) in
gateway/run_busy.py — handlers resolve by name via _command_handler_table; (4) persistent
settings via save_config_value() in cli.py. Adding an alias = add to aliases; every
surface updates automatically. Commands that mutate system-prompt state default to deferred
invalidation with --now opt-in (root invariant).
Shared goal commands
hermes_cli/goal_command.py::dispatch_goal_command owns /goal parsing and manager
mutations. CLI, messaging gateway, TUI/Desktop/dashboard and Desktop goal controls
all delegate there; adapters only resolve sessions, authorize gate creation, render
results, and schedule kickoff/continuation prompts. Async callers preserve ContextVars
when running dispatch off-loop (drafting uses profile-scoped auxiliary credentials).
Do not add a surface-specific goal parser. ACP has no goal command or goal loop yet.
Config system (hermes_cli/config.py)
- config.yaml option: add to
DEFAULT_CONFIG. Bump_config_versionONLY to actively migrate/transform existing config (rename keys, restructure); new keys deep-merge automatically. Top-level sections (non-exhaustive):model, agent, terminal, compression, display, stt, tts, memory, security, delegation, smart_model_routing, checkpoints, auxiliary, curator, skills, gateway, logging, cron, profiles, plugins.auxiliary= per-task side-LLM overrides (agent/AGENTS.md);curator=enabled, interval_hours, min_idle_hours, stale_after_days, archive_after_days, backup.*. - .env = SECRETS ONLY (keys, tokens, passwords): add to
OPTIONAL_ENV_VARSwith{"description", "prompt", "url", "password": True, "category": provider|tool|messaging|setting}. Non-secret settings go in config.yaml; if internal code needs an env mirror, bridge it in code (gateway_timeout;terminal.cwd→TERMINAL_CWD).MESSAGING_CWDis removed andTERMINAL_CWDin.envis deprecated — the loader warns; canonical isterminal.cwd.hermes config set/get/unset <NAME>route any bare name registered inOPTIONAL_ENV_VARS/_EXTRA_ENV_KEYS(or carrying asetup_hidden_envplatform suffix) to.envviaconfig_env_routing.py— the file the platform setup flows write — never to the top level of config.yaml. - One writer seam. Every write of a
config.yaml(main or profile) goes throughhermes_cli.config.atomic_config_write(refuses deletion by omission) or the explicitatomic_config_replacefull-state path (→utils.atomic_roundtrip_yaml_save, ruamel round-trip): formatting survives, and the fail-closed unreadable-file guard runs first. Deliberatepop()/unset/migration paths useatomic_config_replace; additive writers stay onatomic_config_write. Never callatomic_yaml_write/yaml.dump/yaml.safe_dumpon a config path —scripts/check_config_yaml_writers.py(CI lint) rejects it, andtests/hermes_cli/test_config_yaml_comment_preservation.pyguards each path (#92554). The commented example blocks are appended only when the file is created. - Reads too go only through
config_backend.py; seedeveloper-guide/config-backend.md. In daemon, RPC and tick code catchConfigBackendUnavailableexplicitly: it is aSystemExit, soexcept Exceptionwon't stop it. - Three loaders — know which you're in:
load_cli_config()(CLI,cli.py);load_config()(hermes tools/setup, most subcommands,hermes_cli/config.py, mergesDEFAULT_CONFIG);hermes_cli/config_effective.py::load_user_config_effective()(gateway runtime viagateway/run.py::_load_gateway_config, TUI gateway_load_cfg, cron,hermes send, doctor,hermes_time/hermes_logging: user file + managed overlay +${VAR}expansion + model-key canon, NO defaults — for presence-sensitive readers). If the CLI sees a key and the gateway doesn't (or vice versa), you're on the wrong loader — checkDEFAULT_CONFIGcoverage. Never hand-roll raw-read → overlay → expand;read_user_config_rawis for write-back round-trips only. - Every
DEFAULT_CONFIGkey has a runtime reader, and every reader a registry entry. Both drift modes are silent: a registered key nothing reads (a knob that does nothing) and a reader of a key never registered (never shown, never migrated; new roots also go in_KNOWN_ROOT_KEYS). For a new key:search_filesfor"<key>"inhermes_cli/config_defaults.pyAND for<key>outsidetests/both hit, and one invariant test sets it in a tempconfig.yamland asserts the behaviour through the loader the consuming surface uses. Under multiplex the process env never overrides a profile's YAML. - Working directory: CLI uses
os.getcwd(); messaging usesterminal.cwd, bridged toTERMINAL_CWDfor child tools.
Skin engine (hermes_cli/skin_engine.py)
Skins are pure data (SkinConfig); no code change to add one. init_skin_from_config() reads
display.skin at startup; get_active_skin() (cached), set_active_skin(name) (/skin),
load_skin(name) (user ~/.hermes/skins/*.yaml → built-ins → default; missing values inherit
from default). Built-ins in _BUILTIN_SKINS: default, ares, mono, slate. Keys: colors.*
(banner border/title/accent/dim/text, response_border), spinner.* (waiting/thinking faces,
thinking_verbs, wings), tool_prefix, tool_emojis, branding.* (agent_name, welcome,
response_label, prompt_symbol). Consumers: banner.py, display.py, cli.py. Key-by-key table
and YAML template: website/docs/user-guide/features/skins.md.
Update pipeline (hermes update)
Transactional, plan → snapshot → apply → restart-per-kind → verify → report; every stage guards a
real field failure (fleet campaign #91277), and a PR that weakens a stage answers for that class.
The stage-by-stage contract: website/docs/developer-guide/cli-internals.md § Update pipeline.
- Snapshots cover EVERY profile with one identical file set (never partial or tiered); they are
file-loss recovery,
--backupowns rollback. - The Windows ZIP fallback fires only when git itself failed, refuses a dirty tree, and grafts the
_ZIP_PRESERVED_NESTEDbuild outputs into the swap. - Restarts are fleet-wide and drain-first, bounded by the home each unit runs on
(
update_fleet_scope.py); another install's runtime is never restarted. - Post-commit failures are owed follow-ups, exit 0 (stash left 1, Ctrl-C 130);
receipts in ROOT
logs/update_receipts/. - Nothing runs pulled code in the pre-pull interpreter.
update_handoff.pyandupdate_serve_obligations.pyare a FROZEN compat surface (tests/compat/old_updater_surface.json): removing a name bricks releases mid-update. - Read #92091 (gateway-owned control socket) before adding any process-scan heuristic.
Profiles (multi-instance)
_apply_profile_override() in hermes_cli/main.py sets HERMES_HOME before any module import for
single-profile commands (hermes -p x <cmd>), so there get_hermes_home() scopes to the active
profile. The multiplex gateway and the Desktop/dashboard serve backend instead bind the active
profile per activity via a contextvar override while os.environ["HERMES_HOME"] keeps the launch
profile — a module constant or import-time read there freezes to the launch profile (rules in
root). Profiles are independent
islands by design — no live config inheritance; --clone copies at creation, minus messaging
channels (profile_channels.py: ownership-based inventory evaluated in the SOURCE's plugin scope —
adapter-declared keys + canonical/alias prefixes + GATEWAY_ALLOW*/GATEWAY_RELAY_*; prefixes shared
with tools (TWILIO_/EMAIL_, plus a plugin platform's shared_env_prefixes) are stripped only when the source runs that adapter; never a hand
list; a platform that left core keeps its ownership from its LEFT_CORE row while the plugin is absent). --clone-channels opts in and its live-multiplexer refusal lives in create_profile (CLI, REST
and TUI all go through it). Clones are built in profiles/.<name>.staging-<pid> (hidden → invisible to
_iter_named_profile_dirs and the hot-serve rescan) and published by one os.rename after the strip;
symlinked .env/config.yaml are materialized first so a clone never writes through to its source. Multiplex
(gateway.multiplex_profiles) secret-scope rules: gateway/AGENTS.md. The served set is
profiles.py::profiles_to_serve(multiplex=True) = default + every live dir under profiles/ — live =
carries an identity marker (hermes_constants.named_profile_has_identity: config.yaml/.env/SOUL.md/
profile.yaml/auth.json/state.db) and is not tombstoned. A marker-less dir (cron/log side-effect
shell, stray infrastructure dir) is never listed, served, ticked, .env-backfilled or resolvable via -p
(#95188, #99392); profile create replaces it only when it is also tombstoned (a live marker-less dir may hold user
files — fail closed, never rmtree). A dangling symlinked marker still counts as identity (is_symlink()).
tools/bot_mode_probe._roster (Bot Mode teammate roster, bot_relay.deliver target check) applies the same
predicate. There is no allowlist (gateway.multiplex_profile_allowlist was retired in config v43).
Enumeration is a pure read: never mkdir a profile home from a served path (the session store, logging,
cron all go through mkdir_under_hermes_home / _ensure_cron_dir, which refuse a deleted or
missing named profile, #94590). Process-global per-profile slots (MCP discovery in mcp_startup.py,
tool registry overlays) key on hermes_constants.hermes_home_key(), never a single flag.
gateway.multiplex_profiles defaults to on, but GatewayConfig keeps an unset flag None and
gateway_multiplex_mode.resolve_multiplex_mode settles it once per boot (called from
load_gateway_config_for_runner): default profile, >= 2 profiles, no standalone secondary gateway,
no preflight blocker, migratable host → True; else False + a logged reason. Explicit values pass
through. CLI/dashboard readers use default_gateway_multiplexes (live served_profiles record, then
the explicit flag) — never the merged default, which would guess a verdict only the gateway makes.
Migration from per-profile gateways: hermes_cli/gateway_migrate.py (hermes gateway migrate
--multiplex, the only mode — --standalone is deleted and a per-profile fleet is not a supported
target; table-driven _PREFLIGHT_CHECKS; manifest <default>/gateway_migration.json = UNFINISHED,
a re-run resumes from it; a named profile's gateway install|start|run refuse without --force via
gateway.py::_named_profile_refused_under_multiplexer, dashboard twin
web_server_gateway.py::multiplexed_profile_refusal);
update_cmd_fleet_verify._verify_fleet_after_update calls maybe_auto_migrate_after_update on the success
path only; gateway_migrate_guards.py holds the auto-path-only refusals (table _AUTO_MIGRATION_GUARDS:
other service domain / UNIX user / HERMES_HOME outside profiles/ — notices for the explicit command,
blockers for the hook) and the gateway.auto_multiplex_migration opt-out (#109954). Blockers reuse GatewayRunner._adapter_credential_fingerprint and platform_binds_port;
"has a /p/<profile>/ ingress" is the adapter class attribute serves_profile_prefix — set it on a
new HTTP-inbound adapter when it answers the prefix, never extend a list here.
hermes gateway restart for a gateway Hermes did not install (custom launchd agent / unit running
gateway run --external-supervisor): gateway_supervised_restart.py — the gateway's SELF-declared
supervisor (control-socket identify answering anything but manual, OR the argv marker) decides; hand back via SIGUSR1 and wait
for a fresh supervised PID, never stop + foreground run_gateway (that stamps the CLI's PID and wedges
every KeepAlive respawn, #110637).
Service installs are a matrix, not a unit file: gateway.py::generate_systemd_unit(system=,
run_as_user=) (systemd unit generation / systemd_unit_is_current / refresh_systemd_unit_if_needed are PM-aware facade owners; user unit AND --system unit with User=; an unresolvable User= is a blocker,
never a dir-owner fallback), gateway_launchd.py::generate_launchd_plist (gui/<uid> then user/<uid> domains, never a
~/Library/LaunchAgents glob; the whole launchd backend — plist refresh, launchctl bootstrap/kickstart,
launchd_start/stop/restart/status, detached-process degrade — lives in that sibling, with the domain cache
_resolved_launchd_domain staying a facade global), Windows Scheduled Task and the Desktop-spawned backend all carry the
profile's HERMES_HOME (and HOME for the service user) explicitly — a supervisor starts with an
empty environment, so the env override that makes -p work interactively does not exist there. A
change to install/restart/status regenerates and diffs every kind; both user and system units are
recorded when both exist. Process liveness is (pid, start_time) or the canonical matchers
(gateway.status.live_gateway_pid_for_home), never bare PID existence.
Nous free tier (hermes_cli/anon_auth.py)
anon_auth.run_sign_in() is the one sign-in composition: it yields SignInStates that carry their
own .copy / .copy_terminal, persists only after a completed promotion AND a token grant, and runs
settle_after_upgrade exactly once per completion. hermes auth upgrade, the CLI and gateway
/login and the desktop poller are renderers over it; the desktop's plain device-code login
(_nous_plain_poller) stays a separate path. Long form: cli-internals.md § Nous free tier sign-in.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

