hermes update 跳过 node tui webui 的构建
前言
我使用 hermes 是不用 tui / webui/ webapp 的.
我使用 telegram 与 hermes 交流.
但 hermes 默认是安装 node tui webui 这些的.
在 hermes update 更新过程中, 也需要构建 node tui webui 这几个步骤, 这需要花费不少时间.
那么我就想, 有没有可能 跳过这些步骤呢?实践 1
Hermes 对接 Nous Portal 提供的免费的 stealth/crouton-alpha
https://crazypeace.eu.org/2026/04/free-mimimo-v2-pro-omni-hermes-stripe.html
以下引用框中的内容是我发给Agent的自然语言命令
提问, 分析你自己 hermes 的安装过程和升级过程, 如果不使用 hermes 的 tui 和 web ui, 还需要下面这3个步骤吗?✓ Preparing Node dependencies✓ Building the TUI✓ Building the web UI
提问, 如果在你自己hemres 的环境条件下, 我想在 hermes update 过程中跳过这3个步骤, 最简单的操作可怎么做?
测试 1
我在另一台最近新安装的 hermes 环境里, 找不到 /usr/local/lib/hermes-agent 这个目录, 我要那个hermes找 check out 目录, 得到的结果是 /root/.hermes/hermes-agent
而且, 我在 hermes 的 check out 目录里面运行了 gith 命令, 也移除了 2个json文件后, 运行 hermes update 还是有 node tui webui 的步骤.
DEBUG 1
分析 为什么 设置了这些操作后git update-index --skip-worktree ui-tui/package.json web/package.jsonmv ui-tui/package.json ui-tui/package.json.bakmv web/package.json web/package.json.bak再进行 hermes update 还是会有 node, tui, webui 的步骤
实践 2
提问, hermes update 实际上是运行的哪个 .py 文件?
提问, 如果我修改 hermes_cli/update_cmd.py
在 git reset --hard 和 merge --ff-only 之后 再 移除 2个 json 文件,
再接着运行剩下的升级流程?
实施这个方案移动之后、构建之前删文件”这个策略是对的,但插入点应后移到 _complete_source_update 的构建调用之前修改 hermes_cli/update_cmd.py
测试 2
有效果, hermes update 看不到 node, tui, webui 的构建了.
实践 3
把这个文件的改动写成修改~/.hermes/hermes-agent/hermes_cli/update_cmd.py文件的脚本,
大意为, 插入一段代码在def _complete_source_update(request: dict | None) -> None:之前, 再插入一行代码在from hermes_cli.update_completion import settle_lost_completion之后
得到 patch_update_cmd.py
上传Github
https://github.com/crazypeace/hermes-update-skip-node-tui-webui
用法
python3 <(curl -L https://github.com/crazypeace/hermes-update-skip-node-tui-webui/raw/refs/heads/main/patch_update_cmd.py) ~/.hermes/hermes-agent/hermes_cli/update_cmd.py
打好patch后, 然后 hermes update






