Realized I was stuffing way too much into the context window

I finally figured out one of the reasons my AI kept hallucinating code or rewriting random files. I was throwing my entire repo into the context window because it felt “safe,” but it was actually making things worse.

Someone on my team wrote a small piece about going component-first instead of dumping everything into the prompt. It lined up with what I’ve seen:

https://www.weavy.com/blog/component-first-strategy-build-faster-without-stuffing-context-window

Would love to hear how other people manage what to include or not include in context. Still trying to find the right balance.

Leave a Reply