[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M759K9510SWV2A299ZJ74ZY8":3,"skill-same:01M759K9510SWV2A299ZJ74ZY8":95},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":14,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M759K9510SWV2A299ZJ74ZY8","hermes-agent",null,"Complete guide to using and extending Hermes Agent — CLI usage, setup, configuration, spawning additional agents, gateway platforms, skills, voice, tools, profiles, and a concise contributor reference. Load this skill when helping users configure Hermes, troubleshoot issues, spawn agent instances, or make code contributions.","publieople\u002Fhermes-config-kit","publieople","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F90119344?v=4","01M759EPK59NZG525VKS4VRNC2","po","01M759EPM4EMVEY5JNV2549JQ1",0,"MIT","https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: hermes-agent\ndescription: Complete guide to using and extending Hermes Agent — CLI usage, setup, configuration, spawning additional agents, gateway platforms, skills, voice, tools, profiles, and a concise contributor reference. Load this skill when helping users configure Hermes, troubleshoot issues, spawn agent instances, or make code contributions.\nversion: 2.0.0\nauthor: Hermes Agent + Teknium\nlicense: MIT\nmetadata:\n  hermes:\n    tags: [hermes, setup, configuration, multi-agent, spawning, cli, gateway, development]\n    homepage: https:\u002F\u002Fgithub.com\u002FNousResearch\u002Fhermes-agent\n    related_skills: [claude-code, codex, opencode, hermes-external-integration]\n---\n\n# Hermes Agent\n\nHermes Agent is an open-source AI agent framework by Nous Research that runs in your terminal, messaging platforms, and IDEs. It belongs to 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, DeepSeek, local models, and 15+ others) and runs on Linux, macOS, and WSL.\n\nWhat makes Hermes different:\n\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.\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.\n- **Multi-platform gateway** — the same agent runs on Telegram, Discord, Slack, WhatsApp, Signal, Matrix, Email, and 10+ other platforms with full tool access, not just chat.\n- **Provider-agnostic** — swap models and providers mid-workflow without changing anything else. Credential pools rotate across multiple API keys automatically.\n- **Profiles** — run multiple independent Hermes instances with isolated configs, sessions, skills, and memory.\n- **Extensible** — plugins, MCP servers, custom tools, webhook triggers, cron scheduling, and the full Python ecosystem.\n\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.\n\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.\n\n**Docs:** https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002F\n\n## Quick Start\n\n```bash\n# Install\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FNousResearch\u002Fhermes-agent\u002Fmain\u002Fscripts\u002Finstall.sh | bash\n\n# Interactive chat (default)\nhermes\n\n# Single query\nhermes chat -q \"What is the capital of France?\"\n\n# Setup wizard\nhermes setup\n\n# Change model\u002Fprovider\nhermes model\n\n# Check health\nhermes doctor\n```\n\n---\n\n## CLI Reference\n\n### Global Flags\n\n```\nhermes [flags] [command]\n\n  --version, -V             Show version\n  --resume, -r SESSION      Resume session by ID or title\n  --continue, -c [NAME]     Resume by name, or most recent session\n  --worktree, -w            Isolated git worktree mode (parallel agents)\n  --skills, -s SKILL        Preload skills (comma-separate or repeat)\n  --profile, -p NAME        Use a named profile\n  --yolo                    Skip dangerous command approval\n  --pass-session-id         Include session ID in system prompt\n```\n\nNo subcommand defaults to `chat`.\n\n### Chat\n\n```\nhermes chat [flags]\n  -q, --query TEXT          Single query, non-interactive\n  -m, --model MODEL         Model (e.g. anthropic\u002Fclaude-sonnet-4)\n  -t, --toolsets LIST       Comma-separated toolsets\n  --provider PROVIDER       Force provider (openrouter, anthropic, nous, etc.)\n  -v, --verbose             Verbose output\n  -Q, --quiet               Suppress banner, spinner, tool previews\n  --checkpoints             Enable filesystem checkpoints (\u002Frollback)\n  --source TAG              Session source tag (default: cli)\n```\n\n### Configuration\n\n```\nhermes setup [section]      Interactive wizard (model|terminal|gateway|tools|agent)\nhermes model                Interactive model\u002Fprovider picker\nhermes config               View current config\nhermes config edit          Open config.yaml in $EDITOR\nhermes config set KEY VAL   Set a config value\nhermes config path          Print config.yaml path\nhermes config env-path      Print .env path\nhermes config check         Check for missing\u002Foutdated config\nhermes config migrate       Update config with new options\nhermes login [--provider P] OAuth login (nous, openai-codex)\nhermes logout               Clear stored auth\nhermes doctor [--fix]       Check dependencies and config\nhermes status [--all]       Show component status\n```\n\n### Tools & Skills\n\n```\nhermes tools                Interactive tool enable\u002Fdisable (curses UI)\nhermes tools list           Show all tools and status\nhermes tools enable NAME    Enable a toolset\nhermes tools disable NAME   Disable a toolset\n\nhermes skills list          List installed skills\nhermes skills search QUERY  Search the skills hub\nhermes skills install ID    Install a skill\nhermes skills inspect ID    Preview without installing\nhermes skills config        Enable\u002Fdisable skills per platform\nhermes skills check         Check for updates\nhermes skills update        Update outdated skills\nhermes skills uninstall N   Remove a hub skill\nhermes skills publish PATH  Publish to registry\nhermes skills browse        Browse all available skills\nhermes skills tap add REPO  Add a GitHub repo as skill source\n```\n\n### MCP Servers\n\n```\nhermes mcp serve            Run Hermes as an MCP server\nhermes mcp add NAME         Add an MCP server (--url or --command)\nhermes mcp remove NAME      Remove an MCP server\nhermes mcp list             List configured servers\nhermes mcp test NAME        Test connection\nhermes mcp configure NAME   Toggle tool selection\n```\n\n### Gateway (Messaging Platforms)\n\n```\nhermes gateway run          Start gateway foreground\nhermes gateway install      Install as background service\nhermes gateway start\u002Fstop   Control the service\nhermes gateway restart      Restart the service\nhermes gateway status       Check status\nhermes gateway setup        Configure platforms\n```\n\nSupported platforms: Telegram, Discord, Slack, WhatsApp, Signal, Email, SMS, Matrix, Mattermost, Home Assistant, DingTalk, Feishu, WeCom, BlueBubbles (iMessage), Weixin (WeChat), API Server, Webhooks. Open WebUI connects via the API Server adapter.\n\nPlatform docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002F\n\n### Sessions\n\n```\nhermes sessions list        List recent sessions\nhermes sessions browse      Interactive picker\nhermes sessions export OUT  Export to JSONL\nhermes sessions rename ID T Rename a session\nhermes sessions delete ID   Delete a session\nhermes sessions prune       Clean up old sessions (--older-than N days)\nhermes sessions stats       Session store statistics\n```\n\n### Cron Jobs\n\n```\nhermes cron list            List jobs (--all for disabled)\nhermes cron create SCHED    Create: '30m', 'every 2h', '0 9 * * *'\nhermes cron edit ID         Edit schedule, prompt, delivery\nhermes cron pause\u002Fresume ID Control job state\nhermes cron run ID          Trigger on next tick\nhermes cron remove ID       Delete a job\nhermes cron status          Scheduler status\n```\n\n### Webhooks\n\n```\nhermes webhook subscribe N  Create route at \u002Fwebhooks\u002F\u003Cname>\nhermes webhook list         List subscriptions\nhermes webhook remove NAME  Remove a subscription\nhermes webhook test NAME    Send a test POST\n```\n\n### Profiles\n\n```\nhermes profile list         List all profiles\nhermes profile create NAME  Create (--clone, --clone-all, --clone-from)\nhermes profile use NAME     Set sticky default\nhermes profile delete NAME  Delete a profile\nhermes profile show NAME    Show details\nhermes profile alias NAME   Manage wrapper scripts\nhermes profile rename A B   Rename a profile\nhermes profile export NAME  Export to tar.gz\nhermes profile import FILE  Import from archive\n```\n\n### Credential Pools\n\n```\nhermes auth add             Interactive credential wizard\nhermes auth list [PROVIDER] List pooled credentials\nhermes auth remove P INDEX  Remove by provider + index\nhermes auth reset PROVIDER  Clear exhaustion status\n```\n\n### Other\n\n```\nhermes insights [--days N]  Usage analytics\nhermes update               Update to latest version\nhermes pairing list\u002Fapprove\u002Frevoke  DM authorization\nhermes plugins list\u002Finstall\u002Fremove  Plugin management\nhermes honcho setup\u002Fstatus  Honcho memory integration (requires honcho plugin)\nhermes memory setup\u002Fstatus\u002Foff  Memory provider config\nhermes completion bash|zsh  Shell completions\nhermes acp                  ACP server (IDE integration)\nhermes claw migrate         Migrate from OpenClaw\nhermes uninstall            Uninstall Hermes\n```\n\n---\n\n## Slash Commands (In-Session)\n\nType these during an interactive chat session.\n\n### Session Control\n```\n\u002Fnew (\u002Freset)        Fresh session\n\u002Fclear               Clear screen + new session (CLI)\n\u002Fretry               Resend last message\n\u002Fundo                Remove last exchange\n\u002Ftitle [name]        Name the session\n\u002Fcompress            Manually compress context\n\u002Fstop                Kill background processes\n\u002Frollback [N]        Restore filesystem checkpoint\n\u002Fbackground \u003Cprompt> Run prompt in background\n\u002Fqueue \u003Cprompt>      Queue for next turn\n\u002Fresume [name]       Resume a named session\n```\n\n### Configuration\n```\n\u002Fconfig              Show config (CLI)\n\u002Fmodel [name]        Show or change model\n\u002Fpersonality [name]  Set personality\n\u002Freasoning [level]   Set reasoning (none|minimal|low|medium|high|xhigh|show|hide)\n\u002Fverbose             Cycle: off → new → all → verbose\n\u002Fvoice [on|off|tts]  Voice mode\n\u002Fyolo                Toggle approval bypass\n\u002Fskin [name]         Change theme (CLI)\n\u002Fstatusbar           Toggle status bar (CLI)\n```\n\n### Tools & Skills\n```\n\u002Ftools               Manage tools (CLI)\n\u002Ftoolsets            List toolsets (CLI)\n\u002Fskills              Search\u002Finstall skills (CLI)\n\u002Fskill \u003Cname>        Load a skill into session\n\u002Fcron                Manage cron jobs (CLI)\n\u002Freload-mcp          Reload MCP servers\n\u002Fplugins             List plugins (CLI)\n```\n\n### Gateway\n```\n\u002Fapprove             Approve a pending command (gateway)\n\u002Fdeny                Deny a pending command (gateway)\n\u002Frestart             Restart gateway (gateway)\n\u002Fsethome             Set current chat as home channel (gateway)\n\u002Fupdate              Update Hermes to latest (gateway)\n\u002Fplatforms (\u002Fgateway) Show platform connection status (gateway)\n```\n\n### Utility\n```\n\u002Fbranch (\u002Ffork)      Branch the current session\n\u002Fbtw                 Ephemeral side question (doesn't interrupt main task)\n\u002Ffast                Toggle priority\u002Ffast processing\n\u002Fbrowser             Open CDP browser connection\n\u002Fhistory             Show conversation history (CLI)\n\u002Fsave                Save conversation to file (CLI)\n\u002Fpaste               Attach clipboard image (CLI)\n\u002Fimage               Attach local image file (CLI)\n```\n\n### Info\n```\n\u002Fhelp                Show commands\n\u002Fcommands [page]     Browse all commands (gateway)\n\u002Fusage               Token usage\n\u002Finsights [days]     Usage analytics\n\u002Fstatus              Session info (gateway)\n\u002Fprofile             Active profile info\n```\n\n### Exit\n```\n\u002Fquit (\u002Fexit, \u002Fq)    Exit CLI\n```\n\n---\n\n## Key Paths & Config\n\n```\n~\u002F.hermes\u002Fconfig.yaml       Main configuration\n~\u002F.hermes\u002F.env              API keys and secrets\n$HERMES_HOME\u002Fskills\u002F        Installed skills\n~\u002F.hermes\u002Fsessions\u002F         Session transcripts\n~\u002F.hermes\u002Flogs\u002F             Gateway and error logs\n~\u002F.hermes\u002Fauth.json         OAuth tokens and credential pools\n~\u002F.hermes\u002Fhermes-agent\u002F     Source code (if git-installed)\n```\n\nProfiles use `~\u002F.hermes\u002Fprofiles\u002F\u003Cname>\u002F` with the same layout.\n\n### Config Sections\n\nEdit with `hermes config edit` or `hermes config set section.key value`.\n\n| Section | Key options |\n|---------|-------------|\n| `model` | `default`, `provider`, `base_url`, `api_key`, `context_length` |\n| `agent` | `max_turns` (90), `tool_use_enforcement` |\n| `terminal` | `backend` (local\u002Fdocker\u002Fssh\u002Fmodal), `cwd`, `timeout` (180) |\n| `compression` | `enabled`, `threshold` (0.50), `target_ratio` (0.20) |\n| `display` | `skin`, `tool_progress`, `show_reasoning`, `show_cost`, `mouse_tracking`, `details_mode` (hidden\u002Fcollapsed\u002Fexpanded), `sections.thinking`, `sections.tools`, `sections.subagents`, `sections.activity`, `tui_auto_resume_recent`, `tui_status_indicator` |\n| `stt` | `enabled`, `provider` (local\u002Fgroq\u002Fopenai\u002Fmistral) |\n| `tts` | `provider` (edge\u002Felevenlabs\u002Fopenai\u002Fminimax\u002Fmistral\u002Fneutts) |\n| `memory` | `memory_enabled`, `user_profile_enabled`, `provider` |\n| `security` | `tirith_enabled`, `website_blocklist` |\n| `delegation` | `model`, `provider`, `base_url`, `api_key`, `max_iterations` (50), `reasoning_effort` |\n| `checkpoints` | `enabled`, `max_snapshots` (50) |\n\nFull config reference: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fconfiguration\n\n### Providers\n\n20+ providers supported. Set via `hermes model` or `hermes setup`.\n\n| Provider | Auth | Key env var |\n|----------|------|-------------|\n| OpenRouter | API key | `OPENROUTER_API_KEY` |\n| Anthropic | API key | `ANTHROPIC_API_KEY` |\n| Nous Portal | OAuth | `hermes auth` |\n| OpenAI Codex | OAuth | `hermes auth` |\n| GitHub Copilot | Token | `COPILOT_GITHUB_TOKEN` |\n| Google Gemini | API key | `GOOGLE_API_KEY` or `GEMINI_API_KEY` |\n| DeepSeek | API key | `DEEPSEEK_API_KEY` |\n| xAI \u002F Grok | API key | `XAI_API_KEY` |\n| Hugging Face | Token | `HF_TOKEN` |\n| Z.AI \u002F GLM | API key | `GLM_API_KEY` |\n| MiniMax | API key | `MINIMAX_API_KEY` |\n| MiniMax CN | API key | `MINIMAX_CN_API_KEY` |\n| Kimi \u002F Moonshot | API key | `KIMI_API_KEY` |\n| Alibaba \u002F DashScope | API key | `DASHSCOPE_API_KEY` |\n| Xiaomi MiMo | API key | `XIAOMI_API_KEY` |\n| Kilo Code | API key | `KILOCODE_API_KEY` |\n| AI Gateway (Vercel) | API key | `AI_GATEWAY_API_KEY` |\n| OpenCode Zen | API key | `OPENCODE_ZEN_API_KEY` |\n| OpenCode Go | API key | `OPENCODE_GO_API_KEY` |\n| Qwen OAuth | OAuth | `hermes login --provider qwen-oauth` |\n| Custom endpoint | Config | `model.base_url` + `model.api_key` in config.yaml |\n| GitHub Copilot ACP | External | `COPILOT_CLI_PATH` or Copilot CLI |\n\nFull provider docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fintegrations\u002Fproviders\n\n> **📎 搭配工具：`mmx-cli`** — 配置好 MiniMax 后，可安装 MiniMax 官方 CLI 的 `mmx` 命令直接调用多模态能力（图像、视频、语音、音乐）并查 Token Plan 额度。详见 `references\u002Fmmx-cli-setup.md`。\n\n> **📎 中国用户 Memory Provider 配置** — Mem0（推荐）、Hindsight（替代）、OpenViking（不推荐）的完整安装配置流程，含 Agent 模式无邮箱注册、API Key 注入、npm 权限处理等实操细节。详见 `references\u002Fmemory-provider-setup-cn.md`。\n\n### Toolsets\n\nEnable\u002Fdisable via `hermes tools` (interactive) or `hermes tools enable\u002Fdisable NAME`.\n\n| Toolset | What it provides |\n|---------|-----------------|\n| `web` | Web search and content extraction |\n| `browser` | Browser automation (Browserbase, Camofox, or local Chromium) |\n| `terminal` | Shell commands and process management |\n| `file` | File read\u002Fwrite\u002Fsearch\u002Fpatch |\n| `code_execution` | Sandboxed Python execution |\n| `vision` | Image analysis |\n| `image_gen` | AI image generation |\n| `tts` | Text-to-speech |\n| `skills` | Skill browsing and management |\n| `memory` | Persistent cross-session memory |\n| `session_search` | Search past conversations |\n| `delegation` | Subagent task delegation |\n| `cronjob` | Scheduled task management |\n| `clarify` | Ask user clarifying questions |\n| `messaging` | Cross-platform message sending |\n| `search` | Web search only (subset of `web`) |\n| `todo` | In-session task planning and tracking |\n| `rl` | Reinforcement learning tools (off by default) |\n| `moa` | Mixture of Agents (off by default) |\n| `homeassistant` | Smart home control (off by default) |\n\nTool changes take effect on `\u002Freset` (new session). They do NOT apply mid-conversation to preserve prompt caching.\n\n---\n\n## TUI (Modern Terminal UI)\n\nTUI is Hermes's modern React-based frontend (Ink\u002FReact, powered by `ui-tui\u002F`). Same agent, same sessions, same slash commands — richer visuals.\n\n### Default to TUI\n\n```bash\n# CLI flag (per-invocation)\nhermes --tui\n\n# Environment variable (persistent — add to ~\u002F.bashrc)\nexport HERMES_TUI=1\nhermes                # now uses TUI by default\nhermes chat           # also works\n```\n\nThe env var is the recommended approach over a shell alias — covers all entry points.\n\n### Requirements\n\nFirst launch auto-installs Node deps into `ui-tui\u002Fnode_modules\u002F` (one-time, ~5s).\nPrebuilt distro bundles can point via `export HERMES_TUI_DIR=\u002Fpath\u002Fto\u002Fprebuilt\u002F`.\n\n### TUI-Specific Config\n\n```yaml\ndisplay:\n  mouse_tracking: true       # clickable UI, works in Windows Terminal \u002F iTerm2 \u002F Kitty\n  details_mode: collapsed    # hidden | collapsed | expanded — global default for tool\u002Fthinking panels\n  sections:\n    thinking: expanded       # per-section override (takes priority over details_mode)\n    tools: expanded\n    subagents: collapsed\n    activity: collapsed      # hidden by default, opt in here\n```\n\nRuntime toggle: `\u002Fdetails [hidden|collapsed|expanded|cycle]` or `\u002Fdetails \u003Csection> \u003Cmode>`.\n\n### TUI-Enhanced Slash Commands\n\n| Command | TUI behavior |\n|---------|-------------|\n| `\u002Fhelp` | Overlay with categorized commands, arrow-key navigation |\n| `\u002Fsessions` | Modal session picker — preview, tokens, inline resume |\n| `\u002Fmodel` | Modal model selector, grouped by provider, cost hints |\n| `\u002Fskin` | Live preview — themes change instantly on browse |\n| `\u002Fdetails` | Toggle tool\u002Fthinking section accordions |\n| `\u002Fusage` | Rich token\u002Fcost\u002Fcontext panel |\n\n### Status Bar States\n\n| State | Meaning |\n|-------|---------|\n| `starting agent…` | Session ID active; tools\u002Fskills still loading. Input queues and sends when ready. |\n| `ready` | Agent idle, accepting input. |\n| `thinking…` \u002F `running…` | Agent reasoning or running tools. |\n| `interrupted` | Current turn cancelled; press Enter to resend. |\n| `forging session…` \u002F `resuming…` | Initial connection or `--resume` handshake. |\n\n### Session Compatibility\n\nTUI and classic CLI share the same `~\u002F.hermes\u002Fstate.db`. Start a session in one, resume in the other — source labels disambiguate in the picker.\n\n---\n\n## Voice & Transcription\n\n### STT (Voice → Text)\n\nVoice messages from messaging platforms are auto-transcribed.\n\nProvider priority (auto-detected):\n1. **Local faster-whisper** — free, no API key: `pip install faster-whisper`\n2. **Groq Whisper** — free tier: set `GROQ_API_KEY`\n3. **OpenAI Whisper** — paid: set `VOICE_TOOLS_OPENAI_KEY`\n4. **Mistral Voxtral** — set `MISTRAL_API_KEY`\n\nConfig:\n```yaml\nstt:\n  enabled: true\n  provider: local        # local, groq, openai, mistral\n  local:\n    model: base          # tiny, base, small, medium, large-v3\n```\n\n### TTS (Text → Voice)\n\n| Provider | Env var | Free? |\n|----------|---------|-------|\n| Edge TTS | None | Yes (default) |\n| ElevenLabs | `ELEVENLABS_API_KEY` | Free tier |\n| OpenAI | `VOICE_TOOLS_OPENAI_KEY` | Paid |\n| MiniMax | `MINIMAX_API_KEY` | Paid |\n| Mistral (Voxtral) | `MISTRAL_API_KEY` | Paid |\n| NeuTTS (local) | None (`pip install neutts[all]` + `espeak-ng`) | Free |\n\nVoice commands: `\u002Fvoice on` (voice-to-voice), `\u002Fvoice tts` (always voice), `\u002Fvoice off`.\n\n---\n\n## Spawning Additional Hermes Instances\n\nRun additional Hermes processes as fully independent subprocesses — separate sessions, tools, and environments.\n\n### When to Use This vs delegate_task\n\n| | `delegate_task` | Spawning `hermes` process |\n|-|-----------------|--------------------------|\n| Isolation | Separate conversation, shared process | Fully independent process |\n| Duration | Minutes (bounded by parent loop) | Hours\u002Fdays |\n| Tool access | Subset of parent's tools | Full tool access |\n| Interactive | No | Yes (PTY mode) |\n| Use case | Quick parallel subtasks | Long autonomous missions |\n\n### One-Shot Mode\n\n```\nterminal(command=\"hermes chat -q 'Research GRPO papers and write summary to ~\u002Fresearch\u002Fgrpo.md'\", timeout=300)\n\n# Background for long tasks:\nterminal(command=\"hermes chat -q 'Set up CI\u002FCD for ~\u002Fmyapp'\", background=true)\n```\n\n### Interactive PTY Mode (via tmux)\n\nHermes uses prompt_toolkit, which requires a real terminal. Use tmux for interactive spawning:\n\n```\n# Start\nterminal(command=\"tmux new-session -d -s agent1 -x 120 -y 40 'hermes'\", timeout=10)\n\n# Wait for startup, then send a message\nterminal(command=\"sleep 8 && tmux send-keys -t agent1 'Build a FastAPI auth service' Enter\", timeout=15)\n\n# Read output\nterminal(command=\"sleep 20 && tmux capture-pane -t agent1 -p\", timeout=5)\n\n# Send follow-up\nterminal(command=\"tmux send-keys -t agent1 'Add rate limiting middleware' Enter\", timeout=5)\n\n# Exit\nterminal(command=\"tmux send-keys -t agent1 '\u002Fexit' Enter && sleep 2 && tmux kill-session -t agent1\", timeout=10)\n```\n\n### Multi-Agent Coordination\n\n```\n# Agent A: backend\nterminal(command=\"tmux new-session -d -s backend -x 120 -y 40 'hermes -w'\", timeout=10)\nterminal(command=\"sleep 8 && tmux send-keys -t backend 'Build REST API for user management' Enter\", timeout=15)\n\n# Agent B: frontend\nterminal(command=\"tmux new-session -d -s frontend -x 120 -y 40 'hermes -w'\", timeout=10)\nterminal(command=\"sleep 8 && tmux send-keys -t frontend 'Build React dashboard for user management' Enter\", timeout=15)\n\n# Check progress, relay context between them\nterminal(command=\"tmux capture-pane -t backend -p | tail -30\", timeout=5)\nterminal(command=\"tmux send-keys -t frontend 'Here is the API schema from the backend agent: ...' Enter\", timeout=5)\n```\n\n### Session Resume\n\n```\n# Resume most recent session\nterminal(command=\"tmux new-session -d -s resumed 'hermes --continue'\", timeout=10)\n\n# Resume specific session\nterminal(command=\"tmux new-session -d -s resumed 'hermes --resume 20260225_143052_a1b2c3'\", timeout=10)\n```\n\n### Tips\n\n- **Prefer `delegate_task` for quick subtasks** — less overhead than spawning a full process\n- **Use `-w` (worktree mode)** when spawning agents that edit code — prevents git conflicts\n- **Set timeouts** for one-shot mode — complex tasks can take 5-10 minutes\n- **Use `hermes chat -q` for fire-and-forget** — no PTY needed\n- **Use tmux for interactive sessions** — raw PTY mode has `\\r` vs `\\n` issues with prompt_toolkit\n- **For scheduled tasks**, use the `cronjob` tool instead of spawning — handles delivery and retry\n\n---\n\n## File Tool Pitfalls ⚠️\n\nHermes 的 `read_file` 和 `write_file` 工具组合有数据损坏风险。\n\n### 核心坑：read_file 返回带行号前缀\n\n`read_file` 返回的内容格式为 `LINE_NUM|CONTENT`：\n```\n1|{\"key\": \"value\"}\n2|{\"another\": 123}\n```\n\n直接拿这个输出喂给 `write_file`，行号会被写入文件 → JSON\u002FYAML 损坏，程序启动崩溃。\n\n### 正确做法\n\n| 场景 | 做法 |\n|------|------|\n| 读 JSON\u002FYAML 改配置 | 用 `terminal` + `python3 -c` 或 `execute_code`，不要用 `read_file`+`write_file` |\n| 读代码做参考 | `read_file` 安全（只读不改）|\n| 修改代码 | 用 `patch` 工具（精准行级修改）|\n| 写入新文件 | `write_file` 安全（新内容无行号污染）|\n| 操作 SQLite 数据库 | `terminal` + `python3 -c \"import sqlite3\"`，不要用文件工具碰 `.db` |\n\n### 已证明会坏的场景\n\n- JSON 配置文件（AstrBot `cmd_config.json` 被 `read_file` + `write_file` 损坏过两次）\n- 带 BOM 的 UTF-8 文件（`read_file` 可能破坏 BOM）\n- 任何非纯文本文件格式\n\n### 必须用 read_file 输出写入时\n\n用 `execute_code` strip 行号：\n```python\nfrom hermes_tools import read_file, write_file\ncontent = read_file(\"\u002Fpath\u002Fto\u002Ffile\")\nclean = \"\\n\".join(\n    line.split(\"|\", 1)[1] if \"|\" in line and line.split(\"|\")[0].strip().isdigit()\n    else line\n    for line in content[\"content\"].split(\"\\n\")\n)\nwrite_file(\"\u002Fpath\u002Fto\u002Ffile\", clean)\n```\n\n## Troubleshooting\n\n### Voice not working\n1. Check `stt.enabled: true` in config.yaml\n2. Verify provider: `pip install faster-whisper` or set API key\n3. In gateway: `\u002Frestart`. In CLI: exit and relaunch.\n\n### Tool not available\n1. `hermes tools` — check if toolset is enabled for your platform\n2. Some tools need env vars (check `.env`)\n3. `\u002Freset` after enabling tools\n\n### Model\u002Fprovider issues\n1. `hermes doctor` — check config and dependencies\n2. `hermes login` — re-authenticate OAuth providers\n3. Check `.env` has the right API key\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.\n5. **Provider setup investigation**: When a user claims a provider was \"configured before\" but it doesn't work, use the systematic multi-location check documented in `references\u002Fprovider-setup-investigation.md`. Six locations: config.yaml model section → custom_providers → .env → auth.json credential pools → session search → memory.\n6. **⚠️ Auxiliary provider trap**: Main model and auxiliary services (vision, compression, etc.) use separate provider configs. Switching the main provider without updating `auxiliary.vision` can cause silent failures — old vision credentials may be expired even when the main model works.\n\n### Changes not taking effect\n- **Tools\u002Fskills:** `\u002Freset` starts a new session with updated toolset\n- **Config changes:** In gateway: `\u002Frestart`. In CLI: exit and relaunch.\n- **Code changes:** Restart the CLI or gateway process\n- **Shell env not applying:** You may have modified the wrong shell's config file. See `references\u002Fshell-config-safety.md` for the detection workflow.\n\n### Skills not showing\n1. `hermes skills list` — verify installed\n2. `hermes skills config` — check platform enablement\n3. Load explicitly: `\u002Fskill name` or `hermes -s name`\n\n### Gateway issues\nCheck logs first:\n```bash\ngrep -i \"failed to send\\|error\" ~\u002F.hermes\u002Flogs\u002Fgateway.log | tail -20\n```\n\nCommon gateway problems:\n- **Gateway dies on SSH logout**: Enable linger: `sudo loginctl enable-linger $USER`\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).\n- **Gateway crash loop**: Reset the failed state: `systemctl --user reset-failed hermes-gateway`\n\n### Platform-specific issues\n- **Discord bot silent**: Must enable **Message Content Intent** in Bot → Privileged Gateway Intents.\n- **Slack bot only works in DMs**: Must subscribe to `message.channels` event. Without it, the bot ignores public channels.\n- **Windows HTTP 400 \"No models provided\"**: Config file encoding issue (BOM). Ensure `config.yaml` is saved as UTF-8 without BOM.\n\n### Auxiliary models not working\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:\n```bash\nhermes config set auxiliary.vision.provider \u003Cyour_provider>\nhermes config set auxiliary.vision.model \u003Cmodel_name>\n```\n\n**Pitfall — MiniMax CN 辅助服务：**\n- MiniMax-M2.7 是**纯文本模型**，不支持通过 chat\u002Fcompletions API 做视觉识别。配置 `auxiliary.vision` 为 `minimax-cn\u002FMiniMax-M2.7` 不会报错但也不会返回图像分析结果\n- 如需视觉能力，用 `mmx vision describe \u003Cimage_path>`（调用 MiniMax 专用 VLM 端点），该命令支持 WebP\u002FJPEG\u002FPNG\n- TTS 用 `minimax` provider，但 CN 端点必须**显式设 base_url** 为 `https:\u002F\u002Fapi.minimaxi.com\u002Fv1\u002Ft2a_v2`（默认走 global `api.minimax.io` 会 401）\n- `.env` 中**必须同时设** `MINIMAX_CN_API_KEY`（LLM\u002Fvision\u002FTTS API 读取用）和 `MINIMAX_API_KEY`（TTS 模块读取用），值相同即可\n- `mmx quota` 可查看 VLM 额度（`coding-plan-vlm` 配额）\n- 详见 `references\u002Fmmx-cli-setup.md` → 配置 Hermes Agent 辅助服务\n\n---\n\n## Where to Find Things\n\n| Looking for... | Location |\n|----------------|----------|\n| Config options | `hermes config edit` or [Configuration docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fconfiguration) |\n| Available tools | `hermes tools list` or [Tools reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Ftools-reference) |\n| Slash commands | `\u002Fhelp` in session or [Slash commands reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fslash-commands) |\n| Skills catalog | `hermes skills browse` or [Skills catalog](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fskills-catalog) |\n| Provider setup | `hermes model` or [Providers guide](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fintegrations\u002Fproviders) |\n| Platform setup | `hermes gateway setup` or [Messaging docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002F) |\n| MCP servers | `hermes mcp list` or [MCP guide](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmcp) |\n| Profiles | `hermes profile list` or [Profiles docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fprofiles) |\nMemory | `hermes memory status` or [Memory docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmemory) — Chinese-user reference: `references\u002Fmemory-providers-cn.md`\n| Memory | `hermes memory status` or [Memory docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmemory) — Chinese-user reference: `references\u002Fmemory-providers-cn.md` |\n| Memory providers | `hermes memory status` or [Memory docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmemory) — Chinese user guide in `references\u002Fmemory-providers-cn.md` |\n| Skill publishing (ClawHub) | `clawhub` CLI — see `references\u002Fclawhub-publishing.md` |\n| Env variables | `hermes config env-path` or [Env vars reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fenvironment-variables) |\n| CLI commands | `hermes --help` or [CLI reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fcli-commands) |\n| Gateway logs | `~\u002F.hermes\u002Flogs\u002Fgateway.log` |\n| Session files | `~\u002F.hermes\u002Fsessions\u002F` or `hermes sessions browse` |\n| Source code | `~\u002F.hermes\u002Fhermes-agent\u002F` |\n\n---\n\n## Contributor Quick Reference\n\nFor occasional contributors and PR authors. Full developer docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fdeveloper-guide\u002F\n\n### Project Layout\n\n```\nhermes-agent\u002F\n├── run_agent.py          # AIAgent — core conversation loop\n├── model_tools.py        # Tool discovery and dispatch\n├── toolsets.py           # Toolset definitions\n├── cli.py                # Interactive CLI (HermesCLI)\n├── hermes_state.py       # SQLite session store\n├── agent\u002F                # Prompt builder, context compression, memory, model routing, credential pooling, skill dispatch\n├── hermes_cli\u002F           # CLI subcommands, config, setup, commands\n│   ├── commands.py       # Slash command registry (CommandDef)\n│   ├── config.py         # DEFAULT_CONFIG, env var definitions\n│   └── main.py           # CLI entry point and argparse\n├── tools\u002F                # One file per tool\n│   └── registry.py       # Central tool registry\n├── gateway\u002F              # Messaging gateway\n│   └── platforms\u002F        # Platform adapters (telegram, discord, etc.)\n├── cron\u002F                 # Job scheduler\n├── tests\u002F                # ~3000 pytest tests\n└── website\u002F              # Docusaurus docs site\n```\n\nConfig: `~\u002F.hermes\u002Fconfig.yaml` (settings), `~\u002F.hermes\u002F.env` (API keys).\n\n### Adding a Tool (3 files)\n\n**1. Create `tools\u002Fyour_tool.py`:**\n```python\nimport json, os\nfrom tools.registry import registry\n\ndef check_requirements() -> bool:\n    return bool(os.getenv(\"EXAMPLE_API_KEY\"))\n\ndef example_tool(param: str, task_id: str = None) -> str:\n    return json.dumps({\"success\": True, \"data\": \"...\"})\n\nregistry.register(\n    name=\"example_tool\",\n    toolset=\"example\",\n    schema={\"name\": \"example_tool\", \"description\": \"...\", \"parameters\": {...}},\n    handler=lambda args, **kw: example_tool(\n        param=args.get(\"param\", \"\"), task_id=kw.get(\"task_id\")),\n    check_fn=check_requirements,\n    requires_env=[\"EXAMPLE_API_KEY\"],\n)\n```\n\n**2. Add to `toolsets.py`** → `_HERMES_CORE_TOOLS` list.\n\nAuto-discovery: any `tools\u002F*.py` file with a top-level `registry.register()` call is imported automatically — no manual list needed.\n\nAll handlers must return JSON strings. Use `get_hermes_home()` for paths, never hardcode `~\u002F.hermes`.\n\n### Adding a Slash Command\n\n1. Add `CommandDef` to `COMMAND_REGISTRY` in `hermes_cli\u002Fcommands.py`\n2. Add handler in `cli.py` → `process_command()`\n3. (Optional) Add gateway handler in `gateway\u002Frun.py`\n\nAll consumers (help text, autocomplete, Telegram menu, Slack mapping) derive from the central registry automatically.\n\n### Agent Loop (High Level)\n\n```\nrun_conversation():\n  1. Build system prompt\n  2. Loop while iterations \u003C max:\n     a. Call LLM (OpenAI-format messages + tool schemas)\n     b. If tool_calls → dispatch each via handle_function_call() → append results → continue\n     c. If text response → return\n  3. Context compression triggers automatically near token limit\n```\n\n### Testing\n\n```bash\npython -m pytest tests\u002F -o 'addopts=' -q   # Full suite\npython -m pytest tests\u002Ftools\u002F -q            # Specific area\n```\n\n- Tests auto-redirect `HERMES_HOME` to temp dirs — never touch real `~\u002F.hermes\u002F`\n- Run full suite before pushing any change\n- Use `-o 'addopts='` to clear any baked-in pytest flags\n\n### Commit Conventions\n\n```\ntype: concise subject line\n\nOptional body.\n```\n\nTypes: `fix:`, `feat:`, `refactor:`, `docs:`, `chore:`\n\n### Key Rules\n\n- **Never break prompt caching** — don't change context, tools, or system prompt mid-conversation\n- **Message role alternation** — never two assistant or two user messages in a row\n- Use `get_hermes_home()` from `hermes_constants` for all paths (profile-safe)\n- Config values go in `config.yaml`, secrets go in `.env`\n- New tools need a `check_fn` so they only appear when requirements are met\n","# Hermes Agent\n\nHermes Agent is an open-source AI agent framework by Nous Research that runs in your terminal, messaging platforms, and IDEs. It belongs to 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, DeepSeek, local models, and 15+ others) and runs on Linux, macOS, and WSL.\n\nWhat makes Hermes different:\n\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.\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.\n- **Multi-platform gateway** — the same agent runs on Telegram, Discord, Slack, WhatsApp, Signal, Matrix, Email, and 10+ other platforms with full tool access, not just chat.\n- **Provider-agnostic** — swap models and providers mid-workflow without changing anything else. Credential pools rotate across multiple API keys automatically.\n- **Profiles** — run multiple independent Hermes instances with isolated configs, sessions, skills, and memory.\n- **Extensible** — plugins, MCP servers, custom tools, webhook triggers, cron scheduling, and the full Python ecosystem.\n\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.\n\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.\n\n**Docs:** https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002F\n\n## Quick Start\n\n```bash\n# Install\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FNousResearch\u002Fhermes-agent\u002Fmain\u002Fscripts\u002Finstall.sh | bash\n\n# Interactive chat (default)\nhermes\n\n# Single query\nhermes chat -q \"What is the capital of France?\"\n\n# Setup wizard\nhermes setup\n\n# Change model\u002Fprovider\nhermes model\n\n# Check health\nhermes doctor\n```\n\n---\n\n## CLI Reference\n\n### Global Flags\n\n```\nhermes [flags] [command]\n\n  --version, -V             Show version\n  --resume, -r SESSION      Resume session by ID or title\n  --continue, -c [NAME]     Resume by name, or most recent session\n  --worktree, -w            Isolated git worktree mode (parallel agents)\n  --skills, -s SKILL        Preload skills (comma-separate or repeat)\n  --profile, -p NAME        Use a named profile\n  --yolo                    Skip dangerous command approval\n  --pass-session-id         Include session ID in system prompt\n```\n\nNo subcommand defaults to `chat`.\n\n### Chat\n\n```\nhermes chat [flags]\n  -q, --query TEXT          Single query, non-interactive\n  -m, --model MODEL         Model (e.g. anthropic\u002Fclaude-sonnet-4)\n  -t, --toolsets LIST       Comma-separated toolsets\n  --provider PROVIDER       Force provider (openrouter, anthropic, nous, etc.)\n  -v, --verbose             Verbose output\n  -Q, --quiet               Suppress banner, spinner, tool previews\n  --checkpoints             Enable filesystem checkpoints (\u002Frollback)\n  --source TAG              Session source tag (default: cli)\n```\n\n### Configuration\n\n```\nhermes setup [section]      Interactive wizard (model|terminal|gateway|tools|agent)\nhermes model                Interactive model\u002Fprovider picker\nhermes config               View current config\nhermes config edit          Open config.yaml in $EDITOR\nhermes config set KEY VAL   Set a config value\nhermes config path          Print config.yaml path\nhermes config env-path      Print .env path\nhermes config check         Check for missing\u002Foutdated config\nhermes config migrate       Update config with new options\nhermes login [--provider P] OAuth login (nous, openai-codex)\nhermes logout               Clear stored auth\nhermes doctor [--fix]       Check dependencies and config\nhermes status [--all]       Show component status\n```\n\n### Tools & Skills\n\n```\nhermes tools                Interactive tool enable\u002Fdisable (curses UI)\nhermes tools list           Show all tools and status\nhermes tools enable NAME    Enable a toolset\nhermes tools disable NAME   Disable a toolset\n\nhermes skills list          List installed skills\nhermes skills search QUERY  Search the skills hub\nhermes skills install ID    Install a skill\nhermes skills inspect ID    Preview without installing\nhermes skills config        Enable\u002Fdisable skills per platform\nhermes skills check         Check for updates\nhermes skills update        Update outdated skills\nhermes skills uninstall N   Remove a hub skill\nhermes skills publish PATH  Publish to registry\nhermes skills browse        Browse all available skills\nhermes skills tap add REPO  Add a GitHub repo as skill source\n```\n\n### MCP Servers\n\n```\nhermes mcp serve            Run Hermes as an MCP server\nhermes mcp add NAME         Add an MCP server (--url or --command)\nhermes mcp remove NAME      Remove an MCP server\nhermes mcp list             List configured servers\nhermes mcp test NAME        Test connection\nhermes mcp configure NAME   Toggle tool selection\n```\n\n### Gateway (Messaging Platforms)\n\n```\nhermes gateway run          Start gateway foreground\nhermes gateway install      Install as background service\nhermes gateway start\u002Fstop   Control the service\nhermes gateway restart      Restart the service\nhermes gateway status       Check status\nhermes gateway setup        Configure platforms\n```\n\nSupported platforms: Telegram, Discord, Slack, WhatsApp, Signal, Email, SMS, Matrix, Mattermost, Home Assistant, DingTalk, Feishu, WeCom, BlueBubbles (iMessage), Weixin (WeChat), API Server, Webhooks. Open WebUI connects via the API Server adapter.\n\nPlatform docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002F\n\n### Sessions\n\n```\nhermes sessions list        List recent sessions\nhermes sessions browse      Interactive picker\nhermes sessions export OUT  Export to JSONL\nhermes sessions rename ID T Rename a session\nhermes sessions delete ID   Delete a session\nhermes sessions prune       Clean up old sessions (--older-than N days)\nhermes sessions stats       Session store statistics\n```\n\n### Cron Jobs\n\n```\nhermes cron list            List jobs (--all for disabled)\nhermes cron create SCHED    Create: '30m', 'every 2h', '0 9 * * *'\nhermes cron edit ID         Edit schedule, prompt, delivery\nhermes cron pause\u002Fresume ID Control job state\nhermes cron run ID          Trigger on next tick\nhermes cron remove ID       Delete a job\nhermes cron status          Scheduler status\n```\n\n### Webhooks\n\n```\nhermes webhook subscribe N  Create route at \u002Fwebhooks\u002F\u003Cname>\nhermes webhook list         List subscriptions\nhermes webhook remove NAME  Remove a subscription\nhermes webhook test NAME    Send a test POST\n```\n\n### Profiles\n\n```\nhermes profile list         List all profiles\nhermes profile create NAME  Create (--clone, --clone-all, --clone-from)\nhermes profile use NAME     Set sticky default\nhermes profile delete NAME  Delete a profile\nhermes profile show NAME    Show details\nhermes profile alias NAME   Manage wrapper scripts\nhermes profile rename A B   Rename a profile\nhermes profile export NAME  Export to tar.gz\nhermes profile import FILE  Import from archive\n```\n\n### Credential Pools\n\n```\nhermes auth add             Interactive credential wizard\nhermes auth list [PROVIDER] List pooled credentials\nhermes auth remove P INDEX  Remove by provider + index\nhermes auth reset PROVIDER  Clear exhaustion status\n```\n\n### Other\n\n```\nhermes insights [--days N]  Usage analytics\nhermes update               Update to latest version\nhermes pairing list\u002Fapprove\u002Frevoke  DM authorization\nhermes plugins list\u002Finstall\u002Fremove  Plugin management\nhermes honcho setup\u002Fstatus  Honcho memory integration (requires honcho plugin)\nhermes memory setup\u002Fstatus\u002Foff  Memory provider config\nhermes completion bash|zsh  Shell completions\nhermes acp                  ACP server (IDE integration)\nhermes claw migrate         Migrate from OpenClaw\nhermes uninstall            Uninstall Hermes\n```\n\n---\n\n## Slash Commands (In-Session)\n\nType these during an interactive chat session.\n\n### Session Control\n```\n\u002Fnew (\u002Freset)        Fresh session\n\u002Fclear               Clear screen + new session (CLI)\n\u002Fretry               Resend last message\n\u002Fundo                Remove last exchange\n\u002Ftitle [name]        Name the session\n\u002Fcompress            Manually compress context\n\u002Fstop                Kill background processes\n\u002Frollback [N]        Restore filesystem checkpoint\n\u002Fbackground \u003Cprompt> Run prompt in background\n\u002Fqueue \u003Cprompt>      Queue for next turn\n\u002Fresume [name]       Resume a named session\n```\n\n### Configuration\n```\n\u002Fconfig              Show config (CLI)\n\u002Fmodel [name]        Show or change model\n\u002Fpersonality [name]  Set personality\n\u002Freasoning [level]   Set reasoning (none|minimal|low|medium|high|xhigh|show|hide)\n\u002Fverbose             Cycle: off → new → all → verbose\n\u002Fvoice [on|off|tts]  Voice mode\n\u002Fyolo                Toggle approval bypass\n\u002Fskin [name]         Change theme (CLI)\n\u002Fstatusbar           Toggle status bar (CLI)\n```\n\n### Tools & Skills\n```\n\u002Ftools               Manage tools (CLI)\n\u002Ftoolsets            List toolsets (CLI)\n\u002Fskills              Search\u002Finstall skills (CLI)\n\u002Fskill \u003Cname>        Load a skill into session\n\u002Fcron                Manage cron jobs (CLI)\n\u002Freload-mcp          Reload MCP servers\n\u002Fplugins             List plugins (CLI)\n```\n\n### Gateway\n```\n\u002Fapprove             Approve a pending command (gateway)\n\u002Fdeny                Deny a pending command (gateway)\n\u002Frestart             Restart gateway (gateway)\n\u002Fsethome             Set current chat as home channel (gateway)\n\u002Fupdate              Update Hermes to latest (gateway)\n\u002Fplatforms (\u002Fgateway) Show platform connection status (gateway)\n```\n\n### Utility\n```\n\u002Fbranch (\u002Ffork)      Branch the current session\n\u002Fbtw                 Ephemeral side question (doesn't interrupt main task)\n\u002Ffast                Toggle priority\u002Ffast processing\n\u002Fbrowser             Open CDP browser connection\n\u002Fhistory             Show conversation history (CLI)\n\u002Fsave                Save conversation to file (CLI)\n\u002Fpaste               Attach clipboard image (CLI)\n\u002Fimage               Attach local image file (CLI)\n```\n\n### Info\n```\n\u002Fhelp                Show commands\n\u002Fcommands [page]     Browse all commands (gateway)\n\u002Fusage               Token usage\n\u002Finsights [days]     Usage analytics\n\u002Fstatus              Session info (gateway)\n\u002Fprofile             Active profile info\n```\n\n### Exit\n```\n\u002Fquit (\u002Fexit, \u002Fq)    Exit CLI\n```\n\n---\n\n## Key Paths & Config\n\n```\n~\u002F.hermes\u002Fconfig.yaml       Main configuration\n~\u002F.hermes\u002F.env              API keys and secrets\n$HERMES_HOME\u002Fskills\u002F        Installed skills\n~\u002F.hermes\u002Fsessions\u002F         Session transcripts\n~\u002F.hermes\u002Flogs\u002F             Gateway and error logs\n~\u002F.hermes\u002Fauth.json         OAuth tokens and credential pools\n~\u002F.hermes\u002Fhermes-agent\u002F     Source code (if git-installed)\n```\n\nProfiles use `~\u002F.hermes\u002Fprofiles\u002F\u003Cname>\u002F` with the same layout.\n\n### Config Sections\n\nEdit with `hermes config edit` or `hermes config set section.key value`.\n\n| Section | Key options |\n|---------|-------------|\n| `model` | `default`, `provider`, `base_url`, `api_key`, `context_length` |\n| `agent` | `max_turns` (90), `tool_use_enforcement` |\n| `terminal` | `backend` (local\u002Fdocker\u002Fssh\u002Fmodal), `cwd`, `timeout` (180) |\n| `compression` | `enabled`, `threshold` (0.50), `target_ratio` (0.20) |\n| `display` | `skin`, `tool_progress`, `show_reasoning`, `show_cost`, `mouse_tracking`, `details_mode` (hidden\u002Fcollapsed\u002Fexpanded), `sections.thinking`, `sections.tools`, `sections.subagents`, `sections.activity`, `tui_auto_resume_recent`, `tui_status_indicator` |\n| `stt` | `enabled`, `provider` (local\u002Fgroq\u002Fopenai\u002Fmistral) |\n| `tts` | `provider` (edge\u002Felevenlabs\u002Fopenai\u002Fminimax\u002Fmistral\u002Fneutts) |\n| `memory` | `memory_enabled`, `user_profile_enabled`, `provider` |\n| `security` | `tirith_enabled`, `website_blocklist` |\n| `delegation` | `model`, `provider`, `base_url`, `api_key`, `max_iterations` (50), `reasoning_effort` |\n| `checkpoints` | `enabled`, `max_snapshots` (50) |\n\nFull config reference: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fconfiguration\n\n### Providers\n\n20+ providers supported. Set via `hermes model` or `hermes setup`.\n\n| Provider | Auth | Key env var |\n|----------|------|-------------|\n| OpenRouter | API key | `OPENROUTER_API_KEY` |\n| Anthropic | API key | `ANTHROPIC_API_KEY` |\n| Nous Portal | OAuth | `hermes auth` |\n| OpenAI Codex | OAuth | `hermes auth` |\n| GitHub Copilot | Token | `COPILOT_GITHUB_TOKEN` |\n| Google Gemini | API key | `GOOGLE_API_KEY` or `GEMINI_API_KEY` |\n| DeepSeek | API key | `DEEPSEEK_API_KEY` |\n| xAI \u002F Grok | API key | `XAI_API_KEY` |\n| Hugging Face | Token | `HF_TOKEN` |\n| Z.AI \u002F GLM | API key | `GLM_API_KEY` |\n| MiniMax | API key | `MINIMAX_API_KEY` |\n| MiniMax CN | API key | `MINIMAX_CN_API_KEY` |\n| Kimi \u002F Moonshot | API key | `KIMI_API_KEY` |\n| Alibaba \u002F DashScope | API key | `DASHSCOPE_API_KEY` |\n| Xiaomi MiMo | API key | `XIAOMI_API_KEY` |\n| Kilo Code | API key | `KILOCODE_API_KEY` |\n| AI Gateway (Vercel) | API key | `AI_GATEWAY_API_KEY` |\n| OpenCode Zen | API key | `OPENCODE_ZEN_API_KEY` |\n| OpenCode Go | API key | `OPENCODE_GO_API_KEY` |\n| Qwen OAuth | OAuth | `hermes login --provider qwen-oauth` |\n| Custom endpoint | Config | `model.base_url` + `model.api_key` in config.yaml |\n| GitHub Copilot ACP | External | `COPILOT_CLI_PATH` or Copilot CLI |\n\nFull provider docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fintegrations\u002Fproviders\n\n> **📎 搭配工具：`mmx-cli`** — 配置好 MiniMax 后，可安装 MiniMax 官方 CLI 的 `mmx` 命令直接调用多模态能力（图像、视频、语音、音乐）并查 Token Plan 额度。详见 `references\u002Fmmx-cli-setup.md`。\n\n> **📎 中国用户 Memory Provider 配置** — Mem0（推荐）、Hindsight（替代）、OpenViking（不推荐）的完整安装配置流程，含 Agent 模式无邮箱注册、API Key 注入、npm 权限处理等实操细节。详见 `references\u002Fmemory-provider-setup-cn.md`。\n\n### Toolsets\n\nEnable\u002Fdisable via `hermes tools` (interactive) or `hermes tools enable\u002Fdisable NAME`.\n\n| Toolset | What it provides |\n|---------|-----------------|\n| `web` | Web search and content extraction |\n| `browser` | Browser automation (Browserbase, Camofox, or local Chromium) |\n| `terminal` | Shell commands and process management |\n| `file` | File read\u002Fwrite\u002Fsearch\u002Fpatch |\n| `code_execution` | Sandboxed Python execution |\n| `vision` | Image analysis |\n| `image_gen` | AI image generation |\n| `tts` | Text-to-speech |\n| `skills` | Skill browsing and management |\n| `memory` | Persistent cross-session memory |\n| `session_search` | Search past conversations |\n| `delegation` | Subagent task delegation |\n| `cronjob` | Scheduled task management |\n| `clarify` | Ask user clarifying questions |\n| `messaging` | Cross-platform message sending |\n| `search` | Web search only (subset of `web`) |\n| `todo` | In-session task planning and tracking |\n| `rl` | Reinforcement learning tools (off by default) |\n| `moa` | Mixture of Agents (off by default) |\n| `homeassistant` | Smart home control (off by default) |\n\nTool changes take effect on `\u002Freset` (new session). They do NOT apply mid-conversation to preserve prompt caching.\n\n---\n\n## TUI (Modern Terminal UI)\n\nTUI is Hermes's modern React-based frontend (Ink\u002FReact, powered by `ui-tui\u002F`). Same agent, same sessions, same slash commands — richer visuals.\n\n### Default to TUI\n\n```bash\n# CLI flag (per-invocation)\nhermes --tui\n\n# Environment variable (persistent — add to ~\u002F.bashrc)\nexport HERMES_TUI=1\nhermes                # now uses TUI by default\nhermes chat           # also works\n```\n\nThe env var is the recommended approach over a shell alias — covers all entry points.\n\n### Requirements\n\nFirst launch auto-installs Node deps into `ui-tui\u002Fnode_modules\u002F` (one-time, ~5s).\nPrebuilt distro bundles can point via `export HERMES_TUI_DIR=\u002Fpath\u002Fto\u002Fprebuilt\u002F`.\n\n### TUI-Specific Config\n\n```yaml\ndisplay:\n  mouse_tracking: true       # clickable UI, works in Windows Terminal \u002F iTerm2 \u002F Kitty\n  details_mode: collapsed    # hidden | collapsed | expanded — global default for tool\u002Fthinking panels\n  sections:\n    thinking: expanded       # per-section override (takes priority over details_mode)\n    tools: expanded\n    subagents: collapsed\n    activity: collapsed      # hidden by default, opt in here\n```\n\nRuntime toggle: `\u002Fdetails [hidden|collapsed|expanded|cycle]` or `\u002Fdetails \u003Csection> \u003Cmode>`.\n\n### TUI-Enhanced Slash Commands\n\n| Command | TUI behavior |\n|---------|-------------|\n| `\u002Fhelp` | Overlay with categorized commands, arrow-key navigation |\n| `\u002Fsessions` | Modal session picker — preview, tokens, inline resume |\n| `\u002Fmodel` | Modal model selector, grouped by provider, cost hints |\n| `\u002Fskin` | Live preview — themes change instantly on browse |\n| `\u002Fdetails` | Toggle tool\u002Fthinking section accordions |\n| `\u002Fusage` | Rich token\u002Fcost\u002Fcontext panel |\n\n### Status Bar States\n\n| State | Meaning |\n|-------|---------|\n| `starting agent…` | Session ID active; tools\u002Fskills still loading. Input queues and sends when ready. |\n| `ready` | Agent idle, accepting input. |\n| `thinking…` \u002F `running…` | Agent reasoning or running tools. |\n| `interrupted` | Current turn cancelled; press Enter to resend. |\n| `forging session…` \u002F `resuming…` | Initial connection or `--resume` handshake. |\n\n### Session Compatibility\n\nTUI and classic CLI share the same `~\u002F.hermes\u002Fstate.db`. Start a session in one, resume in the other — source labels disambiguate in the picker.\n\n---\n\n## Voice & Transcription\n\n### STT (Voice → Text)\n\nVoice messages from messaging platforms are auto-transcribed.\n\nProvider priority (auto-detected):\n1. **Local faster-whisper** — free, no API key: `pip install faster-whisper`\n2. **Groq Whisper** — free tier: set `GROQ_API_KEY`\n3. **OpenAI Whisper** — paid: set `VOICE_TOOLS_OPENAI_KEY`\n4. **Mistral Voxtral** — set `MISTRAL_API_KEY`\n\nConfig:\n```yaml\nstt:\n  enabled: true\n  provider: local        # local, groq, openai, mistral\n  local:\n    model: base          # tiny, base, small, medium, large-v3\n```\n\n### TTS (Text → Voice)\n\n| Provider | Env var | Free? |\n|----------|---------|-------|\n| Edge TTS | None | Yes (default) |\n| ElevenLabs | `ELEVENLABS_API_KEY` | Free tier |\n| OpenAI | `VOICE_TOOLS_OPENAI_KEY` | Paid |\n| MiniMax | `MINIMAX_API_KEY` | Paid |\n| Mistral (Voxtral) | `MISTRAL_API_KEY` | Paid |\n| NeuTTS (local) | None (`pip install neutts[all]` + `espeak-ng`) | Free |\n\nVoice commands: `\u002Fvoice on` (voice-to-voice), `\u002Fvoice tts` (always voice), `\u002Fvoice off`.\n\n---\n\n## Spawning Additional Hermes Instances\n\nRun additional Hermes processes as fully independent subprocesses — separate sessions, tools, and environments.\n\n### When to Use This vs delegate_task\n\n| | `delegate_task` | Spawning `hermes` process |\n|-|-----------------|--------------------------|\n| Isolation | Separate conversation, shared process | Fully independent process |\n| Duration | Minutes (bounded by parent loop) | Hours\u002Fdays |\n| Tool access | Subset of parent's tools | Full tool access |\n| Interactive | No | Yes (PTY mode) |\n| Use case | Quick parallel subtasks | Long autonomous missions |\n\n### One-Shot Mode\n\n```\nterminal(command=\"hermes chat -q 'Research GRPO papers and write summary to ~\u002Fresearch\u002Fgrpo.md'\", timeout=300)\n\n# Background for long tasks:\nterminal(command=\"hermes chat -q 'Set up CI\u002FCD for ~\u002Fmyapp'\", background=true)\n```\n\n### Interactive PTY Mode (via tmux)\n\nHermes uses prompt_toolkit, which requires a real terminal. Use tmux for interactive spawning:\n\n```\n# Start\nterminal(command=\"tmux new-session -d -s agent1 -x 120 -y 40 'hermes'\", timeout=10)\n\n# Wait for startup, then send a message\nterminal(command=\"sleep 8 && tmux send-keys -t agent1 'Build a FastAPI auth service' Enter\", timeout=15)\n\n# Read output\nterminal(command=\"sleep 20 && tmux capture-pane -t agent1 -p\", timeout=5)\n\n# Send follow-up\nterminal(command=\"tmux send-keys -t agent1 'Add rate limiting middleware' Enter\", timeout=5)\n\n# Exit\nterminal(command=\"tmux send-keys -t agent1 '\u002Fexit' Enter && sleep 2 && tmux kill-session -t agent1\", timeout=10)\n```\n\n### Multi-Agent Coordination\n\n```\n# Agent A: backend\nterminal(command=\"tmux new-session -d -s backend -x 120 -y 40 'hermes -w'\", timeout=10)\nterminal(command=\"sleep 8 && tmux send-keys -t backend 'Build REST API for user management' Enter\", timeout=15)\n\n# Agent B: frontend\nterminal(command=\"tmux new-session -d -s frontend -x 120 -y 40 'hermes -w'\", timeout=10)\nterminal(command=\"sleep 8 && tmux send-keys -t frontend 'Build React dashboard for user management' Enter\", timeout=15)\n\n# Check progress, relay context between them\nterminal(command=\"tmux capture-pane -t backend -p | tail -30\", timeout=5)\nterminal(command=\"tmux send-keys -t frontend 'Here is the API schema from the backend agent: ...' Enter\", timeout=5)\n```\n\n### Session Resume\n\n```\n# Resume most recent session\nterminal(command=\"tmux new-session -d -s resumed 'hermes --continue'\", timeout=10)\n\n# Resume specific session\nterminal(command=\"tmux new-session -d -s resumed 'hermes --resume 20260225_143052_a1b2c3'\", timeout=10)\n```\n\n### Tips\n\n- **Prefer `delegate_task` for quick subtasks** — less overhead than spawning a full process\n- **Use `-w` (worktree mode)** when spawning agents that edit code — prevents git conflicts\n- **Set timeouts** for one-shot mode — complex tasks can take 5-10 minutes\n- **Use `hermes chat -q` for fire-and-forget** — no PTY needed\n- **Use tmux for interactive sessions** — raw PTY mode has `\\r` vs `\\n` issues with prompt_toolkit\n- **For scheduled tasks**, use the `cronjob` tool instead of spawning — handles delivery and retry\n\n---\n\n## File Tool Pitfalls ⚠️\n\nHermes 的 `read_file` 和 `write_file` 工具组合有数据损坏风险。\n\n### 核心坑：read_file 返回带行号前缀\n\n`read_file` 返回的内容格式为 `LINE_NUM|CONTENT`：\n```\n1|{\"key\": \"value\"}\n2|{\"another\": 123}\n```\n\n直接拿这个输出喂给 `write_file`，行号会被写入文件 → JSON\u002FYAML 损坏，程序启动崩溃。\n\n### 正确做法\n\n| 场景 | 做法 |\n|------|------|\n| 读 JSON\u002FYAML 改配置 | 用 `terminal` + `python3 -c` 或 `execute_code`，不要用 `read_file`+`write_file` |\n| 读代码做参考 | `read_file` 安全（只读不改）|\n| 修改代码 | 用 `patch` 工具（精准行级修改）|\n| 写入新文件 | `write_file` 安全（新内容无行号污染）|\n| 操作 SQLite 数据库 | `terminal` + `python3 -c \"import sqlite3\"`，不要用文件工具碰 `.db` |\n\n### 已证明会坏的场景\n\n- JSON 配置文件（AstrBot `cmd_config.json` 被 `read_file` + `write_file` 损坏过两次）\n- 带 BOM 的 UTF-8 文件（`read_file` 可能破坏 BOM）\n- 任何非纯文本文件格式\n\n### 必须用 read_file 输出写入时\n\n用 `execute_code` strip 行号：\n```python\nfrom hermes_tools import read_file, write_file\ncontent = read_file(\"\u002Fpath\u002Fto\u002Ffile\")\nclean = \"\\n\".join(\n    line.split(\"|\", 1)[1] if \"|\" in line and line.split(\"|\")[0].strip().isdigit()\n    else line\n    for line in content[\"content\"].split(\"\\n\")\n)\nwrite_file(\"\u002Fpath\u002Fto\u002Ffile\", clean)\n```\n\n## Troubleshooting\n\n### Voice not working\n1. Check `stt.enabled: true` in config.yaml\n2. Verify provider: `pip install faster-whisper` or set API key\n3. In gateway: `\u002Frestart`. In CLI: exit and relaunch.\n\n### Tool not available\n1. `hermes tools` — check if toolset is enabled for your platform\n2. Some tools need env vars (check `.env`)\n3. `\u002Freset` after enabling tools\n\n### Model\u002Fprovider issues\n1. `hermes doctor` — check config and dependencies\n2. `hermes login` — re-authenticate OAuth providers\n3. Check `.env` has the right API key\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.\n5. **Provider setup investigation**: When a user claims a provider was \"configured before\" but it doesn't work, use the systematic multi-location check documented in `references\u002Fprovider-setup-investigation.md`. Six locations: config.yaml model section → custom_providers → .env → auth.json credential pools → session search → memory.\n6. **⚠️ Auxiliary provider trap**: Main model and auxiliary services (vision, compression, etc.) use separate provider configs. Switching the main provider without updating `auxiliary.vision` can cause silent failures — old vision credentials may be expired even when the main model works.\n\n### Changes not taking effect\n- **Tools\u002Fskills:** `\u002Freset` starts a new session with updated toolset\n- **Config changes:** In gateway: `\u002Frestart`. In CLI: exit and relaunch.\n- **Code changes:** Restart the CLI or gateway process\n- **Shell env not applying:** You may have modified the wrong shell's config file. See `references\u002Fshell-config-safety.md` for the detection workflow.\n\n### Skills not showing\n1. `hermes skills list` — verify installed\n2. `hermes skills config` — check platform enablement\n3. Load explicitly: `\u002Fskill name` or `hermes -s name`\n\n### Gateway issues\nCheck logs first:\n```bash\ngrep -i \"failed to send\\|error\" ~\u002F.hermes\u002Flogs\u002Fgateway.log | tail -20\n```\n\nCommon gateway problems:\n- **Gateway dies on SSH logout**: Enable linger: `sudo loginctl enable-linger $USER`\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).\n- **Gateway crash loop**: Reset the failed state: `systemctl --user reset-failed hermes-gateway`\n\n### Platform-specific issues\n- **Discord bot silent**: Must enable **Message Content Intent** in Bot → Privileged Gateway Intents.\n- **Slack bot only works in DMs**: Must subscribe to `message.channels` event. Without it, the bot ignores public channels.\n- **Windows HTTP 400 \"No models provided\"**: Config file encoding issue (BOM). Ensure `config.yaml` is saved as UTF-8 without BOM.\n\n### Auxiliary models not working\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:\n```bash\nhermes config set auxiliary.vision.provider \u003Cyour_provider>\nhermes config set auxiliary.vision.model \u003Cmodel_name>\n```\n\n**Pitfall — MiniMax CN 辅助服务：**\n- MiniMax-M2.7 是**纯文本模型**，不支持通过 chat\u002Fcompletions API 做视觉识别。配置 `auxiliary.vision` 为 `minimax-cn\u002FMiniMax-M2.7` 不会报错但也不会返回图像分析结果\n- 如需视觉能力，用 `mmx vision describe \u003Cimage_path>`（调用 MiniMax 专用 VLM 端点），该命令支持 WebP\u002FJPEG\u002FPNG\n- TTS 用 `minimax` provider，但 CN 端点必须**显式设 base_url** 为 `https:\u002F\u002Fapi.minimaxi.com\u002Fv1\u002Ft2a_v2`（默认走 global `api.minimax.io` 会 401）\n- `.env` 中**必须同时设** `MINIMAX_CN_API_KEY`（LLM\u002Fvision\u002FTTS API 读取用）和 `MINIMAX_API_KEY`（TTS 模块读取用），值相同即可\n- `mmx quota` 可查看 VLM 额度（`coding-plan-vlm` 配额）\n- 详见 `references\u002Fmmx-cli-setup.md` → 配置 Hermes Agent 辅助服务\n\n---\n\n## Where to Find Things\n\n| Looking for... | Location |\n|----------------|----------|\n| Config options | `hermes config edit` or [Configuration docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fconfiguration) |\n| Available tools | `hermes tools list` or [Tools reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Ftools-reference) |\n| Slash commands | `\u002Fhelp` in session or [Slash commands reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fslash-commands) |\n| Skills catalog | `hermes skills browse` or [Skills catalog](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fskills-catalog) |\n| Provider setup | `hermes model` or [Providers guide](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fintegrations\u002Fproviders) |\n| Platform setup | `hermes gateway setup` or [Messaging docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fmessaging\u002F) |\n| MCP servers | `hermes mcp list` or [MCP guide](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmcp) |\n| Profiles | `hermes profile list` or [Profiles docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Fprofiles) |\nMemory | `hermes memory status` or [Memory docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmemory) — Chinese-user reference: `references\u002Fmemory-providers-cn.md`\n| Memory | `hermes memory status` or [Memory docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmemory) — Chinese-user reference: `references\u002Fmemory-providers-cn.md` |\n| Memory providers | `hermes memory status` or [Memory docs](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fuser-guide\u002Ffeatures\u002Fmemory) — Chinese user guide in `references\u002Fmemory-providers-cn.md` |\n| Skill publishing (ClawHub) | `clawhub` CLI — see `references\u002Fclawhub-publishing.md` |\n| Env variables | `hermes config env-path` or [Env vars reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fenvironment-variables) |\n| CLI commands | `hermes --help` or [CLI reference](https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Freference\u002Fcli-commands) |\n| Gateway logs | `~\u002F.hermes\u002Flogs\u002Fgateway.log` |\n| Session files | `~\u002F.hermes\u002Fsessions\u002F` or `hermes sessions browse` |\n| Source code | `~\u002F.hermes\u002Fhermes-agent\u002F` |\n\n---\n\n## Contributor Quick Reference\n\nFor occasional contributors and PR authors. Full developer docs: https:\u002F\u002Fhermes-agent.nousresearch.com\u002Fdocs\u002Fdeveloper-guide\u002F\n\n### Project Layout\n\n```\nhermes-agent\u002F\n├── run_agent.py          # AIAgent — core conversation loop\n├── model_tools.py        # Tool discovery and dispatch\n├── toolsets.py           # Toolset definitions\n├── cli.py                # Interactive CLI (HermesCLI)\n├── hermes_state.py       # SQLite session store\n├── agent\u002F                # Prompt builder, context compression, memory, model routing, credential pooling, skill dispatch\n├── hermes_cli\u002F           # CLI subcommands, config, setup, commands\n│   ├── commands.py       # Slash command registry (CommandDef)\n│   ├── config.py         # DEFAULT_CONFIG, env var definitions\n│   └── main.py           # CLI entry point and argparse\n├── tools\u002F                # One file per tool\n│   └── registry.py       # Central tool registry\n├── gateway\u002F              # Messaging gateway\n│   └── platforms\u002F        # Platform adapters (telegram, discord, etc.)\n├── cron\u002F                 # Job scheduler\n├── tests\u002F                # ~3000 pytest tests\n└── website\u002F              # Docusaurus docs site\n```\n\nConfig: `~\u002F.hermes\u002Fconfig.yaml` (settings), `~\u002F.hermes\u002F.env` (API keys).\n\n### Adding a Tool (3 files)\n\n**1. Create `tools\u002Fyour_tool.py`:**\n```python\nimport json, os\nfrom tools.registry import registry\n\ndef check_requirements() -> bool:\n    return bool(os.getenv(\"EXAMPLE_API_KEY\"))\n\ndef example_tool(param: str, task_id: str = None) -> str:\n    return json.dumps({\"success\": True, \"data\": \"...\"})\n\nregistry.register(\n    name=\"example_tool\",\n    toolset=\"example\",\n    schema={\"name\": \"example_tool\", \"description\": \"...\", \"parameters\": {...}},\n    handler=lambda args, **kw: example_tool(\n        param=args.get(\"param\", \"\"), task_id=kw.get(\"task_id\")),\n    check_fn=check_requirements,\n    requires_env=[\"EXAMPLE_API_KEY\"],\n)\n```\n\n**2. Add to `toolsets.py`** → `_HERMES_CORE_TOOLS` list.\n\nAuto-discovery: any `tools\u002F*.py` file with a top-level `registry.register()` call is imported automatically — no manual list needed.\n\nAll handlers must return JSON strings. Use `get_hermes_home()` for paths, never hardcode `~\u002F.hermes`.\n\n### Adding a Slash Command\n\n1. Add `CommandDef` to `COMMAND_REGISTRY` in `hermes_cli\u002Fcommands.py`\n2. Add handler in `cli.py` → `process_command()`\n3. (Optional) Add gateway handler in `gateway\u002Frun.py`\n\nAll consumers (help text, autocomplete, Telegram menu, Slack mapping) derive from the central registry automatically.\n\n### Agent Loop (High Level)\n\n```\nrun_conversation():\n  1. Build system prompt\n  2. Loop while iterations \u003C max:\n     a. Call LLM (OpenAI-format messages + tool schemas)\n     b. If tool_calls → dispatch each via handle_function_call() → append results → continue\n     c. If text response → return\n  3. Context compression triggers automatically near token limit\n```\n\n### Testing\n\n```bash\npython -m pytest tests\u002F -o 'addopts=' -q   # Full suite\npython -m pytest tests\u002Ftools\u002F -q            # Specific area\n```\n\n- Tests auto-redirect `HERMES_HOME` to temp dirs — never touch real `~\u002F.hermes\u002F`\n- Run full suite before pushing any change\n- Use `-o 'addopts='` to clear any baked-in pytest flags\n\n### Commit Conventions\n\n```\ntype: concise subject line\n\nOptional body.\n```\n\nTypes: `fix:`, `feat:`, `refactor:`, `docs:`, `chore:`\n\n### Key Rules\n\n- **Never break prompt caching** — don't change context, tools, or system prompt mid-conversation\n- **Message role alternation** — never two assistant or two user messages in a row\n- Use `get_hermes_home()` from `hermes_constants` for all paths (profile-safe)\n- Config values go in `config.yaml`, secrets go in `.env`\n- New tools need a `check_fn` so they only appear when requirements are met\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"description":7},"Hermes Agent + Teknium","2.0.0",{"hermes":27},{"tags":28,"homepage":37,"related_skills":38},[29,30,31,32,33,34,35,36],"hermes","setup","configuration","multi-agent","spawning","cli","gateway","development","https:\u002F\u002Fgithub.com\u002FNousResearch\u002Fhermes-agent",[39,40,41,42],"claude-code","codex","opencode","hermes-external-integration","master","2cd115c9a59092e1d0cf18805c164d7a57a7f123","skills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent","https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit","https:\u002F\u002Fgithub.com\u002Fpublieople","https:\u002F\u002Fwww.for-people.cn","Truly provide effective services for the real people","2026-10-11 09:10:19",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add publieople\u002Fhermes-config-kit --skill hermes-agent",{"tool":57,"command":58},"bunx","bunx skills add publieople\u002Fhermes-config-kit --skill hermes-agent",{"tool":60,"command":61},"pnpm","pnpm dlx skills add publieople\u002Fhermes-config-kit --skill hermes-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent\u002FSKILL.md",true,[65,71,75,79,83,87,91],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fclawhub-publishing.md","REFERENCE","参考文档",3819,"https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent\u002Freferences\u002Fclawhub-publishing.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fmemory-provider-setup-cn.md",5603,"https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent\u002Freferences\u002Fmemory-provider-setup-cn.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fmemory-providers-cn.md",3496,"https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent\u002Freferences\u002Fmemory-providers-cn.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fmmx-cli-setup.md",11617,"https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent\u002Freferences\u002Fmmx-cli-setup.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fprovider-setup-investigation.md",2528,"https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent\u002Freferences\u002Fprovider-setup-investigation.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fshell-config-safety.md",2662,"https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent\u002Freferences\u002Fshell-config-safety.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fskill-authoring-in-repo.md",3025,"https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002F_archive\u002Fautonomous-ai-agents\u002Fhermes-agent\u002Freferences\u002Fskill-authoring-in-repo.md",[96,103,110,117,124,131],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M75A845WYE5R2AFVSS7YHBJV","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M75A7QKQZD6YVEJ55KYNBHM1","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fsystematic-debugging\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M75A7NCY8TJN7BVDV7GKQJNE","simplify-code","Parallel 4-agent cleanup of recent code changes.","https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fsimplify-code\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M75A7JW7JHDNNKYGFQDP4E2M","inspecting-hermes-desktop-dom","Read the live Hermes desktop DOM\u002FCSS over CDP.","https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Finspecting-hermes-desktop-dom\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M75A7EP72GHSVHW337XD75CR","hermes-agent-skill-authoring","Author in-repo SKILL.md files: frontmatter and structure.","https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fhermes-agent-skill-authoring\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":19},"01M75A7BGWRT0453313CJKP4SC","github","GitHub via gh CLI: PRs, issues, reviews, repos, auth.","https:\u002F\u002Fgithub.com\u002Fpublieople\u002Fhermes-config-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fgithub\u002FSKILL.md",[],[]]