OpenClaw Token Optimizer
name: openclaw-token-optimizer
by ccjingeth · published 2026-03-22
$ claw add gh:ccjingeth/ccjingeth-openclaw-token-save---
name: openclaw-token-optimizer
description: Optimize OpenClaw token usage and cost by auditing context injection, trimming workspace files (AGENTS.md/SOUL.md/MEMORY.md and daily memory), enabling prompt caching, heartbeat, context pruning, compaction, memory search or qmd, subagents, model tiering, and cron frequency. Use when a user asks to reduce OpenClaw token spend, speed up sessions, shrink context, or configure openclaw.json and memory search settings.
---
# OpenClaw Token Optimizer
Overview
Deliver a practical audit and configuration plan that cuts input tokens and unnecessary calls while keeping answer quality. Provide concrete config edits, workspace file trimming guidance, and a prioritized rollout plan.
Workflow
1) Scope and locate configuration
2) Baseline token sources
3) Input reduction (highest ROI)
- `AGENTS.md`: keep only essential agent rules and policies.
- `SOUL.md`: reduce to short persona bullets.
- `MEMORY.md`: keep durable facts only; archive the rest.
- `memory/YYYY-MM-DD.md`: prune or rotate daily logs.
4) Cache and context control
5) Call reduction
6) Model strategy
7) Deliverables
Provide:
References
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...