hermes-agent / tools
AGENTS.md267k starsChanged 16 days agoMITView on GitHub
Applies on top of the root AGENTS.md: settle the Footprint Ladder before adding anything here. Most capabilities should NOT be core tools. Long-form: website/docs/developer-guide/adding-tools.md, tools-runtime.md. tools/registry.py has no deps and is imported by every tool file; each tools/*.py calls registry.register() at import time; model_tools.py imports the registry and triggers discovery (discover_builtin_tools()), then run_agent.py, cli.py, batch_runner.py, environments/ consume it. Any tools/*.py with a top-level registry.register() is imported automatically — no manual import list. A tool that is a whole package (tools/connectors/)…
- Reads credentials
Trending
Less talk lately.about the whole repository
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_cli/AGENTS.mdAGENTS.md
- hermes_platform/AGENTS.mdAGENTS.md
- plugins/AGENTS.mdAGENTS.md
- pm/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- tests/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
3 rules. About 0 are common, 2 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 117
Put new embed-cost rules there, never a second counter in a tool.
- Very specific: line 203
The toolset is the surface gate: Keep such tools off _HERMES_CORE_TOOLS and in a named toolset (desktop_ui, project).
- Distinctive: line 213
Test: if the capability still makes sense with the client on another machine, it is session-scoped.
≈ “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
tools/ + toolsets.py + model_tools.py — model tools
Applies on top of the root AGENTS.md: settle the Footprint Ladder before adding anything here.
Most capabilities should NOT be core tools. Long-form: website/docs/developer-guide/adding-tools.md,
tools-runtime.md.
Registry and discovery
tools/registry.py has no deps and is imported by every tool file; each tools/*.py calls
registry.register() at import time; model_tools.py imports the registry and triggers discovery
(discover_builtin_tools()), then run_agent.py, cli.py, batch_runner.py, environments/
consume it. Any tools/*.py with a top-level registry.register() is imported automatically — no
manual import list. A tool that is a whole package (tools/connectors/) registers from
tools/<pkg>/tool.py, the only file discovery scans inside a package; every sibling in the package
is a library by construction, and the package needs an __init__.py or discovery skips it with a
warning (setuptools would drop it from the wheel). The registry handles schema collection, dispatch (handle_function_call()),
availability (check_fn, TTL-cached process-wide), and error wrapping. All handlers return a JSON
string, except a tool that hands the model pixels: it may return the multimodal envelope
{"_multimodal": True, "content": [text, image_url…], "text_summary": str} (registry._normalize_handler_result
accepts exactly that shape). Its image path goes through vision_tools._native_tool_result_images — never a
private vision check.
Adding a core tool (2 files) — only when the user is explicitly contributing a core tool
For custom/local-only tools do NOT edit core: create ~/.hermes/plugins/<name>/plugin.yaml +
__init__.py and call ctx.register_tool(...); plugin toolsets are discovered automatically and
toggled without touching tools/ or toolsets.py (plugins/AGENTS.md).
tools/your_tool.py:from agent.secret_scope import get_secret from tools.registry import registry def check_requirements() -> bool: return bool(get_secret("EXAMPLE_API_KEY")) def example_tool(param: str, task_id: str = None) -> str: return json.dumps({"success": True, ...}) registry.register(name="example_tool", toolset="example", schema={"name": "example_tool", "description": "...", "parameters": {...}}, handler=lambda args, **kw: example_tool(param=args.get("param", ""), task_id=kw.get("task_id")), check_fn=check_requirements, requires_env=["EXAMPLE_API_KEY"])toolsets.py: add the name to_HERMES_CORE_TOOLS(all platforms) or a new toolset. Required — discovery registers the schema, but a tool is only exposed if a toolset names it._HERMES_CORE_TOOLSis the default bundle every platform's base toolset inherits, not dead code.
Rules for tool code:
- Schema descriptions must not name tools from other toolsets (a browser tool saying "prefer
web_search"). Those tools may be unavailable (missing key, disabled toolset) and the model
hallucinates calls to them. Cross-references are added dynamically in
get_tool_definitions()inmodel_tools.py— see thebrowser_cdp/execute_codepost-processing blocks. - Paths in schema descriptions use
display_hermes_home()(schema is built at import; under multiplex it shows the launch home, which is display-only). State files useget_hermes_home()at call time, neverPath.home()/.hermesand never a module constant, so each served profile gets its own state. - No
offset/limiton instructional tools (skills, prompts, playbooks) — models read page 1 and skip the rest (root rubric). check_fnanswers reachability/opt-in for the profile it runs under, never surface. Results are TTL-cached inregistry.py::_check_fn_cachekeyed byhermes_home_key(), and one process serves many sessions AND many profiles: a probe reads credentials throughagent.secret_scope.get_secret, never bareos.getenv(that answers with the launch profile's.envfor everyone). The registry classifies anUnscopedSecretErrorfromcurrent_secret_scope()at the catch site — a boot-time probe with no scope is DEBUG, not a traceback. GUI-only tools go in a named toolset (desktop_ui,project) folded in by_load_enabled_toolsets(platform)(root: capability is a property of the SESSION).- Agent-level tools (
todo,memory) are intercepted beforehandle_function_call()via theINLINE_TOOL_EXECUTORStable (agent/inline_tool_executors.py;agent/AGENTS.md). _last_resolved_tool_namesis a process-global inmodel_tools.py;_run_single_child()indelegate_tool.pysaves/restores it around child runs — readers may see it stale mid-delegation.- New tools integrate with existing setup UX (
hermes tools,hermes setup, auto-install) rather than a raw env var; secrets go inOPTIONAL_ENV_VARS(hermes_cli/AGENTS.md).
Toolsets (toolsets.py)
Single TOOLSETS dict. Keys today: browser, clarify, code_execution, cronjob, debugging,
delegation, discord, discord_admin, file, image_gen,
kanban, memory, messaging, moa, rl, safe, search, session_search, skills, terminal, todo,
tts, video, vision, web (don't assert the list in tests). Per-platform enable/disable via
hermes tools (curses) or tools.<platform>.enabled/disabled in config.yaml. browser_exec is the
one core browser tool (beside browser_cdp / browser_dialog / browser_vault, all CDP).
Browser runtime
browser_exec (browser_use_cli.py) drives a browser over CDP through browser-harness. Where that
CDP endpoint comes from is browser_session.get_session_info(cache_key): operator BU_CDP_* env (in
browser_exec) > CDP override (live /browser connect > BROWSER_CDP_URL > browser.cdp_url) >
hybrid ::local sidecar > cloud provider (failure → local session marked fallback_from_cloud) >
local. The local branch is not a further fallback chain: it tries the consented real profile when
browser.use_real_profile is on, and otherwise (consent off, the profile can't load, or a
no-profile engine like Lightpanda) runs a browser that does not load the real profile, on the
configured engine — the packaged Chromium from browser_launcher.launch_chromium by default, or
Lightpanda only when browser.engine: lightpanda is set (never tried automatically). That browser
is fresh unless a persistent profile is configured (browser.user_data_dir, Bot Desktop). One
browser per cache key (--remote-debugging-port=0 + DevToolsActivePort). State lives in
browser_session.py. Every launched Chromium is stopped
parent-first and recorded in a private 0700 dir (a throwaway profile's in
<HERMES_HOME>/cache/browser/chromium-records; a persistent profile's per OS user under the host lock dir,
one for every home pinning it) so a later process reaps a crashed owner's browser after checking pid + start
time + its --user-data-dir argv token; the reaper walks every served home and every shared profile.
browser_tool.py and browser_tool_install.py are frozen old-updater stubs only (see their
docstrings); never grow them.
Backends and providers inside tools/
Several tools front pluggable backends: terminal environments in tools/environments/ (local,
docker, ssh, modal, daytona; terminal_tool_backends.py, tool_backend_helpers.py),
browser (browser_launcher.py + browser_session*.py: lifecycle, cloud, cdp, real_profile, sandbox), MCP
client (mcp_tool_*.py: config, discovery, transport, registration, content, errors), TTS
(tts_tool_providers.py, tts_command_provider.py), skills hub sources (skills_hub_official.py
OptionalSkillSource). Adding a backend = a new sibling or provider entry in the existing table,
never an elif on a backend name (root shape rules). Remote-backend file visibility problems are
fixed at the mount, not by adding a tool.
Native vision embeds are history, not one-shot payloads. vision_tools.py::_vision_analyze_native
(and the browser screenshot twin in browser_use_cli.py) bake the image
into a tool result that is re-sent on every later API call. Size and repeat policy live in
vision_tools_history_budget.py (config section vision: embed_target_bytes, max_calls_per_image);
the repeat counter is keyed on (session id, resolved source) so region crops share their file's count,
and its default cap applies only inside agent.delegation_context.is_delegated_child_process_context().
Put new embed-cost rules there, never a second counter in a tool.
Every spawn goes through one env builder. environments/local.py::build_subprocess_env (+
hermes_constants.apply_subprocess_home_env, env_passthrough.py::resolve_passthrough_value) is
how a terminal, execute_code, background process, delegation child, ACP or MCP stdio child gets
its environment; a child that acts FOR the served profile (hermes -p X workers, key_cmd
helpers, browser drivers, Bot Chat relay turns) uses environments/local.py::
served_profile_child_env(target_home=, inherit_credentials=): launch-profile .env /
TERMINAL_* residue dropped (strip_launch_profile_env), the target home pinned, only the
target's own secrets overlaid. os.environ.copy() / dict(os.environ) pins the launch profile;
contextvars do not cross process boundaries, so resolve before Popen. A child's
UnscopedSecretError is a spawn-site bug, never a reason to add environ fallthrough. New threads
from scoped code use agent.memory_provider.spawn_context_thread (a bare threading.Thread
drops the scope). MCP trust is a per-profile record: mcp_tool_registration.py::
_record_scope_trust keys trust on the home; a secondary never adopts the launch profile's trust
for a same-named server, and mcp_tool_handlers.py::_trust_gate_check consults the calling
session's profile.
Background-process teardown signals the parent first. process_registry_termination.py::
ProcessTerminationMixin._terminate_host_pid snapshots the descendants, SIGTERMs only the recorded parent, waits
terminal.daemon_term_grace_seconds for it to exit and reap its own children, then SIGTERMs the
snapshot survivors and SIGKILLs whatever ignored both (so a supervisor that reaps its tree — a
Chromium/Electron browser reaping its zygotes, a shell trap — exits cleanly, while a shell whose
children ignore SIGHUP still leaves no orphan). Never SIGTERM descendants before the parent: killing
a browser's zygote mid-shutdown turns exit 0 into a SIGTRAP core dump. _stop_systemd_unit (scope
teardown, kills the worker cgroup) runs only after that PID kill in kill(), or on a parent already
proven dead/recycled (session.exited, _signal_kill recycled-PID path, checkpoint recovery) —
it is never the first signal a live parent receives.
Delegation (tools/delegate_tool.py)
Spawns a subagent with isolated context + terminal session. A top-level model call returns a delegation id and
re-enters the result via the async-delegation completion queue where the session can receive it and does not join
inline (delegation.gateway_mode); elsewhere, or while the background pool is full, the parent waits for the
summary (a model-sent background arg is ignored; direct Python callers default to synchronous). Shapes: single
(goal + optional context, toolsets) or batch (tasks: [...], concurrency capped by
delegation.max_concurrent_children, default 10). A background batch returns as ONE
completion by default; with delegation.independent_completions it is split into completion units
(delegate_tool_dispatch._units_of): tasks sharing a group join and report together; each ungrouped
task reports alone as it finishes. That variant's schema marks group required per task (_build_dynamic_schema_overrides)
so the model states the delivery choice in every call; the handler never enforces it. Units of one call share ONE pool slot (slot_key in
async_delegation._dispatch) — never count units against capacity; the executor is sized by live UNITS
and the stall clock arms when the runner starts, so a queued unit is never judged stalled. Roles: leaf (default;
no delegate_task, clarify, memory, send_message, cronjob; keeps execute_code) and
orchestrator (keeps delegate_task; gated by delegation.orchestrator_enabled, bounded by
delegation.max_spawn_depth, default 1). Config knobs under delegation::
max_concurrent_children, independent_completions, gateway_mode, max_spawn_depth, child_timeout_seconds, orchestrator_enabled,
subagent_auto_approve, inherit_mcp_toolsets, max_iterations, backend, backends. Routes: delegation.backend picks a
delegation provider (agent/delegation_provider.py, ctx.register_delegation_provider; its settings live in
delegation.backends.<name>) that answers each task's route (tools/delegate_tool_routes.py: model/provider fields
resolved like the delegation section, service_tier checked like /fast in delegate_tool_tuning.py, or profile →
the child is built, leases and converses inside that profile's scope) and may add enum-checked per-task schema params; it
never owns lifecycle. The default strategy is the bundled plugins/delegation/default plugin (no core special case
beyond selecting it). Fails closed: an unusable backend is a tool error naming it (never a silent default), an
unroutable task is refused alone (TaskRoute.error), as is a task sending a parameter its backend lacks. A session routes on the backend its delegate_task was built from (agent._delegation_backend, pinned with its tools), so a save applies at /new or --now (agent/delegation_backends.py). Internal credentials_cfg callers (/review) and the lifecycle API bypass it. Child processes: a child's background
processes are killed at its teardown and their notices are suppressed in the parent; process_manage(action="handoff")
(children only) flips ProcessSession.owner_task_id to the parent under the registry lock
(process_registry.transfer_ownership) so the completion routes and reaps by the new owner; un-handed leftovers land on
the result as orphaned_processes, exited-but-never-read notify processes as unread_completions (_ChildRun.account_background_processes, before cleanup kills them). Child kernels: a child's execute_code kernels are keyed <parent-owner>::child::<child-session-id>, pinned against the max_session_kernels LRU cap while the child runs and disposed by cleanup (code_kernel.shutdown_kernels_for_delegated_child) — never let a finished child's kernel squat the cap. output_schema: a miss after the one retry keeps status: completed with the raw text in summary plus schema_valid: false / schema_errors / schema_note — never discard a child's result. Durability: background
delegation is process-local; work that must survive restart uses cronjob
(terminal(background=True, persist_on_release=True) survives only the session ending). heartbeat=N on the same spawn emits a heartbeat event (type on the completion queue; delta output only, HEARTBEAT_MIN_SECONDS floor, one daemon timer thread for all sessions in process_registry.py::ProcessRegistry._heartbeat_loop) — every surface that renders watch_match must render heartbeat (process_registry_notifications.py, gateway/run.py::_drain_gateway_watch_events, tui_gateway/session_notifications.py::_DEDUP_EXTRA_FIELDS). Stop fan-out: a turn's hard interrupt reaches only
_active_children; background units are detached at dispatch and survive it on purpose (Teknium ruling: a
background subagent, /review included, is independent of the chat that spawned it). Turn stops — Ctrl+C,
Esc, the Desktop/TUI Stop button, a message that interrupts, session.interrupt, ACP cancel — never call
async_delegation.interrupt_for_session. Only the explicit /stop command (gateway busy AND idle paths, CLI
and Desktop process stop) and session close/reset end them. Depth>0 delegations are always synchronous
(_model_background_value), so a stop recurses through the child's own _active_children fan-out; an
interrupted entry's summary is the child's last real assistant text (_build_result_entry). API: website/docs/developer-guide/subagent-lifecycle-api.md.
Tests
tests/tools/. Test the handler through the registry (real dispatch), not the bare function only;
assert contracts ("every registered tool has a toolset", "no schema description names a tool from
another toolset") rather than tool counts. Approval/security-boundary tools are E2E'd with real
imports against a temp HERMES_HOME (see tests/tools/test_approval_config_readonly.py).
Surface capability is a property of the SESSION, never of the process env
A tool that works only because of who is on the other end (desktop panes, in-app browser,
message reactions, Projects) must resolve availability from the session's own source, not
from an env var on the backend. Client and backend are separate machines: the desktop app may
drive a locally spawned backend, one over SSH, one behind URL + token, or Hermes Cloud, and
only the first two carry HERMES_DESKTOP=1. An env-keyed gate is a silent no-op on the other
topologies — the tool is stripped from the schema while the platform hint tells the model it
is "inside the Hermes desktop app". The pattern:
- The toolset is the surface gate. Keep such tools off
_HERMES_CORE_TOOLSand in a named toolset (desktop_ui,project); the GUI gateway's_load_enabled_toolsets(platform)folds it in when the session's platform says GUI. One resolver, every topology. check_fnanswers reachability or opt-in, not surface. "Is the bridge wired?" — fine. "Was I spawned by Electron?" — not.check_fnresults are TTL-cached process-wide (tools/registry.py); a per-session answer does not belong there.- Ask which identity you mean.
HERMES_DESKTOP=1legitimately means "this backend was spawned by the app" (cron ticker, web-dist handling). It does NOT mean "a GUI is watching"; the embedded terminal pane (hermes --tuiagainst that backend) is the counterexample.
Test: if the capability still makes sense with the client on another machine, it is session-scoped. Assert the GUI session gets the tool with the env var absent.
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.

