Repository navigation
fix(hermes): skill handles version updates; restart via /restart in chat - #705
Merged
Merged
Conversation
Asked "upgrade TotalReclaw to rc6", an agent only had the usage skill, where "upgrade" meant Pro. It installed the package, tried to restart the gateway itself (blocked by Hermes), wrote a restart script and told the user to SSH in. The skill now separates a version update (guide's Update prompt) from Pro and says the agent can't restart Hermes: a chat-app user sends /restart; only terminal-CLI users get `hermes gateway restart`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bd3G1BkVMFSXkcdAQ7nFax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a real Telegram install, the user asked "Can you upgrade TotalReclaw to rc6?" without linking the guide. The only TotalReclaw guidance the agent had was the usage skill, and there "upgrade" means buying Pro (
totalreclaw_upgrade). Nothing in it covers installing a newer version.So the agent improvised:
~/.hermes/scripts/restart-gateway-rc6.shand told the user to run it, orhermes gateway restart, over SSH.Sending
/restartin the chat would have done the job. In Hermes 0.22 it's a gateway slash command that drains running work and exits with code 75 under systemd or launchd, so the service manager restarts it.Changes to
python/src/totalreclaw/hermes/SKILL.md, which the sidecar mirrors into~/.hermes/skills/memory/totalreclaw/on plugin load:totalreclaw_upgrade; "update/upgrade TotalReclaw to a version" is a software update, handled in a new Updating TotalReclaw section that points at the guide's Update prompt./restart. Only a terminal-CLI user getshermes gateway restart, and Docker without a chat app getsdocker restart. Shell commands for a chat-app user are a fallback only if/restartfails.This matches what the install guide already says for the install path. The guide is unchanged.
New tests in
python/tests/test_skill_md_update_restart.py; the existing skill tests still pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01Bd3G1BkVMFSXkcdAQ7nFax