
Token Optimizer
Optimization suite that isolates background tasks and summarizes context to prevent OpenClaw token bloat.
- skills.sh installs
- 507
- GitHub stars
- 20
- last updated
- Jun 3, 2026
What it does
- Covers periodic task isolation, a Reset & Summarize protocol, local RAG recall, transcript indexing, and hybrid search
- Isolates cron jobs with
sessionTarget: "isolated", keeping heartbeat and check history out of the main session - Triggers manual consolidation when context exceeds 100k tokens, appending facts to
MEMORY.mdbefore a gateway restart - Designed for long-running OpenClaw agents that accumulate context over several days of sessions
Install
$ npx -y skills add d4kooo/openclaw-token-memory-optimizer --skill token-optimizer -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Token Optimizer Skill
This skill provides the procedural knowledge to keep your OpenClaw instance lean and efficient.
Quick Reference
| Problem | Solution |
|---|---|
| Background tasks bloating context | Cron isolation (sessionTarget: "isolated") |
| Reading entire history every turn | Local RAG with memory_search |
| Context exceeds 100k tokens | Reset & Summarize protocol |
| Finding old conversations | Session transcript indexing |
Workflow 1: Periodic Task Isolation
To prevent background tasks from bloating your main conversation context, always isolate them.
Steps
- Locate your
openclaw.jsonconfig. - In the
cron.jobsarray, setsessionTarget: "isolated"for any task that doesn't need to be part of the main chat history. - Use the
messagetool within the task's payload if human intervention is required.
Example Config
Details
- Repository
- github.com/d4kooo/openclaw-token-memory-optimizer
- Categories
- Memory & Context, Agent Workflow & Planning
- First seen
- Jun 3, 2026
Similar to Token Optimizer
More Memory & Context
pm-tokensPluginmohitagw15856/pm-claude-skills1.6K starsToken optimization for every stage of the agent journey: crush tool outputs before they enter context, navigate code by map instead of reading files, diet the o
context-optimizationSkillsickn33/agentic-awesome-skills561 installsStrategies for stretching limited context windows through compaction, observation masking, KV-cache reuse, and partitioning.
context-compressionSkillguanyang/open-agent-hub128 installsStructured context compression for long agent sessions, optimizing total tokens per task rather than per request.
HeadroomMCP serverchopratejas80.3K starsCompresses tool outputs, logs, files, and RAG chunks to cut LLM input tokens while keeping answers.
context-engineeringSkillrohitg00/pro-workflow180 installsFour-operation guide for managing context in AI coding sessions: Write, Select, Compress, Isolate.
openclaw-control-centerSkillreason-machines/trending-skills4.3K installsLocal-first control center that makes OpenClaw agent activity, token spend, and memory auditable by default.