winter-super-cli 2026.6.24 → 2026.6.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/CHANGELOG.md +28 -5
  2. package/README.md +85 -0
  3. package/package.json +5 -1
  4. package/resources/local/gsap-skills/.claude-plugin/marketplace.json +20 -0
  5. package/resources/local/gsap-skills/.claude-plugin/plugin.json +6 -0
  6. package/resources/local/gsap-skills/.cursor-plugin/marketplace.json +13 -0
  7. package/resources/local/gsap-skills/.cursor-plugin/plugin.json +22 -0
  8. package/resources/local/gsap-skills/.github/copilot-instructions.md +17 -0
  9. package/resources/local/gsap-skills/.github/instructions/react.instructions.md +15 -0
  10. package/resources/local/gsap-skills/.github/instructions/scrolltrigger.instructions.md +18 -0
  11. package/resources/local/gsap-skills/AGENTS.md +27 -0
  12. package/resources/local/gsap-skills/CLAUDE.md +1 -0
  13. package/resources/local/gsap-skills/GEMINI.md +1 -0
  14. package/resources/local/gsap-skills/LICENSE +21 -0
  15. package/resources/local/gsap-skills/README.md +163 -0
  16. package/resources/local/gsap-skills/assets/gsap-green.svg +7 -0
  17. package/resources/local/gsap-skills/assets/gsap-icon-inverted.svg +15 -0
  18. package/resources/local/gsap-skills/assets/gsap-icon-square.svg +1 -0
  19. package/resources/local/gsap-skills/assets/gsap-white.svg +7 -0
  20. package/resources/local/gsap-skills/examples/README.md +29 -0
  21. package/resources/local/gsap-skills/examples/nuxt/app/app.vue +3 -0
  22. package/resources/local/gsap-skills/examples/nuxt/app/composables/useGSAP.ts +91 -0
  23. package/resources/local/gsap-skills/examples/nuxt/app/pages/index.vue +55 -0
  24. package/resources/local/gsap-skills/examples/nuxt/nuxt.config.ts +4 -0
  25. package/resources/local/gsap-skills/examples/nuxt/package.json +18 -0
  26. package/resources/local/gsap-skills/examples/react/App.jsx +46 -0
  27. package/resources/local/gsap-skills/examples/react/index.html +12 -0
  28. package/resources/local/gsap-skills/examples/react/main.jsx +9 -0
  29. package/resources/local/gsap-skills/examples/react/package.json +21 -0
  30. package/resources/local/gsap-skills/examples/react/vite.config.js +7 -0
  31. package/resources/local/gsap-skills/examples/vanilla/index.html +33 -0
  32. package/resources/local/gsap-skills/examples/vanilla/main.js +36 -0
  33. package/resources/local/gsap-skills/examples/vue/app.vue +47 -0
  34. package/resources/local/gsap-skills/examples/vue/index.html +15 -0
  35. package/resources/local/gsap-skills/examples/vue/main.js +9 -0
  36. package/resources/local/gsap-skills/examples/vue/package.json +19 -0
  37. package/resources/local/gsap-skills/examples/vue/vite.config.js +7 -0
  38. package/resources/local/gsap-skills/skills/gsap-core/SKILL.md +254 -0
  39. package/resources/local/gsap-skills/skills/gsap-frameworks/SKILL.md +266 -0
  40. package/resources/local/gsap-skills/skills/gsap-performance/SKILL.md +79 -0
  41. package/resources/local/gsap-skills/skills/gsap-plugins/SKILL.md +433 -0
  42. package/resources/local/gsap-skills/skills/gsap-react/SKILL.md +136 -0
  43. package/resources/local/gsap-skills/skills/gsap-scrolltrigger/SKILL.md +296 -0
  44. package/resources/local/gsap-skills/skills/gsap-timeline/SKILL.md +107 -0
  45. package/resources/local/gsap-skills/skills/gsap-utils/SKILL.md +284 -0
  46. package/resources/local/gsap-skills/skills/llms.txt +39 -0
  47. package/resources/local/hermes-agent-core/AGENTS.md +1132 -0
  48. package/resources/local/hermes-agent-core/LICENSE +21 -0
  49. package/resources/local/hermes-agent-core/README.md +215 -0
  50. package/resources/local/hermes-agent-core/docs/2026-05-07-s6-overlay-dynamic-subagent-gateways.md +434 -0
  51. package/resources/local/hermes-agent-core/hermes-already-has-routines.md +160 -0
  52. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/DESCRIPTION.md +3 -0
  53. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/claude-code/SKILL.md +745 -0
  54. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/codex/SKILL.md +130 -0
  55. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/hermes-agent/SKILL.md +1021 -0
  56. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/kanban-codex-lane/SKILL.md +277 -0
  57. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/kanban-codex-lane/templates/pmb-codex-lane-prompt.md +57 -0
  58. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/opencode/SKILL.md +219 -0
  59. package/resources/local/hermes-agent-core/skills/github/DESCRIPTION.md +3 -0
  60. package/resources/local/hermes-agent-core/skills/github/codebase-inspection/SKILL.md +116 -0
  61. package/resources/local/hermes-agent-core/skills/github/github-auth/SKILL.md +247 -0
  62. package/resources/local/hermes-agent-core/skills/github/github-auth/scripts/gh-env.sh +66 -0
  63. package/resources/local/hermes-agent-core/skills/github/github-code-review/SKILL.md +481 -0
  64. package/resources/local/hermes-agent-core/skills/github/github-code-review/references/review-output-template.md +74 -0
  65. package/resources/local/hermes-agent-core/skills/github/github-issues/SKILL.md +370 -0
  66. package/resources/local/hermes-agent-core/skills/github/github-issues/templates/bug-report.md +35 -0
  67. package/resources/local/hermes-agent-core/skills/github/github-issues/templates/feature-request.md +31 -0
  68. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/SKILL.md +367 -0
  69. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/references/ci-troubleshooting.md +183 -0
  70. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/references/conventional-commits.md +71 -0
  71. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/templates/pr-body-bugfix.md +35 -0
  72. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/templates/pr-body-feature.md +33 -0
  73. package/resources/local/hermes-agent-core/skills/github/github-repo-management/SKILL.md +516 -0
  74. package/resources/local/hermes-agent-core/skills/github/github-repo-management/references/github-api-cheatsheet.md +161 -0
  75. package/resources/local/hermes-agent-core/skills/mcp/DESCRIPTION.md +3 -0
  76. package/resources/local/hermes-agent-core/skills/mcp/native-mcp/SKILL.md +357 -0
  77. package/resources/local/hermes-agent-core/skills/software-development/debugging-hermes-tui-commands/SKILL.md +152 -0
  78. package/resources/local/hermes-agent-core/skills/software-development/hermes-agent-skill-authoring/SKILL.md +165 -0
  79. package/resources/local/hermes-agent-core/skills/software-development/hermes-s6-container-supervision/SKILL.md +176 -0
  80. package/resources/local/hermes-agent-core/skills/software-development/node-inspect-debugger/SKILL.md +319 -0
  81. package/resources/local/hermes-agent-core/skills/software-development/plan/SKILL.md +58 -0
  82. package/resources/local/hermes-agent-core/skills/software-development/python-debugpy/SKILL.md +375 -0
  83. package/resources/local/hermes-agent-core/skills/software-development/requesting-code-review/SKILL.md +280 -0
  84. package/resources/local/hermes-agent-core/skills/software-development/spike/SKILL.md +197 -0
  85. package/resources/local/hermes-agent-core/skills/software-development/subagent-driven-development/SKILL.md +352 -0
  86. package/resources/local/hermes-agent-core/skills/software-development/subagent-driven-development/references/context-budget-discipline.md +53 -0
  87. package/resources/local/hermes-agent-core/skills/software-development/subagent-driven-development/references/gates-taxonomy.md +93 -0
  88. package/resources/local/hermes-agent-core/skills/software-development/systematic-debugging/SKILL.md +367 -0
  89. package/resources/local/hermes-agent-core/skills/software-development/test-driven-development/SKILL.md +343 -0
  90. package/resources/local/hermes-agent-core/skills/software-development/writing-plans/SKILL.md +297 -0
  91. package/resources/local/manifest.json +12 -0
  92. package/rule.md +2 -0
  93. package/scripts/audit-pack.js +5 -0
  94. package/scripts/smoke-browser.js +53 -0
  95. package/scripts/smoke-package.js +38 -4
  96. package/skill.md +36 -4
  97. package/skills/gsap.md +26 -0
  98. package/skills/hermes-agent.md +17 -0
  99. package/src/agent/agent-definitions.js +4 -4
  100. package/src/agent/runtime.js +179 -5
  101. package/src/agent/subagent-child.js +44 -0
  102. package/src/ai/capability-scorecard.js +193 -14
  103. package/src/ai/hermes-core.js +77 -0
  104. package/src/ai/model-capabilities.js +42 -2
  105. package/src/ai/prompts/system-prompt.js +18 -2
  106. package/src/ai/small-model-amplifier.js +35 -7
  107. package/src/ai/workflow-selector.js +22 -1
  108. package/src/cli/commands.js +46 -2
  109. package/src/cli/config.js +45 -6
  110. package/src/cli/context-loader.js +253 -9
  111. package/src/cli/conversation-format.js +5 -0
  112. package/src/cli/input-controller.js +79 -10
  113. package/src/cli/prompt-builder.js +47 -8
  114. package/src/cli/repl-commands.js +115 -0
  115. package/src/cli/repl.js +343 -85
  116. package/src/cli/slash-commands.js +4 -2
  117. package/src/cli/tui.js +133 -37
  118. package/src/mcp/client.js +54 -11
  119. package/src/mcp/presets.js +114 -0
  120. package/src/tools/agent.js +316 -25
  121. package/src/tools/executor.js +412 -12
  122. package/src/tools/permission.js +20 -17
  123. package/winter.d.ts +112 -10
