Local Semantic Handoff (OpenClaw)
Use this skill to reduce context bloat while preserving continuity.
Required project location
Run from this repo root (or pass explicit paths):
- •
memory_local.py - •
MEMORY.md - •
memory/*.md
Core workflow
- •Write/append technical detail to
history/YYYY-MM-DD-topic.md. - •Generate compact handoff summary.
- •Start a clean session/model and continue from handoff only.
- •Use semantic search only when needed to recover details.
Commands
Build index (when memory changed)
bash
python memory_local.py index --workspace "C:\Users\<username>\.openclaw\workspace"
Semantic search (on demand)
bash
python memory_local.py search "consulta o tema" --top-k 5
Generate handoff (before session/model switch)
bash
python memory_local.py handoff \ --output "handoff/latest.md" \ --objective "<objetivo actual>" \ --status "<estado actual>" \ --decisions "<decisiones clave>" \ --next-step "<siguiente paso>" \ --tech-log "history/<archivo>.md"
Operational policy
- •Prefer new session + handoff over carrying long chat history.
- •Keep handoff short (objective, status, decisions, next step, tech-log path).
- •Keep technical logs separate; do not paste large logs into chat.
- •Reindex only after meaningful memory updates.
Model-switch guard integration
Before switching model:
- •Check
/status. - •Compact immediately if context is high.
- •Confirm post-compaction status.
- •Generate/update handoff if task is heavy.
- •Switch model and continue from handoff.