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 Cloudlfare Workers.
Testing has become incredibly complex – there are 7 workers, and I’ve only just gone through the Zod right 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 teh 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 propmpt 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 contenxt 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 particulalry for testing and reviews – if the LLM has produced a sumamry that will be much to big to execute as a single prompt, break it down into chunks and excute in steps, reusing context you’ve painstakingly produced in the initial prompt brief.
Related Posts
Claude Code: The Complete Beginner’s Guide
I’ve been running Claude Code every day for the last few months. MCP servers, articles across three sites, Python scripts, content workflows that run from research straight through to WordPress upload. Nothing’s changed how I work this much since I first picked up MS Excel 20 years ago. What in today’s posts is most of … <a title="The Rinse / Repeat Technique in Efficient LLM Context Window Use" class="read-more" href="https://houtini.com/the-rinse-repeat-technique-in-effecient-llm-content-window-use/" aria-label="Read more about The Rinse / Repeat Technique in Efficient LLM Context Window Use">Read more</a>
Best AI PCs for Running Local LLMs
VRAM decides everything when running local AI. Tested Corsair VENGEANCE builds from $2,999-$6,999, the RTX 5080 trap, and which GPU tier runs which models.
How to Use Firecrawl in Claude Desktop
I’ve spent the past few months building Yubhub (launch coming soon), a job aggregator that feeds our Motorsport jobs site, fluidjobs.com. The scraper needs to pull job listings from career sites across Formula 1, automotive engineering, and racing teams. Mercedes F1, FIA, Audi, McLaren – all JavaScript-heavy React sites that traditional scrapers are very difficult … <a title="The Rinse / Repeat Technique in Efficient LLM Context Window Use" class="read-more" href="https://houtini.com/the-rinse-repeat-technique-in-effecient-llm-content-window-use/" aria-label="Read more about The Rinse / Repeat Technique in Efficient LLM Context Window Use">Read more</a>
Claude Desktop Makes a Brilliant Coding Assistant – Here’s How to Set It Up
Everyone says if you want AI coding help, you use Cursor. Or Cline. Or GitHub Copilot. Basically anything that hooks into your IDE with inline autocomplete and tab-completion magic. Claude Desktop? That’s for chat, not code. I respectfully disagree; there’s a productivity sweet spot where you can use Claude Desktop very successfully for light coding, … <a title="The Rinse / Repeat Technique in Efficient LLM Context Window Use" class="read-more" href="https://houtini.com/the-rinse-repeat-technique-in-effecient-llm-content-window-use/" aria-label="Read more about The Rinse / Repeat Technique in Efficient LLM Context Window Use">Read more</a>