Reflexio Consolidate
Agent Buildingreflexio-consolidateReflexio Consolidate is an Agent Skill for agent building published in the ReflexioAI/reflexio repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Run a full-sweep consolidation over all .reflexio/ files — TTL sweep + n-way cluster merge. Use when the user asks to 'clean up reflexio', 'consolidate memory', 'deduplicate playbooks', or suspects drift across sessions.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/ReflexioAI/reflexio/blob/HEAD/reflexio/integrations/openclaw-embedded/plugin/skills/reflexio-consolidate/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/reflexio-consolidate, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Reflexio Consolidate
User-invocable via /skill reflexio-consolidate. Same workflow that runs automatically via heartbeat (every 24h of active use), but on-demand.
What it does
- TTL sweep: delete expired profile files.
- For each of profiles and playbooks:
- Cluster similar files via
memory_search. - For clusters of 2+ members, call
llm-taskwithprompts/full_consolidation.mdto decide consolidate (one-fact-per-file) or keep-all. - Apply decisions: write individual fact files, delete originals.
- Cluster similar files via
How to run
Call the reflexio_run_consolidation tool. It spawns the consolidator sub-agent and returns a runId.
After successful consolidation, call the reflexio_consolidation_mark_done tool to update the heartbeat timer.
When to use
- User asks to "consolidate", "clean up reflexio", "dedupe memory"
- User reports seeing duplicate or contradictory entries in retrieval
- Heartbeat check returns ALERT (automatic trigger)
When NOT to use
- Routine maintenance — heartbeat handles this automatically.
- Immediately after Flow A/B writes — shallow dedup at write time + Flow C at session end cover the fresh-extraction cases.