@@ -0,0 +1,1021 @@
1
+ ---
2
+ name: hermes-agent
3
+ description: "Configure, extend, or contribute to Hermes Agent."
4
+ version: 2.1.0
5
+ author: Hermes Agent + Teknium
6
+ license: MIT
7
+ platforms: [linux, macos, windows]
8
+ metadata:
9
+ hermes:
10
+ tags: [hermes, setup, configuration, multi-agent, spawning, cli, gateway, development]
11
+ homepage: https://github.com/NousResearch/hermes-agent
12
+ related_skills: [claude-code, codex, opencode]
13
+ ---
14
+
15
+ # Hermes Agent
16
+
17
+ Hermes 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.
18
+
19
+ What makes Hermes different:
20
+
21
+ - **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.
22
+ - **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.
23
+ - **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.
24
+ - **Provider-agnostic** — swap models and providers mid-workflow without changing anything else. Credential pools rotate across multiple API keys automatically.
25
+ - **Profiles** — run multiple independent Hermes instances with isolated configs, sessions, skills, and memory.
26
+ - **Extensible** — plugins, MCP servers, custom tools, webhook triggers, cron scheduling, and the full Python ecosystem.
27
+
28
+ People 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.
29
+
30
+ **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.
31
+
32
+ **Docs:** https://hermes-agent.nousresearch.com/docs/
33
+
34
+ ## Quick Start
35
+
36
+ ```bash
37
+ # Install
38
+ curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
39
+
40
+ # Interactive chat (default)
41
+ hermes
42
+
43
+ # Single query
44
+ hermes chat -q "What is the capital of France?"
45
+
46
+ # Setup wizard
47
+ hermes setup
48
+
49
+ # Change model/provider
50
+ hermes model
51
+
52
+ # Check health
53
+ hermes doctor
54
+ ```
55
+
56
+ ---
57
+
58
+ ## CLI Reference
59
+
60
+ ### Global Flags
61
+
62
+ ```
63
+ hermes [flags] [command]
64
+
65
+ --version, -V Show version
66
+ --resume, -r SESSION Resume session by ID or title
67
+ --continue, -c [NAME] Resume by name, or most recent session
68
+ --worktree, -w Isolated git worktree mode (parallel agents)
69
+ --skills, -s SKILL Preload skills (comma-separate or repeat)
70
+ --profile, -p NAME Use a named profile
71
+ --yolo Skip dangerous command approval
72
+ --pass-session-id Include session ID in system prompt
73
+ ```
74
+
75
+ No subcommand defaults to `chat`.
76
+
77
+ ### Chat
78
+
79
+ ```
80
+ hermes chat [flags]
81
+ -q, --query TEXT Single query, non-interactive
82
+ -m, --model MODEL Model (e.g. anthropic/claude-sonnet-4)
83
+ -t, --toolsets LIST Comma-separated toolsets
84
+ --provider PROVIDER Force provider (openrouter, anthropic, nous, etc.)
85
+ -v, --verbose Verbose output
86
+ -Q, --quiet Suppress banner, spinner, tool previews
87
+ --checkpoints Enable filesystem checkpoints (/rollback)
88
+ --source TAG Session source tag (default: cli)
89
+ ```
90
+
91
+ ### Configuration
92
+
93
+ ```
94
+ hermes setup [section] Interactive wizard (model|terminal|gateway|tools|agent)
95
+ hermes model Interactive model/provider picker
96
+ hermes config View current config
97
+ hermes config edit Open config.yaml in $EDITOR
98
+ hermes config set KEY VAL Set a config value
99
+ hermes config path Print config.yaml path
100
+ hermes config env-path Print .env path
101
+ hermes config check Check for missing/outdated config
102
+ hermes config migrate Update config with new options
103
+ hermes auth Interactive credential manager
104
+ hermes auth add PROVIDER Add OAuth or API-key credential (e.g. nous, openai-codex, qwen-oauth)
105
+ hermes auth list List stored credentials
106
+ hermes auth remove PROVIDER Remove a stored credential
107
+ hermes doctor [--fix] Check dependencies and config
108
+ hermes status [--all] Show component status
109
+ ```
110
+
111
+ ### Tools & Skills
112
+
113
+ ```
114
+ hermes tools Interactive tool enable/disable (curses UI)
115
+ hermes tools list Show all tools and status
116
+ hermes tools enable NAME Enable a toolset
117
+ hermes tools disable NAME Disable a toolset
118
+
119
+ hermes skills list List installed skills
120
+ hermes skills search QUERY Search the skills hub
121
+ hermes skills install ID Install a skill (ID can be a hub identifier OR a direct https://…/SKILL.md URL; pass --name to override when frontmatter has no name)
122
+ hermes skills inspect ID Preview without installing
123
+ hermes skills config Enable/disable skills per platform
124
+ hermes skills check Check for updates
125
+ hermes skills update Update outdated skills
126
+ hermes skills uninstall N Remove a hub skill
127
+ hermes skills publish PATH Publish to registry
128
+ hermes skills browse Browse all available skills
129
+ hermes skills tap add REPO Add a GitHub repo as skill source
130
+ ```
131
+
132
+ ### MCP Servers
133
+
134
+ ```
135
+ hermes mcp serve Run Hermes as an MCP server
136
+ hermes mcp add NAME Add an MCP server (--url or --command)
137
+ hermes mcp remove NAME Remove an MCP server
138
+ hermes mcp list List configured servers
139
+ hermes mcp test NAME Test connection
140
+ hermes mcp configure NAME Toggle tool selection
141
+ ```
142
+
143
+ ### Gateway (Messaging Platforms)
144
+
145
+ ```
146
+ hermes gateway run Start gateway foreground
147
+ hermes gateway install Install as background service
148
+ hermes gateway start/stop Control the service
149
+ hermes gateway restart Restart the service
150
+ hermes gateway status Check status
151
+ hermes gateway setup Configure platforms
152
+ ```
153
+
154
+ Supported 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.
155
+
156
+ Platform docs: https://hermes-agent.nousresearch.com/docs/user-guide/messaging/
157
+
158
+ ### Sessions
159
+
160
+ ```
161
+ hermes sessions list List recent sessions
162
+ hermes sessions browse Interactive picker
163
+ hermes sessions export OUT Export to JSONL
164
+ hermes sessions rename ID T Rename a session
165
+ hermes sessions delete ID Delete a session
166
+ hermes sessions prune Clean up old sessions (--older-than N days)
167
+ hermes sessions stats Session store statistics
168
+ ```
169
+
170
+ ### Cron Jobs
171
+
172
+ ```
173
+ hermes cron list List jobs (--all for disabled)
174
+ hermes cron create SCHED Create: '30m', 'every 2h', '0 9 * * *'
175
+ hermes cron edit ID Edit schedule, prompt, delivery
176
+ hermes cron pause/resume ID Control job state
177
+ hermes cron run ID Trigger on next tick
178
+ hermes cron remove ID Delete a job
179
+ hermes cron status Scheduler status
180
+ ```
181
+
182
+ ### Webhooks
183
+
184
+ ```
185
+ hermes webhook subscribe N Create route at /webhooks/<name>
186
+ hermes webhook list List subscriptions
187
+ hermes webhook remove NAME Remove a subscription
188
+ hermes webhook test NAME Send a test POST
189
+ ```
190
+
191
+ ### Profiles
192
+
193
+ ```
194
+ hermes profile list List all profiles
195
+ hermes profile create NAME Create (--clone, --clone-all, --clone-from)
196
+ hermes profile use NAME Set sticky default
197
+ hermes profile delete NAME Delete a profile
198
+ hermes profile show NAME Show details
199
+ hermes profile alias NAME Manage wrapper scripts
200
+ hermes profile rename A B Rename a profile
201
+ hermes profile export NAME Export to tar.gz
202
+ hermes profile import FILE Import from archive
203
+ ```
204
+
205
+ ### Credential Pools
206
+
207
+ ```
208
+ hermes auth add Interactive credential wizard
209
+ hermes auth list [PROVIDER] List pooled credentials
210
+ hermes auth remove P INDEX Remove by provider + index
211
+ hermes auth reset PROVIDER Clear exhaustion status
212
+ ```
213
+
214
+ ### Other
215
+
216
+ ```
217
+ hermes insights [--days N] Usage analytics
218
+ hermes update Update to latest version
219
+ hermes pairing list/approve/revoke DM authorization
220
+ hermes plugins list/install/remove Plugin management
221
+ hermes honcho setup/status Honcho memory integration (requires honcho plugin)
222
+ hermes memory setup/status/off Memory provider config
223
+ hermes completion bash|zsh Shell completions
224
+ hermes acp ACP server (IDE integration)
225
+ hermes claw migrate Migrate from OpenClaw
226
+ hermes uninstall Uninstall Hermes
227
+ ```
228
+
229
+ ---
230
+
231
+ ## Slash Commands (In-Session)
232
+
233
+ Type these during an interactive chat session. New commands land fairly
234
+ often; if something below looks stale, run `/help` in-session for the
235
+ authoritative list or see the [live slash commands reference](https://hermes-agent.nousresearch.com/docs/reference/slash-commands).
236
+ The registry of record is `hermes_cli/commands.py` — every consumer
237
+ (autocomplete, Telegram menu, Slack mapping, `/help`) derives from it.
238
+
239
+ ### Session Control
240
+ ```
241
+ /new (/reset) Fresh session
242
+ /clear Clear screen + new session (CLI)
243
+ /retry Resend last message
244
+ /undo Remove last exchange
245
+ /title [name] Name the session
246
+ /compress Manually compress context
247
+ /stop Kill background processes
248
+ /rollback [N] Restore filesystem checkpoint
249
+ /snapshot [sub] Create or restore state snapshots of Hermes config/state (CLI)
250
+ /background <prompt> Run prompt in background
251
+ /queue <prompt> Queue for next turn
252
+ /steer <prompt> Inject a message after the next tool call without interrupting
253
+ /agents (/tasks) Show active agents and running tasks
254
+ /resume [name] Resume a named session
255
+ /goal [text|sub] Set a standing goal Hermes works on across turns until achieved
256
+ (subcommands: status, pause, resume, clear)
257
+ /redraw Force a full UI repaint (CLI)
258
+ ```
259
+
260
+ ### Configuration
261
+ ```
262
+ /config Show config (CLI)
263
+ /model [name] Show or change model
264
+ /personality [name] Set personality
265
+ /reasoning [level] Set reasoning (none|minimal|low|medium|high|xhigh|show|hide)
266
+ /verbose Cycle: off → new → all → verbose
267
+ /voice [on|off|tts] Voice mode
268
+ /yolo Toggle approval bypass
269
+ /busy [sub] Control what Enter does while Hermes is working (CLI)
270
+ (subcommands: queue, steer, interrupt, status)
271
+ /indicator [style] Pick the TUI busy-indicator style (CLI)
272
+ (styles: kaomoji, emoji, unicode, ascii)
273
+ /footer [on|off] Toggle gateway runtime-metadata footer on final replies
274
+ /skin [name] Change theme (CLI)
275
+ /statusbar Toggle status bar (CLI)
276
+ ```
277
+
278
+ ### Tools & Skills
279
+ ```
280
+ /tools Manage tools (CLI)
281
+ /toolsets List toolsets (CLI)
282
+ /skills Search/install skills (CLI)
283
+ /skill <name> Load a skill into session
284
+ /reload-skills Re-scan ~/.hermes/skills/ for added/removed skills
285
+ /reload Reload .env variables into the running session (CLI)
286
+ /reload-mcp Reload MCP servers
287
+ /cron Manage cron jobs (CLI)
288
+ /curator [sub] Background skill maintenance (status, run, pin, archive, …)
289
+ /kanban [sub] Multi-profile collaboration board (tasks, links, comments)
290
+ /plugins List plugins (CLI)
291
+ ```
292
+
293
+ ### Gateway
294
+ ```
295
+ /approve Approve a pending command (gateway)
296
+ /deny Deny a pending command (gateway)
297
+ /restart Restart gateway (gateway)
298
+ /sethome Set current chat as home channel (gateway)
299
+ /update Update Hermes to latest (gateway)
300
+ /topic [sub] Enable or inspect Telegram DM topic sessions (gateway)
301
+ /platforms (/gateway) Show platform connection status (gateway)
302
+ ```
303
+
304
+ ### Utility
305
+ ```
306
+ /branch (/fork) Branch the current session
307
+ /fast Toggle priority/fast processing
308
+ /browser Open CDP browser connection
309
+ /history Show conversation history (CLI)
310
+ /save Save conversation to file (CLI)
311
+ /copy [N] Copy the last assistant response to clipboard (CLI)
312
+ /paste Attach clipboard image (CLI)
313
+ /image Attach local image file (CLI)
314
+ ```
315
+
316
+ ### Info
317
+ ```
318
+ /help Show commands
319
+ /commands [page] Browse all commands (gateway)
320
+ /usage Token usage
321
+ /insights [days] Usage analytics
322
+ /gquota Show Google Gemini Code Assist quota usage (CLI)
323
+ /status Session info (gateway)
324
+ /profile Active profile info
325
+ /debug Upload debug report (system info + logs) and get shareable links
326
+ ```
327
+
328
+ ### Exit
329
+ ```
330
+ /quit (/exit, /q) Exit CLI
331
+ ```
332
+
333
+ ---
334
+
335
+ ## Key Paths & Config
336
+
337
+ ```
338
+ ~/.hermes/config.yaml Main configuration
339
+ ~/.hermes/.env API keys and secrets
340
+ $HERMES_HOME/skills/ Installed skills
341
+ ~/.hermes/sessions/ Gateway routing index, request dumps, *.jsonl transcripts (and optional per-session JSON snapshots when sessions.write_json_snapshots: true)
342
+ ~/.hermes/state.db Canonical session store (SQLite + FTS5)
343
+ ~/.hermes/logs/ Gateway and error logs
344
+ ~/.hermes/auth.json OAuth tokens and credential pools
345
+ ~/.hermes/hermes-agent/ Source code (if git-installed)
346
+ ```
347
+
348
+ Profiles use `~/.hermes/profiles/<name>/` with the same layout.
349
+
350
+ ### Config Sections
351
+
352
+ Edit with `hermes config edit` or `hermes config set section.key value`.
353
+
354
+ | Section | Key options |
355
+ |---------|-------------|
356
+ | `model` | `default`, `provider`, `base_url`, `api_key`, `context_length` |
357
+ | `agent` | `max_turns` (90), `tool_use_enforcement` |
358
+ | `terminal` | `backend` (local/docker/ssh/modal), `cwd`, `timeout` (180) |
359
+ | `compression` | `enabled`, `threshold` (0.50), `target_ratio` (0.20) |
360
+ | `display` | `skin`, `tool_progress`, `show_reasoning`, `show_cost` |
361
+ | `stt` | `enabled`, `provider` (local/groq/openai/mistral) |
362
+ | `tts` | `provider` (edge/elevenlabs/openai/minimax/mistral/neutts) |
363
+ | `memory` | `memory_enabled`, `user_profile_enabled`, `provider` |
364
+ | `security` | `tirith_enabled`, `website_blocklist` |
365
+ | `delegation` | `model`, `provider`, `base_url`, `api_key`, `max_iterations` (50), `reasoning_effort` |
366
+ | `checkpoints` | `enabled`, `max_snapshots` (50) |
367
+
368
+ Full config reference: https://hermes-agent.nousresearch.com/docs/user-guide/configuration
369
+
370
+ ### Providers
371
+
372
+ 20+ providers supported. Set via `hermes model` or `hermes setup`.
373
+
374
+ | Provider | Auth | Key env var |
375
+ |----------|------|-------------|
376
+ | OpenRouter | API key | `OPENROUTER_API_KEY` |
377
+ | Anthropic | API key | `ANTHROPIC_API_KEY` |
378
+ | Nous Portal | OAuth | `hermes auth` |
379
+ | OpenAI Codex | OAuth | `hermes auth` |
380
+ | GitHub Copilot | Token | `COPILOT_GITHUB_TOKEN` |
381
+ | Google Gemini | API key | `GOOGLE_API_KEY` or `GEMINI_API_KEY` |
382
+ | DeepSeek | API key | `DEEPSEEK_API_KEY` |
383
+ | xAI / Grok | API key | `XAI_API_KEY` |
384
+ | Hugging Face | Token | `HF_TOKEN` |
385
+ | Z.AI / GLM | API key | `GLM_API_KEY` |
386
+ | MiniMax | API key | `MINIMAX_API_KEY` |
387
+ | MiniMax CN | API key | `MINIMAX_CN_API_KEY` |
388
+ | Kimi / Moonshot | API key | `KIMI_API_KEY` |
389
+ | Alibaba / DashScope | API key | `DASHSCOPE_API_KEY` |
390
+ | Xiaomi MiMo | API key | `XIAOMI_API_KEY` |
391
+ | Kilo Code | API key | `KILOCODE_API_KEY` |
392
+ | OpenCode Zen | API key | `OPENCODE_ZEN_API_KEY` |
393
+ | OpenCode Go | API key | `OPENCODE_GO_API_KEY` |
394
+ | Qwen OAuth | OAuth | `hermes auth add qwen-oauth` |
395
+ | Custom endpoint | Config | `model.base_url` + `model.api_key` in config.yaml |
396
+ | GitHub Copilot ACP | External | `COPILOT_CLI_PATH` or Copilot CLI |
397
+
398
+ Full provider docs: https://hermes-agent.nousresearch.com/docs/integrations/providers
399
+
400
+ ### Toolsets
401
+
402
+ Enable/disable via `hermes tools` (interactive) or `hermes tools enable/disable NAME`.
403
+
404
+ | Toolset | What it provides |
405
+ |---------|-----------------|
406
+ | `web` | Web search and content extraction |
407
+ | `search` | Web search only (subset of `web`) |
408
+ | `browser` | Browser automation (Browserbase, Camofox, or local Chromium) |
409
+ | `terminal` | Shell commands and process management |
410
+ | `file` | File read/write/search/patch |
411
+ | `code_execution` | Sandboxed Python execution |
412
+ | `vision` | Image analysis |
413
+ | `image_gen` | AI image generation |
414
+ | `video` | Video analysis and generation |
415
+ | `tts` | Text-to-speech |
416
+ | `skills` | Skill browsing and management |
417
+ | `memory` | Persistent cross-session memory |
418
+ | `session_search` | Search past conversations |
419
+ | `delegation` | Subagent task delegation |
420
+ | `cronjob` | Scheduled task management |
421
+ | `clarify` | Ask user clarifying questions |
422
+ | `messaging` | Cross-platform message sending |
423
+ | `todo` | In-session task planning and tracking |
424
+ | `kanban` | Multi-agent work-queue tools (gated to workers) |
425
+ | `debugging` | Extra introspection/debug tools (off by default) |
426
+ | `safe` | Minimal, low-risk toolset for locked-down sessions |
427
+ | `spotify` | Spotify playback and playlist control |
428
+ | `homeassistant` | Smart home control (off by default) |
429
+ | `discord` | Discord integration tools |
430
+ | `discord_admin` | Discord admin/moderation tools |
431
+ | `feishu_doc` | Feishu (Lark) document tools |
432
+ | `feishu_drive` | Feishu (Lark) drive tools |
433
+ | `yuanbao` | Yuanbao integration tools |
434
+ | `rl` | Reinforcement learning tools (off by default) |
435
+ | `moa` | Mixture of Agents (off by default) |
436
+
437
+ Full enumeration lives in `toolsets.py` as the `TOOLSETS` dict; `_HERMES_CORE_TOOLS` is the default bundle most platforms inherit from.
438
+
439
+ Tool changes take effect on `/reset` (new session). They do NOT apply mid-conversation to preserve prompt caching.
440
+
441
+ ---
442
+
443
+ ## Security & Privacy Toggles
444
+
445
+ Common "why is Hermes doing X to my output / tool calls / commands?" toggles — and the exact commands to change them. Most of these need a fresh session (`/reset` in chat, or start a new `hermes` invocation) because they're read once at startup.
446
+
447
+ ### Secret redaction in tool output
448
+
449
+ Secret redaction is **off by default** — tool output (terminal stdout, `read_file`, web content, subagent summaries, etc.) passes through unmodified. If the user wants Hermes to auto-mask strings that look like API keys, tokens, and secrets before they enter the conversation context and logs:
450
+
451
+ ```bash
452
+ hermes config set security.redact_secrets true # enable globally
453
+ ```
454
+
455
+ **Restart required.** `security.redact_secrets` is snapshotted at import time — toggling it mid-session (e.g. via `export HERMES_REDACT_SECRETS=true` from a tool call) will NOT take effect for the running process. Tell the user to run `hermes config set security.redact_secrets true` in a terminal, then start a new session. This is deliberate — it prevents an LLM from flipping the toggle on itself mid-task.
456
+
457
+ Disable again with:
458
+ ```bash
459
+ hermes config set security.redact_secrets false
460
+ ```
461
+
462
+ ### PII redaction in gateway messages
463
+
464
+ Separate from secret redaction. When enabled, the gateway hashes user IDs and strips phone numbers from the session context before it reaches the model:
465
+
466
+ ```bash
467
+ hermes config set privacy.redact_pii true # enable
468
+ hermes config set privacy.redact_pii false # disable (default)
469
+ ```
470
+
471
+ ### Command approval prompts
472
+
473
+ By default (`approvals.mode: manual`), Hermes prompts the user before running shell commands flagged as destructive (`rm -rf`, `git reset --hard`, etc.). The modes are:
474
+
475
+ - `manual` — always prompt (default)
476
+ - `smart` — use an auxiliary LLM to auto-approve low-risk commands, prompt on high-risk
477
+ - `off` — skip all approval prompts (equivalent to `--yolo`)
478
+
479
+ ```bash
480
+ hermes config set approvals.mode smart # recommended middle ground
481
+ hermes config set approvals.mode off # bypass everything (not recommended)
482
+ ```
483
+
484
+ Per-invocation bypass without changing config:
485
+ - `hermes --yolo …`
486
+ - `export HERMES_YOLO_MODE=1`
487
+
488
+ Note: YOLO / `approvals.mode: off` does NOT turn off secret redaction. They are independent.
489
+
490
+ ### Shell hooks allowlist
491
+
492
+ Some shell-hook integrations require explicit allowlisting before they fire. Managed via `~/.hermes/shell-hooks-allowlist.json` — prompted interactively the first time a hook wants to run.
493
+
494
+ ### Disabling the web/browser/image-gen tools
495
+
496
+ To keep the model away from network or media tools entirely, open `hermes tools` and toggle per-platform. Takes effect on next session (`/reset`). See the Tools & Skills section above.
497
+
498
+ ---
499
+
500
+ ## Voice & Transcription
501
+
502
+ ### STT (Voice → Text)
503
+
504
+ Voice messages from messaging platforms are auto-transcribed.
505
+
506
+ Provider priority (auto-detected):
507
+ 1. **Local faster-whisper** — free, no API key: `pip install faster-whisper`
508
+ 2. **Groq Whisper** — free tier: set `GROQ_API_KEY`
509
+ 3. **OpenAI Whisper** — paid: set `VOICE_TOOLS_OPENAI_KEY`
510
+ 4. **Mistral Voxtral** — set `MISTRAL_API_KEY`
511
+
512
+ Config:
513
+ ```yaml
514
+ stt:
515
+ enabled: true
516
+ provider: local # local, groq, openai, mistral
517
+ local:
518
+ model: base # tiny, base, small, medium, large-v3
519
+ ```
520
+
521
+ ### TTS (Text → Voice)
522
+
523
+ | Provider | Env var | Free? |
524
+ |----------|---------|-------|
525
+ | Edge TTS | None | Yes (default) |
526
+ | ElevenLabs | `ELEVENLABS_API_KEY` | Free tier |
527
+ | OpenAI | `VOICE_TOOLS_OPENAI_KEY` | Paid |
528
+ | MiniMax | `MINIMAX_API_KEY` | Paid |
529
+ | Mistral (Voxtral) | `MISTRAL_API_KEY` | Paid |
530
+ | NeuTTS (local) | None (`pip install neutts[all]` + `espeak-ng`) | Free |
531
+
532
+ Voice commands: `/voice on` (voice-to-voice), `/voice tts` (always voice), `/voice off`.
533
+
534
+ ---
535
+
536
+ ## Spawning Additional Hermes Instances
537
+
538
+ Run additional Hermes processes as fully independent subprocesses — separate sessions, tools, and environments.
539
+
540
+ ### When to Use This vs delegate_task
541
+
542
+ | | `delegate_task` | Spawning `hermes` process |
543
+ |-|-----------------|--------------------------|
544
+ | Isolation | Separate conversation, shared process | Fully independent process |
545
+ | Duration | Minutes (bounded by parent loop) | Hours/days |
546
+ | Tool access | Subset of parent's tools | Full tool access |
547
+ | Interactive | No | Yes (PTY mode) |
548
+ | Use case | Quick parallel subtasks | Long autonomous missions |
549
+
550
+ ### One-Shot Mode
551
+
552
+ ```
553
+ terminal(command="hermes chat -q 'Research GRPO papers and write summary to ~/research/grpo.md'", timeout=300)
554
+
555
+ # Background for long tasks:
556
+ terminal(command="hermes chat -q 'Set up CI/CD for ~/myapp'", background=true)
557
+ ```
558
+
559
+ ### Interactive PTY Mode (via tmux)
560
+
561
+ Hermes uses prompt_toolkit, which requires a real terminal. Use tmux for interactive spawning:
562
+
563
+ ```
564
+ # Start
565
+ terminal(command="tmux new-session -d -s agent1 -x 120 -y 40 'hermes'", timeout=10)
566
+
567
+ # Wait for startup, then send a message
568
+ terminal(command="sleep 8 && tmux send-keys -t agent1 'Build a FastAPI auth service' Enter", timeout=15)
569
+
570
+ # Read output
571
+ terminal(command="sleep 20 && tmux capture-pane -t agent1 -p", timeout=5)
572
+
573
+ # Send follow-up
574
+ terminal(command="tmux send-keys -t agent1 'Add rate limiting middleware' Enter", timeout=5)
575
+
576
+ # Exit
577
+ terminal(command="tmux send-keys -t agent1 '/exit' Enter && sleep 2 && tmux kill-session -t agent1", timeout=10)
578
+ ```
579
+
580
+ ### Multi-Agent Coordination
581
+
582
+ ```
583
+ # Agent A: backend
584
+ terminal(command="tmux new-session -d -s backend -x 120 -y 40 'hermes -w'", timeout=10)
585
+ terminal(command="sleep 8 && tmux send-keys -t backend 'Build REST API for user management' Enter", timeout=15)
586
+
587
+ # Agent B: frontend
588
+ terminal(command="tmux new-session -d -s frontend -x 120 -y 40 'hermes -w'", timeout=10)
589
+ terminal(command="sleep 8 && tmux send-keys -t frontend 'Build React dashboard for user management' Enter", timeout=15)
590
+
591
+ # Check progress, relay context between them
592
+ terminal(command="tmux capture-pane -t backend -p | tail -30", timeout=5)
593
+ terminal(command="tmux send-keys -t frontend 'Here is the API schema from the backend agent: ...' Enter", timeout=5)
594
+ ```
595
+
596
+ ### Session Resume
597
+
598
+ ```
599
+ # Resume most recent session
600
+ terminal(command="tmux new-session -d -s resumed 'hermes --continue'", timeout=10)
601
+
602
+ # Resume specific session
603
+ terminal(command="tmux new-session -d -s resumed 'hermes --resume 20260225_143052_a1b2c3'", timeout=10)
604
+ ```
605
+
606
+ ### Tips
607
+
608
+ - **Prefer `delegate_task` for quick subtasks** — less overhead than spawning a full process
609
+ - **Use `-w` (worktree mode)** when spawning agents that edit code — prevents git conflicts
610
+ - **Set timeouts** for one-shot mode — complex tasks can take 5-10 minutes
611
+ - **Use `hermes chat -q` for fire-and-forget** — no PTY needed
612
+ - **Use tmux for interactive sessions** — raw PTY mode has `\r` vs `\n` issues with prompt_toolkit
613
+ - **For scheduled tasks**, use the `cronjob` tool instead of spawning — handles delivery and retry
614
+
615
+ ---
616
+
617
+ ## Durable & Background Systems
618
+
619
+ Four systems run alongside the main conversation loop. Quick reference
620
+ here; full developer notes live in `AGENTS.md`, user-facing docs under
621
+ `website/docs/user-guide/features/`.
622
+
623
+ ### Delegation (`delegate_task`)
624
+
625
+ Synchronous subagent spawn — the parent waits for the child's summary
626
+ before continuing its own loop. Isolated context + terminal session.
627
+
628
+ - **Single:** `delegate_task(goal, context, toolsets)`.
629
+ - **Batch:** `delegate_task(tasks=[{goal, ...}, ...])` runs children in
630
+ parallel, capped by `delegation.max_concurrent_children` (default 3).
631
+ - **Roles:** `leaf` (default; cannot re-delegate) vs `orchestrator`
632
+ (can spawn its own workers, bounded by `delegation.max_spawn_depth`).
633
+ - **Not durable.** If the parent is interrupted, the child is
634
+ cancelled. For work that must outlive the turn, use `cronjob` or
635
+ `terminal(background=True, notify_on_complete=True)`.
636
+
637
+ Config: `delegation.*` in `config.yaml`.
638
+
639
+ ### Cron (scheduled jobs)
640
+
641
+ Durable scheduler — `cron/jobs.py` + `cron/scheduler.py`. Drive it via
642
+ the `cronjob` tool, the `hermes cron` CLI (`list`, `add`, `edit`,
643
+ `pause`, `resume`, `run`, `remove`), or the `/cron` slash command.
644
+
645
+ - **Schedules:** duration (`"30m"`, `"2h"`), "every" phrase
646
+ (`"every monday 9am"`), 5-field cron (`"0 9 * * *"`), or ISO timestamp.
647
+ - **Per-job knobs:** `skills`, `model`/`provider` override, `script`
648
+ (pre-run data collection; `no_agent=True` makes the script the whole
649
+ job), `context_from` (chain job A's output into job B), `workdir`
650
+ (run in a specific dir with its `AGENTS.md` / `CLAUDE.md` loaded),
651
+ multi-platform delivery.
652
+ - **Invariants:** 3-minute hard interrupt per run, `.tick.lock` file
653
+ prevents duplicate ticks across processes, cron sessions pass
654
+ `skip_memory=True` by default, and cron deliveries are framed with a
655
+ header/footer instead of being mirrored into the target gateway
656
+ session (keeps role alternation intact).
657
+
658
+ User docs: https://hermes-agent.nousresearch.com/docs/user-guide/features/cron
659
+
660
+ ### Curator (skill lifecycle)
661
+
662
+ Background maintenance for agent-created skills. Tracks usage, marks
663
+ idle skills stale, archives stale ones, keeps a pre-run tar.gz backup
664
+ so nothing is lost.
665
+
666
+ - **CLI:** `hermes curator <verb>` — `status`, `run`, `pause`, `resume`,
667
+ `pin`, `unpin`, `archive`, `restore`, `prune`, `backup`, `rollback`.
668
+ - **Slash:** `/curator <subcommand>` mirrors the CLI.
669
+ - **Scope:** only touches skills with `created_by: "agent"` provenance.
670
+ Bundled + hub-installed skills are off-limits. **Never deletes** —
671
+ max destructive action is archive. Pinned skills are exempt from
672
+ every auto-transition and every LLM review pass.
673
+ - **Telemetry:** sidecar at `~/.hermes/skills/.usage.json` holds
674
+ per-skill `use_count`, `view_count`, `patch_count`,
675
+ `last_activity_at`, `state`, `pinned`.
676
+
677
+ Config: `curator.*` (`enabled`, `interval_hours`, `min_idle_hours`,
678
+ `stale_after_days`, `archive_after_days`, `backup.*`).
679
+ User docs: https://hermes-agent.nousresearch.com/docs/user-guide/features/curator
680
+
681
+ ### Kanban (multi-agent work queue)
682
+
683
+ Durable SQLite board for multi-profile / multi-worker collaboration.
684
+ Users drive it via `hermes kanban <verb>`; dispatcher-spawned workers
685
+ see a focused `kanban_*` toolset gated by `HERMES_KANBAN_TASK`, and
686
+ orchestrator profiles can opt into the broader `kanban` toolset. Normal
687
+ sessions still have zero `kanban_*` schema footprint unless configured.
688
+
689
+ - **CLI verbs (common):** `init`, `create`, `list` (alias `ls`),
690
+ `show`, `assign`, `link`, `unlink`, `comment`, `complete`, `block`,
691
+ `unblock`, `archive`, `tail`. Less common: `watch`, `stats`, `runs`,
692
+ `log`, `dispatch`, `daemon`, `gc`.
693
+ - **Worker/orchestrator toolset:** `kanban_show`, `kanban_complete`,
694
+ `kanban_block`, `kanban_heartbeat`, `kanban_comment`, `kanban_create`,
695
+ `kanban_link`; profiles that explicitly enable the `kanban` toolset
696
+ outside a dispatcher-spawned task also get `kanban_list` and
697
+ `kanban_unblock` for board routing.
698
+ - **Dispatcher** runs inside the gateway by default
699
+ (`kanban.dispatch_in_gateway: true`) — reclaims stale claims,
700
+ promotes ready tasks, atomically claims, spawns assigned profiles.
701
+ Auto-blocks a task after `failure_limit` consecutive spawn failures
702
+ (default 2; configurable via `kanban.failure_limit` or per-task
703
+ `max_retries`).
704
+ - **Isolation:** board is the hard boundary (workers get
705
+ `HERMES_KANBAN_BOARD` pinned in env); tenant is a soft namespace
706
+ within a board for workspace-path + memory-key isolation.
707
+
708
+ User docs: https://hermes-agent.nousresearch.com/docs/user-guide/features/kanban
709
+
710
+ ---
711
+
712
+ ## Windows-Specific Quirks
713
+
714
+ Hermes runs natively on Windows (PowerShell, cmd, Windows Terminal, git-bash
715
+ mintty, VS Code integrated terminal). Most of it just works, but a handful
716
+ of differences between Win32 and POSIX have bitten us — document new ones
717
+ here as you hit them so the next person (or the next session) doesn't
718
+ rediscover them from scratch.
719
+
720
+ ### Input / Keybindings
721
+
722
+ **Alt+Enter doesn't insert a newline.** Windows Terminal intercepts Alt+Enter
723
+ at the terminal layer to toggle fullscreen — the keystroke never reaches
724
+ prompt_toolkit. Use **Ctrl+Enter** instead. Windows Terminal delivers
725
+ Ctrl+Enter as LF (`c-j`), distinct from plain Enter (`c-m` / CR), and the
726
+ CLI binds `c-j` to newline insertion on `win32` only (see
727
+ `_bind_prompt_submit_keys` + the Windows-only `c-j` binding in `cli.py`).
728
+ Side effect: the raw Ctrl+J keystroke also inserts a newline on Windows —
729
+ unavoidable, because Windows Terminal collapses Ctrl+Enter and Ctrl+J to
730
+ the same keycode at the Win32 console API layer. No conflicting binding
731
+ existed for Ctrl+J on Windows, so this is a harmless side effect.
732
+
733
+ mintty / git-bash behaves the same (fullscreen on Alt+Enter) unless you
734
+ disable Alt+Fn shortcuts in Options → Keys. Easier to just use Ctrl+Enter.
735
+
736
+ **Diagnosing keybindings.** Run `python scripts/keystroke_diagnostic.py`
737
+ (repo root) to see exactly how prompt_toolkit identifies each keystroke
738
+ in the current terminal. Answers questions like "does Shift+Enter come
739
+ through as a distinct key?" (almost never — most terminals collapse it
740
+ to plain Enter) or "what byte sequence is my terminal sending for
741
+ Ctrl+Enter?" This is how the Ctrl+Enter = c-j fact was established.
742
+
743
+ ### Config / Files
744
+
745
+ **HTTP 400 "No models provided" on first run.** `config.yaml` was saved
746
+ with a UTF-8 BOM (common when Windows apps write it). Re-save as UTF-8
747
+ without BOM. `hermes config edit` writes without BOM; manual edits in
748
+ Notepad are the usual culprit.
749
+
750
+ ### `execute_code` / Sandbox
751
+
752
+ **WinError 10106** ("The requested service provider could not be loaded
753
+ or initialized") from the sandbox child process — it can't create an
754
+ `AF_INET` socket, so the loopback-TCP RPC fallback fails before
755
+ `connect()`. Root cause is usually **not** a broken Winsock LSP; it's
756
+ Hermes's own env scrubber dropping `SYSTEMROOT` / `WINDIR` / `COMSPEC`
757
+ from the child env. Python's `socket` module needs `SYSTEMROOT` to locate
758
+ `mswsock.dll`. Fixed via the `_WINDOWS_ESSENTIAL_ENV_VARS` allowlist in
759
+ `tools/code_execution_tool.py`. If you still hit it, echo `os.environ`
760
+ inside an `execute_code` block to confirm `SYSTEMROOT` is set. Full
761
+ diagnostic recipe in `references/execute-code-sandbox-env-windows.md`.
762
+
763
+ ### Testing / Contributing
764
+
765
+ **`scripts/run_tests.sh` doesn't work as-is on Windows** — it looks for
766
+ POSIX venv layouts (`.venv/bin/activate`). The Hermes-installed venv at
767
+ `venv/Scripts/` has no pip or pytest either (stripped for install size).
768
+ Workaround: install `pytest + pytest-xdist + pyyaml` into a system Python
769
+ 3.11 user site, then invoke pytest directly with `PYTHONPATH` set:
770
+
771
+ ```bash
772
+ "/c/Program Files/Python311/python" -m pip install --user pytest pytest-xdist pyyaml
773
+ export PYTHONPATH="$(pwd)"
774
+ "/c/Program Files/Python311/python" -m pytest tests/foo/test_bar.py -v --tb=short -n 0
775
+ ```
776
+
777
+ Use `-n 0`, not `-n 4` — `pyproject.toml`'s default `addopts` already
778
+ includes `-n`, and the wrapper's CI-parity guarantees don't apply off POSIX.
779
+
780
+ **POSIX-only tests need skip guards.** Common markers already in the codebase:
781
+ - Symlinks — elevated privileges on Windows
782
+ - `0o600` file modes — POSIX mode bits not enforced on NTFS by default
783
+ - `signal.SIGALRM` — Unix-only (see `tests/conftest.py::_enforce_test_timeout`)
784
+ - Winsock / Windows-specific regressions — `@pytest.mark.skipif(sys.platform != "win32", ...)`
785
+
786
+ Use the existing skip-pattern style (`sys.platform == "win32"` or
787
+ `sys.platform.startswith("win")`) to stay consistent with the rest of the
788
+ suite.
789
+
790
+ ### Path / Filesystem
791
+
792
+ **Line endings.** Git may warn `LF will be replaced by CRLF the next time
793
+ Git touches it`. Cosmetic — the repo's `.gitattributes` normalizes. Don't
794
+ let editors auto-convert committed POSIX-newline files to CRLF.
795
+
796
+ **Forward slashes work almost everywhere.** `C:/Users/...` is accepted by
797
+ every Hermes tool and most Windows APIs. Prefer forward slashes in code
798
+ and logs — avoids shell-escaping backslashes in bash.
799
+
800
+ ---
801
+
802
+ ## Troubleshooting
803
+
804
+ ### Voice not working
805
+ 1. Check `stt.enabled: true` in config.yaml
806
+ 2. Verify provider: `pip install faster-whisper` or set API key
807
+ 3. In gateway: `/restart`. In CLI: exit and relaunch.
808
+
809
+ ### Tool not available
810
+ 1. `hermes tools` — check if toolset is enabled for your platform
811
+ 2. Some tools need env vars (check `.env`)
812
+ 3. `/reset` after enabling tools
813
+
814
+ ### Model/provider issues
815
+ 1. `hermes doctor` — check config and dependencies
816
+ 2. `hermes auth` — re-authenticate OAuth providers (or `hermes auth add <provider>`)
817
+ 3. Check `.env` has the right API key
818
+ 4. **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.
819
+
820
+ ### Changes not taking effect
821
+ - **Tools/skills:** `/reset` starts a new session with updated toolset
822
+ - **Config changes:** In gateway: `/restart`. In CLI: exit and relaunch.
823
+ - **Code changes:** Restart the CLI or gateway process
824
+
825
+ ### Skills not showing
826
+ 1. `hermes skills list` — verify installed
827
+ 2. `hermes skills config` — check platform enablement
828
+ 3. Load explicitly: `/skill name` or `hermes -s name`
829
+
830
+ ### Gateway issues
831
+ Check logs first:
832
+ ```bash
833
+ grep -i "failed to send\|error" ~/.hermes/logs/gateway.log | tail -20
834
+ ```
835
+
836
+ Common gateway problems:
837
+ - **Gateway dies on SSH logout**: Enable linger: `sudo loginctl enable-linger $USER`
838
+ - **Gateway dies on WSL2 close**: WSL2 requires `systemd=true` in `/etc/wsl.conf` for systemd services to work. Without it, gateway falls back to `nohup` (dies when session closes).
839
+ - **Gateway crash loop**: Reset the failed state: `systemctl --user reset-failed hermes-gateway`
840
+
841
+ ### Platform-specific issues
842
+ - **Discord bot silent**: Must enable **Message Content Intent** in Bot → Privileged Gateway Intents.
843
+ - **Slack bot only works in DMs**: Must subscribe to `message.channels` event. Without it, the bot ignores public channels.
844
+ - **Windows-specific issues** (`Alt+Enter` newline, WinError 10106, UTF-8 BOM config, test suite, line endings): see the dedicated **Windows-Specific Quirks** section above.
845
+
846
+ ### Auxiliary models not working
847
+ If `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:
848
+ ```bash
849
+ hermes config set auxiliary.vision.provider <your_provider>
850
+ hermes config set auxiliary.vision.model <model_name>
851
+ ```
852
+
853
+ ---
854
+
855
+ ## Where to Find Things
856
+
857
+ | Looking for... | Location |
858
+ |----------------|----------|
859
+ | Config options | `hermes config edit` or [Configuration docs](https://hermes-agent.nousresearch.com/docs/user-guide/configuration) |
860
+ | Available tools | `hermes tools list` or [Tools reference](https://hermes-agent.nousresearch.com/docs/reference/tools-reference) |
861
+ | Slash commands | `/help` in session or [Slash commands reference](https://hermes-agent.nousresearch.com/docs/reference/slash-commands) |
862
+ | Skills catalog | `hermes skills browse` or [Skills catalog](https://hermes-agent.nousresearch.com/docs/reference/skills-catalog) |
863
+ | Provider setup | `hermes model` or [Providers guide](https://hermes-agent.nousresearch.com/docs/integrations/providers) |
864
+ | Platform setup | `hermes gateway setup` or [Messaging docs](https://hermes-agent.nousresearch.com/docs/user-guide/messaging/) |
865
+ | MCP servers | `hermes mcp list` or [MCP guide](https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp) |
866
+ | Profiles | `hermes profile list` or [Profiles docs](https://hermes-agent.nousresearch.com/docs/user-guide/profiles) |
867
+ | Cron jobs | `hermes cron list` or [Cron docs](https://hermes-agent.nousresearch.com/docs/user-guide/features/cron) |
868
+ | Memory | `hermes memory status` or [Memory docs](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory) |
869
+ | Env variables | `hermes config env-path` or [Env vars reference](https://hermes-agent.nousresearch.com/docs/reference/environment-variables) |
870
+ | CLI commands | `hermes --help` or [CLI reference](https://hermes-agent.nousresearch.com/docs/reference/cli-commands) |
871
+ | Gateway logs | `~/.hermes/logs/gateway.log` |
872
+ | Session files | `hermes sessions browse` (reads state.db) |
873
+ | Source code | `~/.hermes/hermes-agent/` |
874
+
875
+ ---
876
+
877
+ ## Contributor Quick Reference
878
+
879
+ For occasional contributors and PR authors. Full developer docs: https://hermes-agent.nousresearch.com/docs/developer-guide/
880
+
881
+ ### Project Layout
882
+
883
+ ```
884
+ hermes-agent/
885
+ ├── run_agent.py # AIAgent — core conversation loop
886
+ ├── model_tools.py # Tool discovery and dispatch
887
+ ├── toolsets.py # Toolset definitions
888
+ ├── cli.py # Interactive CLI (HermesCLI)
889
+ ├── hermes_state.py # SQLite session store
890
+ ├── agent/ # Prompt builder, context compression, memory, model routing, credential pooling, skill dispatch
891
+ ├── hermes_cli/ # CLI subcommands, config, setup, commands
892
+ │ ├── commands.py # Slash command registry (CommandDef)
893
+ │ ├── config.py # DEFAULT_CONFIG, env var definitions
894
+ │ └── main.py # CLI entry point and argparse
895
+ ├── tools/ # One file per tool
896
+ │ └── registry.py # Central tool registry
897
+ ├── gateway/ # Messaging gateway
898
+ │ └── platforms/ # Platform adapters (telegram, discord, etc.)
899
+ ├── cron/ # Job scheduler
900
+ ├── tests/ # ~3000 pytest tests
901
+ └── website/ # Docusaurus docs site
902
+ ```
903
+
904
+ Config: `~/.hermes/config.yaml` (settings), `~/.hermes/.env` (API keys).
905
+
906
+ ### Adding a Tool (3 files)
907
+
908
+ **1. Create `tools/your_tool.py`:**
909
+ ```python
910
+ import json, os
911
+ from tools.registry import registry
912
+
913
+ def check_requirements() -> bool:
914
+ return bool(os.getenv("EXAMPLE_API_KEY"))
915
+
916
+ def example_tool(param: str, task_id: str = None) -> str:
917
+ return json.dumps({"success": True, "data": "..."})
918
+
919
+ registry.register(
920
+ name="example_tool",
921
+ toolset="example",
922
+ schema={"name": "example_tool", "description": "...", "parameters": {...}},
923
+ handler=lambda args, **kw: example_tool(
924
+ param=args.get("param", ""), task_id=kw.get("task_id")),
925
+ check_fn=check_requirements,
926
+ requires_env=["EXAMPLE_API_KEY"],
927
+ )
928
+ ```
929
+
930
+ **2. Add to `toolsets.py`** → `_HERMES_CORE_TOOLS` list.
931
+
932
+ Auto-discovery: any `tools/*.py` file with a top-level `registry.register()` call is imported automatically — no manual list needed.
933
+
934
+ All handlers must return JSON strings. Use `get_hermes_home()` for paths, never hardcode `~/.hermes`.
935
+
936
+ ### Adding a Slash Command
937
+
938
+ 1. Add `CommandDef` to `COMMAND_REGISTRY` in `hermes_cli/commands.py`
939
+ 2. Add handler in `cli.py` → `process_command()`
940
+ 3. (Optional) Add gateway handler in `gateway/run.py`
941
+
942
+ All consumers (help text, autocomplete, Telegram menu, Slack mapping) derive from the central registry automatically.
943
+
944
+ ### Agent Loop (High Level)
945
+
946
+ ```
947
+ run_conversation():
948
+ 1. Build system prompt
949
+ 2. Loop while iterations < max:
950
+ a. Call LLM (OpenAI-format messages + tool schemas)
951
+ b. If tool_calls → dispatch each via handle_function_call() → append results → continue
952
+ c. If text response → return
953
+ 3. Context compression triggers automatically near token limit
954
+ ```
955
+
956
+ ### Testing
957
+
958
+ ```bash
959
+ python -m pytest tests/ -o 'addopts=' -q # Full suite
960
+ python -m pytest tests/tools/ -q # Specific area
961
+ ```
962
+
963
+ - Tests auto-redirect `HERMES_HOME` to temp dirs — never touch real `~/.hermes/`
964
+ - Run full suite before pushing any change
965
+ - Use `-o 'addopts='` to clear any baked-in pytest flags
966
+
967
+ **Windows contributors:** `scripts/run_tests.sh` currently looks for POSIX venvs (`.venv/bin/activate` / `venv/bin/activate`) and will error out on Windows where the layout is `venv/Scripts/activate` + `python.exe`. The Hermes-installed venv at `venv/Scripts/` also has no `pip` or `pytest` — it's stripped for end-user install size. Workaround: install pytest + pytest-xdist + pyyaml into a system Python 3.11 user site (`/c/Program Files/Python311/python -m pip install --user pytest pytest-xdist pyyaml`), then run tests directly:
968
+
969
+ ```bash
970
+ export PYTHONPATH="$(pwd)"
971
+ "/c/Program Files/Python311/python" -m pytest tests/tools/test_foo.py -v --tb=short -n 0
972
+ ```
973
+
974
+ Use `-n 0` (not `-n 4`) because `pyproject.toml`'s default `addopts` already includes `-n`, and the wrapper's CI-parity story doesn't apply off-POSIX.
975
+
976
+ **Cross-platform test guards:** tests that use POSIX-only syscalls need a skip marker. Common ones already in the codebase:
977
+ - Symlink creation → `@pytest.mark.skipif(sys.platform == "win32", reason="Symlinks require elevated privileges on Windows")` (see `tests/cron/test_cron_script.py`)
978
+ - POSIX file modes (0o600, etc.) → `@pytest.mark.skipif(sys.platform.startswith("win"), reason="POSIX mode bits not enforced on Windows")` (see `tests/hermes_cli/test_auth_toctou_file_modes.py`)
979
+ - `signal.SIGALRM` → Unix-only (see `tests/conftest.py::_enforce_test_timeout`)
980
+ - Live Winsock / Windows-specific regression tests → `@pytest.mark.skipif(sys.platform != "win32", reason="Windows-specific regression")`
981
+
982
+ **Monkeypatching `sys.platform` is not enough** when the code under test also calls `platform.system()` / `platform.release()` / `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:
983
+
984
+ ```python
985
+ monkeypatch.setattr(sys, "platform", "linux")
986
+ monkeypatch.setattr(platform, "system", lambda: "Linux")
987
+ monkeypatch.setattr(platform, "release", lambda: "6.8.0-generic")
988
+ ```
989
+
990
+ See `tests/agent/test_prompt_builder.py::TestEnvironmentHints` for a worked example.
991
+
992
+ ### Extending the system prompt's execution-environment block
993
+
994
+ Factual guidance about the host OS, user home, cwd, terminal backend, and shell (bash vs. PowerShell on Windows) is emitted from `agent/prompt_builder.py::build_environment_hints()`. This is also where the WSL hint and per-backend probe logic live. The convention:
995
+
996
+ - **Local terminal backend** → emit host info (OS, `$HOME`, cwd) + Windows-specific notes (hostname ≠ username, `terminal` uses bash not PowerShell).
997
+ - **Remote terminal backend** (anything in `_REMOTE_TERMINAL_BACKENDS`: `docker, singularity, modal, daytona, ssh, managed_modal`) → **suppress** host info entirely and describe only the backend. A live `uname`/`whoami`/`pwd` probe runs inside the backend via `tools.environments.get_environment(...).execute(...)`, cached per process in `_BACKEND_PROBE_CACHE`, with a static fallback if the probe times out.
998
+ - **Key fact for prompt authoring:** when `TERMINAL_ENV != "local"`, *every* file tool (`read_file`, `write_file`, `patch`, `search_files`) runs inside the backend container, not on the host. The system prompt must never describe the host in that case — the agent can't touch it.
999
+
1000
+ Full design notes, the exact emitted strings, and testing pitfalls:
1001
+ `references/prompt-builder-environment-hints.md`.
1002
+
1003
+ **Refactor-safety pattern (POSIX-equivalence guard):** when you extract inline logic into a helper that adds Windows/platform-specific behavior, keep a `_legacy_<name>` oracle function in the test file that's a verbatim copy of the old code, then parametrize-diff against it. Example: `tests/tools/test_code_execution_windows_env.py::TestPosixEquivalence`. This locks in the invariant that POSIX behavior is bit-for-bit identical and makes any future drift fail loudly with a clear diff.
1004
+
1005
+ ### Commit Conventions
1006
+
1007
+ ```
1008
+ type: concise subject line
1009
+
1010
+ Optional body.
1011
+ ```
1012
+
1013
+ Types: `fix:`, `feat:`, `refactor:`, `docs:`, `chore:`
1014
+
1015
+ ### Key Rules
1016
+
1017
+ - **Never break prompt caching** — don't change context, tools, or system prompt mid-conversation
1018
+ - **Message role alternation** — never two assistant or two user messages in a row
1019
+ - Use `get_hermes_home()` from `hermes_constants` for all paths (profile-safe)
1020
+ - Config values go in `config.yaml`, secrets go in `.env`
1021
+ - New tools need a `check_fn` so they only appear when requirements are met