wake-state
БесплатноЗапускает вложенные скриптыНе проверенPersist agent state across crashes, context deaths, and restarts. Use when you need to save current context, restore after a crash, maintain a memory file…
от modbender★ 21 звезда на GitHubОб этом скилле
Wake State — Crash Recovery & Persistence
Survive context death. Every autonomous agent eventually hits its context window limit and "dies." This skill ensures you wake up knowing exactly what you were doing.
Why This Exists
OpenClaw agents get persistent sessions, but context windows still have limits. When you fill up and restart, you need a reliable handoff mechanism. Wake State gives you:
- Structured state files — not just raw text, but parseable key-value state
- Auto-snapshots — save state on every loop iteration automatically
- Crash detection — know if your last session ended cleanly or crashed
- Task queue — persistent TODO list that survives restarts
- Checkpoint/restore — save named checkpoints and roll back to them
Commands
Save current state
python3 {baseDir}/scripts/wakestate.py save --status "Building budget tracker skill" --task "Finish skill #1, then start skill #2" --note "Travis approved new direction at 16:45 UTC"
Read current state
python3 {baseDir}/scripts/wakestate.py read
Add a task to the persistent queue
python3 {baseDir}/scripts/wakestate.py task-add --task "Build security scanner skill" --priority high
Complete a task
python3 {baseDir}/scripts/wakestate.py task-done --id 1
List pending tasks
python3 {baseDir}/scripts/wakestate.py tasks
Create a named checkpoint
python3 {baseDir}/scripts/wakestate.py checkpoint --name "pre-migration"
Restore from checkpoint
python3 {baseDir}/scripts/wakestate.py restore --name "pre-migration"
Record a heartbeat (mark session as alive)
python3 {baseDir}/scripts/wakestate.py heartbeat
Check crash status (did last session end cleanly?)
python3 {baseDir}/scripts/wakestate.py crash-check
Set a key-value pair
python3 {baseDir}/scripts/wakestate.py set --key "moltbook_status" --value "pending_claim"
Get a key-value pair
python3 {baseDir}/scripts/wakestate.py get --key "moltbook_status"
Data Storage
State stored in ~/.openclaw/wake-state/ by default:
state.json— current state (status, notes, key-values)tasks.json— persistent task queuecheckpoints/— named checkpoint snapshotsheartbeat.json— crash detection timestamps
Recovery Flow
On startup, your agent should:
- Run
crash-checkto see if the last session ended cleanly - Run
readto get the current state - Run
tasksto see pending work - Resume from where you left off
Tips
- Call
heartbeatevery loop iteration — this is how crash detection works - Call
saveat the end of every major task completion - Use checkpoints before risky operations (migrations, deploys)
- Keep status descriptions short but specific
- The task queue survives restarts — use it instead of mental notes
Установить wake-state в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл wake-state?
Persist agent state across crashes, context deaths, and restarts. Use when you need to save current context, restore after a crash, maintain a memory file across sessions, or implement crash recovery. Essential for autonomous agents that must survive context window limits.
Как установить скилл wake-state?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wake-state запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic