[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GD8KB4FN93BZKMPFDH6R7T":3,"skill-same:01M6GD8KB4FN93BZKMPFDH6R7T":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":6,"ownerHtmlUrl":63,"ownerBlogUrl":6,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M6GD8KB4FN93BZKMPFDH6R7T","hermes-agent",null,"Configure, extend, or contribute to Hermes Agent.","zapabob\u002FSkills","zapabob","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130830376?v=4","01M6DBMYZAGRTFQDSQYW3W764P","峯岸 亮","01M6DBMZ3GKDSJ01NZ9XTZD7JD",2,"MIT","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Farchive\u002Fskill-md-reviewed\u002Fsha256\u002Fb6\u002Fb6d6740433ba1bbb58233876b145a8a3c9158220568e37d9bd98e105a6b30a1f\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,5,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"hermes agent","hermes","https","multi","configuration","opencode","multi-agent","contribute","configure","macos","gateway","code","development","setup","windows","codex","linux","github","cli","2026-11-10 10:12:30",false,"---\r\nname: hermes-agent\r\ndescription: \"Configure, extend, or contribute to Hermes Agent.\"\r\nversion: 2.3.0\r\nauthor: Hermes Agent + Teknium\r\nlicense: MIT\r\nplatforms: [linux, macos, windows]\r\nmetadata:\r\n  hermes:\r\n    tags: [hermes, setup, configuration, multi-agent, spawning, cli, gateway, development]\r\n    homepage: https:\u002F\u002Fgithub.com\u002FNousResearch\u002Fhermes-agent\r\n    related_skills: [claude-code, codex, opencode]\r\n---\r\n\r\n# Hermes Agent\r\n\r\nHermes Agent is an open-source AI agent framework by Nous Research that runs in your terminal, a native desktop app, messaging platforms, and IDEs. It's in the same category as Claude Code (Anthropic), Codex (OpenAI), and OpenClaw — autonomous coding and task-execution agents that use tool calling to interact with your system. Hermes works with any LLM provider (OpenRouter, Anthropic, OpenAI, Google, DeepSeek, xAI, local models, and 20+ others) and runs on Linux, macOS, Windows, and WSL.\r\n\r\nWhat makes Hermes different:\r\n\r\n- **Self-improving through skills** — Hermes learns from experience by saving reusable procedures as skills. When it solves a complex problem, discovers a workflow, or gets corrected, it can persist that knowledge as a skill document that loads into future sessions. Skills accumulate over time, making the agent better at your specific tasks and environment.\r\n- **Persistent memory across sessions** — remembers who you are, your preferences, environment details, and lessons learned. Pluggable memory backends (built-in, Honcho, Mem0, and more) let you choose how memory works.\r\n- **Multi-platform gateway** — the same agent runs on Telegram, Discord, Slack, WhatsApp, iMessage, Signal, Matrix, Teams, Email, and a dozen more platforms with full tool access, not just chat.\r\n- **Many surfaces** — the same agent core drives the CLI, the Ink TUI, a native Electron desktop app, a web dashboard, and an ACP server for IDEs (VS Code \u002F Zed \u002F JetBrains).\r\n- **Provider-agnostic** — swap models and providers mid-workflow without changing anything else. Credential pools rotate across multiple API keys automatically.\r\n- **Profiles** — run multiple independent Hermes instances with isolated configs, sessions, skills, and memory.\r\n- **Extensible** — plugins, MCP servers, custom tools, webhook triggers, cron scheduling, and the full Python ecosystem.\r\n\r\nPeople use Hermes for software development, research, system administration, data analysis, content creation, home automation, and anything else that benefits from an AI agent with persistent context and full system access.\r\n\r\n**This skill helps you work with Hermes Agent effectively** — setting it up, configuring features, spawning additional agent instances, troubleshooting issues, finding the right commands and settings, and understanding how the system works when you need to extend or contribute to it.\r\n\r\n**Docs:** https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002F\r\n\r\n## Scope & Verification\r\n\r\nThis skill is a concise operating guide, not the complete source of truth for every Hermes feature. If a Hermes feature, command, or setting is not mentioned here, do not treat that absence as evidence that it does not exist. Check the live repository and official docs before giving a negative answer.\r\n\r\nGood verification targets:\r\n\r\n- CLI commands: `hermes --help`, `hermes \u003Ccommand> --help`, and `hermes_cli\u002Fmain.py`\r\n- User documentation: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002F\r\n- Source tree: https:\u002F\u002Fgithub.com\u002FNousResearch\u002Fhermes-agent\r\n\r\n## Quick Start\r\n\r\n```bash\r\n# Install (shell installer — sets up uv, Python, the venv, and the launcher)\r\ncurl -fsSL https:\u002F\u002Fhermes-agent.nousresearch.com\u002Finstall.sh | bash\r\n\r\n# Interactive chat (default surface; set display.interface: tui to launch the Ink TUI instead)\r\nhermes\r\n\r\n# Single query\r\nhermes chat -q \"What is the capital of France?\"\r\n\r\n# Setup wizard  \u002F  pick model+provider  \u002F  health check\r\nhermes setup\r\nhermes model\r\nhermes doctor\r\n\r\n# Other surfaces\r\nhermes desktop                 # launch the native desktop app (alias: hermes gui)\r\nhermes dashboard               # web admin panel + embedded chat\r\nhermes proxy                   # OpenAI-compatible local proxy backed by your OAuth provider\r\n```\r\n\r\n---\r\n\r\n## CLI Reference\r\n\r\n### Global Flags\r\n\r\n```\r\nhermes [flags] [command]\r\n\r\n  --version, -V             Show version\r\n  --resume, -r SESSION      Resume session by ID or title\r\n  --continue, -c [NAME]     Resume by name, or most recent session\r\n  --worktree, -w            Isolated git worktree mode (parallel agents)\r\n  --skills, -s SKILL        Preload skills (comma-separate or repeat)\r\n  --profile, -p NAME        Use a named profile\r\n  --yolo                    Skip dangerous command approval\r\n  --pass-session-id         Include session ID in system prompt\r\n```\r\n\r\nNo subcommand defaults to `chat`.\r\n\r\n### Chat\r\n\r\n```\r\nhermes chat [flags]\r\n  -q, --query TEXT          Single query, non-interactive\r\n  -m, --model MODEL         Model (e.g. anthropic\u002Fclaude-sonnet-4)\r\n  -t, --toolsets LIST       Comma-separated toolsets\r\n  --provider PROVIDER       Force provider (openrouter, anthropic, nous, etc.)\r\n  -v, --verbose             Verbose output\r\n  -Q, --quiet               Suppress banner, spinner, tool previews\r\n  --checkpoints             Enable filesystem checkpoints (\u002Frollback)\r\n  --source TAG              Session source tag (default: cli)\r\n```\r\n\r\n### Configuration\r\n\r\n```\r\nhermes setup [section]      Interactive wizard (model|terminal|gateway|tools|agent)\r\nhermes model                Interactive model\u002Fprovider picker\r\nhermes config               View current config\r\nhermes config edit          Open config.yaml in $EDITOR\r\nhermes config set KEY VAL   Set a config value\r\nhermes config path          Print config.yaml path\r\nhermes config env-path      Print .env path\r\nhermes config check         Check for missing\u002Foutdated config\r\nhermes config migrate       Update config with new options\r\nhermes doctor [--fix]       Check dependencies and config\r\nhermes status [--all]       Show component status\r\n```\r\n\r\nCredentials (OAuth + API keys, with pooling) are managed under `hermes auth` — see the Credentials & Pools section below.\r\n\r\n### Tools & Skills\r\n\r\n```\r\nhermes tools                Interactive tool enable\u002Fdisable (curses UI)\r\nhermes tools list           Show all tools and status\r\nhermes tools enable NAME    Enable a toolset\r\nhermes tools disable NAME   Disable a toolset\r\n\r\nhermes skills list          List installed skills\r\nhermes skills search QUERY  Search the skills hub\r\nhermes skills install ID    Install a skill (ID can be a hub identifier OR a direct https:\u002F\u002F…\u002FSKILL.md URL; pass --name to override when frontmatter has no name)\r\nhermes skills inspect ID    Preview without installing\r\nhermes skills config        Enable\u002Fdisable skills per platform\r\nhermes skills check         Check for updates\r\nhermes skills update        Update outdated skills\r\nhermes skills uninstall N   Remove a hub skill\r\nhermes skills publish PATH  Publish to registry\r\nhermes skills browse        Browse all available skills\r\nhermes skills tap add REPO  Add a GitHub repo as skill source\r\n```\r\n\r\n### MCP Servers\r\n\r\n```\r\nhermes mcp serve            Run Hermes as an MCP server\r\nhermes mcp add NAME         Add an MCP server (--url or --command)\r\nhermes mcp remove NAME      Remove an MCP server\r\nhermes mcp list             List configured servers\r\nhermes mcp test NAME        Test connection\r\nhermes mcp configure NAME   Toggle tool selection\r\n```\r\n\r\nHow the built-in MCP client connects servers (stdio\u002FHTTP), auto-discovers\r\ntheir tools, and exposes them as first-class tools, plus catalog install\r\n(`hermes mcp install \u003Cname>`): `skill_view(name=\"hermes-agent\", file_path=\"references\u002Fnative-mcp.md\")`.\r\n\r\n### Gateway (Messaging Platforms)\r\n\r\n```\r\nhermes gateway run          Start gateway foreground\r\nhermes gateway install      Install as background service\r\nhermes gateway start\u002Fstop   Control the service\r\nhermes gateway restart      Restart the service\r\nhermes gateway status       Check status\r\nhermes gateway setup        Configure platforms\r\n```\r\n\r\nSupported platforms (20+): Telegram, Discord, Slack, WhatsApp (Baileys bridge + official Business Cloud API), iMessage (Photon — `hermes photon setup`, the BlueBubbles successor with no Mac relay), Signal, Email, SMS, Matrix, Mattermost, Microsoft Teams, LINE, SimpleX, ntfy, Google Chat, Home Assistant, DingTalk, Feishu, WeCom, Weixin (WeChat), Raft (agent network), API Server, Webhooks. Open WebUI connects via the API Server adapter. Most adapters ship under `plugins\u002Fplatforms\u002F`, so new ones drop in without touching core.\r\n\r\nPlatform docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002F\r\n\r\n### Sessions\r\n\r\n```\r\nhermes sessions list        List recent sessions\r\nhermes sessions browse      Interactive picker\r\nhermes sessions export OUT  Export to JSONL\r\nhermes sessions rename ID T Rename a session\r\nhermes sessions delete ID   Delete a session\r\nhermes sessions prune       Clean up old sessions (--older-than N days)\r\nhermes sessions stats       Session store statistics\r\n```\r\n\r\n### Cron Jobs\r\n\r\n```\r\nhermes cron list            List jobs (--all for disabled)\r\nhermes cron create SCHED    Create: '30m', 'every 2h', '0 9 * * *'\r\nhermes cron edit ID         Edit schedule, prompt, delivery\r\nhermes cron pause\u002Fresume ID Control job state\r\nhermes cron run ID          Trigger on next tick\r\nhermes cron remove ID       Delete a job\r\nhermes cron status          Scheduler status\r\n```\r\n\r\n### Webhooks\r\n\r\n```\r\nhermes webhook subscribe N  Create route at \u002Fwebhooks\u002F\u003Cname>\r\nhermes webhook list         List subscriptions\r\nhermes webhook remove NAME  Remove a subscription\r\nhermes webhook test NAME    Send a test POST\r\n```\r\n\r\nFull setup, route config, payload templating, and event-driven agent-run\r\npatterns: `skill_view(name=\"hermes-agent\", file_path=\"references\u002Fwebhooks.md\")`.\r\n\r\n### Profiles\r\n\r\n```\r\nhermes profile list         List all profiles\r\nhermes profile create NAME  Create (--clone, --clone-all, --clone-from)\r\nhermes profile use NAME     Set sticky default\r\nhermes profile delete NAME  Delete a profile\r\nhermes profile show NAME    Show details\r\nhermes profile alias NAME   Manage wrapper scripts\r\nhermes profile rename A B   Rename a profile\r\nhermes profile export NAME  Export to tar.gz\r\nhermes profile import FILE  Import from archive\r\n```\r\n\r\n### Credentials & Pools\r\n\r\n```\r\nhermes auth                 Interactive credential manager\r\nhermes auth add [PROVIDER]  Add OAuth or API-key credential\r\n                            (e.g. nous, openai-codex, qwen-oauth, anthropic)\r\nhermes auth list [PROVIDER] List pooled credentials\r\nhermes auth remove P INDEX  Remove by provider + index\r\nhermes auth reset PROVIDER  Clear exhaustion status\r\n```\r\n\r\nMultiple credentials per provider form a pool that rotates automatically and skips exhausted keys.\r\n\r\n### Other\r\n\r\n```\r\nhermes insights [--days N]  Usage analytics\r\nhermes update               Update to latest version\r\nhermes desktop \u002F gui        Launch the native desktop app\r\nhermes dashboard            Web admin panel + embedded chat\r\nhermes proxy                OpenAI-compatible local proxy backed by an OAuth provider\r\nhermes portal               Quick setup \u002F sign in via Nous Portal\r\nhermes kanban \u003Cverb>        Multi-agent work-queue board (init\u002Fcreate\u002Flist\u002Fshow\u002Fassign\u002F…)\r\nhermes pairing list\u002Fapprove\u002Frevoke  DM authorization\r\nhermes plugins list\u002Finstall\u002Fremove  Plugin management\r\nhermes secrets bitwarden …  External secret store (Bitwarden Secrets Manager)\r\nhermes memory setup\u002Fstatus\u002Foff  Memory provider config\r\nhermes send                 Send a one-off message through a gateway platform\r\nhermes completion bash|zsh  Shell completions\r\nhermes acp                  ACP server (IDE integration)\r\nhermes claw migrate         Migrate from OpenClaw\r\nhermes uninstall            Uninstall Hermes\r\n```\r\n\r\nFor the full, authoritative command list run `hermes --help` (and `hermes \u003Ccommand> --help`). Plugin- and provider-supplied subcommands (e.g. `hermes photon setup` for iMessage) only appear once their plugin is installed\u002Factive.\r\n\r\n---\r\n\r\n## Slash Commands (In-Session)\r\n\r\nType these during an interactive chat session. New commands land fairly\r\noften; if something below looks stale, run `\u002Fhelp` in-session for the\r\nauthoritative list or see the [live slash commands reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fslash-commands).\r\nThe registry of record is `hermes_cli\u002Fcommands.py` — every consumer\r\n(autocomplete, Telegram menu, Slack mapping, `\u002Fhelp`) derives from it.\r\n\r\n### Session Control\r\n```\r\n\u002Fnew (\u002Freset)        Fresh session\r\n\u002Fclear               Clear screen + new session (CLI)\r\n\u002Fretry               Resend last message\r\n\u002Fundo                Remove last exchange\r\n\u002Ftitle [name]        Name the session\r\n\u002Fcompress            Manually compress context\r\n\u002Fstop                Kill background processes\r\n\u002Frollback [N]        Restore filesystem checkpoint\r\n\u002Fsnapshot [sub]      Create or restore state snapshots of Hermes config\u002Fstate (CLI)\r\n\u002Fbackground \u003Cprompt> Run prompt in background\r\n\u002Fqueue \u003Cprompt>      Queue for next turn\r\n\u002Fsteer \u003Cprompt>      Inject a message after the next tool call without interrupting\r\n\u002Fagents (\u002Ftasks)     Show active agents and running tasks\r\n\u002Fresume [name]       Resume a named session\r\n\u002Fgoal [text|sub]     Set a standing goal Hermes works on across turns until achieved\r\n                     (subcommands: status, pause, resume, clear)\r\n\u002Fredraw              Force a full UI repaint (CLI)\r\n```\r\n\r\n### Configuration\r\n```\r\n\u002Fconfig              Show config (CLI)\r\n\u002Fmodel [name]        Show or change model\r\n\u002Fpersonality [name]  Set personality\r\n\u002Freasoning [level]   Set reasoning (none|minimal|low|medium|high|xhigh|max|ultra|show|hide)\r\n\u002Fverbose             Cycle: off → new → all → verbose\r\n\u002Fvoice [on|off|tts]  Voice mode\r\n\u002Fyolo                Toggle approval bypass\r\n\u002Fbusy [sub]          Control what Enter does while Hermes is working (CLI)\r\n                     (subcommands: queue, steer, interrupt, status)\r\n\u002Findicator [style]   Pick the TUI busy-indicator style (CLI)\r\n                     (styles: kaomoji, emoji, unicode, ascii)\r\n\u002Ffooter [on|off]     Toggle gateway runtime-metadata footer on final replies\r\n\u002Fskin [name]         Change theme (CLI)\r\n\u002Fstatusbar           Toggle status bar (CLI)\r\n```\r\n\r\n### Tools & Skills\r\n```\r\n\u002Ftools               Manage tools (CLI)\r\n\u002Ftoolsets            List toolsets (CLI)\r\n\u002Fskills              Search\u002Finstall skills (CLI)\r\n\u002Fskill \u003Cname>        Load a skill into session\r\n\u002Freload-skills       Re-scan ~\u002F.hermes\u002Fskills\u002F for added\u002Fremoved skills\r\n\u002Freload              Reload .env variables into the running session (CLI)\r\n\u002Freload-mcp          Reload MCP servers\r\n\u002Fcron                Manage cron jobs (CLI)\r\n\u002Fcurator [sub]       Background skill maintenance (status, run, pin, archive, …)\r\n\u002Fkanban [sub]        Multi-profile collaboration board (tasks, links, comments)\r\n\u002Fplugins             List plugins (CLI)\r\n```\r\n\r\n### Gateway\r\n```\r\n\u002Fapprove             Approve a pending command (gateway)\r\n\u002Fdeny                Deny a pending command (gateway)\r\n\u002Frestart             Restart gateway (gateway)\r\n\u002Fsethome             Set current chat as home channel (gateway)\r\n\u002Fupdate              Update Hermes to latest (gateway)\r\n\u002Ftopic [sub]         Enable or inspect Telegram DM topic sessions (gateway)\r\n\u002Fplatforms (\u002Fgateway) Show platform connection status (gateway)\r\n```\r\n\r\n### Utility\r\n```\r\n\u002Fbranch (\u002Ffork)      Branch the current session\r\n\u002Fhandoff \u003Cplatform>  Hand the live session off to a messaging platform (CLI)\r\n\u002Ffast                Toggle priority\u002Ffast processing\r\n\u002Fbrowser             Open CDP browser connection\r\n\u002Fhistory             Show conversation history (CLI)\r\n\u002Fsave                Save conversation to file (CLI)\r\n\u002Fcopy [N]            Copy the last assistant response to clipboard (CLI)\r\n\u002Fpaste               Attach clipboard image (CLI)\r\n\u002Fimage               Attach local image file (CLI)\r\n```\r\n\r\n### Info\r\n```\r\n\u002Fhelp                Show commands\r\n\u002Fcommands [page]     Browse all commands (gateway)\r\n\u002Fusage               Token usage\r\n\u002Finsights [days]     Usage analytics\r\n\u002Fstatus              Session info (gateway)\r\n\u002Fprofile             Active profile info\r\n\u002Fdebug               Upload debug report (system info + logs) and get shareable links\r\n```\r\n\r\n### Exit\r\n```\r\n\u002Fquit (\u002Fexit, \u002Fq)    Exit CLI\r\n```\r\n\r\n---\r\n\r\n## Key Paths & Config\r\n\r\n```\r\n~\u002F.hermes\u002Fconfig.yaml       Main configuration\r\n~\u002F.hermes\u002F.env              API keys and secrets (under $HERMES_HOME if set)\r\n$HERMES_HOME\u002Fskills\u002F        Installed skills\r\n~\u002F.hermes\u002Fsessions\u002F         Gateway routing index, request dumps, *.jsonl transcripts (and optional per-session JSON snapshots when sessions.write_json_snapshots: true)\r\n~\u002F.hermes\u002Fstate.db          Canonical session store (SQLite + FTS5)\r\n~\u002F.hermes\u002Flogs\u002F             Gateway and error logs\r\n~\u002F.hermes\u002Fauth.json         OAuth tokens and credential pools\r\n~\u002F.hermes\u002Fhermes-agent\u002F     Source code (if git-installed)\r\n```\r\n\r\nProfiles use `~\u002F.hermes\u002Fprofiles\u002F\u003Cname>\u002F` with the same layout.\r\n\r\n### Config Sections\r\n\r\nEdit with `hermes config edit` or `hermes config set section.key value`.\r\n\r\n| Section | Key options |\r\n|---------|-------------|\r\n| `model` | `default`, `provider`, `base_url`, `api_key`, `context_length` |\r\n| `agent` | `max_turns` (90), `tool_use_enforcement` |\r\n| `terminal` | `backend` (local\u002Fdocker\u002Fssh\u002Fmodal), `cwd`, `timeout` (180) |\r\n| `compression` | `enabled`, `threshold` (0.50), `target_ratio` (0.20) |\r\n| `display` | `skin`, `interface` (cli\u002Ftui), `tool_progress`, `show_reasoning`, `show_cost`, `language` |\r\n| `stt` | `enabled`, `provider` (local\u002Fgroq\u002Fopenai\u002Fmistral) |\r\n| `tts` | `provider` (edge\u002Felevenlabs\u002Fopenai\u002Fminimax\u002Fmistral\u002Fneutts) |\r\n| `memory` | `memory_enabled`, `user_profile_enabled`, `provider` |\r\n| `security` | `tirith_enabled`, `website_blocklist` |\r\n| `delegation` | `model`, `provider`, `base_url`, `api_key`, `max_iterations` (50), `reasoning_effort` |\r\n| `checkpoints` | `enabled`, `max_snapshots` (50) |\r\n| `curator` | `enabled`, `consolidate` (false — opt-in aux-model skill consolidation), `interval_hours`, `stale_after_days` |\r\n\r\nFull config reference: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fconfiguration\r\n\r\n### Providers\r\n\r\n20+ providers supported. Set via `hermes model` or `hermes setup`.\r\n\r\n| Provider | Auth | Key env var |\r\n|----------|------|-------------|\r\n| OpenRouter | API key | `OPENROUTER_API_KEY` |\r\n| Anthropic | API key | `ANTHROPIC_API_KEY` |\r\n| Nous Portal | OAuth | `hermes auth` |\r\n| OpenAI Codex | OAuth | `hermes auth` |\r\n| GitHub Copilot | Token | `COPILOT_GITHUB_TOKEN` |\r\n| Google Gemini | API key | `GOOGLE_API_KEY` or `GEMINI_API_KEY` |\r\n| DeepSeek | API key | `DEEPSEEK_API_KEY` |\r\n| xAI \u002F Grok | API key | `XAI_API_KEY` |\r\n| Hugging Face | Token | `HF_TOKEN` |\r\n| Z.AI \u002F GLM | API key | `GLM_API_KEY` |\r\n| MiniMax | API key | `MINIMAX_API_KEY` |\r\n| MiniMax CN | API key | `MINIMAX_CN_API_KEY` |\r\n| Kimi \u002F Moonshot | API key | `KIMI_API_KEY` |\r\n| Alibaba \u002F DashScope | API key | `DASHSCOPE_API_KEY` |\r\n| Xiaomi MiMo | API key | `XIAOMI_API_KEY` |\r\n| Kilo Code | API key | `KILOCODE_API_KEY` |\r\n| OpenCode Zen | API key | `OPENCODE_ZEN_API_KEY` |\r\n| OpenCode Go | API key | `OPENCODE_GO_API_KEY` |\r\n| Qwen OAuth | OAuth | `hermes auth add qwen-oauth` |\r\n| Custom endpoint | Config | `model.base_url` + `model.api_key` in config.yaml |\r\n| GitHub Copilot ACP | External | `COPILOT_CLI_PATH` or Copilot CLI |\r\n\r\nFull provider docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fintegrations\u002Fproviders\r\n\r\n### Toolsets\r\n\r\nEnable\u002Fdisable via `hermes tools` (interactive) or `hermes tools enable\u002Fdisable NAME`.\r\n\r\n| Toolset | What it provides |\r\n|---------|-----------------|\r\n| `web` | Web search and content extraction |\r\n| `search` | Web search only (subset of `web`) |\r\n| `browser` | Browser automation (Browserbase, Camofox, or local Chromium) |\r\n| `terminal` | Shell commands and process management |\r\n| `file` | File read\u002Fwrite\u002Fsearch\u002Fpatch |\r\n| `code_execution` | Sandboxed Python execution |\r\n| `vision` | Image analysis |\r\n| `image_gen` | AI image generation and image-to-image editing |\r\n| `video` | Video analysis (`video_analyze`) and generation |\r\n| `x_search` | First-class X (Twitter) search (X OAuth or API key) |\r\n| `tts` | Text-to-speech |\r\n| `skills` | Skill browsing and management |\r\n| `memory` | Persistent cross-session memory |\r\n| `session_search` | Search past conversations |\r\n| `delegation` | Subagent task delegation |\r\n| `cronjob` | Scheduled task management |\r\n| `clarify` | Ask user clarifying questions |\r\n| `messaging` | Cross-platform message sending |\r\n| `todo` | In-session task planning and tracking |\r\n| `kanban` | Multi-agent work-queue tools (gated to workers) |\r\n| `debugging` | Extra introspection\u002Fdebug tools (off by default) |\r\n| `safe` | Minimal, low-risk toolset for locked-down sessions |\r\n| `spotify` | Spotify playback and playlist control |\r\n| `homeassistant` | Smart home control (off by default) |\r\n| `discord` | Discord integration tools |\r\n| `discord_admin` | Discord admin\u002Fmoderation tools |\r\n| `feishu_doc` | Feishu (Lark) document tools |\r\n| `feishu_drive` | Feishu (Lark) drive tools |\r\n| `yuanbao` | Yuanbao integration tools |\r\n| `rl` | Reinforcement learning tools (off by default) |\r\n\r\nFull enumeration lives in `toolsets.py` as the `TOOLSETS` dict; `_HERMES_CORE_TOOLS` is the default bundle most platforms inherit from.\r\n\r\nTool changes take effect on `\u002Freset` (new session). They do NOT apply mid-conversation to preserve prompt caching.\r\n\r\n---\r\n\r\n## Project Context Files\r\n\r\nHermes injects project-level instructions into the system prompt by reading context files from the working directory. The discovery order is **first match wins** — only one project context source is loaded per session.\r\n\r\n| File (in priority order) | Discovery | Use when |\r\n|---|---|---|\r\n| `.hermes.md` \u002F `HERMES.md` | Walks parents up to the git root, stops at git root | You want hierarchical project rules (root + per-package overrides) |\r\n| `AGENTS.md` \u002F `agents.md` | **Cwd only** — subdirectory and parent copies are ignored | You want portable agent instructions that work the same in Hermes, Claude Code, Codex, etc. |\r\n| `CLAUDE.md` \u002F `claude.md` | Cwd only | Same as AGENTS.md, Claude-flavored |\r\n| `.cursorrules` \u002F `.cursor\u002Frules\u002F*.mdc` | Cwd only | Migrating from Cursor |\r\n\r\n`SOUL.md` (in `$HERMES_HOME`) is independent and always loaded when present — it sets the agent's identity, not project rules.\r\n\r\n### Pick the right one\r\n\r\n- **Use `.hermes.md`** when you want Hermes-specific behavior that lives above the cwd (root + subtree), or when you want rules to inherit from a parent directory. The parent walk stops at the git root, so a home-level `.hermes.md` won't leak into every project (a git repo's root is the boundary).\r\n- **Use `AGENTS.md`** when the same project will also be worked on by other agents (Codex, Claude Code, OpenCode). Those tools all have their own conventions for `AGENTS.md`, and the \"cwd only\" contract keeps the file portable.\r\n- **Don't put project rules in `~\u002F.hermes\u002FAGENTS.md`** (or any other home-level location). When Hermes runs with that directory as cwd, the file loads — but only for that one directory. For cross-project context, use `SOUL.md` (in `$HERMES_HOME`, identity-only) or install a skill via `hermes skills install`.\r\n\r\n### Size and truncation\r\n\r\nEach context file is capped at 20,000 characters. Files longer than that get **head + tail** truncated (the middle is dropped, with a `[...truncated...]` marker). For large project rules, prefer splitting into multiple skills over cramming one file.\r\n\r\n### Security\r\n\r\nAll context files pass through the threat-pattern scanner before reaching the system prompt. Patterns matching prompt injection or promptware are replaced with a `[BLOCKED: ...]` placeholder. This means an `AGENTS.md` containing obvious injection attempts won't reach the model — the scanner blocks the content, not the file, so the rest of the file still loads.\r\n\r\n### Disable for one session\r\n\r\n`hermes --ignore-rules` skips auto-injection of all project context files (`.hermes.md`, `AGENTS.md`, `CLAUDE.md`, `.cursorrules`) **and** `SOUL.md` identity, plus user config, plugins, and MCP servers. Use it to isolate whether a problem is your setup or Hermes itself.\r\n\r\n### Example: a small `.hermes.md`\r\n\r\n```markdown\r\n# My Project\r\n\r\nHermes: when working in this repo, follow these rules.\r\n\r\n## Build\r\n- Always run `make test` before declaring a change done.\r\n- Use `uv run` for Python, not `pip install`.\r\n\r\n## Style\r\n- Prefer `pathlib.Path` over `os.path`.\r\n- No `print()` in production code — use the `logger`.\r\n```\r\n\r\nThat file at `\u002Fhome\u002Fme\u002Fprojects\u002Fmyrepo\u002F.hermes.md` is auto-loaded when Hermes runs in any subdirectory of `\u002Fhome\u002Fme\u002Fprojects\u002Fmyrepo`, but not when it runs in `\u002Fhome\u002Fme\u002Fother-project`.\r\n\r\n## Security & Privacy Toggles\r\n\r\nCommon \"why is Hermes doing X to my output \u002F tool calls \u002F commands?\" toggles — and the exact commands to change them. Most of these need a fresh session (`\u002Freset` in chat, or start a new `hermes` invocation) because they're read once at startup.\r\n\r\n### Secret redaction in tool output\r\n\r\nSecret redaction is **on by default** — tool output (terminal stdout, `read_file`, web content, subagent summaries, etc.) is scanned for strings that look like API keys, tokens, and secrets before it enters the conversation context and logs. Leave it enabled for normal use:\r\n\r\n```bash\r\nhermes config set security.redact_secrets true       # keep enabled globally\r\n```\r\n\r\n**Restart required.** `security.redact_secrets` is snapshotted at import time — toggling it mid-session (e.g. via `export HERMES_REDACT_SECRETS=false` from a tool call) will NOT take effect for the running process. Tell the user to change it in config from a terminal, then start a new session. This is deliberate — it prevents an LLM from flipping the toggle on itself mid-task.\r\n\r\nDisable only when you deliberately need raw credential-like strings for debugging or redactor development:\r\n```bash\r\nhermes config set security.redact_secrets false\r\n```\r\n\r\n### PII redaction in gateway messages\r\n\r\nSeparate from secret redaction. When enabled, the gateway hashes user IDs and strips phone numbers from the session context before it reaches the model:\r\n\r\n```bash\r\nhermes config set privacy.redact_pii true    # enable\r\nhermes config set privacy.redact_pii false   # disable (default)\r\n```\r\n\r\n### Command approval prompts\r\n\r\nBy default (`approvals.mode: smart`), Hermes asks an auxiliary LLM to assess shell commands flagged as destructive (`rm -rf`, `git reset --hard`, etc.). The modes are:\r\n\r\n- `smart` — auto-approve a low-risk command once, deny high-risk commands, and prompt when uncertain (default)\r\n- `manual` — always prompt\r\n- `off` — skip all approval prompts (equivalent to `--yolo`)\r\n\r\n```bash\r\nhermes config set approvals.mode smart       # recommended middle ground\r\nhermes config set approvals.mode off         # bypass everything (not recommended)\r\n```\r\n\r\nPer-invocation bypass without changing config:\r\n- `hermes --yolo …`\r\n- `export HERMES_YOLO_MODE=1`\r\n\r\nNote: YOLO \u002F `approvals.mode: off` does NOT turn off secret redaction. They are independent.\r\n\r\n### Shell hooks allowlist\r\n\r\nSome shell-hook integrations require explicit allowlisting before they fire. Managed via `~\u002F.hermes\u002Fshell-hooks-allowlist.json` — prompted interactively the first time a hook wants to run.\r\n\r\n### Disabling the web\u002Fbrowser\u002Fimage-gen tools\r\n\r\nTo keep the model away from network or media tools entirely, open `hermes tools` and toggle per-platform. Takes effect on next session (`\u002Freset`). See the Tools & Skills section above.\r\n\r\n---\r\n\r\n## Voice & Transcription\r\n\r\n### STT (Voice → Text)\r\n\r\nVoice messages from messaging platforms are auto-transcribed.\r\n\r\nProvider priority (auto-detected):\r\n1. **Local faster-whisper** — free, no API key: `pip install faster-whisper`\r\n2. **Groq Whisper** — free tier: set `GROQ_API_KEY`\r\n3. **OpenAI Whisper** — paid: set `VOICE_TOOLS_OPENAI_KEY`\r\n4. **Mistral Voxtral** — set `MISTRAL_API_KEY`\r\n\r\nConfig:\r\n```yaml\r\nstt:\r\n  enabled: true\r\n  provider: local        # local, groq, openai, mistral\r\n  local:\r\n    model: base          # tiny, base, small, medium, large-v3\r\n```\r\n\r\n### TTS (Text → Voice)\r\n\r\n| Provider | Env var | Free? |\r\n|----------|---------|-------|\r\n| Edge TTS | None | Yes (default) |\r\n| ElevenLabs | `ELEVENLABS_API_KEY` | Free tier |\r\n| OpenAI | `VOICE_TOOLS_OPENAI_KEY` | Paid |\r\n| MiniMax | `MINIMAX_API_KEY` | Paid |\r\n| Mistral (Voxtral) | `MISTRAL_API_KEY` | Paid |\r\n| NeuTTS (local) | None (`pip install neutts[all]` + `espeak-ng`) | Free |\r\n\r\nVoice commands: `\u002Fvoice on` (voice-to-voice), `\u002Fvoice tts` (always voice), `\u002Fvoice off`.\r\n\r\n---\r\n\r\n## Spawning Additional Hermes Instances\r\n\r\nRun additional Hermes processes as fully independent subprocesses — separate sessions, tools, and environments.\r\n\r\n### When to Use This vs delegate_task\r\n\r\n| | `delegate_task` | Spawning `hermes` process |\r\n|-|-----------------|--------------------------|\r\n| Isolation | Separate conversation, shared process | Fully independent process |\r\n| Duration | Minutes (bounded by parent loop) | Hours\u002Fdays |\r\n| Tool access | Subset of parent's tools | Full tool access |\r\n| Interactive | No | Yes (PTY mode) |\r\n| Use case | Quick parallel subtasks | Long autonomous missions |\r\n\r\n### One-Shot Mode\r\n\r\n```\r\nterminal(command=\"hermes chat -q 'Research GRPO papers and write summary to ~\u002Fresearch\u002Fgrpo.md'\", timeout=300)\r\n\r\n# Background for long tasks:\r\nterminal(command=\"hermes chat -q 'Set up CI\u002FCD for ~\u002Fmyapp'\", background=true)\r\n```\r\n\r\n### Interactive PTY Mode (via tmux)\r\n\r\nHermes uses prompt_toolkit, which requires a real terminal. Use tmux for interactive spawning:\r\n\r\n```\r\n# Start\r\nterminal(command=\"tmux new-session -d -s agent1 -x 120 -y 40 'hermes'\", timeout=10)\r\n\r\n# Wait for startup, then send a message\r\nterminal(command=\"sleep 8 && tmux send-keys -t agent1 'Build a FastAPI auth service' Enter\", timeout=15)\r\n\r\n# Read output\r\nterminal(command=\"sleep 20 && tmux capture-pane -t agent1 -p\", timeout=5)\r\n\r\n# Send follow-up\r\nterminal(command=\"tmux send-keys -t agent1 'Add rate limiting middleware' Enter\", timeout=5)\r\n\r\n# Exit\r\nterminal(command=\"tmux send-keys -t agent1 '\u002Fexit' Enter && sleep 2 && tmux kill-session -t agent1\", timeout=10)\r\n```\r\n\r\n### Multi-Agent Coordination\r\n\r\n```\r\n# Agent A: backend\r\nterminal(command=\"tmux new-session -d -s backend -x 120 -y 40 'hermes -w'\", timeout=10)\r\nterminal(command=\"sleep 8 && tmux send-keys -t backend 'Build REST API for user management' Enter\", timeout=15)\r\n\r\n# Agent B: frontend\r\nterminal(command=\"tmux new-session -d -s frontend -x 120 -y 40 'hermes -w'\", timeout=10)\r\nterminal(command=\"sleep 8 && tmux send-keys -t frontend 'Build React dashboard for user management' Enter\", timeout=15)\r\n\r\n# Check progress, relay context between them\r\nterminal(command=\"tmux capture-pane -t backend -p | tail -30\", timeout=5)\r\nterminal(command=\"tmux send-keys -t frontend 'Here is the API schema from the backend agent: ...' Enter\", timeout=5)\r\n```\r\n\r\n### Session Resume\r\n\r\n```\r\n# Resume most recent session\r\nterminal(command=\"tmux new-session -d -s resumed 'hermes --continue'\", timeout=10)\r\n\r\n# Resume specific session\r\nterminal(command=\"tmux new-session -d -s resumed 'hermes --resume 20260225_143052_a1b2c3'\", timeout=10)\r\n```\r\n\r\n### Tips\r\n\r\n- **Prefer `delegate_task` for quick subtasks** — less overhead than spawning a full process\r\n- **Use `-w` (worktree mode)** when spawning agents that edit code — prevents git conflicts\r\n- **Set timeouts** for one-shot mode — complex tasks can take 5-10 minutes\r\n- **Use `hermes chat -q` for fire-and-forget** — no PTY needed\r\n- **Use tmux for interactive sessions** — raw PTY mode has `\\r` vs `\\n` issues with prompt_toolkit\r\n- **For scheduled tasks**, use the `cronjob` tool instead of spawning — handles delivery and retry\r\n\r\n---\r\n\r\n## Durable & Background Systems\r\n\r\nFour systems run alongside the main conversation loop. Quick reference\r\nhere; full developer notes live in `AGENTS.md`, user-facing docs under\r\n`website\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002F`.\r\n\r\n### Delegation (`delegate_task`)\r\n\r\nSpawn a subagent with an isolated context + terminal session.\r\n\r\n- **Single:** `delegate_task(goal, context)`.\r\n- **Batch:** `delegate_task(tasks=[{goal, ...}, ...])` runs children in\r\n  parallel, capped by `delegation.max_concurrent_children` (default 3).\r\n- **Background:** `delegate_task(background=true)` returns a handle\r\n  immediately and keeps the parent loop going; the child's result\r\n  re-enters the conversation as a new turn when it finishes.\r\n- **Roles:** `leaf` (default; cannot re-delegate) vs `orchestrator`\r\n  (can spawn its own workers, bounded by `delegation.max_spawn_depth`).\r\n- **Not durable.** A backgrounded child is still process-local — if the\r\n  parent process exits, the child is lost. For work that must outlive\r\n  the process, use `cronjob` or\r\n  `terminal(background=True, notify_on_complete=True)`.\r\n\r\nConfig: `delegation.*` in `config.yaml`.\r\n\r\n### Cron (scheduled jobs)\r\n\r\nDurable scheduler — `cron\u002Fjobs.py` + `cron\u002Fscheduler.py`. Drive it via\r\nthe `cronjob` tool, the `hermes cron` CLI (`list`, `add`, `edit`,\r\n`pause`, `resume`, `run`, `remove`), or the `\u002Fcron` slash command.\r\n\r\n- **Schedules:** duration (`\"30m\"`, `\"2h\"`), \"every\" phrase\r\n  (`\"every monday 9am\"`), 5-field cron (`\"0 9 * * *\"`), or ISO timestamp.\r\n- **Per-job knobs:** `skills`, `model`\u002F`provider` override, `script`\r\n  (pre-run data collection; `no_agent=True` makes the script the whole\r\n  job), `context_from` (chain job A's output into job B), `workdir`\r\n  (run in a specific dir with its `AGENTS.md` \u002F `CLAUDE.md` loaded),\r\n  multi-platform delivery.\r\n- **Invariants:** 3-minute hard interrupt per run, `.tick.lock` file\r\n  prevents duplicate ticks across processes, cron sessions pass\r\n  `skip_memory=True` by default, and cron deliveries are framed with a\r\n  header\u002Ffooter instead of being mirrored into the target gateway\r\n  session (keeps role alternation intact).\r\n\r\nUser docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fcron\r\n\r\n### Curator (skill lifecycle)\r\n\r\nBackground maintenance for agent-created skills. Tracks usage, marks\r\nidle skills stale, archives stale ones, keeps a pre-run tar.gz backup\r\nso nothing is lost.\r\n\r\n- **CLI:** `hermes curator \u003Cverb>` — `status`, `run`, `pause`, `resume`,\r\n  `pin`, `unpin`, `archive`, `restore`, `prune`, `backup`, `rollback`.\r\n- **Slash:** `\u002Fcurator \u003Csubcommand>` mirrors the CLI.\r\n- **Scope:** only touches skills with `created_by: \"agent\"` provenance.\r\n  Bundled + hub-installed skills are off-limits. **Never deletes** —\r\n  max destructive action is archive. Pinned skills are exempt from\r\n  every auto-transition and every LLM review pass.\r\n- **Cost:** the deterministic inactivity\u002Fprune sweep runs for free. The\r\n  aux-model \"consolidate overlapping skills into umbrellas\" pass is\r\n  **off by default** — opt in with `curator.consolidate: true` or\r\n  `hermes curator run --consolidate`. Routine background curation costs\r\n  zero tokens.\r\n- **Telemetry:** sidecar at `~\u002F.hermes\u002Fskills\u002F.usage.json` holds\r\n  per-skill `use_count`, `view_count`, `patch_count`,\r\n  `last_activity_at`, `state`, `pinned`.\r\n\r\nConfig: `curator.*` (`enabled`, `interval_hours`, `min_idle_hours`,\r\n`stale_after_days`, `archive_after_days`, `backup.*`).\r\nUser docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fcurator\r\n\r\n### Kanban (multi-agent work queue)\r\n\r\nDurable SQLite board for multi-profile \u002F multi-worker collaboration.\r\nUsers drive it via `hermes kanban \u003Cverb>`; dispatcher-spawned workers\r\nsee a focused `kanban_*` toolset gated by `HERMES_KANBAN_TASK`, and\r\norchestrator profiles can opt into the broader `kanban` toolset. Normal\r\nsessions still have zero `kanban_*` schema footprint unless configured.\r\n\r\n- **CLI verbs (common):** `init`, `create`, `list` (alias `ls`),\r\n  `show`, `assign`, `link`, `unlink`, `comment`, `complete`, `block`,\r\n  `unblock`, `archive`, `tail`. Less common: `watch`, `stats`, `runs`,\r\n  `log`, `dispatch`, `daemon`, `gc`.\r\n- **Worker\u002Forchestrator toolset:** `kanban_show`, `kanban_complete`,\r\n  `kanban_block`, `kanban_heartbeat`, `kanban_comment`, `kanban_create`,\r\n  `kanban_link`; profiles that explicitly enable the `kanban` toolset\r\n  outside a dispatcher-spawned task also get `kanban_list` and\r\n  `kanban_unblock` for board routing.\r\n- **Dispatcher** runs inside the gateway by default\r\n  (`kanban.dispatch_in_gateway: true`) — reclaims stale claims,\r\n  promotes ready tasks, atomically claims, spawns assigned profiles.\r\n  Auto-blocks a task after `failure_limit` consecutive spawn failures\r\n  (default 2; configurable via `kanban.failure_limit` or per-task\r\n  `max_retries`).\r\n- **Isolation:** board is the hard boundary (workers get\r\n  `HERMES_KANBAN_BOARD` pinned in env); tenant is a soft namespace\r\n  within a board for workspace-path + memory-key isolation.\r\n\r\nUser docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fkanban\r\n\r\n---\r\n\r\n## Surfaces & Other Capabilities\r\n\r\nBeyond the CLI and gateway, a few things worth knowing about:\r\n\r\n- **Desktop app** (`hermes desktop` \u002F `hermes gui`) — native Electron app\r\n  for macOS\u002FLinux\u002FWindows: streaming chat, session list, drag-and-drop +\r\n  clipboard-paste files, Cmd+K palette, status-bar model picker,\r\n  rebindable shortcuts, native notifications, live subagent watch-windows,\r\n  VS Code Marketplace themes, and per-profile remote-gateway login (OAuth\r\n  or username\u002Fpassword) so a thin local GUI can drive a heavy remote agent.\r\n- **Web dashboard** (`hermes dashboard`) — full admin panel: configure\r\n  every messaging channel, the MCP catalog, webhooks\u002Fhooks, memory, and a\r\n  complete profile builder (model + skills + MCPs) from the browser, plus\r\n  an embedded `hermes --tui` chat. Secured behind an OAuth\u002Ftoken gate.\r\n- **OpenAI-compatible proxy** (`hermes proxy`) — exposes a\r\n  `http:\u002F\u002Flocalhost:port` OpenAI API backed by whichever OAuth provider\r\n  you're signed into (Claude Pro, ChatGPT Pro, SuperGrok). Point Codex\r\n  CLI, Aider, Cline, Continue, or any script at it — no API key.\r\n- **Automation Blueprints** — pick a named automation and Hermes asks for\r\n  what it needs (no cron syntax). One definition renders as a dashboard\r\n  form, a slash command, an agent conversation, and a docs-catalog entry.\r\n- **`memory` tool batch operations** — pass an `operations` array of\r\n  add\u002Freplace\u002Fremove edits applied atomically against the final character\r\n  budget, so a single call can free space and add entries even when an add\r\n  alone would overflow.\r\n- **`session_search`** — FTS5-backed, no aux-LLM, effectively free. One\r\n  tool, three modes inferred from which args are set: discovery (`query`),\r\n  scroll (`session_id` + `around_message_id`), browse (no args).\r\n- **xAI Grok via SuperGrok OAuth** — sign in with your xAI account (no API\r\n  key); includes Cursor's `grok-composer-2.5-fast` coding model.\r\n\r\n---\r\n\r\n## Windows-Specific Quirks\r\n\r\nHermes runs natively on Windows (PowerShell, cmd, Windows Terminal, git-bash\r\nmintty, VS Code integrated terminal). Most of it just works, but a handful\r\nof differences between Win32 and POSIX have bitten us — document new ones\r\nhere as you hit them so the next person (or the next session) doesn't\r\nrediscover them from scratch.\r\n\r\n### Input \u002F Keybindings\r\n\r\n**Alt+Enter doesn't insert a newline** — Windows Terminal (and mintty) grab it\r\nfor fullscreen before prompt_toolkit sees it. Use **Ctrl+Enter** instead (the\r\nCLI binds it to newline on Windows; raw Ctrl+J does the same, harmlessly).\r\nTo inspect how your terminal reports a keystroke, run\r\n`python scripts\u002Fkeystroke_diagnostic.py` from the repo root.\r\n\r\n### Config \u002F Files\r\n\r\n**HTTP 400 \"No models provided\" on first run** — `config.yaml` was saved with\r\na UTF-8 BOM (Notepad does this). Re-save as UTF-8 without BOM;\r\n`hermes config edit` writes correctly.\r\n\r\n### `execute_code` \u002F Sandbox\r\n\r\n**WinError 10106** from the sandbox child process — it can't create an\r\n`AF_INET` socket. Root cause is usually Hermes's env scrubber dropping\r\n`SYSTEMROOT`\u002F`WINDIR`\u002F`COMSPEC` (Python's `socket` needs `SYSTEMROOT` to find\r\n`mswsock.dll`), not a broken Winsock LSP. The `_WINDOWS_ESSENTIAL_ENV_VARS`\r\nallowlist in `tools\u002Fcode_execution_tool.py` covers it; if you still hit it,\r\necho `os.environ` inside an `execute_code` block to confirm `SYSTEMROOT` is set.\r\n\r\n### Testing on Windows\r\n\r\n`scripts\u002Frun_tests.sh` is POSIX-only (expects `.venv\u002Fbin\u002Factivate`); the\r\nHermes-installed `venv\u002FScripts\u002F` has no pip\u002Fpytest (stripped for size).\r\nInstall pytest into a system Python and run directly with `-n 0`\r\n(`pyproject.toml`'s `addopts` already sets `-n`):\r\n\r\n```bash\r\n\"\u002Fc\u002FProgram Files\u002FPython311\u002Fpython\" -m pip install --user pytest pytest-xdist pyyaml\r\nexport PYTHONPATH=\"$(pwd)\"\r\n\"\u002Fc\u002FProgram Files\u002FPython311\u002Fpython\" -m pytest tests\u002Ffoo\u002Ftest_bar.py -v --tb=short -n 0\r\n```\r\n\r\n(POSIX-only tests need skip guards — see the cross-platform guard list in the\r\nContributor section below.)\r\n\r\n### Path \u002F Filesystem\r\n\r\n**Line endings.** Git may warn `LF will be replaced by CRLF`. Cosmetic — the\r\nrepo's `.gitattributes` normalizes. Don't let editors auto-convert committed\r\nPOSIX-newline files to CRLF.\r\n\r\n**Forward slashes work almost everywhere.** `C:\u002FUsers\u002F...` is accepted by\r\nevery Hermes tool and most Windows APIs. Prefer forward slashes in code\r\nand logs — avoids shell-escaping backslashes in bash.\r\n\r\n---\r\n\r\n## Troubleshooting\r\n\r\n### Voice not working\r\n1. Check `stt.enabled: true` in config.yaml\r\n2. Verify provider: `pip install faster-whisper` or set API key\r\n3. In gateway: `\u002Frestart`. In CLI: exit and relaunch.\r\n\r\n### Tool not available\r\n1. `hermes tools` — check if toolset is enabled for your platform\r\n2. Some tools need env vars (check `.env`)\r\n3. `\u002Freset` after enabling tools\r\n\r\n### Model\u002Fprovider issues\r\n1. `hermes doctor` — check config and dependencies\r\n2. `hermes auth` — re-authenticate OAuth providers (or `hermes auth add \u003Cprovider>`)\r\n3. Check `.env` has the right API key\r\n4. **Copilot 403**: `gh auth login` tokens do NOT work for Copilot API. You must use the Copilot-specific OAuth device code flow via `hermes model` → GitHub Copilot.\r\n\r\n### Changes not taking effect\r\n- **Tools\u002Fskills:** `\u002Freset` starts a new session with updated toolset\r\n- **Config changes:** In gateway: `\u002Frestart`. In CLI: exit and relaunch.\r\n- **Code changes:** Restart the CLI or gateway process\r\n\r\n### Skills not showing\r\n1. `hermes skills list` — verify installed\r\n2. `hermes skills config` — check platform enablement\r\n3. Load explicitly: `\u002Fskill name` or `hermes -s name`\r\n\r\n### Gateway issues\r\nCheck logs first:\r\n```bash\r\ngrep -i \"failed to send\\|error\" ~\u002F.hermes\u002Flogs\u002Fgateway.log | tail -20\r\n```\r\n\r\nCommon gateway problems:\r\n- **Gateway dies on SSH logout**: Enable linger: `sudo loginctl enable-linger $USER`\r\n- **Gateway dies on WSL2 close**: WSL2 requires `systemd=true` in `\u002Fetc\u002Fwsl.conf` for systemd services to work. Without it, gateway falls back to `nohup` (dies when session closes).\r\n- **Gateway crash loop**: Reset the failed state: `systemctl --user reset-failed hermes-gateway`\r\n\r\n### Platform-specific issues\r\n- **Discord bot silent**: Must enable **Message Content Intent** in Bot → Privileged Gateway Intents.\r\n- **Slack bot only works in DMs**: Must subscribe to `message.channels` event. Without it, the bot ignores public channels.\r\n- **Windows-specific issues** (`Alt+Enter` newline, WinError 10106, UTF-8 BOM config, test suite, line endings): see the dedicated **Windows-Specific Quirks** section above.\r\n\r\n### Auxiliary models not working\r\nIf `auxiliary` tasks (vision, compression, session_search) fail silently, the `auto` provider can't find a backend. Either set `OPENROUTER_API_KEY` or `GOOGLE_API_KEY`, or explicitly configure each auxiliary task's provider:\r\n```bash\r\nhermes config set auxiliary.vision.provider \u003Cyour_provider>\r\nhermes config set auxiliary.vision.model \u003Cmodel_name>\r\n```\r\n\r\n---\r\n\r\n## Where to Find Things\r\n\r\n| Looking for... | Location |\r\n|----------------|----------|\r\n| Config options | `hermes config edit` or [Configuration docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fconfiguration) |\r\n| Available tools | `hermes tools list` or [Tools reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Ftools-reference) |\r\n| Slash commands | `\u002Fhelp` in session or [Slash commands reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fslash-commands) |\r\n| Skills catalog | `hermes skills browse` or [Skills catalog](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fskills-catalog) |\r\n| Provider setup | `hermes model` or [Providers guide](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fintegrations\u002Fproviders) |\r\n| Platform setup | `hermes gateway setup` or [Messaging docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002F) |\r\n| MCP servers | `hermes mcp list` or [MCP guide](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmcp) |\r\n| Profiles | `hermes profile list` or [Profiles docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fprofiles) |\r\n| Cron jobs | `hermes cron list` or [Cron docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fcron) |\r\n| Memory | `hermes memory status` or [Memory docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmemory) |\r\n| Env variables | `hermes config env-path` or [Env vars reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fenvironment-variables) |\r\n| CLI commands | `hermes --help` or [CLI reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fcli-commands) |\r\n| Gateway logs | `~\u002F.hermes\u002Flogs\u002Fgateway.log` |\r\n| Session files | `hermes sessions browse` (reads state.db) |\r\n| Source code | `~\u002F.hermes\u002Fhermes-agent\u002F` |\r\n\r\n---\r\n\r\n## Contributor Quick Reference\r\n\r\nFor occasional contributors and PR authors. Full developer docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fdeveloper-guide\u002F\r\n\r\n### Project Layout\r\n\r\n```\r\nhermes-agent\u002F\r\n├── run_agent.py          # AIAgent — core conversation loop\r\n├── model_tools.py        # Tool discovery and dispatch\r\n├── toolsets.py           # Toolset definitions\r\n├── cli.py                # Interactive CLI (HermesCLI)\r\n├── hermes_state.py       # SQLite session store\r\n├── agent\u002F                # Prompt builder, context compression, memory, model routing, credential pooling, skill dispatch\r\n├── hermes_cli\u002F           # CLI subcommands, config, setup, commands\r\n│   ├── commands.py       # Slash command registry (CommandDef)\r\n│   ├── config.py         # DEFAULT_CONFIG, env var definitions\r\n│   └── main.py           # CLI entry point and argparse\r\n├── tools\u002F                # One file per tool\r\n│   └── registry.py       # Central tool registry\r\n├── gateway\u002F              # Messaging gateway\r\n│   └── platforms\u002F        # Platform adapters (telegram, discord, etc.)\r\n├── cron\u002F                 # Job scheduler\r\n├── tests\u002F                # Extensive pytest suite (run via scripts\u002Frun_tests.sh)\r\n└── website\u002F              # Docusaurus docs site\r\n```\r\n\r\nConfig: `~\u002F.hermes\u002Fconfig.yaml` (settings), `~\u002F.hermes\u002F.env` (API keys) — both under `$HERMES_HOME` when it is set.\r\n\r\n### Adding a Tool\r\n\r\nTwo files. Auto-discovery imports any `tools\u002F*.py` with a top-level\r\n`registry.register()` call, but a tool is only *exposed* to an agent once\r\nits name appears in a toolset.\r\n\r\n**1. Create `tools\u002Fyour_tool.py`:**\r\n```python\r\nimport json, os\r\nfrom tools.registry import registry\r\n\r\ndef check_requirements() -> bool:\r\n    return bool(os.getenv(\"EXAMPLE_API_KEY\"))\r\n\r\ndef example_tool(param: str, task_id: str = None) -> str:\r\n    return json.dumps({\"success\": True, \"data\": \"...\"})\r\n\r\nregistry.register(\r\n    name=\"example_tool\",\r\n    toolset=\"example\",\r\n    schema={\"name\": \"example_tool\", \"description\": \"...\", \"parameters\": {...}},\r\n    handler=lambda args, **kw: example_tool(\r\n        param=args.get(\"param\", \"\"), task_id=kw.get(\"task_id\")),\r\n    check_fn=check_requirements,\r\n    requires_env=[\"EXAMPLE_API_KEY\"],\r\n)\r\n```\r\n\r\n**2. Wire it into a toolset in `toolsets.py`** — add the name to\r\n`_HERMES_CORE_TOOLS` (every platform) or to a specific toolset.\r\n\r\nAll handlers must return JSON strings. Use `get_hermes_home()` for paths,\r\nnever hardcode `~\u002F.hermes`. For custom\u002Flocal-only tools, write a plugin in\r\n`~\u002F.hermes\u002Fplugins\u002F` instead of editing core — see the developer docs.\r\n\r\n### Adding a Slash Command\r\n\r\n1. Add `CommandDef` to `COMMAND_REGISTRY` in `hermes_cli\u002Fcommands.py`\r\n2. Add handler in `cli.py` → `process_command()`\r\n3. (Optional) Add gateway handler in `gateway\u002Frun.py`\r\n\r\nAll consumers (help text, autocomplete, Telegram menu, Slack mapping) derive from the central registry automatically.\r\n\r\n### Agent Loop (High Level)\r\n\r\n```\r\nrun_conversation():\r\n  1. Build system prompt\r\n  2. Loop while iterations \u003C max:\r\n     a. Call LLM (OpenAI-format messages + tool schemas)\r\n     b. If tool_calls → dispatch each via handle_function_call() → append results → continue\r\n     c. If text response → return\r\n  3. Context compression triggers automatically near token limit\r\n```\r\n\r\n### Testing\r\n\r\nUse the canonical runner — it enforces CI-parity (hermetic env, unset\r\ncredentials, TZ=UTC, xdist workers, per-test subprocess isolation):\r\n\r\n```bash\r\nscripts\u002Frun_tests.sh                          # full suite\r\nscripts\u002Frun_tests.sh tests\u002Ftools\u002F             # one directory\r\nscripts\u002Frun_tests.sh tests\u002Ftools\u002Ftest_x.py    # one file\r\nscripts\u002Frun_tests.sh -v --tb=long             # pass-through pytest flags\r\n```\r\n\r\n- Tests auto-redirect `HERMES_HOME` to temp dirs — never touch real `~\u002F.hermes\u002F`.\r\n- The script probes `.venv`, then `venv`, then the shared worktree venv.\r\n- **Windows:** the wrapper is POSIX-only; see the **Windows-Specific Quirks**\r\n  section above for the direct-pytest workaround.\r\n\r\n**Cross-platform test guards:** tests using POSIX-only syscalls need a skip marker. Common ones already in the codebase:\r\n- Symlink creation → `@pytest.mark.skipif(sys.platform == \"win32\", reason=\"Symlinks require elevated privileges on Windows\")` (see `tests\u002Fcron\u002Ftest_cron_script.py`)\r\n- POSIX file modes (0o600, etc.) → `@pytest.mark.skipif(sys.platform.startswith(\"win\"), reason=\"POSIX mode bits not enforced on Windows\")` (see `tests\u002Fhermes_cli\u002Ftest_auth_toctou_file_modes.py`)\r\n- `signal.SIGALRM` → Unix-only (see `tests\u002Fconftest.py::_enforce_test_timeout`)\r\n- Live Winsock \u002F Windows-specific regression tests → `@pytest.mark.skipif(sys.platform != \"win32\", reason=\"Windows-specific regression\")`\r\n\r\n**Monkeypatching `sys.platform` is not enough** when the code under test also calls `platform.system()` \u002F `platform.release()` \u002F `platform.mac_ver()`. Those functions re-read the real OS independently, so a test that sets `sys.platform = \"linux\"` on a Windows runner will still see `platform.system() == \"Windows\"` and route through the Windows branch. Patch all three together:\r\n\r\n```python\r\nmonkeypatch.setattr(sys, \"platform\", \"linux\")\r\nmonkeypatch.setattr(platform, \"system\", lambda: \"Linux\")\r\nmonkeypatch.setattr(platform, \"release\", lambda: \"6.8.0-generic\")\r\n```\r\n\r\nSee `tests\u002Fagent\u002Ftest_prompt_builder.py::TestEnvironmentHints` for a worked example.\r\n\r\n### System prompt's execution-environment block\r\n\r\nFactual host\u002Fbackend guidance (OS, `$HOME`, cwd, terminal backend, shell)\r\nis emitted by `agent\u002Fprompt_builder.py::build_environment_hints()`. The key\r\ninvariant for prompt authors: with a **remote** terminal backend\r\n(`docker, singularity, modal, daytona, ssh, managed_modal`), host info is\r\nsuppressed and *every* file tool runs inside the backend container — the\r\nprompt must never describe the host the agent can't touch.\r\n\r\n### Commit Conventions\r\n\r\n```\r\ntype: concise subject line\r\n\r\nOptional body.\r\n```\r\n\r\nTypes: `fix:`, `feat:`, `refactor:`, `docs:`, `chore:`\r\n\r\n### Key Rules\r\n\r\n- **Never break prompt caching** — don't change context, tools, or system prompt mid-conversation\r\n- **Message role alternation** — never two assistant or two user messages in a row\r\n- Use `get_hermes_home()` from `hermes_constants` for all paths (profile-safe)\r\n- Config values go in `config.yaml`, secrets go in `.env`\r\n- New tools need a `check_fn` so they only appear when requirements are met\r\n","# Hermes Agent\r\n\r\nHermes Agent is an open-source AI agent framework by Nous Research that runs in your terminal, a native desktop app, messaging platforms, and IDEs. It's in the same category as Claude Code (Anthropic), Codex (OpenAI), and OpenClaw — autonomous coding and task-execution agents that use tool calling to interact with your system. Hermes works with any LLM provider (OpenRouter, Anthropic, OpenAI, Google, DeepSeek, xAI, local models, and 20+ others) and runs on Linux, macOS, Windows, and WSL.\r\n\r\nWhat makes Hermes different:\r\n\r\n- **Self-improving through skills** — Hermes learns from experience by saving reusable procedures as skills. When it solves a complex problem, discovers a workflow, or gets corrected, it can persist that knowledge as a skill document that loads into future sessions. Skills accumulate over time, making the agent better at your specific tasks and environment.\r\n- **Persistent memory across sessions** — remembers who you are, your preferences, environment details, and lessons learned. Pluggable memory backends (built-in, Honcho, Mem0, and more) let you choose how memory works.\r\n- **Multi-platform gateway** — the same agent runs on Telegram, Discord, Slack, WhatsApp, iMessage, Signal, Matrix, Teams, Email, and a dozen more platforms with full tool access, not just chat.\r\n- **Many surfaces** — the same agent core drives the CLI, the Ink TUI, a native Electron desktop app, a web dashboard, and an ACP server for IDEs (VS Code \u002F Zed \u002F JetBrains).\r\n- **Provider-agnostic** — swap models and providers mid-workflow without changing anything else. Credential pools rotate across multiple API keys automatically.\r\n- **Profiles** — run multiple independent Hermes instances with isolated configs, sessions, skills, and memory.\r\n- **Extensible** — plugins, MCP servers, custom tools, webhook triggers, cron scheduling, and the full Python ecosystem.\r\n\r\nPeople use Hermes for software development, research, system administration, data analysis, content creation, home automation, and anything else that benefits from an AI agent with persistent context and full system access.\r\n\r\n**This skill helps you work with Hermes Agent effectively** — setting it up, configuring features, spawning additional agent instances, troubleshooting issues, finding the right commands and settings, and understanding how the system works when you need to extend or contribute to it.\r\n\r\n**Docs:** https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002F\r\n\r\n## Scope & Verification\r\n\r\nThis skill is a concise operating guide, not the complete source of truth for every Hermes feature. If a Hermes feature, command, or setting is not mentioned here, do not treat that absence as evidence that it does not exist. Check the live repository and official docs before giving a negative answer.\r\n\r\nGood verification targets:\r\n\r\n- CLI commands: `hermes --help`, `hermes \u003Ccommand> --help`, and `hermes_cli\u002Fmain.py`\r\n- User documentation: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002F\r\n- Source tree: https:\u002F\u002Fgithub.com\u002FNousResearch\u002Fhermes-agent\r\n\r\n## Quick Start\r\n\r\n```bash\r\n# Install (shell installer — sets up uv, Python, the venv, and the launcher)\r\ncurl -fsSL https:\u002F\u002Fhermes-agent.nousresearch.com\u002Finstall.sh | bash\r\n\r\n# Interactive chat (default surface; set display.interface: tui to launch the Ink TUI instead)\r\nhermes\r\n\r\n# Single query\r\nhermes chat -q \"What is the capital of France?\"\r\n\r\n# Setup wizard  \u002F  pick model+provider  \u002F  health check\r\nhermes setup\r\nhermes model\r\nhermes doctor\r\n\r\n# Other surfaces\r\nhermes desktop                 # launch the native desktop app (alias: hermes gui)\r\nhermes dashboard               # web admin panel + embedded chat\r\nhermes proxy                   # OpenAI-compatible local proxy backed by your OAuth provider\r\n```\r\n\r\n---\r\n\r\n## CLI Reference\r\n\r\n### Global Flags\r\n\r\n```\r\nhermes [flags] [command]\r\n\r\n  --version, -V             Show version\r\n  --resume, -r SESSION      Resume session by ID or title\r\n  --continue, -c [NAME]     Resume by name, or most recent session\r\n  --worktree, -w            Isolated git worktree mode (parallel agents)\r\n  --skills, -s SKILL        Preload skills (comma-separate or repeat)\r\n  --profile, -p NAME        Use a named profile\r\n  --yolo                    Skip dangerous command approval\r\n  --pass-session-id         Include session ID in system prompt\r\n```\r\n\r\nNo subcommand defaults to `chat`.\r\n\r\n### Chat\r\n\r\n```\r\nhermes chat [flags]\r\n  -q, --query TEXT          Single query, non-interactive\r\n  -m, --model MODEL         Model (e.g. anthropic\u002Fclaude-sonnet-4)\r\n  -t, --toolsets LIST       Comma-separated toolsets\r\n  --provider PROVIDER       Force provider (openrouter, anthropic, nous, etc.)\r\n  -v, --verbose             Verbose output\r\n  -Q, --quiet               Suppress banner, spinner, tool previews\r\n  --checkpoints             Enable filesystem checkpoints (\u002Frollback)\r\n  --source TAG              Session source tag (default: cli)\r\n```\r\n\r\n### Configuration\r\n\r\n```\r\nhermes setup [section]      Interactive wizard (model|terminal|gateway|tools|agent)\r\nhermes model                Interactive model\u002Fprovider picker\r\nhermes config               View current config\r\nhermes config edit          Open config.yaml in $EDITOR\r\nhermes config set KEY VAL   Set a config value\r\nhermes config path          Print config.yaml path\r\nhermes config env-path      Print .env path\r\nhermes config check         Check for missing\u002Foutdated config\r\nhermes config migrate       Update config with new options\r\nhermes doctor [--fix]       Check dependencies and config\r\nhermes status [--all]       Show component status\r\n```\r\n\r\nCredentials (OAuth + API keys, with pooling) are managed under `hermes auth` — see the Credentials & Pools section below.\r\n\r\n### Tools & Skills\r\n\r\n```\r\nhermes tools                Interactive tool enable\u002Fdisable (curses UI)\r\nhermes tools list           Show all tools and status\r\nhermes tools enable NAME    Enable a toolset\r\nhermes tools disable NAME   Disable a toolset\r\n\r\nhermes skills list          List installed skills\r\nhermes skills search QUERY  Search the skills hub\r\nhermes skills install ID    Install a skill (ID can be a hub identifier OR a direct https:\u002F\u002F…\u002FSKILL.md URL; pass --name to override when frontmatter has no name)\r\nhermes skills inspect ID    Preview without installing\r\nhermes skills config        Enable\u002Fdisable skills per platform\r\nhermes skills check         Check for updates\r\nhermes skills update        Update outdated skills\r\nhermes skills uninstall N   Remove a hub skill\r\nhermes skills publish PATH  Publish to registry\r\nhermes skills browse        Browse all available skills\r\nhermes skills tap add REPO  Add a GitHub repo as skill source\r\n```\r\n\r\n### MCP Servers\r\n\r\n```\r\nhermes mcp serve            Run Hermes as an MCP server\r\nhermes mcp add NAME         Add an MCP server (--url or --command)\r\nhermes mcp remove NAME      Remove an MCP server\r\nhermes mcp list             List configured servers\r\nhermes mcp test NAME        Test connection\r\nhermes mcp configure NAME   Toggle tool selection\r\n```\r\n\r\nHow the built-in MCP client connects servers (stdio\u002FHTTP), auto-discovers\r\ntheir tools, and exposes them as first-class tools, plus catalog install\r\n(`hermes mcp install \u003Cname>`): `skill_view(name=\"hermes-agent\", file_path=\"references\u002Fnative-mcp.md\")`.\r\n\r\n### Gateway (Messaging Platforms)\r\n\r\n```\r\nhermes gateway run          Start gateway foreground\r\nhermes gateway install      Install as background service\r\nhermes gateway start\u002Fstop   Control the service\r\nhermes gateway restart      Restart the service\r\nhermes gateway status       Check status\r\nhermes gateway setup        Configure platforms\r\n```\r\n\r\nSupported platforms (20+): Telegram, Discord, Slack, WhatsApp (Baileys bridge + official Business Cloud API), iMessage (Photon — `hermes photon setup`, the BlueBubbles successor with no Mac relay), Signal, Email, SMS, Matrix, Mattermost, Microsoft Teams, LINE, SimpleX, ntfy, Google Chat, Home Assistant, DingTalk, Feishu, WeCom, Weixin (WeChat), Raft (agent network), API Server, Webhooks. Open WebUI connects via the API Server adapter. Most adapters ship under `plugins\u002Fplatforms\u002F`, so new ones drop in without touching core.\r\n\r\nPlatform docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002F\r\n\r\n### Sessions\r\n\r\n```\r\nhermes sessions list        List recent sessions\r\nhermes sessions browse      Interactive picker\r\nhermes sessions export OUT  Export to JSONL\r\nhermes sessions rename ID T Rename a session\r\nhermes sessions delete ID   Delete a session\r\nhermes sessions prune       Clean up old sessions (--older-than N days)\r\nhermes sessions stats       Session store statistics\r\n```\r\n\r\n### Cron Jobs\r\n\r\n```\r\nhermes cron list            List jobs (--all for disabled)\r\nhermes cron create SCHED    Create: '30m', 'every 2h', '0 9 * * *'\r\nhermes cron edit ID         Edit schedule, prompt, delivery\r\nhermes cron pause\u002Fresume ID Control job state\r\nhermes cron run ID          Trigger on next tick\r\nhermes cron remove ID       Delete a job\r\nhermes cron status          Scheduler status\r\n```\r\n\r\n### Webhooks\r\n\r\n```\r\nhermes webhook subscribe N  Create route at \u002Fwebhooks\u002F\u003Cname>\r\nhermes webhook list         List subscriptions\r\nhermes webhook remove NAME  Remove a subscription\r\nhermes webhook test NAME    Send a test POST\r\n```\r\n\r\nFull setup, route config, payload templating, and event-driven agent-run\r\npatterns: `skill_view(name=\"hermes-agent\", file_path=\"references\u002Fwebhooks.md\")`.\r\n\r\n### Profiles\r\n\r\n```\r\nhermes profile list         List all profiles\r\nhermes profile create NAME  Create (--clone, --clone-all, --clone-from)\r\nhermes profile use NAME     Set sticky default\r\nhermes profile delete NAME  Delete a profile\r\nhermes profile show NAME    Show details\r\nhermes profile alias NAME   Manage wrapper scripts\r\nhermes profile rename A B   Rename a profile\r\nhermes profile export NAME  Export to tar.gz\r\nhermes profile import FILE  Import from archive\r\n```\r\n\r\n### Credentials & Pools\r\n\r\n```\r\nhermes auth                 Interactive credential manager\r\nhermes auth add [PROVIDER]  Add OAuth or API-key credential\r\n                            (e.g. nous, openai-codex, qwen-oauth, anthropic)\r\nhermes auth list [PROVIDER] List pooled credentials\r\nhermes auth remove P INDEX  Remove by provider + index\r\nhermes auth reset PROVIDER  Clear exhaustion status\r\n```\r\n\r\nMultiple credentials per provider form a pool that rotates automatically and skips exhausted keys.\r\n\r\n### Other\r\n\r\n```\r\nhermes insights [--days N]  Usage analytics\r\nhermes update               Update to latest version\r\nhermes desktop \u002F gui        Launch the native desktop app\r\nhermes dashboard            Web admin panel + embedded chat\r\nhermes proxy                OpenAI-compatible local proxy backed by an OAuth provider\r\nhermes portal               Quick setup \u002F sign in via Nous Portal\r\nhermes kanban \u003Cverb>        Multi-agent work-queue board (init\u002Fcreate\u002Flist\u002Fshow\u002Fassign\u002F…)\r\nhermes pairing list\u002Fapprove\u002Frevoke  DM authorization\r\nhermes plugins list\u002Finstall\u002Fremove  Plugin management\r\nhermes secrets bitwarden …  External secret store (Bitwarden Secrets Manager)\r\nhermes memory setup\u002Fstatus\u002Foff  Memory provider config\r\nhermes send                 Send a one-off message through a gateway platform\r\nhermes completion bash|zsh  Shell completions\r\nhermes acp                  ACP server (IDE integration)\r\nhermes claw migrate         Migrate from OpenClaw\r\nhermes uninstall            Uninstall Hermes\r\n```\r\n\r\nFor the full, authoritative command list run `hermes --help` (and `hermes \u003Ccommand> --help`). Plugin- and provider-supplied subcommands (e.g. `hermes photon setup` for iMessage) only appear once their plugin is installed\u002Factive.\r\n\r\n---\r\n\r\n## Slash Commands (In-Session)\r\n\r\nType these during an interactive chat session. New commands land fairly\r\noften; if something below looks stale, run `\u002Fhelp` in-session for the\r\nauthoritative list or see the [live slash commands reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fslash-commands).\r\nThe registry of record is `hermes_cli\u002Fcommands.py` — every consumer\r\n(autocomplete, Telegram menu, Slack mapping, `\u002Fhelp`) derives from it.\r\n\r\n### Session Control\r\n```\r\n\u002Fnew (\u002Freset)        Fresh session\r\n\u002Fclear               Clear screen + new session (CLI)\r\n\u002Fretry               Resend last message\r\n\u002Fundo                Remove last exchange\r\n\u002Ftitle [name]        Name the session\r\n\u002Fcompress            Manually compress context\r\n\u002Fstop                Kill background processes\r\n\u002Frollback [N]        Restore filesystem checkpoint\r\n\u002Fsnapshot [sub]      Create or restore state snapshots of Hermes config\u002Fstate (CLI)\r\n\u002Fbackground \u003Cprompt> Run prompt in background\r\n\u002Fqueue \u003Cprompt>      Queue for next turn\r\n\u002Fsteer \u003Cprompt>      Inject a message after the next tool call without interrupting\r\n\u002Fagents (\u002Ftasks)     Show active agents and running tasks\r\n\u002Fresume [name]       Resume a named session\r\n\u002Fgoal [text|sub]     Set a standing goal Hermes works on across turns until achieved\r\n                     (subcommands: status, pause, resume, clear)\r\n\u002Fredraw              Force a full UI repaint (CLI)\r\n```\r\n\r\n### Configuration\r\n```\r\n\u002Fconfig              Show config (CLI)\r\n\u002Fmodel [name]        Show or change model\r\n\u002Fpersonality [name]  Set personality\r\n\u002Freasoning [level]   Set reasoning (none|minimal|low|medium|high|xhigh|max|ultra|show|hide)\r\n\u002Fverbose             Cycle: off → new → all → verbose\r\n\u002Fvoice [on|off|tts]  Voice mode\r\n\u002Fyolo                Toggle approval bypass\r\n\u002Fbusy [sub]          Control what Enter does while Hermes is working (CLI)\r\n                     (subcommands: queue, steer, interrupt, status)\r\n\u002Findicator [style]   Pick the TUI busy-indicator style (CLI)\r\n                     (styles: kaomoji, emoji, unicode, ascii)\r\n\u002Ffooter [on|off]     Toggle gateway runtime-metadata footer on final replies\r\n\u002Fskin [name]         Change theme (CLI)\r\n\u002Fstatusbar           Toggle status bar (CLI)\r\n```\r\n\r\n### Tools & Skills\r\n```\r\n\u002Ftools               Manage tools (CLI)\r\n\u002Ftoolsets            List toolsets (CLI)\r\n\u002Fskills              Search\u002Finstall skills (CLI)\r\n\u002Fskill \u003Cname>        Load a skill into session\r\n\u002Freload-skills       Re-scan ~\u002F.hermes\u002Fskills\u002F for added\u002Fremoved skills\r\n\u002Freload              Reload .env variables into the running session (CLI)\r\n\u002Freload-mcp          Reload MCP servers\r\n\u002Fcron                Manage cron jobs (CLI)\r\n\u002Fcurator [sub]       Background skill maintenance (status, run, pin, archive, …)\r\n\u002Fkanban [sub]        Multi-profile collaboration board (tasks, links, comments)\r\n\u002Fplugins             List plugins (CLI)\r\n```\r\n\r\n### Gateway\r\n```\r\n\u002Fapprove             Approve a pending command (gateway)\r\n\u002Fdeny                Deny a pending command (gateway)\r\n\u002Frestart             Restart gateway (gateway)\r\n\u002Fsethome             Set current chat as home channel (gateway)\r\n\u002Fupdate              Update Hermes to latest (gateway)\r\n\u002Ftopic [sub]         Enable or inspect Telegram DM topic sessions (gateway)\r\n\u002Fplatforms (\u002Fgateway) Show platform connection status (gateway)\r\n```\r\n\r\n### Utility\r\n```\r\n\u002Fbranch (\u002Ffork)      Branch the current session\r\n\u002Fhandoff \u003Cplatform>  Hand the live session off to a messaging platform (CLI)\r\n\u002Ffast                Toggle priority\u002Ffast processing\r\n\u002Fbrowser             Open CDP browser connection\r\n\u002Fhistory             Show conversation history (CLI)\r\n\u002Fsave                Save conversation to file (CLI)\r\n\u002Fcopy [N]            Copy the last assistant response to clipboard (CLI)\r\n\u002Fpaste               Attach clipboard image (CLI)\r\n\u002Fimage               Attach local image file (CLI)\r\n```\r\n\r\n### Info\r\n```\r\n\u002Fhelp                Show commands\r\n\u002Fcommands [page]     Browse all commands (gateway)\r\n\u002Fusage               Token usage\r\n\u002Finsights [days]     Usage analytics\r\n\u002Fstatus              Session info (gateway)\r\n\u002Fprofile             Active profile info\r\n\u002Fdebug               Upload debug report (system info + logs) and get shareable links\r\n```\r\n\r\n### Exit\r\n```\r\n\u002Fquit (\u002Fexit, \u002Fq)    Exit CLI\r\n```\r\n\r\n---\r\n\r\n## Key Paths & Config\r\n\r\n```\r\n~\u002F.hermes\u002Fconfig.yaml       Main configuration\r\n~\u002F.hermes\u002F.env              API keys and secrets (under $HERMES_HOME if set)\r\n$HERMES_HOME\u002Fskills\u002F        Installed skills\r\n~\u002F.hermes\u002Fsessions\u002F         Gateway routing index, request dumps, *.jsonl transcripts (and optional per-session JSON snapshots when sessions.write_json_snapshots: true)\r\n~\u002F.hermes\u002Fstate.db          Canonical session store (SQLite + FTS5)\r\n~\u002F.hermes\u002Flogs\u002F             Gateway and error logs\r\n~\u002F.hermes\u002Fauth.json         OAuth tokens and credential pools\r\n~\u002F.hermes\u002Fhermes-agent\u002F     Source code (if git-installed)\r\n```\r\n\r\nProfiles use `~\u002F.hermes\u002Fprofiles\u002F\u003Cname>\u002F` with the same layout.\r\n\r\n### Config Sections\r\n\r\nEdit with `hermes config edit` or `hermes config set section.key value`.\r\n\r\n| Section | Key options |\r\n|---------|-------------|\r\n| `model` | `default`, `provider`, `base_url`, `api_key`, `context_length` |\r\n| `agent` | `max_turns` (90), `tool_use_enforcement` |\r\n| `terminal` | `backend` (local\u002Fdocker\u002Fssh\u002Fmodal), `cwd`, `timeout` (180) |\r\n| `compression` | `enabled`, `threshold` (0.50), `target_ratio` (0.20) |\r\n| `display` | `skin`, `interface` (cli\u002Ftui), `tool_progress`, `show_reasoning`, `show_cost`, `language` |\r\n| `stt` | `enabled`, `provider` (local\u002Fgroq\u002Fopenai\u002Fmistral) |\r\n| `tts` | `provider` (edge\u002Felevenlabs\u002Fopenai\u002Fminimax\u002Fmistral\u002Fneutts) |\r\n| `memory` | `memory_enabled`, `user_profile_enabled`, `provider` |\r\n| `security` | `tirith_enabled`, `website_blocklist` |\r\n| `delegation` | `model`, `provider`, `base_url`, `api_key`, `max_iterations` (50), `reasoning_effort` |\r\n| `checkpoints` | `enabled`, `max_snapshots` (50) |\r\n| `curator` | `enabled`, `consolidate` (false — opt-in aux-model skill consolidation), `interval_hours`, `stale_after_days` |\r\n\r\nFull config reference: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fconfiguration\r\n\r\n### Providers\r\n\r\n20+ providers supported. Set via `hermes model` or `hermes setup`.\r\n\r\n| Provider | Auth | Key env var |\r\n|----------|------|-------------|\r\n| OpenRouter | API key | `OPENROUTER_API_KEY` |\r\n| Anthropic | API key | `ANTHROPIC_API_KEY` |\r\n| Nous Portal | OAuth | `hermes auth` |\r\n| OpenAI Codex | OAuth | `hermes auth` |\r\n| GitHub Copilot | Token | `COPILOT_GITHUB_TOKEN` |\r\n| Google Gemini | API key | `GOOGLE_API_KEY` or `GEMINI_API_KEY` |\r\n| DeepSeek | API key | `DEEPSEEK_API_KEY` |\r\n| xAI \u002F Grok | API key | `XAI_API_KEY` |\r\n| Hugging Face | Token | `HF_TOKEN` |\r\n| Z.AI \u002F GLM | API key | `GLM_API_KEY` |\r\n| MiniMax | API key | `MINIMAX_API_KEY` |\r\n| MiniMax CN | API key | `MINIMAX_CN_API_KEY` |\r\n| Kimi \u002F Moonshot | API key | `KIMI_API_KEY` |\r\n| Alibaba \u002F DashScope | API key | `DASHSCOPE_API_KEY` |\r\n| Xiaomi MiMo | API key | `XIAOMI_API_KEY` |\r\n| Kilo Code | API key | `KILOCODE_API_KEY` |\r\n| OpenCode Zen | API key | `OPENCODE_ZEN_API_KEY` |\r\n| OpenCode Go | API key | `OPENCODE_GO_API_KEY` |\r\n| Qwen OAuth | OAuth | `hermes auth add qwen-oauth` |\r\n| Custom endpoint | Config | `model.base_url` + `model.api_key` in config.yaml |\r\n| GitHub Copilot ACP | External | `COPILOT_CLI_PATH` or Copilot CLI |\r\n\r\nFull provider docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fintegrations\u002Fproviders\r\n\r\n### Toolsets\r\n\r\nEnable\u002Fdisable via `hermes tools` (interactive) or `hermes tools enable\u002Fdisable NAME`.\r\n\r\n| Toolset | What it provides |\r\n|---------|-----------------|\r\n| `web` | Web search and content extraction |\r\n| `search` | Web search only (subset of `web`) |\r\n| `browser` | Browser automation (Browserbase, Camofox, or local Chromium) |\r\n| `terminal` | Shell commands and process management |\r\n| `file` | File read\u002Fwrite\u002Fsearch\u002Fpatch |\r\n| `code_execution` | Sandboxed Python execution |\r\n| `vision` | Image analysis |\r\n| `image_gen` | AI image generation and image-to-image editing |\r\n| `video` | Video analysis (`video_analyze`) and generation |\r\n| `x_search` | First-class X (Twitter) search (X OAuth or API key) |\r\n| `tts` | Text-to-speech |\r\n| `skills` | Skill browsing and management |\r\n| `memory` | Persistent cross-session memory |\r\n| `session_search` | Search past conversations |\r\n| `delegation` | Subagent task delegation |\r\n| `cronjob` | Scheduled task management |\r\n| `clarify` | Ask user clarifying questions |\r\n| `messaging` | Cross-platform message sending |\r\n| `todo` | In-session task planning and tracking |\r\n| `kanban` | Multi-agent work-queue tools (gated to workers) |\r\n| `debugging` | Extra introspection\u002Fdebug tools (off by default) |\r\n| `safe` | Minimal, low-risk toolset for locked-down sessions |\r\n| `spotify` | Spotify playback and playlist control |\r\n| `homeassistant` | Smart home control (off by default) |\r\n| `discord` | Discord integration tools |\r\n| `discord_admin` | Discord admin\u002Fmoderation tools |\r\n| `feishu_doc` | Feishu (Lark) document tools |\r\n| `feishu_drive` | Feishu (Lark) drive tools |\r\n| `yuanbao` | Yuanbao integration tools |\r\n| `rl` | Reinforcement learning tools (off by default) |\r\n\r\nFull enumeration lives in `toolsets.py` as the `TOOLSETS` dict; `_HERMES_CORE_TOOLS` is the default bundle most platforms inherit from.\r\n\r\nTool changes take effect on `\u002Freset` (new session). They do NOT apply mid-conversation to preserve prompt caching.\r\n\r\n---\r\n\r\n## Project Context Files\r\n\r\nHermes injects project-level instructions into the system prompt by reading context files from the working directory. The discovery order is **first match wins** — only one project context source is loaded per session.\r\n\r\n| File (in priority order) | Discovery | Use when |\r\n|---|---|---|\r\n| `.hermes.md` \u002F `HERMES.md` | Walks parents up to the git root, stops at git root | You want hierarchical project rules (root + per-package overrides) |\r\n| `AGENTS.md` \u002F `agents.md` | **Cwd only** — subdirectory and parent copies are ignored | You want portable agent instructions that work the same in Hermes, Claude Code, Codex, etc. |\r\n| `CLAUDE.md` \u002F `claude.md` | Cwd only | Same as AGENTS.md, Claude-flavored |\r\n| `.cursorrules` \u002F `.cursor\u002Frules\u002F*.mdc` | Cwd only | Migrating from Cursor |\r\n\r\n`SOUL.md` (in `$HERMES_HOME`) is independent and always loaded when present — it sets the agent's identity, not project rules.\r\n\r\n### Pick the right one\r\n\r\n- **Use `.hermes.md`** when you want Hermes-specific behavior that lives above the cwd (root + subtree), or when you want rules to inherit from a parent directory. The parent walk stops at the git root, so a home-level `.hermes.md` won't leak into every project (a git repo's root is the boundary).\r\n- **Use `AGENTS.md`** when the same project will also be worked on by other agents (Codex, Claude Code, OpenCode). Those tools all have their own conventions for `AGENTS.md`, and the \"cwd only\" contract keeps the file portable.\r\n- **Don't put project rules in `~\u002F.hermes\u002FAGENTS.md`** (or any other home-level location). When Hermes runs with that directory as cwd, the file loads — but only for that one directory. For cross-project context, use `SOUL.md` (in `$HERMES_HOME`, identity-only) or install a skill via `hermes skills install`.\r\n\r\n### Size and truncation\r\n\r\nEach context file is capped at 20,000 characters. Files longer than that get **head + tail** truncated (the middle is dropped, with a `[...truncated...]` marker). For large project rules, prefer splitting into multiple skills over cramming one file.\r\n\r\n### Security\r\n\r\nAll context files pass through the threat-pattern scanner before reaching the system prompt. Patterns matching prompt injection or promptware are replaced with a `[BLOCKED: ...]` placeholder. This means an `AGENTS.md` containing obvious injection attempts won't reach the model — the scanner blocks the content, not the file, so the rest of the file still loads.\r\n\r\n### Disable for one session\r\n\r\n`hermes --ignore-rules` skips auto-injection of all project context files (`.hermes.md`, `AGENTS.md`, `CLAUDE.md`, `.cursorrules`) **and** `SOUL.md` identity, plus user config, plugins, and MCP servers. Use it to isolate whether a problem is your setup or Hermes itself.\r\n\r\n### Example: a small `.hermes.md`\r\n\r\n```markdown\r\n# My Project\r\n\r\nHermes: when working in this repo, follow these rules.\r\n\r\n## Build\r\n- Always run `make test` before declaring a change done.\r\n- Use `uv run` for Python, not `pip install`.\r\n\r\n## Style\r\n- Prefer `pathlib.Path` over `os.path`.\r\n- No `print()` in production code — use the `logger`.\r\n```\r\n\r\nThat file at `\u002Fhome\u002Fme\u002Fprojects\u002Fmyrepo\u002F.hermes.md` is auto-loaded when Hermes runs in any subdirectory of `\u002Fhome\u002Fme\u002Fprojects\u002Fmyrepo`, but not when it runs in `\u002Fhome\u002Fme\u002Fother-project`.\r\n\r\n## Security & Privacy Toggles\r\n\r\nCommon \"why is Hermes doing X to my output \u002F tool calls \u002F commands?\" toggles — and the exact commands to change them. Most of these need a fresh session (`\u002Freset` in chat, or start a new `hermes` invocation) because they're read once at startup.\r\n\r\n### Secret redaction in tool output\r\n\r\nSecret redaction is **on by default** — tool output (terminal stdout, `read_file`, web content, subagent summaries, etc.) is scanned for strings that look like API keys, tokens, and secrets before it enters the conversation context and logs. Leave it enabled for normal use:\r\n\r\n```bash\r\nhermes config set security.redact_secrets true       # keep enabled globally\r\n```\r\n\r\n**Restart required.** `security.redact_secrets` is snapshotted at import time — toggling it mid-session (e.g. via `export HERMES_REDACT_SECRETS=false` from a tool call) will NOT take effect for the running process. Tell the user to change it in config from a terminal, then start a new session. This is deliberate — it prevents an LLM from flipping the toggle on itself mid-task.\r\n\r\nDisable only when you deliberately need raw credential-like strings for debugging or redactor development:\r\n```bash\r\nhermes config set security.redact_secrets false\r\n```\r\n\r\n### PII redaction in gateway messages\r\n\r\nSeparate from secret redaction. When enabled, the gateway hashes user IDs and strips phone numbers from the session context before it reaches the model:\r\n\r\n```bash\r\nhermes config set privacy.redact_pii true    # enable\r\nhermes config set privacy.redact_pii false   # disable (default)\r\n```\r\n\r\n### Command approval prompts\r\n\r\nBy default (`approvals.mode: smart`), Hermes asks an auxiliary LLM to assess shell commands flagged as destructive (`rm -rf`, `git reset --hard`, etc.). The modes are:\r\n\r\n- `smart` — auto-approve a low-risk command once, deny high-risk commands, and prompt when uncertain (default)\r\n- `manual` — always prompt\r\n- `off` — skip all approval prompts (equivalent to `--yolo`)\r\n\r\n```bash\r\nhermes config set approvals.mode smart       # recommended middle ground\r\nhermes config set approvals.mode off         # bypass everything (not recommended)\r\n```\r\n\r\nPer-invocation bypass without changing config:\r\n- `hermes --yolo …`\r\n- `export HERMES_YOLO_MODE=1`\r\n\r\nNote: YOLO \u002F `approvals.mode: off` does NOT turn off secret redaction. They are independent.\r\n\r\n### Shell hooks allowlist\r\n\r\nSome shell-hook integrations require explicit allowlisting before they fire. Managed via `~\u002F.hermes\u002Fshell-hooks-allowlist.json` — prompted interactively the first time a hook wants to run.\r\n\r\n### Disabling the web\u002Fbrowser\u002Fimage-gen tools\r\n\r\nTo keep the model away from network or media tools entirely, open `hermes tools` and toggle per-platform. Takes effect on next session (`\u002Freset`). See the Tools & Skills section above.\r\n\r\n---\r\n\r\n## Voice & Transcription\r\n\r\n### STT (Voice → Text)\r\n\r\nVoice messages from messaging platforms are auto-transcribed.\r\n\r\nProvider priority (auto-detected):\r\n1. **Local faster-whisper** — free, no API key: `pip install faster-whisper`\r\n2. **Groq Whisper** — free tier: set `GROQ_API_KEY`\r\n3. **OpenAI Whisper** — paid: set `VOICE_TOOLS_OPENAI_KEY`\r\n4. **Mistral Voxtral** — set `MISTRAL_API_KEY`\r\n\r\nConfig:\r\n```yaml\r\nstt:\r\n  enabled: true\r\n  provider: local        # local, groq, openai, mistral\r\n  local:\r\n    model: base          # tiny, base, small, medium, large-v3\r\n```\r\n\r\n### TTS (Text → Voice)\r\n\r\n| Provider | Env var | Free? |\r\n|----------|---------|-------|\r\n| Edge TTS | None | Yes (default) |\r\n| ElevenLabs | `ELEVENLABS_API_KEY` | Free tier |\r\n| OpenAI | `VOICE_TOOLS_OPENAI_KEY` | Paid |\r\n| MiniMax | `MINIMAX_API_KEY` | Paid |\r\n| Mistral (Voxtral) | `MISTRAL_API_KEY` | Paid |\r\n| NeuTTS (local) | None (`pip install neutts[all]` + `espeak-ng`) | Free |\r\n\r\nVoice commands: `\u002Fvoice on` (voice-to-voice), `\u002Fvoice tts` (always voice), `\u002Fvoice off`.\r\n\r\n---\r\n\r\n## Spawning Additional Hermes Instances\r\n\r\nRun additional Hermes processes as fully independent subprocesses — separate sessions, tools, and environments.\r\n\r\n### When to Use This vs delegate_task\r\n\r\n| | `delegate_task` | Spawning `hermes` process |\r\n|-|-----------------|--------------------------|\r\n| Isolation | Separate conversation, shared process | Fully independent process |\r\n| Duration | Minutes (bounded by parent loop) | Hours\u002Fdays |\r\n| Tool access | Subset of parent's tools | Full tool access |\r\n| Interactive | No | Yes (PTY mode) |\r\n| Use case | Quick parallel subtasks | Long autonomous missions |\r\n\r\n### One-Shot Mode\r\n\r\n```\r\nterminal(command=\"hermes chat -q 'Research GRPO papers and write summary to ~\u002Fresearch\u002Fgrpo.md'\", timeout=300)\r\n\r\n# Background for long tasks:\r\nterminal(command=\"hermes chat -q 'Set up CI\u002FCD for ~\u002Fmyapp'\", background=true)\r\n```\r\n\r\n### Interactive PTY Mode (via tmux)\r\n\r\nHermes uses prompt_toolkit, which requires a real terminal. Use tmux for interactive spawning:\r\n\r\n```\r\n# Start\r\nterminal(command=\"tmux new-session -d -s agent1 -x 120 -y 40 'hermes'\", timeout=10)\r\n\r\n# Wait for startup, then send a message\r\nterminal(command=\"sleep 8 && tmux send-keys -t agent1 'Build a FastAPI auth service' Enter\", timeout=15)\r\n\r\n# Read output\r\nterminal(command=\"sleep 20 && tmux capture-pane -t agent1 -p\", timeout=5)\r\n\r\n# Send follow-up\r\nterminal(command=\"tmux send-keys -t agent1 'Add rate limiting middleware' Enter\", timeout=5)\r\n\r\n# Exit\r\nterminal(command=\"tmux send-keys -t agent1 '\u002Fexit' Enter && sleep 2 && tmux kill-session -t agent1\", timeout=10)\r\n```\r\n\r\n### Multi-Agent Coordination\r\n\r\n```\r\n# Agent A: backend\r\nterminal(command=\"tmux new-session -d -s backend -x 120 -y 40 'hermes -w'\", timeout=10)\r\nterminal(command=\"sleep 8 && tmux send-keys -t backend 'Build REST API for user management' Enter\", timeout=15)\r\n\r\n# Agent B: frontend\r\nterminal(command=\"tmux new-session -d -s frontend -x 120 -y 40 'hermes -w'\", timeout=10)\r\nterminal(command=\"sleep 8 && tmux send-keys -t frontend 'Build React dashboard for user management' Enter\", timeout=15)\r\n\r\n# Check progress, relay context between them\r\nterminal(command=\"tmux capture-pane -t backend -p | tail -30\", timeout=5)\r\nterminal(command=\"tmux send-keys -t frontend 'Here is the API schema from the backend agent: ...' Enter\", timeout=5)\r\n```\r\n\r\n### Session Resume\r\n\r\n```\r\n# Resume most recent session\r\nterminal(command=\"tmux new-session -d -s resumed 'hermes --continue'\", timeout=10)\r\n\r\n# Resume specific session\r\nterminal(command=\"tmux new-session -d -s resumed 'hermes --resume 20260225_143052_a1b2c3'\", timeout=10)\r\n```\r\n\r\n### Tips\r\n\r\n- **Prefer `delegate_task` for quick subtasks** — less overhead than spawning a full process\r\n- **Use `-w` (worktree mode)** when spawning agents that edit code — prevents git conflicts\r\n- **Set timeouts** for one-shot mode — complex tasks can take 5-10 minutes\r\n- **Use `hermes chat -q` for fire-and-forget** — no PTY needed\r\n- **Use tmux for interactive sessions** — raw PTY mode has `\\r` vs `\\n` issues with prompt_toolkit\r\n- **For scheduled tasks**, use the `cronjob` tool instead of spawning — handles delivery and retry\r\n\r\n---\r\n\r\n## Durable & Background Systems\r\n\r\nFour systems run alongside the main conversation loop. Quick reference\r\nhere; full developer notes live in `AGENTS.md`, user-facing docs under\r\n`website\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002F`.\r\n\r\n### Delegation (`delegate_task`)\r\n\r\nSpawn a subagent with an isolated context + terminal session.\r\n\r\n- **Single:** `delegate_task(goal, context)`.\r\n- **Batch:** `delegate_task(tasks=[{goal, ...}, ...])` runs children in\r\n  parallel, capped by `delegation.max_concurrent_children` (default 3).\r\n- **Background:** `delegate_task(background=true)` returns a handle\r\n  immediately and keeps the parent loop going; the child's result\r\n  re-enters the conversation as a new turn when it finishes.\r\n- **Roles:** `leaf` (default; cannot re-delegate) vs `orchestrator`\r\n  (can spawn its own workers, bounded by `delegation.max_spawn_depth`).\r\n- **Not durable.** A backgrounded child is still process-local — if the\r\n  parent process exits, the child is lost. For work that must outlive\r\n  the process, use `cronjob` or\r\n  `terminal(background=True, notify_on_complete=True)`.\r\n\r\nConfig: `delegation.*` in `config.yaml`.\r\n\r\n### Cron (scheduled jobs)\r\n\r\nDurable scheduler — `cron\u002Fjobs.py` + `cron\u002Fscheduler.py`. Drive it via\r\nthe `cronjob` tool, the `hermes cron` CLI (`list`, `add`, `edit`,\r\n`pause`, `resume`, `run`, `remove`), or the `\u002Fcron` slash command.\r\n\r\n- **Schedules:** duration (`\"30m\"`, `\"2h\"`), \"every\" phrase\r\n  (`\"every monday 9am\"`), 5-field cron (`\"0 9 * * *\"`), or ISO timestamp.\r\n- **Per-job knobs:** `skills`, `model`\u002F`provider` override, `script`\r\n  (pre-run data collection; `no_agent=True` makes the script the whole\r\n  job), `context_from` (chain job A's output into job B), `workdir`\r\n  (run in a specific dir with its `AGENTS.md` \u002F `CLAUDE.md` loaded),\r\n  multi-platform delivery.\r\n- **Invariants:** 3-minute hard interrupt per run, `.tick.lock` file\r\n  prevents duplicate ticks across processes, cron sessions pass\r\n  `skip_memory=True` by default, and cron deliveries are framed with a\r\n  header\u002Ffooter instead of being mirrored into the target gateway\r\n  session (keeps role alternation intact).\r\n\r\nUser docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fcron\r\n\r\n### Curator (skill lifecycle)\r\n\r\nBackground maintenance for agent-created skills. Tracks usage, marks\r\nidle skills stale, archives stale ones, keeps a pre-run tar.gz backup\r\nso nothing is lost.\r\n\r\n- **CLI:** `hermes curator \u003Cverb>` — `status`, `run`, `pause`, `resume`,\r\n  `pin`, `unpin`, `archive`, `restore`, `prune`, `backup`, `rollback`.\r\n- **Slash:** `\u002Fcurator \u003Csubcommand>` mirrors the CLI.\r\n- **Scope:** only touches skills with `created_by: \"agent\"` provenance.\r\n  Bundled + hub-installed skills are off-limits. **Never deletes** —\r\n  max destructive action is archive. Pinned skills are exempt from\r\n  every auto-transition and every LLM review pass.\r\n- **Cost:** the deterministic inactivity\u002Fprune sweep runs for free. The\r\n  aux-model \"consolidate overlapping skills into umbrellas\" pass is\r\n  **off by default** — opt in with `curator.consolidate: true` or\r\n  `hermes curator run --consolidate`. Routine background curation costs\r\n  zero tokens.\r\n- **Telemetry:** sidecar at `~\u002F.hermes\u002Fskills\u002F.usage.json` holds\r\n  per-skill `use_count`, `view_count`, `patch_count`,\r\n  `last_activity_at`, `state`, `pinned`.\r\n\r\nConfig: `curator.*` (`enabled`, `interval_hours`, `min_idle_hours`,\r\n`stale_after_days`, `archive_after_days`, `backup.*`).\r\nUser docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fcurator\r\n\r\n### Kanban (multi-agent work queue)\r\n\r\nDurable SQLite board for multi-profile \u002F multi-worker collaboration.\r\nUsers drive it via `hermes kanban \u003Cverb>`; dispatcher-spawned workers\r\nsee a focused `kanban_*` toolset gated by `HERMES_KANBAN_TASK`, and\r\norchestrator profiles can opt into the broader `kanban` toolset. Normal\r\nsessions still have zero `kanban_*` schema footprint unless configured.\r\n\r\n- **CLI verbs (common):** `init`, `create`, `list` (alias `ls`),\r\n  `show`, `assign`, `link`, `unlink`, `comment`, `complete`, `block`,\r\n  `unblock`, `archive`, `tail`. Less common: `watch`, `stats`, `runs`,\r\n  `log`, `dispatch`, `daemon`, `gc`.\r\n- **Worker\u002Forchestrator toolset:** `kanban_show`, `kanban_complete`,\r\n  `kanban_block`, `kanban_heartbeat`, `kanban_comment`, `kanban_create`,\r\n  `kanban_link`; profiles that explicitly enable the `kanban` toolset\r\n  outside a dispatcher-spawned task also get `kanban_list` and\r\n  `kanban_unblock` for board routing.\r\n- **Dispatcher** runs inside the gateway by default\r\n  (`kanban.dispatch_in_gateway: true`) — reclaims stale claims,\r\n  promotes ready tasks, atomically claims, spawns assigned profiles.\r\n  Auto-blocks a task after `failure_limit` consecutive spawn failures\r\n  (default 2; configurable via `kanban.failure_limit` or per-task\r\n  `max_retries`).\r\n- **Isolation:** board is the hard boundary (workers get\r\n  `HERMES_KANBAN_BOARD` pinned in env); tenant is a soft namespace\r\n  within a board for workspace-path + memory-key isolation.\r\n\r\nUser docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fkanban\r\n\r\n---\r\n\r\n## Surfaces & Other Capabilities\r\n\r\nBeyond the CLI and gateway, a few things worth knowing about:\r\n\r\n- **Desktop app** (`hermes desktop` \u002F `hermes gui`) — native Electron app\r\n  for macOS\u002FLinux\u002FWindows: streaming chat, session list, drag-and-drop +\r\n  clipboard-paste files, Cmd+K palette, status-bar model picker,\r\n  rebindable shortcuts, native notifications, live subagent watch-windows,\r\n  VS Code Marketplace themes, and per-profile remote-gateway login (OAuth\r\n  or username\u002Fpassword) so a thin local GUI can drive a heavy remote agent.\r\n- **Web dashboard** (`hermes dashboard`) — full admin panel: configure\r\n  every messaging channel, the MCP catalog, webhooks\u002Fhooks, memory, and a\r\n  complete profile builder (model + skills + MCPs) from the browser, plus\r\n  an embedded `hermes --tui` chat. Secured behind an OAuth\u002Ftoken gate.\r\n- **OpenAI-compatible proxy** (`hermes proxy`) — exposes a\r\n  `http:\u002F\u002Flocalhost:port` OpenAI API backed by whichever OAuth provider\r\n  you're signed into (Claude Pro, ChatGPT Pro, SuperGrok). Point Codex\r\n  CLI, Aider, Cline, Continue, or any script at it — no API key.\r\n- **Automation Blueprints** — pick a named automation and Hermes asks for\r\n  what it needs (no cron syntax). One definition renders as a dashboard\r\n  form, a slash command, an agent conversation, and a docs-catalog entry.\r\n- **`memory` tool batch operations** — pass an `operations` array of\r\n  add\u002Freplace\u002Fremove edits applied atomically against the final character\r\n  budget, so a single call can free space and add entries even when an add\r\n  alone would overflow.\r\n- **`session_search`** — FTS5-backed, no aux-LLM, effectively free. One\r\n  tool, three modes inferred from which args are set: discovery (`query`),\r\n  scroll (`session_id` + `around_message_id`), browse (no args).\r\n- **xAI Grok via SuperGrok OAuth** — sign in with your xAI account (no API\r\n  key); includes Cursor's `grok-composer-2.5-fast` coding model.\r\n\r\n---\r\n\r\n## Windows-Specific Quirks\r\n\r\nHermes runs natively on Windows (PowerShell, cmd, Windows Terminal, git-bash\r\nmintty, VS Code integrated terminal). Most of it just works, but a handful\r\nof differences between Win32 and POSIX have bitten us — document new ones\r\nhere as you hit them so the next person (or the next session) doesn't\r\nrediscover them from scratch.\r\n\r\n### Input \u002F Keybindings\r\n\r\n**Alt+Enter doesn't insert a newline** — Windows Terminal (and mintty) grab it\r\nfor fullscreen before prompt_toolkit sees it. Use **Ctrl+Enter** instead (the\r\nCLI binds it to newline on Windows; raw Ctrl+J does the same, harmlessly).\r\nTo inspect how your terminal reports a keystroke, run\r\n`python scripts\u002Fkeystroke_diagnostic.py` from the repo root.\r\n\r\n### Config \u002F Files\r\n\r\n**HTTP 400 \"No models provided\" on first run** — `config.yaml` was saved with\r\na UTF-8 BOM (Notepad does this). Re-save as UTF-8 without BOM;\r\n`hermes config edit` writes correctly.\r\n\r\n### `execute_code` \u002F Sandbox\r\n\r\n**WinError 10106** from the sandbox child process — it can't create an\r\n`AF_INET` socket. Root cause is usually Hermes's env scrubber dropping\r\n`SYSTEMROOT`\u002F`WINDIR`\u002F`COMSPEC` (Python's `socket` needs `SYSTEMROOT` to find\r\n`mswsock.dll`), not a broken Winsock LSP. The `_WINDOWS_ESSENTIAL_ENV_VARS`\r\nallowlist in `tools\u002Fcode_execution_tool.py` covers it; if you still hit it,\r\necho `os.environ` inside an `execute_code` block to confirm `SYSTEMROOT` is set.\r\n\r\n### Testing on Windows\r\n\r\n`scripts\u002Frun_tests.sh` is POSIX-only (expects `.venv\u002Fbin\u002Factivate`); the\r\nHermes-installed `venv\u002FScripts\u002F` has no pip\u002Fpytest (stripped for size).\r\nInstall pytest into a system Python and run directly with `-n 0`\r\n(`pyproject.toml`'s `addopts` already sets `-n`):\r\n\r\n```bash\r\n\"\u002Fc\u002FProgram Files\u002FPython311\u002Fpython\" -m pip install --user pytest pytest-xdist pyyaml\r\nexport PYTHONPATH=\"$(pwd)\"\r\n\"\u002Fc\u002FProgram Files\u002FPython311\u002Fpython\" -m pytest tests\u002Ffoo\u002Ftest_bar.py -v --tb=short -n 0\r\n```\r\n\r\n(POSIX-only tests need skip guards — see the cross-platform guard list in the\r\nContributor section below.)\r\n\r\n### Path \u002F Filesystem\r\n\r\n**Line endings.** Git may warn `LF will be replaced by CRLF`. Cosmetic — the\r\nrepo's `.gitattributes` normalizes. Don't let editors auto-convert committed\r\nPOSIX-newline files to CRLF.\r\n\r\n**Forward slashes work almost everywhere.** `C:\u002FUsers\u002F...` is accepted by\r\nevery Hermes tool and most Windows APIs. Prefer forward slashes in code\r\nand logs — avoids shell-escaping backslashes in bash.\r\n\r\n---\r\n\r\n## Troubleshooting\r\n\r\n### Voice not working\r\n1. Check `stt.enabled: true` in config.yaml\r\n2. Verify provider: `pip install faster-whisper` or set API key\r\n3. In gateway: `\u002Frestart`. In CLI: exit and relaunch.\r\n\r\n### Tool not available\r\n1. `hermes tools` — check if toolset is enabled for your platform\r\n2. Some tools need env vars (check `.env`)\r\n3. `\u002Freset` after enabling tools\r\n\r\n### Model\u002Fprovider issues\r\n1. `hermes doctor` — check config and dependencies\r\n2. `hermes auth` — re-authenticate OAuth providers (or `hermes auth add \u003Cprovider>`)\r\n3. Check `.env` has the right API key\r\n4. **Copilot 403**: `gh auth login` tokens do NOT work for Copilot API. You must use the Copilot-specific OAuth device code flow via `hermes model` → GitHub Copilot.\r\n\r\n### Changes not taking effect\r\n- **Tools\u002Fskills:** `\u002Freset` starts a new session with updated toolset\r\n- **Config changes:** In gateway: `\u002Frestart`. In CLI: exit and relaunch.\r\n- **Code changes:** Restart the CLI or gateway process\r\n\r\n### Skills not showing\r\n1. `hermes skills list` — verify installed\r\n2. `hermes skills config` — check platform enablement\r\n3. Load explicitly: `\u002Fskill name` or `hermes -s name`\r\n\r\n### Gateway issues\r\nCheck logs first:\r\n```bash\r\ngrep -i \"failed to send\\|error\" ~\u002F.hermes\u002Flogs\u002Fgateway.log | tail -20\r\n```\r\n\r\nCommon gateway problems:\r\n- **Gateway dies on SSH logout**: Enable linger: `sudo loginctl enable-linger $USER`\r\n- **Gateway dies on WSL2 close**: WSL2 requires `systemd=true` in `\u002Fetc\u002Fwsl.conf` for systemd services to work. Without it, gateway falls back to `nohup` (dies when session closes).\r\n- **Gateway crash loop**: Reset the failed state: `systemctl --user reset-failed hermes-gateway`\r\n\r\n### Platform-specific issues\r\n- **Discord bot silent**: Must enable **Message Content Intent** in Bot → Privileged Gateway Intents.\r\n- **Slack bot only works in DMs**: Must subscribe to `message.channels` event. Without it, the bot ignores public channels.\r\n- **Windows-specific issues** (`Alt+Enter` newline, WinError 10106, UTF-8 BOM config, test suite, line endings): see the dedicated **Windows-Specific Quirks** section above.\r\n\r\n### Auxiliary models not working\r\nIf `auxiliary` tasks (vision, compression, session_search) fail silently, the `auto` provider can't find a backend. Either set `OPENROUTER_API_KEY` or `GOOGLE_API_KEY`, or explicitly configure each auxiliary task's provider:\r\n```bash\r\nhermes config set auxiliary.vision.provider \u003Cyour_provider>\r\nhermes config set auxiliary.vision.model \u003Cmodel_name>\r\n```\r\n\r\n---\r\n\r\n## Where to Find Things\r\n\r\n| Looking for... | Location |\r\n|----------------|----------|\r\n| Config options | `hermes config edit` or [Configuration docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fconfiguration) |\r\n| Available tools | `hermes tools list` or [Tools reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Ftools-reference) |\r\n| Slash commands | `\u002Fhelp` in session or [Slash commands reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fslash-commands) |\r\n| Skills catalog | `hermes skills browse` or [Skills catalog](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fskills-catalog) |\r\n| Provider setup | `hermes model` or [Providers guide](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fintegrations\u002Fproviders) |\r\n| Platform setup | `hermes gateway setup` or [Messaging docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002F) |\r\n| MCP servers | `hermes mcp list` or [MCP guide](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmcp) |\r\n| Profiles | `hermes profile list` or [Profiles docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fprofiles) |\r\n| Cron jobs | `hermes cron list` or [Cron docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fcron) |\r\n| Memory | `hermes memory status` or [Memory docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmemory) |\r\n| Env variables | `hermes config env-path` or [Env vars reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fenvironment-variables) |\r\n| CLI commands | `hermes --help` or [CLI reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fcli-commands) |\r\n| Gateway logs | `~\u002F.hermes\u002Flogs\u002Fgateway.log` |\r\n| Session files | `hermes sessions browse` (reads state.db) |\r\n| Source code | `~\u002F.hermes\u002Fhermes-agent\u002F` |\r\n\r\n---\r\n\r\n## Contributor Quick Reference\r\n\r\nFor occasional contributors and PR authors. Full developer docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fdeveloper-guide\u002F\r\n\r\n### Project Layout\r\n\r\n```\r\nhermes-agent\u002F\r\n├── run_agent.py          # AIAgent — core conversation loop\r\n├── model_tools.py        # Tool discovery and dispatch\r\n├── toolsets.py           # Toolset definitions\r\n├── cli.py                # Interactive CLI (HermesCLI)\r\n├── hermes_state.py       # SQLite session store\r\n├── agent\u002F                # Prompt builder, context compression, memory, model routing, credential pooling, skill dispatch\r\n├── hermes_cli\u002F           # CLI subcommands, config, setup, commands\r\n│   ├── commands.py       # Slash command registry (CommandDef)\r\n│   ├── config.py         # DEFAULT_CONFIG, env var definitions\r\n│   └── main.py           # CLI entry point and argparse\r\n├── tools\u002F                # One file per tool\r\n│   └── registry.py       # Central tool registry\r\n├── gateway\u002F              # Messaging gateway\r\n│   └── platforms\u002F        # Platform adapters (telegram, discord, etc.)\r\n├── cron\u002F                 # Job scheduler\r\n├── tests\u002F                # Extensive pytest suite (run via scripts\u002Frun_tests.sh)\r\n└── website\u002F              # Docusaurus docs site\r\n```\r\n\r\nConfig: `~\u002F.hermes\u002Fconfig.yaml` (settings), `~\u002F.hermes\u002F.env` (API keys) — both under `$HERMES_HOME` when it is set.\r\n\r\n### Adding a Tool\r\n\r\nTwo files. Auto-discovery imports any `tools\u002F*.py` with a top-level\r\n`registry.register()` call, but a tool is only *exposed* to an agent once\r\nits name appears in a toolset.\r\n\r\n**1. Create `tools\u002Fyour_tool.py`:**\r\n```python\r\nimport json, os\r\nfrom tools.registry import registry\r\n\r\ndef check_requirements() -> bool:\r\n    return bool(os.getenv(\"EXAMPLE_API_KEY\"))\r\n\r\ndef example_tool(param: str, task_id: str = None) -> str:\r\n    return json.dumps({\"success\": True, \"data\": \"...\"})\r\n\r\nregistry.register(\r\n    name=\"example_tool\",\r\n    toolset=\"example\",\r\n    schema={\"name\": \"example_tool\", \"description\": \"...\", \"parameters\": {...}},\r\n    handler=lambda args, **kw: example_tool(\r\n        param=args.get(\"param\", \"\"), task_id=kw.get(\"task_id\")),\r\n    check_fn=check_requirements,\r\n    requires_env=[\"EXAMPLE_API_KEY\"],\r\n)\r\n```\r\n\r\n**2. Wire it into a toolset in `toolsets.py`** — add the name to\r\n`_HERMES_CORE_TOOLS` (every platform) or to a specific toolset.\r\n\r\nAll handlers must return JSON strings. Use `get_hermes_home()` for paths,\r\nnever hardcode `~\u002F.hermes`. For custom\u002Flocal-only tools, write a plugin in\r\n`~\u002F.hermes\u002Fplugins\u002F` instead of editing core — see the developer docs.\r\n\r\n### Adding a Slash Command\r\n\r\n1. Add `CommandDef` to `COMMAND_REGISTRY` in `hermes_cli\u002Fcommands.py`\r\n2. Add handler in `cli.py` → `process_command()`\r\n3. (Optional) Add gateway handler in `gateway\u002Frun.py`\r\n\r\nAll consumers (help text, autocomplete, Telegram menu, Slack mapping) derive from the central registry automatically.\r\n\r\n### Agent Loop (High Level)\r\n\r\n```\r\nrun_conversation():\r\n  1. Build system prompt\r\n  2. Loop while iterations \u003C max:\r\n     a. Call LLM (OpenAI-format messages + tool schemas)\r\n     b. If tool_calls → dispatch each via handle_function_call() → append results → continue\r\n     c. If text response → return\r\n  3. Context compression triggers automatically near token limit\r\n```\r\n\r\n### Testing\r\n\r\nUse the canonical runner — it enforces CI-parity (hermetic env, unset\r\ncredentials, TZ=UTC, xdist workers, per-test subprocess isolation):\r\n\r\n```bash\r\nscripts\u002Frun_tests.sh                          # full suite\r\nscripts\u002Frun_tests.sh tests\u002Ftools\u002F             # one directory\r\nscripts\u002Frun_tests.sh tests\u002Ftools\u002Ftest_x.py    # one file\r\nscripts\u002Frun_tests.sh -v --tb=long             # pass-through pytest flags\r\n```\r\n\r\n- Tests auto-redirect `HERMES_HOME` to temp dirs — never touch real `~\u002F.hermes\u002F`.\r\n- The script probes `.venv`, then `venv`, then the shared worktree venv.\r\n- **Windows:** the wrapper is POSIX-only; see the **Windows-Specific Quirks**\r\n  section above for the direct-pytest workaround.\r\n\r\n**Cross-platform test guards:** tests using POSIX-only syscalls need a skip marker. Common ones already in the codebase:\r\n- Symlink creation → `@pytest.mark.skipif(sys.platform == \"win32\", reason=\"Symlinks require elevated privileges on Windows\")` (see `tests\u002Fcron\u002Ftest_cron_script.py`)\r\n- POSIX file modes (0o600, etc.) → `@pytest.mark.skipif(sys.platform.startswith(\"win\"), reason=\"POSIX mode bits not enforced on Windows\")` (see `tests\u002Fhermes_cli\u002Ftest_auth_toctou_file_modes.py`)\r\n- `signal.SIGALRM` → Unix-only (see `tests\u002Fconftest.py::_enforce_test_timeout`)\r\n- Live Winsock \u002F Windows-specific regression tests → `@pytest.mark.skipif(sys.platform != \"win32\", reason=\"Windows-specific regression\")`\r\n\r\n**Monkeypatching `sys.platform` is not enough** when the code under test also calls `platform.system()` \u002F `platform.release()` \u002F `platform.mac_ver()`. Those functions re-read the real OS independently, so a test that sets `sys.platform = \"linux\"` on a Windows runner will still see `platform.system() == \"Windows\"` and route through the Windows branch. Patch all three together:\r\n\r\n```python\r\nmonkeypatch.setattr(sys, \"platform\", \"linux\")\r\nmonkeypatch.setattr(platform, \"system\", lambda: \"Linux\")\r\nmonkeypatch.setattr(platform, \"release\", lambda: \"6.8.0-generic\")\r\n```\r\n\r\nSee `tests\u002Fagent\u002Ftest_prompt_builder.py::TestEnvironmentHints` for a worked example.\r\n\r\n### System prompt's execution-environment block\r\n\r\nFactual host\u002Fbackend guidance (OS, `$HOME`, cwd, terminal backend, shell)\r\nis emitted by `agent\u002Fprompt_builder.py::build_environment_hints()`. The key\r\ninvariant for prompt authors: with a **remote** terminal backend\r\n(`docker, singularity, modal, daytona, ssh, managed_modal`), host info is\r\nsuppressed and *every* file tool runs inside the backend container — the\r\nprompt must never describe the host the agent can't touch.\r\n\r\n### Commit Conventions\r\n\r\n```\r\ntype: concise subject line\r\n\r\nOptional body.\r\n```\r\n\r\nTypes: `fix:`, `feat:`, `refactor:`, `docs:`, `chore:`\r\n\r\n### Key Rules\r\n\r\n- **Never break prompt caching** — don't change context, tools, or system prompt mid-conversation\r\n- **Message role alternation** — never two assistant or two user messages in a row\r\n- Use `get_hermes_home()` from `hermes_constants` for all paths (profile-safe)\r\n- Config values go in `config.yaml`, secrets go in `.env`\r\n- New tools need a `check_fn` so they only appear when requirements are met\r\n",{"name":5,"author":48,"license":15,"version":49,"metadata":50,"platforms":57,"description":7},"Hermes Agent + Teknium","2.3.0",{"hermes":51},{"tags":52,"homepage":54,"related_skills":55},[25,37,28,30,53,42,34,36],"spawning","https:\u002F\u002Fgithub.com\u002FNousResearch\u002Fhermes-agent",[56,39,29],"claude-code",[40,33,38],"main","0d1434f89f4bc6b07e9d272accd8c1013768820f","archive\u002Fskill-md-reviewed\u002Fsha256\u002Fb6\u002Fb6d6740433ba1bbb58233876b145a8a3c9158220568e37d9bd98e105a6b30a1f",0,"https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills","https:\u002F\u002Fgithub.com\u002Fzapabob","The Open University of JAPAN　2019-now\r\n\r\nTokyo University of Science　2007-2010","2026-10-26 16:29:01",{"source":8,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add zapabob\u002FSkills --skill hermes-agent",{"tool":72,"command":73},"bunx","bunx skills add zapabob\u002FSkills --skill hermes-agent",{"tool":75,"command":76},"pnpm","pnpm dlx skills add zapabob\u002FSkills --skill hermes-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Farchive\u002Fskill-md-reviewed\u002Fsha256\u002Fb6\u002Fb6d6740433ba1bbb58233876b145a8a3c9158220568e37d9bd98e105a6b30a1f\u002FSKILL.md",true,[],[81,107,140,167,194,211],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":96,"publishedAt":43},"01M6GJTE1GESGGF9K028Y7753E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fxurl\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[87,90,91],{"categoryNo":88,"categoryName":89,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":92,"categoryName":93,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[83,97,33,42,41,40,38,98,99,26,100,101,102,25,24,103,58,104,105,106],"openclaw","official","search","social-media","api","Media","twitter","social","via","post",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":124,"publishedAt":43},"01M6GJT8S1PXQ8WPXT1HSNBWH2","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwriting-plans\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[113,116,119,120,121],{"categoryNo":114,"categoryName":115,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":117,"categoryName":118,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":92,"categoryName":93,"taxonomyType":94,"taxonomyTypeDesc":95},{"categoryNo":122,"categoryName":123,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000036","内容创作者",[125,126,127,128,33,129,40,130,38,131,132,36,35,133,134,135,136,137,138,139],"writing","writing plans","plans","design","review","workflow","documentation","tasks","planning","code-review","subagent","write","superpowers","paths","test-driven-development",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":149,"publishedAt":43},"01M6GJST0H5X7WHBJ3BZK0DVKH","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwhisper\u002Fvariants\u002Fhermes-agent-optional\u002FSKILL.md",[146],{"categoryNo":147,"categoryName":148,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",[142,33,40,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166],"openai","speech","multimodal","Transformers","ASR","Audio","text","model","speech recognition","use","general","multilingual","translation","english","identification","processing","Audio Processing",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":176,"publishedAt":43},"01M6GJSMRQ8EETZTYMG72P70EA","weights-and-biases","W&B: log ML experiments, sweeps, model registry, dashboards.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fweights-and-biases\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[173],{"categoryNo":174,"categoryName":175,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000013","分析与可视化",[177,33,178,179,38,180,181,182,183,184,185,157,186,187,188,189,190,191,192,193],"weights and biases","tensorflow","experiments","pytorch","visualization","registry","real-time","tuning","dashboards","experiment","log","time","Experiment Tracking","Model Registry","Hyperparameter Tuning","WandB","Real-Time Visualization",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":201,"publishedAt":43},"01M6GJS19KDPRY112JTR326S06","watchers","Poll RSS, JSON APIs, and GitHub with watermark dedup.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwatchers\u002Fvariants\u002Fhermes-agent-optional\u002FSKILL.md",[200],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[196,33,202,41,40,203,204,205,206,207,208,25,24,209,210],"terminal","automation","http","monitoring","cron","json","rss","devops","with",{"skillNo":212,"name":213,"nameZh":6,"description":214,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":215,"categories":216,"keywords":219,"publishedAt":43},"01M6GJRHJD2A6Q830SWF9W48BC","serving-llms-vllm","vLLM: high-throughput LLM serving, OpenAI API, quantization.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fvllm\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[217,218],{"categoryNo":88,"categoryName":89,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":92,"categoryName":93,"taxonomyType":94,"taxonomyTypeDesc":95},[220,221,222,40,223,150,224,225,226,153,227,101,228,229,230,231,232,233,234,235],"llms","vLLM","serving llms vllm","research","openai api","tensor","Inference Serving","Production","llm serving","High Throughput","PagedAttention","Continuous Batching","Quantization","Tensor Parallelism","high-throughput","throughput"]