> ## Documentation Index
> Fetch the complete documentation index at: https://docs.double.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Controlling the context window, and how we approach it

##### Published August 15, 2024 by [Gonzalo](https://twitter.com/geepytee)

I recently saw [a tweet from a fellow YC founder](https://x.com/hrishioa/status/1813538188734132323) explaining that despite all of the AI coding tools, he still prefers to copy-paste code in and out of Claude's web client, instead of relying on retrieval algorithms.

<div style={{ display: 'flex', justifyContent: 'center', marginTop: '-1rem', marginBottom: '-1rem' }}>
  <img className="hidden h-48 dark:block" width="500" src="https://mintcdn.com/double/dKjQdXGaKSgxICRk/images/tweet_dark.png?fit=max&auto=format&n=dKjQdXGaKSgxICRk&q=85&s=b784434c9daef4a47e9713a632c8337d" alt="Tweet in dark mode" data-path="images/tweet_dark.png" />
</div>

<div style={{ display: 'flex', justifyContent: 'center', marginTop: '-1rem', marginBottom: '-1rem' }}>
  <img className="block h-48 dark:hidden" width="500" src="https://mintcdn.com/double/dKjQdXGaKSgxICRk/images/tweet_light.png?fit=max&auto=format&n=dKjQdXGaKSgxICRk&q=85&s=04d2d4464444fd3c9e4405992daa52f5" alt="Tweet in light mode" data-path="images/tweet_light.png" />
</div>

The sentiment was that assuming that the retrieval algorithms will do a good job at picking the right context often leads to disappointment. Meanwhile, manually selecting and trimming the context yields better results. This is probably because he knows the codebase and what context is relevant in this particular case better than anyone else.

Someone replied to the tweet and mentioned that selecting context is a form of [Rubber Ducking](https://en.m.wikipedia.org/wiki/Rubber_duck_debugging), I can see how:

1. Preparing snippets of code for an LLM to ingest requires you to organize and clarify your thoughts

2. And similar to rubber ducking, you're externalizing your thought process by presenting your code to an external entity

Both of which can help you spot issues or think of solutions simply through the process of preparing to explain.

### Context Control with Double

Engineering the context inside and across context windows is a huge factor in getting an LLM to produce high quality code.

At Double, our mission is to make the best context management UX of any LLM product, prioritizing visibility. You should never have to wonder what parts of your codebase are being used, how they're being selected and so on and so forth.
visibility into how much space you've got in a context window and how cursor handles managing context across windows.

In the video below, I'll walk you through Double's current context management and how we're working to make it even better.

<iframe width="560" height="315" src="https://www.youtube.com/embed/a-mlNY768OA?si=lpg8pBmQd75xBISh" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />

If after reading this you have any feedback or questions, please reach me at [help@double.bot](mailto:help@double.bot). I personally read and reply to every email.
