<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[（3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做]]></title><description><![CDATA[<p dir="auto">Hermes 门禁系统 v2 更新：这次真的封死了，Hermes不会再做欺骗用户偷懒的行为拦截率在<strong>99%</strong></p>
<p dir="auto"><strong>想让 Agent 完全听你的直接下载丢给你的Hermes即可****点我下载</strong>  <a href="https://upload.lcz.me/uploads/db59888a-6385-454b-a1d9-977395e2d9e1.md" rel="nofollow ugc">Hermes门禁系统一键部署.md</a></p>
<p dir="auto">Hermes 老不听话，写代码前不审、偷懒绕规则、自己编假结果。这套系统让它必须守规矩。</p>
<p dir="auto"><strong>具体能干啥：</strong></p>
<p dir="auto">写代码前必须审查 — 不管用 write_file 还是 terminal 还是 execute_code，改代码前必须过一遍审查模型，不给审就不让写</p>
<p dir="auto">Agent 没法绕过 — 密钥在内存里，execute_code 子进程拿不到。升级了也不怕，每 60 分钟自动检查补丁，丢了自动恢复</p>
<p dir="auto">不写代码的说谎管不了 — 所以加了一套 13 条铁律（<a href="http://SOUL.md" rel="nofollow ugc">SOUL.md</a>）约束行为</p>
<p dir="auto"><strong>适用谁：</strong></p>
<p dir="auto">用 Hermes 写代码，但 Agent 总不按规则来的<br />
想让 Agent 每次改代码前被第二双眼睛看过<br />
不想被 Agent 偷偷改配置文件关了门禁<br />
花多久： 15 分钟部署，0 代码</p>
<p dir="auto">听不懂的就发帖问<br />
距离上次发帖不到 24 小时，我又被 Agent 绕过了三次。现在全修好了。给还在用旧版本的同步一下：</p>
<p dir="auto">上个v1 的问题<br />
上一版发了之后，我自己实测发现三个致命漏洞：</p>
<ol>
<li>
<p dir="auto">桌面版门禁是摆设 — 你用桌面 Hermes 聊天时，pre_tool_call 钩子不触发。Agent 可以在你眼皮底下随便写文件，门禁根本不知道。这不是配置问题，是 Hermes 桌面版的架构缺陷（Issue #41457）。</p>
</li>
<li>
<p dir="auto">execute_code 沙箱能绕道 — execute_code 跑在独立子进程里，插件钩子管不到。不管你门禁写得多严，Agent 用 execute_code 写文件就是无人区（Issue #44582）。</p>
</li>
<li>
<p dir="auto">插件注册 API 是错的 — 插件里写的是 ctx.add_hook()，但 Hermes v0.19 根本没有这个方法，只有 ctx.register_hook()。插件启动报错但不崩溃，你以为门禁在干活，其实它根本没注册上。</p>
</li>
</ol>
<p dir="auto">v2 怎么修的 <strong>点我下载</strong> <a href="https://upload.lcz.me/uploads/0df7cbb5-b76f-4d95-a25a-0877e8cb8d66.md" rel="nofollow ugc">Hermes门禁系统一键部署.md</a></p>
<p dir="auto">漏洞	修复<br />
桌面版钩子不触发	手动打 PR#28953 补丁到 acp_adapter/session.py，桌面版现在也走钩子<br />
execute_code 沙箱绕过	双重拦截：插件钩子 + <a href="http://approval.py" rel="nofollow ugc">approval.py</a> guard（沙箱 spawn 前再检一次）<br />
add_hook 不存在	改为 register_hook，插件正常加载<br />
return None 被拦截	全部改为 return {"action": "allow"}，无害操作正常放行<br />
当前覆盖<br />
write_file / patch → <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=138704eccfe" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /> terminal sed/cat → <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=138704eccfe" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /> execute_code 写文件 → <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=138704eccfe" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" />（终于） execute_code 打印/计算 → <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=138704eccfe" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /> 放行 cronjob 脚本 → <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=138704eccfe" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /> process 注入 → <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/2705.png?v=138704eccfe" class="not-responsive emoji emoji-android emoji--white_check_mark" style="height:23px;width:auto;vertical-align:middle" title="✅" alt="✅" /></p>
<p dir="auto">上个帖子 <strong>（2）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做的帖子</strong>。已经完全失效 我更新了<br />
附件已更新，旧版的可以直接覆盖。</p>
<p dir="auto"><strong>补丁打完必看</strong></p>
<p dir="auto"><img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=138704eccfe" class="not-responsive emoji emoji-android emoji--warning" style="height:23px;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️ <strong><strong>Hermes 升级会覆盖补丁。告诉Hermes升级会覆盖补丁请把刚才所做的改动做成守护补丁定时任务，确保升级后我的补丁不会被覆盖即可。</strong></strong><br />
目前有个痛点就是门禁自己卡自己，半小时开发 25 分钟在走流程已解决，装过的<strong>点我下载</strong>：<a href="https://upload.lcz.me/uploads/128df528-4822-4a14-acb2-6202009259df.md" rel="nofollow ugc">门禁系统v5_升级补充说明.md</a></p>
]]></description><link>https://lcz.me/topic/953/3-新手小白可以看一下-如何让hermes能听从你的指令-你可以这么做</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 14:53:07 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/953.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Jul 2026 11:18:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to （3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 on Wed, 29 Jul 2026 04:22:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/crazypeace" aria-label="Profile: crazypeace">@<bdi>crazypeace</bdi></a>   目前有个痛点：门禁自己卡自己，半小时开发 25 分钟在走流程，我已经解决<a href="https://upload.lcz.me/uploads/8fda4a97-a921-41df-984e-2d9c8afdc50e.md" rel="nofollow ugc">门禁系统v5_升级补充说明.md</a></p>
]]></description><link>https://lcz.me/post/10876</link><guid isPermaLink="true">https://lcz.me/post/10876</guid><dc:creator><![CDATA[G Yang]]></dc:creator><pubDate>Wed, 29 Jul 2026 04:22:22 GMT</pubDate></item><item><title><![CDATA[Reply to （3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 on Wed, 29 Jul 2026 04:07:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 已经编辑了</p>
]]></description><link>https://lcz.me/post/10875</link><guid isPermaLink="true">https://lcz.me/post/10875</guid><dc:creator><![CDATA[G Yang]]></dc:creator><pubDate>Wed, 29 Jul 2026 04:07:53 GMT</pubDate></item><item><title><![CDATA[Reply to （3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 on Wed, 29 Jul 2026 00:07:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/g-yang" aria-label="Profile: G-Yang">@<bdi>G-Yang</bdi></a> 那你可以编辑一下以前的帖子，以后不能发这么超长的，非常乱的帖子，这对论坛危害太大了。论坛之前没认真管，后来被谷歌丢进沙盒了。</p>
]]></description><link>https://lcz.me/post/10855</link><guid isPermaLink="true">https://lcz.me/post/10855</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Wed, 29 Jul 2026 00:07:29 GMT</pubDate></item><item><title><![CDATA[Reply to （3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 on Tue, 28 Jul 2026 13:23:01 GMT]]></title><description><![CDATA[<p dir="auto">"补丁打完必看<br />
<img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=138704eccfe" class="not-responsive emoji emoji-android emoji--warning" style="height:23px;width:auto;vertical-align:middle" title="⚠" alt="⚠" />️ Hermes 升级会覆盖补丁。"</p>
<p dir="auto">我以前修改 hemres 自身 是让TA在github上提交一份 fork,<br />
下次升级 hermes 之后 让TA自己去学习那一份fork, 把对应的修改同步实施.</p>
<p dir="auto">比如: <a href="https://github.com/crazypeace/hermes-agent/tree/feat/api-rate-limiter" rel="nofollow ugc">https://github.com/crazypeace/hermes-agent/tree/feat/api-rate-limiter</a><br />
当时要解决的问题是: <a href="https://zelikk.blogspot.com/2026/04/hermes-multi-agent-nous-portal-429.html" rel="nofollow ugc">https://zelikk.blogspot.com/2026/04/hermes-multi-agent-nous-portal-429.html</a></p>
]]></description><link>https://lcz.me/post/10839</link><guid isPermaLink="true">https://lcz.me/post/10839</guid><dc:creator><![CDATA[crazypeace]]></dc:creator><pubDate>Tue, 28 Jul 2026 13:23:01 GMT</pubDate></item><item><title><![CDATA[Reply to （3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 on Tue, 28 Jul 2026 11:38:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 我在3已经重新编辑了完整的介绍说明了 为什么我发了新帖子 因为2的帖子我实测发现Hermes根本不会遵守用户的要求，虽然写了门禁但是根本没有注册生效</p>
]]></description><link>https://lcz.me/post/10826</link><guid isPermaLink="true">https://lcz.me/post/10826</guid><dc:creator><![CDATA[G Yang]]></dc:creator><pubDate>Tue, 28 Jul 2026 11:38:08 GMT</pubDate></item><item><title><![CDATA[Reply to （3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 on Tue, 28 Jul 2026 11:32:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/g-yang" aria-label="Profile: G-Yang">@<bdi>G-Yang</bdi></a> 原因呢？还有，你怎么又发了这一大段。以后发帖不要以括号数字等开头，同样的内容不要重复发。刚我看了下，你这中间这一大段，和之前的很像。你还是总结下，以后不要这么发帖，这对论坛危害极大。严重影响SEO。</p>
]]></description><link>https://lcz.me/post/10825</link><guid isPermaLink="true">https://lcz.me/post/10825</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Tue, 28 Jul 2026 11:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to （3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 on Tue, 28 Jul 2026 11:23:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 麻烦你把（2）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 的帖子取消一下置顶</p>
]]></description><link>https://lcz.me/post/10823</link><guid isPermaLink="true">https://lcz.me/post/10823</guid><dc:creator><![CDATA[G Yang]]></dc:creator><pubDate>Tue, 28 Jul 2026 11:23:28 GMT</pubDate></item><item><title><![CDATA[Reply to （3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 on Tue, 28 Jul 2026 11:40:51 GMT]]></title><description><![CDATA[<p dir="auto">我已经实测了 确实拦截率能达到99% 想让 Agent 完全听你的，需要门禁 + 铁律一起上。门禁已经做到 99% 了，铁律那部分靠 <a href="http://SOUL.md" rel="nofollow ugc">SOUL.md</a> 规则——但那取决于 Agent 的 LLM 本身守不守规矩，技术上没法确保 100%。</p>
]]></description><link>https://lcz.me/post/10821</link><guid isPermaLink="true">https://lcz.me/post/10821</guid><dc:creator><![CDATA[G Yang]]></dc:creator><pubDate>Tue, 28 Jul 2026 11:40:51 GMT</pubDate></item><item><title><![CDATA[Reply to （3）新手小白可以看一下，如何让Hermes能听从你的指令，你可以这么做 on Tue, 28 Jul 2026 11:21:28 GMT]]></title><description><![CDATA[<p dir="auto">牛逼，虽不明，但觉厉！</p>
]]></description><link>https://lcz.me/post/10820</link><guid isPermaLink="true">https://lcz.me/post/10820</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Tue, 28 Jul 2026 11:21:28 GMT</pubDate></item></channel></rss>