True Positive Weekly

True Positive Weekly

Share this post

True Positive Weekly
True Positive Weekly
A secret of reliable LLM-based code generation as the codebase grows

A secret of reliable LLM-based code generation as the codebase grows

I unlocked the secret of how to reliably generate code with Claude Sonnet with an LM when your codebase grows beyond 100k tokens

Andriy Burkov's avatar
Andriy Burkov
May 09, 2025
∙ Paid
12

Share this post

True Positive Weekly
True Positive Weekly
A secret of reliable LLM-based code generation as the codebase grows
2
1
Share

As we know, Gemini 2.5 Pro has

the advantage of having a 1M-token context and being quite smart, but it's entirely inappropriate for writing code for an existing codebase because it tries to rewrite absolutely everything and injects stuff that the user hasn't asked for.

On the other hand, Claude 3.7 Sonnet writes good quality code and provides surgical, minimalist updates but has a modest context size of about 100k tokens, making it quite “dumb” and useless as the codebase size approaches this context limit.

Keep reading with a 7-day free trial

Subscribe to True Positive Weekly to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Andriy Burkov
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share