context-window-management
Context Window Management
State file: ~/.openclaw/skill-state/context-window-management/state.yaml
Warning Signs
- Session running for many hours
- Responses getting slower or less coherent
- Carrying context about completed tasks no longer relevant
- Large code blocks in context not being actively used
- Check
last_compacted_atin state — if compacted recently this session, prefer a lighter strategy
Reduction Strategies
Summarize Completed Work
Replace detailed context about finished tasks with short summaries.
After: write state strategy_used: summarize, current_task, last_compacted_at.
Externalize Reference Material
More from archieindian/openclaw-superpowers
heartbeat-governor
Enforces per-skill execution budgets for scheduled cron skills — pauses runaway skills that exceed their token or wall-clock budget before they drain your monthly API allowance.
27using-superpowers
Bootstrap skill — teaches the agent how to find and invoke skills. Use when starting any new task or session.
23long-running-task-management
Breaks multi-hour tasks into checkpointed stages with resume capability. Use when a task is expected to take more than 30 minutes or multiple sessions.
22fact-check-before-trust
Triggers a secondary verification pass for any agent output containing factual claims, numbers, dates, or named entities before the output is acted on
21persistent-memory-hygiene
Keeps OpenClaw's memory store clean, structured, and useful. Use at session end and during periodic maintenance.
20skill-vetting
Reviews a ClawHub skill's source code for security risks before installation. Use before installing any new skill.
20