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
- Alchemy adds effect/Workflow support across Durable Objects, Workflows and Lambda Durable Functions — samgoodwin89 · 2026-10-27
- Alchemy's Lambda Web Functions run plain Node web servers on Lambda, no OpenNext needed — samgoodwin89 · 2026-10-27
- Alchemy Domain brings domain-driven design and story testing to Effect backends — samgoodwin89 · 2026-10-27
- Alchemy makes all ~2,850 AWS bindings work from any cloud, not just S3/Lambda/DynamoDB — samgoodwin89 · 2026-10-27
- Production AI agent scored 95% robustness at baseline, 37% under adversarial attack — njyx · 2026-10-27
- Chaining Grok Bot and Codex to detect and mass-block AI reply accounts — vista8 · 2026-10-27