Tutorial: Trimming Claude Code System Prompts to 13K Tokens
mattpocockuk · x · 2026-07-07
TypeScript expert Matt Pocock shares a complete workflow for cleaning up the "bloat" in Claude Code's system prompts. The method involves using a proxy to intercept and inspect the actual requests sent by Claude Code, then applying a provided settings.json configuration to remove redundancies. This ultimately compresses the system prompt at the start of each session to roughly 13K tokens. The author has provided an article with detailed step-by-step instructions.
More from coding & agent
- Travel MCP Server adds flight, hotel, weather and budget tools for agents — modelcontextprotocol · 2026-07-21
- OpenAI hackathon project stalls as Codex struggles on voice, while Claude spots the issue — ColleenMBrady · 2026-07-21
- Douyin Video Analysis MCP turns share links into structured video summaries — modelcontextprotocol · 2026-07-21
- An indie builder open-sourced 50+ AI apps and says users should only pay for tokens — matchaman11 · 2026-07-21
- Shared agent workspaces fail in a fixed order, from stale reads to zombie writes — mrvladp · 2026-07-21
- pi 0.81.0 adds first-class integration with llama.cpp server — huggingface · 2026-07-21