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.

Original post →

More from coding & agent

coding & agent channel →