Context Slimmer
/install context-slimmer
Context Slimmer
Audit workspace files that load into every message and reduce their token footprint.
Quick Start
# Measure current context cost
bash scripts/measure.sh
# Full audit (outputs recommendations)
bash scripts/measure.sh --audit
Audit Process
For each always-loaded file, evaluate:
- Move to skill — Content only needed for specific tasks (betting config, group chat rules, detailed protocols). Move to a skill or reference file that loads on demand.
- Remove — Outdated info, dead features, completed one-time setup, duplicated content across files.
- Compress — Verbose explanations that could be 1 sentence. If the agent already knows it, cut it.
Rules of Thumb
- If a cron job handles it, remove it from HEARTBEAT.md
- If it's in SOUL.md, don't repeat it in MEMORY.md or AGENTS.md
- If it's in USER.md, don't repeat it in MEMORY.md
- If the agent does it daily, it doesn't need instructions — just a trigger word
- Prefer 1 sentence over 5 bullets saying the same thing
- Target: each file should justify every line's token cost
Expected File Sizes (lean targets)
| File | Target |
|---|---|
| AGENTS.md | \x3C 500 tokens |
| TOOLS.md | \x3C 500 tokens |
| USER.md | \x3C 700 tokens |
| MEMORY.md | \x3C 400 tokens |
| HEARTBEAT.md | \x3C 400 tokens |
| SOUL.md | \x3C 250 tokens |
| IDENTITY.md | \x3C 50 tokens |
| Total | \x3C 2,800 tokens |
Output Format
Report: current size, projected size, savings per file. Include specific recommendations grouped by move/remove/compress.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context-slimmer - After installation, invoke the skill by name or use
/context-slimmer - Provide required inputs per the skill's parameter spec and get structured output
What is Context Slimmer?
Audit and slim down always-loaded context files (AGENTS.md, TOOLS.md, USER.md, MEMORY.md, HEARTBEAT.md, SOUL.md, IDENTITY.md). Use when asked to reduce token usage, audit context files, optimize context window, or slim down workspace files. Measures current token cost and identifies what to move, remove, or compress. It is an AI Agent Skill for Claude Code / OpenClaw, with 1429 downloads so far.
How do I install Context Slimmer?
Run "/install context-slimmer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Context Slimmer free?
Yes, Context Slimmer is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Context Slimmer support?
Context Slimmer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Context Slimmer?
It is built and maintained by SunDevilATB (@sundevilatb); the current version is v1.0.0.