Skip to content
Houtini.
Contact
How-to Guides ·7 November 2025

The Rinse / Repeat Technique in Efficient LLM Context Window Use

Discuss and expand Ask ChatGPT Email LinkedIn

I've found lengthy prompt threads cumbersome, particularly in Sonnet 4.5 , where, for some reason Claude absolutely loves to create lengthy summary documents and then, a summary of the summary. This is all incredibly content hogging stuff…

I've found lengthy prompt threads cumbersome, particularly in Sonnet 4.5 , where, for some reason Claude absolutely loves to create lengthy summary documents and then, a summary of the summary.

This is all incredibly content hogging stuff, but I've found with a very simple technique you can re-use that summary documentation to achieve a goal in a single thread.

My use case: I'm working on a Cloudflare Worker app; that (in short) is very good at collecting and parsing data. Perfect use case for Cloudflare Workers.

Testing has become incredibly complex - there are 7 workers, and I've only just gone through the Zod rite of passage ( Zod is a schema validator that gives you data integrity across multiple, stateless workers out of the box). We'll deal with the details of stuff like this in more advanced articles. Very soon, I promise!

Anyway. This is how I rinse and repeat a Claude Desktop prompt:

1) The Prompt:

I use an initial prompt for familiarity - essentially, work through all of the files in this repository and come to terms with what it is and how it works.

I have a specific concern at the moment: that helper functions might not have been included in our Zod validation rollout - could you take a look?

2) The First Response

Ah, Claude is generally happy but, there are a list of issues:


This is where rinse and repeat comes in. It's best practice to prompt an LLM to await task instruction. This gives you a window to query or to give permission to proceed. From this point on that section is context aware but totally reusable.

3) The First Task


Here we go - I'll now sequentially audit and fix each issue raised, being sure to ask Claude (using Github MCP to commit the changes first)


And with that task resolved, we reuse the original prompt dialogue:


Let's create the next review task:


This is such a simple technique but it's ideal particularly for testing and reviews - if the LLM has produced a summary that will be much too big to execute as a single prompt, break it down into chunks and execute in steps, reusing context you've painstakingly produced in the initial prompt brief.

By email

Get new posts by email.

Drop your email below and we will send you the next article when it lands. No spam, unsubscribe anytime.

Discuss and expand Ask ChatGPT Email LinkedIn
More like this

Continue reading.

How to Do a Technical SEO Audit with Claude
AI Tools

How to Do a Technical SEO Audit with Claude

A full technical SEO audit run by conversation in Claude Desktop: Search Console history and a first-party crawl merged into one prioritised, fix-writing report. The setup, the twelve prompts, the priority model, and the honest limits - walked through on a real site.

Claude Code API Key Security: A Guide to Token Hygiene
How-to Guides

Claude Code API Key Security: A Guide to Token Hygiene

The simplest possible setup that keeps your production tokens out of AI chat windows. 1Password CLI, op run, and the conversational discipline that makes the rest of it work.

Swapping the Engine: How to Run Claude Code on Local Silicon for Zero Pennies
How-to Guides

Swapping the Engine: How to Run Claude Code on Local Silicon for Zero Pennies

Claude Code's real power isn't the Anthropic model sitting behind it, it's the agentic : the file-system access, the tool use, the way it chains tasks together without you babysitting every step. I figured this out the expensive way. I ran…

A Beginner's Guide to Claude Computer Use
How-to Guides

A Beginner's Guide to Claude Computer Use

I've been letting Claude control my mouse and keyboard on and off to test this feature for a little while, and the honest answer is that it's simultaneously the most impressive and most frustrating AI feature I've used. It can navigate…

A Beginner's Guide to AI Mini PCs - Do You Need a DGX Spark?
How-to Guides

A Beginner's Guide to AI Mini PCs - Do You Need a DGX Spark?

I've been running a local LLM on a variety of bootstrapped bit of hardward, water-cooled 3090's and an LLM server I call hopper full of older Ada spec GPUs. When NVIDIA, Corsair, et al. all started shipping these tiny purpose-built AI…

Using a Local LLM to Audit Your Codebase - What Qwen3 Coder Next Catches (and Misses)
How-to Guides

Using a Local LLM to Audit Your Codebase - What Qwen3 Coder Next Catches (and Misses)

I ran a local copy of Qwen3 Coder Next on a machine under my desk. It pinned down a race condition in my production code that I'd missed. It also told me, with complete confidence, that crypto.randomUUID() doesn't work in Cloudflare…