Cut OpenClaw Boot Tokens 43% by Slimming Tool & Memory Files

A user on r/openclaw slimmed their agent's boot context from ~9,457 to ~5,400 tokens — a 43% reduction — by cleaning up TOOLS.md and MEMORY.md.
Problems Found
- TOOLS.md bloat: Every tool added usage notes, commands, examples, and edge cases. Useful but not needed every session.
- Memory promotion overgrowth: Promotion candidates were added directly to main memory, causing
MEMORY.mdto grow indefinitely.
Fixes Applied
- Changed
TOOLS.mdto an index (auto-injected, so can't remove). Detailed notes moved totools/; agent reads them only when that tool is invoked. - New memory flow:
daily notes → promotion candidates → curated long-term memory. Promotion candidates go to a separate file; main memory holds only a pointer. Only durable facts needed often stay in boot memory.
Results
After: same agent, same tools, same behavior — just less loaded on every wake-up.
📖 Read the full source: r/openclaw
👀 See Also

Claude Code Requires Specific Prompts, Not Vague Instructions
A developer reports that Claude Code produces better results with detailed prompts rather than vague instructions, citing experience with 4 billion tokens over 5 months.

The Mother-In-Law Method: Weaponizing Claude's Agreeableness for Brutal Code Reviews
A Reddit user tricks Claude into harsh code reviews by framing the code as written by a hated mother-in-law, resulting in 27 issues found across 4 hostile reviewer agents after 31 minutes of deep analysis.

AGENTS.md Pattern for React Native: Claude Code Generates Better Project-Aware Code
A Reddit user shares their AGENTS.md file for React Native/Expo projects that includes folder structure, theme tokens, custom hooks, and component patterns. The result: Claude Code and Cursor generate code using the exact project conventions instead of generic React Native code.

Enforcing AI Agent Compliance: Bootstrap Language and Tool-Based Approaches
A developer shares practical methods for improving AI agent compliance, including using negative language in bootstraps and switching from soft rules to hard-coded tools when needed.