auto-rollback
/install auto-rollback
Auto-Rollback
Use this skill before editing ~/.openclaw/openclaw.json.
It creates a timestamped backup, schedules a rollback job for 10 minutes later, and restores the backup if Gateway still cannot come up. Rollback auto-cancellation is available only if the workspace BOOT.md includes the bundled snippet from this skill and the boot-md hook is already installed.
Quick Flow
- Run
skills/auto-rollback/auto-rollback.sh start --reason "what changed" - Edit
~/.openclaw/openclaw.json - Restart Gateway
- If Gateway becomes healthy,
BOOT.mdcancels the rollback - If Gateway stays unhealthy, launchd executes the rollback script
Commands
Start protection
skills/auto-rollback/auto-rollback.sh start --reason "update gateway bindings"
Short form also works:
skills/auto-rollback/auto-rollback.sh start "update gateway bindings"
Cancel pending rollback
skills/auto-rollback/auto-rollback.sh cancel
Inspect current state
skills/auto-rollback/auto-rollback.sh status
BOOT.md Integration
This skill does not install the boot-md hook by itself.
To enable automatic cancellation after a healthy restart:
- Ensure your OpenClaw workspace already has the
boot-mdhook installed. - Merge
skills/auto-rollback/BOOT.mdinto the workspace rootBOOT.md.
Without that integration, rollback still works, but you must cancel it manually after a successful restart.
Files
- Script:
skills/auto-rollback/auto-rollback.sh - BOOT snippet:
skills/auto-rollback/BOOT.md - Backups:
~/.openclaw/openclaw.json.YYYYMMDD-HHMMSS - State:
~/.openclaw/state/rollback-pending.json - Log:
~/.openclaw/logs/rollback.log - launchd plist:
~/.openclaw/ai.openclaw.rollback.plist
Agent Rule
If you want agents to always use this safety net, add an SOP rule in AGENTS.md that any openclaw.json change must run start first.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install auto-rollback - 安装完成后,直接呼叫该 Skill 的名称或使用
/auto-rollback触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
auto-rollback 是什么?
Timed rollback safety net for edits to ~/.openclaw/openclaw.json on macOS. Use when changing Gateway config, restarting Gateway after config edits, or needin... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 605 次。
如何安装 auto-rollback?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install auto-rollback」即可一键安装,无需额外配置。
auto-rollback 是免费的吗?
是的,auto-rollback 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
auto-rollback 支持哪些平台?
auto-rollback 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin)。
谁开发了 auto-rollback?
由 extraterrest(@extraterrest)开发并维护,当前版本 v1.2.0-alpha.2。