Slash Agent Start-Up Tokens by 60%: Clean Up Your Bot's Workspace
A developer on r/openclaw shared a practical method to drastically reduce start-up token consumption for LLM-based coding agents. The approach: run an LLM over all markdown files in the workspace root to identify and eliminate bloat and duplication.
Key Actions
- Reviewed every markdown file at the workspace root for redundant or overly verbose content (e.g., change logs, duplicated memories, user info).
- Structured the remaining files similarly to a memory system for consistency.
- Used a CLI tool (
codex) instead of going through the agent to keep the process objective. - Created a
TOOLSfile with quick notes and a separatetools/folder with per-tool details that the agent can pull on demand. - Added new files like
voiceto maintain a consistent tone across different models.
Results
Start-up tokens dropped from 80k to 31k—a 61% reduction. The workspace became leaner and the agent more responsive without losing essential context.
Why This Matters
High start-up tokens translate to slower response times and higher costs. Regularly auditing workspace files with an LLM—outside the agent loop—prevents bloat accumulation and keeps token budgets under control.
Who This Is For
Developers running long-lived AI coding agents who want to cut token waste and improve agent performance without sacrificing context quality.
📖 Read the full source: r/openclaw
👀 See Also

Use CLAUDE.md to Persist Project Conventions Across Claude AI Sessions
Drop a CLAUDE.md file in your project root and Claude reads it at the start of every session, remembering your TypeScript rules, no default exports, testing conventions, and architecture context without re-explanation.

How a /loop Command Burned $6,000 in Claude API Overnight
A developer's unattended /loop command running every 30 minutes on claude-opus-4-7 consumed $6,000 in one night due to prompt caching expiration and growing context — a cautionary tale for AI agent automation.

Writing Effective SOUL.md Files for AI Coding Agents
A Reddit post from r/openclaw demonstrates the difference between vague and specific SOUL.md instructions, showing that specific prompts yield more useful AI agent behavior.

Routing cuts OpenClaw Max usage cost by 85%: $200/mo to $30/mo with API routing
A user tracked token usage and found only 15% of tasks need Opus. By routing routine work to Sonnet via API, monthly cost dropped from $200 to $30 with identical output quality.