tonitangpotato/rustclaw/restart-rustclaw
Claude Code and agent skill by tonitangpotato/rustclaw
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Rebuild RustClaw and rolling-restart the three launchd-managed agent instances (main, agent2, marketing)
Install
npx vskill@latest install tonitangpotato/rustclaw/restart-rustclawSKILL.md
SKILL: Rolling Restart RustClaw Agents
Three RustClaw instances share one binary at/Users/potato/rustclaw/target/release/rustclaw.Aftercargo build --release, each instance must be restarted separately — an already-runningprocess keeps its old in-memory binary. This skill rebuilds + rolling-restarts all three.
When to Use
- potato asks to "重启 RustClaw" / "rolling restart" / "apply 新 binary" / "重新编译"
- You (or another agent) just modified RustClaw source code and need the change live
- Coordinating updates across main, agent2, and marketing instances
The Three Instances
All managed by launchd (~/Library/LaunchAgents/):
| Name | launchd label | Purpose | |
|---|---|---|---|
| main | com.rustclaw.agent | RustClaw (this agent, @rustblawbot) | |
| agent2 | com.rustclaw.agent2 | RustClaw 2 | |
| marketing | com.rustclaw.agent-marketing | Marketing / Grow agent |
The Script
Path: /Users/potato/rustclaw/scripts/rolling-restart.sh
Usage
What It Does
- Runs
cargo build --releasein/Users/potato/rustclaw(unless--no-build) - Verifies the binary exists and is executable
- Prints binary mtime + sha256 prefix — so you can confirm it's actually the new version
- For each agent:
launchctl kickstart -k gui/$UID/<label>(falls back to stop+start) - Waits
--gapseconds between restarts so they don't collide on shared resources (engram DB, session DB, log files) - Reports running pid for each after restart
⚠️ Self-Restart Caveat
If you are the `main` agent, restarting yourself terminates this session.
- To avoid disrupting the current conversation: use
--only agent2or--only marketingfirst - To restart self cleanly: use the
restart_selftool instead — it exits cleanly and launchd respawns us - If potato explicitly asks to restart everything including me, confirm first, then run the full script — my next session will pick up the new binary
Cross-Instance Coordination
If another agent compiled a new binary while I'm still running the old one:
- I will automatically pick up the new binary on my next restart (launchd re-reads from disk)
- But during the gap between their restart and mine, we run different versions — this is fine for compatible changes, risky for schema/config breaking changes
- For breaking changes: rolling-restart all three together
Verification After Restart
Related
- OpenClaw has its own restart script at
/Users/potato/clawd/projects/openclaw-latest/scripts/restart-mac.sh— different project, different architecture, don't confuse them restart_selftool: clean self-restart for the calling agent only
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/restart-rustclaw/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tonitangpotato/rustclaw/restart-rustclaw)