← 返回 Skills 市场
hollis9087

Hermes Continuation Maintainer

作者 hollis9087 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
45
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hermes-continuation-maintainer
功能描述
Diagnose and repair Hermes Agent runs that silently stop and require manual "continue" messages even though no user input is needed. Use this skill when Herm...
使用说明 (SKILL.md)

Hermes Continuation Maintainer

Use this skill for one narrow failure mode: Hermes ends a turn after a short non-final work-status message instead of continuing with tool calls.

The usual root cause is control-loop classification, not machine slowness:

  • The provider returns visible assistant text with finish_reason=stop.
  • The text says what Hermes will do next, but it is not a final answer and does not ask the user for input.
  • The conversation loop treats that stop as terminal, so Hermes waits silently.
  • A later user "continue" message proves the previous stop was premature.

Use The Scanner First

Run the bundled scanner from the Hermes WSL distro:

python3 \x3Cskill_dir>/scripts/scan_hermes_continuation.py --since-minutes 360 --format text

Default paths used by the scanner:

  • log: /root/.hermes/logs/agent.log
  • state DB: /root/.hermes/state.db

The scanner emits deterministic classifications:

  • continuation_candidate: likely premature stop; patch or extend tests.
  • asks_user: valid stop; do not auto-continue.
  • final_or_summary: valid completion or summary; do not patch.
  • review: inspect manually before changing code.

Patch Policy

Patch only after the scanner finds concrete phrase families in recent logs. Keep the change local and regression-tested.

Known Hermes files:

  • /usr/local/lib/hermes-agent/agent/agent_runtime_helpers.py
  • /usr/local/lib/hermes-agent/agent/conversation_loop.py
  • /usr/local/lib/hermes-agent/run_agent.py
  • /usr/local/lib/hermes-agent/tests/run_agent/test_run_agent.py

The continuation heuristic should require all of these:

  • an execution-oriented recent user prompt, previous tool activity, or a known continuation context;
  • a short assistant text stop with future-action language;
  • an action term such as read, inspect, run, test, execute, update, write, patch, fix, implement, or verify.

The heuristic must reject:

  • questions or clarification requests;
  • text that asks the user to provide information;
  • true final answers such as done, completed, finished, or all tests passed;
  • long summaries.

Minimum Regression Checks

Run focused tests before reporting success:

cd /usr/local/lib/hermes-agent
PYTHONDONTWRITEBYTECODE=1 venv/bin/python -m pytest -q \
  tests/run_agent/test_run_agent.py::test_run_conversation_continues_after_nonfinal_work_status_after_tools \
  tests/run_agent/test_run_agent.py::test_run_conversation_continues_after_chinese_future_action_status \
  tests/run_agent/test_run_agent.py::test_run_conversation_does_not_continue_when_status_requests_user_input

PYTHONDONTWRITEBYTECODE=1 venv/bin/python -m pytest -q \
  tests/run_agent/test_run_agent_codex_responses.py::test_run_conversation_codex_continues_after_ack_stop_message \
  tests/run_agent/test_run_agent_codex_responses.py::test_run_conversation_codex_continues_after_ack_for_directory_listing_prompt

PYTHONDONTWRITEBYTECODE=1 venv/bin/python -m py_compile \
  agent/agent_runtime_helpers.py agent/conversation_loop.py run_agent.py tests/run_agent/test_run_agent.py

Runtime Handling

Code edits do not hot-load into already-running interactive Hermes CLI processes. Tell the user to exit and reopen stale CLI sessions. Do not kill interactive Hermes CLI processes unless explicitly asked.

Gateway and Dashboard can be restarted separately if they are down, but that is a different problem from continuation stalls.

Report Format

Keep the report short:

  • root cause;
  • scanner counts and phrase families found;
  • files changed;
  • tests run;
  • whether an old CLI process still needs restart.
安全使用建议
Install only if you intentionally want an agent to inspect Hermes logs/state and potentially patch the local Hermes installation. Review scanner output because it may include snippets from prior conversations, and apply code changes only after the scanner shows relevant continuation-stall evidence.
能力评估
Purpose & Capability
The stated purpose, bundled scanner, and repair instructions all align around diagnosing premature Hermes text-stop continuation stalls.
Instruction Scope
Instructions are narrow: run the scanner, patch only after concrete log evidence, reject user-input/final-answer cases, run focused regression tests, and report concise results.
Install Mechanism
The artifact contains only a SKILL.md and one local Python scanner script; no package install hooks, dependency installation, network fetches, or auto-run behavior were found.
Credentials
The scanner reads /root/.hermes/logs/agent.log and /root/.hermes/state.db, which is proportionate for diagnosing Hermes stalls but may expose local conversation snippets in output.
Persistence & Privilege
The skill may guide edits under /usr/local/lib/hermes-agent to change Hermes control-loop behavior, but this is disclosed, scoped to the diagnosed bug, and paired with tests and restart guidance.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hermes-continuation-maintainer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hermes-continuation-maintainer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial lightweight scanner and continuation-stall repair workflow.
元数据
Slug hermes-continuation-maintainer
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Hermes Continuation Maintainer 是什么?

Diagnose and repair Hermes Agent runs that silently stop and require manual "continue" messages even though no user input is needed. Use this skill when Herm... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。

如何安装 Hermes Continuation Maintainer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hermes-continuation-maintainer」即可一键安装,无需额外配置。

Hermes Continuation Maintainer 是免费的吗?

是的,Hermes Continuation Maintainer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Hermes Continuation Maintainer 支持哪些平台?

Hermes Continuation Maintainer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Hermes Continuation Maintainer?

由 hollis9087(@hollis9087)开发并维护,当前版本 v0.1.0。

💬 留言讨论