1779195890

This commit is contained in:
Docker7530
2026-05-19 21:04:53 +08:00
parent 7f14056210
commit 521496f2df
31 changed files with 1185 additions and 173 deletions
+77
View File
@@ -0,0 +1,77 @@
hermes skills search "Self-Improving Agent" --source clawhub
hermes skills search find-skills --source skills-sh
hermes skills install clawhub/community/self-improving-agent-skill
hermes profile create my-agent
hermes dashboard --host 0.0.0.0 --port 9119 --insecure
| 分类 | 指令 | 参数 | 参数说明 | 适用场景 | 注意事项 | | | | | |
| ------------ | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------- | ---------------------------------- | -------------------------------------------------------------------- | ------------- | ------------------------------------------------------------------- | --------------- | --------- | --------------- |
| 启动/聊天 | `hermes` / `hermes chat` | `-q/--query`, `--image`, `-m/--model`, `--provider`, `-t/--toolsets`, `-s/--skills`, `-v`, `-Q`, `-r/--resume`, `-c/--continue`, `-w/--worktree`, `--checkpoints`, `--max-turns`, `--yolo`, `--tui`, `--dev` | 启动交互/单轮聊天,指定模型、工具集、技能、会话、TUI 等 | 日常使用 Hermes Agent | 顶层也支持 `-z/--oneshot` 脚本模式;`--yolo` 会跳过危险命令审批 | | | | | |
| 启动/聊天 | `hermes -z/--oneshot <prompt>` | `PROMPT`,可配 `-m --provider -t -s --resume --worktree` | 单次执行,只输出最终答案 | 脚本、管道、CI | 自动绕过审批,输出更适合机器消费 | | | | | |
| 模型 | `hermes model` | `--portal-url`, `--inference-url`, `--client-id`, `--scope`, `--no-browser`, `--timeout`, `--ca-bundle`, `--insecure` | 选择/登录默认模型与 provider | 初始化或切换推理后端 | 涉及 OAuth/TLS 参数,`--insecure` 仅测试 | | | | | |
| 模型 | `hermes fallback list/add/remove/clear` | `list(ls)`, `add`, `remove(rm)`, `clear` | 管理主模型失败后的 fallback provider 链 | 抗限流、故障转移 | `add/remove` 通常进入交互选择 | | | | | |
| 网关 | `hermes gateway run` | `-v`, `-q`, `--replace`, `--accept-hooks` | 前台运行消息网关 | WSL/Docker/Termux/调试 | `--replace` 会替换已有实例 | | | | | |
| 网关 | `hermes gateway start/stop/restart` | `--system`, `--all` | 管理 systemd/launchd 后台服务 | 生产运行 Gateway | `--all` 跨 profile 处理,慎用 | | | | | |
| 网关 | `hermes gateway status` | `--deep`, `--full`, `--system` | 查看 Gateway 服务状态 | 排障 | `--deep` 更慢但更完整 | | | | | |
| 网关 | `hermes gateway install/uninstall` | `--force`, `--system`, `--run-as-user` | 安装/卸载 Gateway 服务 | 部署后台消息机器人 | Linux system 服务需明确运行用户 | | | | | |
| 网关 | `hermes gateway list/setup/migrate-legacy` | `migrate-legacy --dry-run -y` | 列 profile 状态、配置平台、清理旧 service | 多平台/升级维护 | `migrate-legacy` 默认会确认 | | | | | |
| 配置 | `hermes setup` | `[model | tts | terminal | gateway | tools | agent]`, `--non-interactive`, `--reset`, `--reconfigure`, `--quick` | 交互式初始化配置 | 首次安装/重新配置 | `--reset` 会重置配置 |
| 集成 | `hermes whatsapp` | 无 | 配置 WhatsApp 并扫码配对 | WhatsApp Gateway | 依赖平台后端 | | | | | |
| 集成 | `hermes slack manifest` | `--write [PATH]`, `--name`, `--description`, `--slashes-only` | 生成 Slack app manifest | 注册 Slack slash commands | Slack 原生命令数量有限,源码有裁剪逻辑 | | | | | |
| 认证 | `hermes login/logout` | `--provider`, OAuth/TLS 参数 | 登录或清除 provider 凭据 | Nous/OpenAI Codex/Spotify 等认证 | `logout` 默认 active provider | | | | | |
| 认证 | `hermes auth add/list/remove/reset/status/logout/spotify` | `provider`, `target`, `--type`, `--api-key`, OAuth 参数;`spotify login/status/logout` | 管理凭据池和 Spotify PKCE | 多账号、多 key、音乐工具 | API key 可交互输入,避免写进 shell 历史 | | | | | |
| 状态 | `hermes status` | `--all`, `--deep` | 展示组件状态 | 总体诊断 | 输出会做分享友好的脱敏 | | | | | |
| 定时 | `hermes cron list/create/add/edit/pause/resume/run/remove/status/tick` | `schedule`, `prompt`, `job_id`, `--name`, `--deliver`, `--repeat`, `--skill`, `--script`, `--no-agent`, `--workdir`, `--accept-hooks` | 管理计划任务 | 定时报表、巡检、自动化 | `--no-agent` 只跑脚本;`run/tick` 可触发 hook 审批 | | | | | |
| Webhook | `hermes webhook subscribe/list/remove/test` | `name`, `--prompt`, `--events`, `--description`, `--skills`, `--deliver`, `--deliver-chat-id`, `--secret`, `--deliver-only`, `--payload` | 动态 webhook 订阅 | 事件驱动触发 agent | `--deliver-only` 零 LLM 成本 | | | | | |
| 看板 | `hermes kanban …` | 全局 `--board` | 多 profile 协作任务系统 | 多 agent 分工、任务队列 | 子命令很多,见下表 | | | | | |
| Hooks | `hermes hooks list/test/revoke/doctor` | `event`, `--for-tool`, `--payload-file`, `command` | 检查/测试 shell hooks 和 consent allowlist | 扩展生命周期钩子 | revoke 重启后生效 | | | | | |
| 诊断 | `hermes doctor` | `--fix`, `--ack ADVISORY_ID` | 检查配置依赖/安全公告 | 安装和故障排查 | `--fix` 会尝试修改环境 | | | | | |
| 诊断 | `hermes dump` | `--show-keys` | 输出紧凑支持信息 | 提 issue/Discord 支持 | 默认不展示 key 片段 | | | | | |
| 诊断 | `hermes debug share/delete` | `--lines`, `--expire`, `--local`, `--no-redact`, `urls…` | 上传/删除 debug paste | 远程排错 | 默认上传前脱敏;`--no-redact` 慎用 | | | | | |
| 备份 | `hermes backup` | `-o/--output`, `-q/--quick`, `-l/--label` | 备份 Hermes home | 迁移/升级前保存状态 | 不备份代码仓库本身 | | | | | |
| 备份 | `hermes import` | `zipfile`, `--force` | 从备份 zip 恢复 | 迁移/回滚 | `--force` 覆盖已有文件 | | | | | |
| Checkpoints | `hermes checkpoints status/list/prune/clear/clear-legacy` | `--limit`, `--retention-days`, `--max-size-mb`, `--keep-orphans`, `-f` | 管理 `/rollback` 文件快照库 | 清理 checkpoint 占用 | `clear` 会删除所有 rollback 历史 | | | | | |
| 配置 | `hermes config show/edit/set/path/env-path/check/migrate` | `key`, `value` | 查看、编辑、设置、迁移配置 | 配置维护 | 非 secret 设置进 `config.yaml`secret 应在 `.env` | | | | | |
| 授权 | `hermes pairing list/approve/revoke/clear-pending` | `platform`, `code`, `user_id` | 管理 DM pairing code | Gateway 用户授权 | 用于受控接入 | | | | | |
| Skills | `hermes skills browse/search/install/inspect/list/check/update/audit/uninstall/reset/publish/snapshot/tap/config` | `identifier`, `query`, `--source`, `--limit`, `--force`, `--yes`, `--category`, `--name`, `--restore`, `--to`, `--repo` | 搜索、安装、审计、发布、配置 skills | 扩展 Hermes 能力 | `config` 是交互式;URL 安装会扫描风险 | | | | | |
| Plugins | `hermes plugins install/update/remove/list/enable/disable` | `identifier`, `name`, `--force`, `--enable`, `--no-enable` | 管理插件 | 安装第三方/本地扩展 | 插件可再注册新 CLI/slash 命令 | | | | | |
| Curator | `hermes curator status/run/pause/resume/pin/unpin/restore/list-archived/archive/prune/backup/rollback` | `skill`, `--sync`, `--background`, `--dry-run`, `--days`, `--yes`, `--reason`, `--list`, `--id` | 技能生命周期维护 | 自动归档 agent-created stale skills | 不会删除 bundled/hub skills;归档可恢复 | | | | | |
| Memory | `hermes memory setup/status/off/reset` | `--yes`, `--target all | memory | user` | 配置外部 memory provider 或清空内置记忆 | 记忆系统维护 | `reset` 会删除 `MEMORY.md/USER.md` | | | |
| Tools | `hermes tools [list | enable | disable]` | `--summary`, `--platform`, `NAME…` | 配置各平台工具/工具集/MCP 工具 | 控制 agent 可用工具 | 无子命令时打开交互 UI | | | |
| Computer Use | `hermes computer-use install/status` | `--upgrade` | 安装/检查 macOS cua-driver | 电脑控制工具集 | macOS 专用 | | | | | |
| MCP | `hermes mcp serve/add/remove/list/test/configure/login` | `name`, `--url`, `--command`, `--args`, `--auth`, `--preset`, `--env`, `--verbose`, `--accept-hooks` | 管理 MCP server 或把 Hermes 暴露为 MCP server | 接入外部工具生态 | `add` 支持 HTTP/SSE 或 stdio | | | | | |
| Sessions | `hermes sessions list/export/delete/prune/stats/rename/browse` | `--source`, `--limit`, `output`, `--session-id`, `session_id`, `--older-than`, `--yes`, `title…` | 管理历史会话数据库 | 查找、导出、删除、恢复会话 | 默认隐藏 source=`tool` 的第三方会话 | | | | | |
| Insights | `hermes insights` | `--days`, `--source` | 生成用量/成本/工具分析 | 复盘使用情况 | 依赖 SQLite session 数据 | | | | | |
| 迁移 | `hermes claw migrate/cleanup` | `--source`, `--dry-run`, `--preset`, `--overwrite`, `--migrate-secrets`, `--no-backup`, `--workspace-target`, `--skill-conflict`, `--yes` | 从 OpenClaw 迁移/清理 | 旧项目迁移到 Hermes | secrets 必须显式 `--migrate-secrets` | | | | | |
| 版本/更新 | `hermes version/update/uninstall` | `update --check --backup --no-backup -y --gateway`; `uninstall --full -y` | 版本查看、更新、卸载 | 维护安装 | `uninstall --full` 会移除配置和数据 | | | | | |
| ACP | `hermes acp` | `--accept-hooks` | 启动 ACP server | VS Code/Zed/JetBrains 集成 | 需要 acp 依赖 | | | | | |
| Profile | `hermes profile list/use/create/delete/show/alias/rename/export/import/install/update/info` | `profile_name`, `archive`, `source`, `--clone`, `--clone-all`, `--clone-from`, `--no-alias`, `--no-skills`, `--force`, `--alias`, `--force-config`, `--yes` | 多 profile 隔离管理 | 多身份、多项目、多环境 | profile 数据相互隔离 | | | | | |
| Shell | `hermes completion` | `bash | zsh | fish` | 输出 shell completion | 命令补全安装 | 默认 bash | | | |
| Dashboard | `hermes dashboard` | `--port`, `--host`, `--no-open`, `--insecure`, `--tui`, `--skip-build`, `--stop`, `--status` | 启动/管理 Web UI | 配置、会话、嵌入 TUI | `--insecure` 会暴露本地管理面板,慎用 | | | | | |
| Logs | `hermes logs` | `[agent | errors | gateway | list]`, `-n`, `-f`, `--level`, `--session`, `--since`, `--component` | 查看/过滤日志 | 排障、跟踪运行 | `-f` 类似 tail -f | | |
| LSP | `hermes lsp status/list/install/install-all/restart/which` | `--json`, `--installed-only`, `server`, `--include-manual` | 管理语义诊断 LSP 层 | 写文件/patch 后诊断 | 某些 server 需手动依赖,如 shellcheck | | | | | |
**Kanban 子命令速查**
| 指令 | 参数 | 适用场景 | 注意事项 |
|---|---|---|---|
| `hermes kanban boards list/create/rm/switch/show/rename` | `slug`, `--json`, `--all`, `--name`, `--description`, `--icon`, `--color`, `--switch`, `--delete` | 多项目看板隔离 | `rm` 默认归档,`--delete` 才硬删 |
| `hermes kanban create/list/show/assign/reclaim/reassign/diagnostics` | `title`, `task_id`, `profile`, `--body`, `--assignee`, `--parent`, `--workspace`, `--tenant`, `--priority`, `--triage`, `--json` | 创建、查询、分配任务 | `--workspace` 支持 `scratch/worktree/dir:<path>` |
| `hermes kanban link/unlink/claim/comment/complete/edit/block/unblock/archive` | `parent_id child_id`, `task_ids`, `--ttl`, `--author`, `--result`, `--summary`, `--metadata`, `--ids` | 依赖、领取、评论、完成、阻塞、归档 | `complete/edit` 可写结构化 metadata |
| `hermes kanban tail/dispatch/daemon/watch/stats/gc` | `--interval`, `--dry-run`, `--max`, `--failure-limit`, `--assignee`, `--tenant`, `--kinds`, `--event-retention-days` | 事件流、调度、统计、清理 | `daemon` 已标注 deprecated,推荐 Gateway 调度 |
| `hermes kanban notify-subscribe/notify-list/notify-unsubscribe/log/runs/heartbeat/assignees/context/specify` | `task_id`, `--platform`, `--chat-id`, `--thread-id`, `--user-id`, `--tail`, `--note`, `--all`, `--author` | Gateway 通知、worker 日志、运行记录、triage 细化 | `specify` 使用 auxiliary LLM |
**源码内置插件 CLI**
| 分类 | 指令 | 参数 | 参数说明 | 适用场景 | 注意事项 |
|---|---|---|---|---|---|
| Google Meet 插件 | `hermes google-meet setup/install/auth/join/status/transcript/say/stop/node` | `join <url> --guest-name --duration --headed`; `transcript --last`; `say <text> --node` | 管理 Meet bot、入会、发言、转录 | 会议自动化 | 插件启用/发现后才注册 |
| Google Meet Node | `hermes google-meet node run/list/approve/remove/status/ping` | `--host`, `--port`, `--display-name`, `name url token` | 远程 meeting node 管理 | 分布式 Meet 控制 | 属于 google_meet 插件子树 |
| Teams Pipeline 插件 | `hermes teams-pipeline list/show/run/fetch/subscriptions/subscribe/renew-subscription/delete-subscription/maintain-subscriptions/token-health/validate` | `job_id`, `--meeting-id`, `--join-web-url`, `--resource`, `--notification-url`, `--expiration`, `--store-path` | Teams/Graph 会议流水线和订阅管理 | 企业会议资料处理 | 依赖 Graph 凭据和插件启用 |
| Honcho memory 插件 | `hermes honcho …` | `status`, `peers`, `sessions`, `map`, `peer`, `mode`, `strategy`, `tokens`, `identity`, `enable/disable/sync` 等 | Honcho 外部 memory provider 配置 | 使用 Honcho 记忆后端 | 只有当前 memory provider 为 Honcho 时通常才暴露 |
动态部分建议用 `hermes --help``hermes plugins list``/commands``/help` 在实际环境里枚举。
+66
View File
@@ -0,0 +1,66 @@
| 分类 | 指令 | 参数 | 参数说明 | 适用场景 | 注意事项 |
| ----- | --------------------------------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ------------------------------- | --------------------------------------------------- |
| 会话 | `/new``/reset` | `[name]` | 可选新会话标题 | 开始全新会话 | 会丢弃当前上下文;CLI/Gateway 会触发确认 |
| 会话 | `/topic` | `[off\|help\|session-id]` | 开启/查看/关闭 Telegram DM topic 会话,或在 topic 内恢复指定会话 | Telegram 私聊多会话 | 仅 Gateway/Telegram |
| 会话 | `/clear` | 无 | 清屏并新建会话 | CLI 中重置界面和上下文 | 仅 CLI;属于破坏性会话操作 |
| 会话 | `/redraw` | 无 | 强制重绘 UI | 终端画面错位、漂移时恢复显示 | 仅 CLI |
| 会话 | `/history` | 无 | 显示当前对话历史;空历史时列出最近会话 | 查看/回顾当前会话 | 仅 CLI |
| 会话 | `/save` | 无 | 保存当前对话快照 | 手动导出当前会话 | 仅 CLI;保存到 Hermes home 下的 sessions/saved |
| 会话 | `/retry` | 无 | 重发最后一条用户消息 | 上次响应失败或想重新生成 | 会截断最后一轮后重新发送 |
| 会话 | `/undo` | 无 | 删除最后一组 user/assistant 交互 | 回退刚才的一轮对话 | 破坏性操作;CLI/Gateway 有确认 |
| 会话 | `/title` | `[name]` | 无参数显示当前标题;有参数设置标题 | 给会话命名,便于 `/resume` | 标题会清洗并检查重复 |
| 会话 | `/handoff` | `<platform>` | 目标平台,如 `telegram``discord` | 把当前 CLI 会话交给消息平台继续 | 仅 CLI;目标平台需已配置 home channel;执行后 CLI 会话结束 |
| 会话 | `/branch``/fork` | `[name]` | 可选分支标题 | 从当前会话复制一份,探索另一条路径 | 需要已有对话;会切换到新分支会话 |
| 会话 | `/compress` | `[focus topic]` | 可选压缩关注点 | 手动压缩长上下文 | 会创建压缩后的延续会话;历史较短时可能无事可做 |
| 会话 | `/rollback` | `[number]` / `diff <number>` / `<number> <file>` | 列出、预览或恢复 checkpoint | 文件系统改坏后回滚 | 需启用 checkpointsCLI 支持 diff/单文件恢复,Gateway 主要支持列表/恢复 |
| 会话 | `/snapshot``/snap` | `[create\|restore <id>\|prune]` | 管理 Hermes 配置/状态快照 | 备份或恢复 Hermes 自身状态 | 仅 CLITUI 阻止 live restore |
| 会话 | `/stop` | 无 | 停止所有后台进程 | 清理后台 terminal/browser 等任务 | 不等同于中断当前模型响应 |
| 会话 | `/approve` | `[all] [session\|always]` | 批准危险命令;可批准全部、记住本会话或永久记住 | Gateway 中放行等待审批的命令 | 仅 Gateway;无 pending approval 时无效 |
| 会话 | `/deny` | `[all]` | 拒绝等待审批的危险命令 | Gateway 中阻止危险命令 | 仅 Gateway |
| 会话 | `/background``/bg``/btw` | `<prompt>` | 后台任务提示词 | 并行跑一个独立任务,不阻塞当前聊天 | 后台任务使用独立 session,完成后回传结果 |
| 会话 | `/agents``/tasks` | 无 | 显示运行中的 agent/后台进程 | 查看当前有什么任务在跑 | CLI/Gateway 可用 |
| 会话 | `/queue``/q` | `<prompt>` | 排队的下一轮消息 | 当前 agent 忙时追加下一条消息 | CLI/TUI 更常用;不打断当前运行 |
| 会话 | `/steer` | `<prompt>` | 注入到下一次工具调用之后的提示 | agent 正在跑工具时临时补充方向 | 无运行中 agent 时退化为普通下一轮消息 |
| 会话 | `/goal` | `[text\|pause\|resume\|clear\|status]` | 设置长期目标或控制目标循环 | 让 Hermes 跨多轮持续推进任务 | 会由 judge 判断是否继续,直到完成/暂停/清除/预算耗尽 |
| 会话 | `/status` | 无 | 显示会话、模型、运行状态等 | 快速确认当前状态 | Slack 原生 `/status` 可能冲突,可用 `/hermes status` |
| 会话 | `/sethome``/set-home` | 无 | 把当前聊天设为平台 home channel | Gateway handoff/restart 通知目标配置 | 仅 Gateway |
| 会话 | `/resume` | `[name]` | 无参数列出可恢复会话;有参数按标题/ID 恢复 | 切换到历史会话 | CLI 支持 ID 或标题;Gateway 主要按命名会话恢复 |
| 会话 | `/sessions` | 无 | 打开/浏览历史会话 | TUI 中选择会话继续 | 注册在中心表;主要由 TUI 本地 session picker 实现 |
| 配置 | `/config` | 无 | 显示当前配置摘要 | 查看模型、终端、toolsets、session 配置 | 仅 CLI |
| 配置 | `/model``/provider` | `[model] [--provider name] [--global]` | 切换模型/提供商;`--global` 写入 config | 临时或永久切换推理后端 | 无参数会打开 picker/列表;运行中切模型会被 TUI/Gateway 拒绝 |
| 信息 | `/gquota` | 无 | 查看 Gemini Code Assist OAuth 配额 | 使用 Google Gemini OAuth 时查 quota | 仅 CLI |
| 配置 | `/personality` | `[name]` | 无参数列出人格;`none/default/neutral` 清除 | 切换系统提示词人格 | 会写入 `agent.system_prompt`,可能影响后续上下文 |
| 配置 | `/statusbar``/sb` | CLI 无参数切换;TUI 支持 `[on\|off\|top\|bottom\|toggle]` | 控制状态栏显示 | 调整终端/TUI 界面密度 | CLI 注册为简单 toggleTUI 更完整 |
| 配置 | `/verbose` | 无或 TUI 可传 `[off\|new\|all\|verbose]` | 循环/设置工具进度显示 | 想看更多或更少工具调用过程 | Gateway 需 `display.tool_progress_command` 开启 |
| 配置 | `/footer` | `[on\|off\|status]` | 控制 Gateway 最终回复的 runtime footer | 在消息平台回复末尾显示模型/上下文/cwd 等 | 默认改全局 footer;平台覆盖需改 config |
| 配置 | `/yolo` | 无 | 切换危险命令免审批 | 本地可信环境下减少确认 | 高风险;Gateway 为会话级,CLI 为环境级 |
| 配置 | `/reasoning` | `[none\|minimal\|low\|medium\|high\|xhigh\|show\|hide]` | 设置 reasoning effort 或显示/隐藏推理内容 | 调整成本、速度、思考可见性 | Gateway 还支持 `reset``--global`;不同模型支持度不同 |
| 配置 | `/fast` | `[normal\|fast\|status]` | 切换 Priority/Fast mode | 支持 fast mode 的模型上提速 | 不支持的模型会拒绝 |
| 配置 | `/skin` | `[name]` | 查看或切换显示皮肤 | 调整 CLI/TUI 主题 | 经典 CLI/TUI 可用;Gateway 不适用 |
| 配置 | `/indicator` | `[kaomoji\|emoji\|unicode\|ascii]` | 设置 TUI 忙碌指示器风格 | 调整 TUI 状态动画 | TUI 本地实现;经典 CLI 无 handler |
| 配置 | `/voice` | `[on\|off\|tts\|status]`Gateway 另有 `channel/join/leave` | 开关语音模式、TTS 或语音频道 | 语音输入/语音回复 | CLI 依赖本机音频;Gateway 语音频道主要面向 Discord |
| 配置 | `/busy` | `[queue\|steer\|interrupt\|status]` | 设置忙碌时按 Enter 的行为 | 决定运行中输入是排队、注入还是中断 | 仅 CLI/TUI |
| 工具与技能 | `/tools` | `[list\|disable\|enable] [name…]` | 查看、启用、禁用工具/工具集 | 调整当前 CLI 可用工具 | 仅 CLI;变更后会 reset session |
| 工具与技能 | `/toolsets` | 无 | 列出可用 toolsets | 查看工具集分类和数量 | 仅 CLI |
| 工具与技能 | `/skills` | `[search\|browse\|inspect\|install…]` | 搜索、浏览、安装、检查技能 | 管理 Hermes skills | 仅 CLI/TUI slash worker;具体参数由 skills hub 处理 |
| 工具与技能 | `/cron` | `[list\|add\|create\|edit\|pause\|resume\|run\|remove]` | 管理计划任务;支持 `--name``--schedule``--prompt``--skill` 等 | 定时运行 Hermes 任务 | slash 版本仅 CLI;也有顶层 `hermes cron` |
| 工具与技能 | `/curator` | `[status\|run\|pause\|resume\|pin\|unpin\|restore\|list-archived…]` | 管理技能 curator | 技能生命周期维护 | CLI/Gateway 可用,实际委托给 curator CLI |
| 工具与技能 | `/kanban` | `[subcommand]` | 如 `list/show/create/assign/link/claim/comment/complete/block/archive/tail/dispatch/context/init/gc` | 多 profile 协作任务看板 | Gateway `create` 会自动订阅任务事件 |
| 工具与技能 | `/reload` | 无 | 重载 `.env` 到当前进程 | 修改环境变量后不重启 CLI | 仅 CLI |
| 工具与技能 | `/reload-mcp``/reload_mcp` | 无 | 重新连接 MCP servers 并刷新工具 | MCP 配置变化后生效 | 会影响工具 schema 和 prompt cacheGateway 会要求确认 |
| 工具与技能 | `/reload-skills``/reload_skills` | 无 | 重新扫描 skills 目录 | 安装/删除技能后刷新 | Gateway 会把变更提示注入下一轮 |
| 工具与技能 | `/browser` | `[connect\|disconnect\|status]` | 连接/断开 live Chrome CDP 或查看状态 | 让浏览器工具控制真实 Chrome | 仅 CLI;连接真实浏览器要谨慎 |
| 工具与技能 | `/plugins` | 无 | 列出插件及状态 | 查看已安装插件、工具、hook、命令 | 仅 CLI |
| 信息 | `/commands` | `[page]` | 分页列出命令和技能命令 | Gateway 平台查看完整命令 | 仅 Gateway |
| 信息 | `/help` | 无 | 显示可用命令 | 查看帮助 | Gateway 只展示 gateway 可用命令 |
| 会话 | `/restart` | 无 | 优雅重启 Gateway | 更新配置/代码后重启网关 | 仅 Gateway |
| 信息 | `/usage` | 无 | 显示 token、成本、rate limit 等 | 追踪当前会话消耗 | 没有 API 调用时数据有限 |
| 信息 | `/insights` | `[days]` 或 Gateway 支持 `--days N --source name` | 统计一段时间内使用情况 | 分析历史用量、成本、工具模式 | 依赖 session DB |
| 信息 | `/platforms``/gateway` | 无 | 显示 Gateway/消息平台状态 | 排查消息平台连接 | 仅 CLI |
| 信息 | `/copy` | `[number]` | 复制第 N 条 assistant 回复;默认最后一条非空回复 | 快速复制回答 | 仅 CLI;用 OSC52 写剪贴板 |
| 信息 | `/paste` | 无 | 从剪贴板附加图片 | 图片输入 | 仅 CLI;Termux 不支持剪贴板图片 |
| 信息 | `/image` | `<path>` | 本地图片路径 | 给下一条 prompt 附加图片 | 仅 CLI;需支持的图片扩展名 |
| 信息 | `/update` | 无 | 更新 Hermes Agent | 在消息平台触发远程更新 | 仅 Gateway;限制在消息类平台,Git 仓库安装才可用 |
| 信息 | `/debug` | 无 | 上传/生成 debug 报告 | 排查问题并分享日志摘要 | Gateway 只上传摘要,CLI debug share 可更完整 |
| 信息 | `/whoami` | 无 | 显示当前用户 slash 权限 | Gateway 管理 admin/user 权限 | 仅 Gateway |
| 退出 | `/quit``/exit` | 无 | 退出交互式 CLI | 结束本地 CLI | 仅 CLI |
+78
View File
@@ -0,0 +1,78 @@
```
📁 Your files:
Config: /root/.hermes/config.yaml
API Keys: /root/.hermes/.env
Data: /root/.hermes/cron/, sessions/, logs/
Code: /usr/local/lib/hermes-agent
─────────────────────────────────────────────────────────
🚀 Commands:
hermes Start chatting
hermes setup Configure API keys & settings
hermes config View/edit configuration
hermes config edit Open config in editor
hermes gateway install Install gateway service (messaging + cron)
hermes update Update to latest version
─────────────────────────────────────────────────────────
⚡ 'hermes' was linked into /usr/local/bin and is ready to use — no shell reload needed.
root@LAX-VPS-qgefis2a:~#
```
有,最接近“恢复刚安装时配置”的命令是:
```powershell
hermes setup --reset
```
我在代码里确认了:`--reset` 会把 `config.yaml` 写回 `DEFAULT_CONFIG`,然后继续进入交互式 setup 向导。位置在 [hermes_cli/setup.py](D:/MyCode/Study/hermes-agent/hermes_cli/setup.py:3048),命令注册在 [hermes_cli/main.py](D:/MyCode/Study/hermes-agent/hermes_cli/main.py:9569)。
几个相关命令也可以按场景用:
```powershell
hermes setup
```
重新跑完整配置向导,已有配置会作为默认值展示。
```powershell
hermes setup model
hermes setup terminal
hermes setup gateway
hermes setup tools
hermes setup agent
```
只重配某一块。
```powershell
hermes setup --quick
```
只补缺失配置,不完整重配。
```powershell
hermes --ignore-user-config chat
```
临时忽略 `~/.hermes/config.yaml`,按内置默认配置启动;不会改文件。
注意:`hermes setup --reset` 只重置 `config.yaml`,不会清空 `.env` 里的 API key、token,也不会删 sessions、skills、logs。真正“全部恢复干净”只有更危险的:
```powershell
hermes uninstall --full
```
这个会删配置和数据,属于卸载级别。建议重置前先跑:
```powershell
hermes backup --quick
```
另外 `hermes setup --reset` 自己也会给旧 `config.yaml` 做一个 `.bak` 备份。