Coding with LLMs in the summer of 2025 – an update
TL;DR Highlight
Giving the full codebase to a frontier LLM by hand, without agents, gave the best-quality code.
Who Should Read
A backend developer frustrated by inconsistent results from coding agents like Cursor and rethinking how to use LLMs.
Core Mechanics
- Refuse vibe coding most of the time
- He sees LLMs as good amplifiers but bad one-man-band workers.
- Left alone, they produce code bases that are larger than needed, complex and fragile.
- Only throwaway work like tests or utilities of a few hundred lines suits full delegation.
- Provide large context
- Give papers, ideally the whole code base, and a brain dump of your understanding.
- Include bad solutions that look good, and why they are suboptimal.
- State the goals, invariants and desired code style.
- Add docs for new technology
- For Redis Vector Sets, which LLMs don't know yet, he adds the README to the context.
- With that alone, the LLM used Vector Sets at expert level immediately.
- Use Gemini 2.5 PRO and Claude Opus 4
- In his experience Gemini 2.5 PRO is semantically stronger and spots more complex bugs.
- Opus 4 is sometimes better at writing new code and has a nicer UI.
- If you can only pick one, pick Gemini 2.5 PRO.
- No agents and no RAG
- Avoid editors with integrated coding agents and show code directly to the frontier model.
- He says RAG that shows only part of the code destroys LLM performance.
- Move code by hand from terminal to the web UI so you follow every step.
- Five uses for LLMs
- Eliminate bugs you introduced before they reach users.
- Test ideas fast with throwaway code.
- Do pair design, mixing your taste with the LLM's knowledge.
Community Reactions
- Concern about dependence on paid models
- One commenter said it is sad to see paid LLMs normalized when programming used to be doable with free, open tools.
- Counterargument: let AI pick the context
- One commenter argued CLI agents like claude-code, gemini-cli and aider will manage context dynamically, so humans shouldn't optimize it by hand.
- Another asked whether large contexts can actually hurt.
- Experience with the Claude GitHub Action
- One commenter ran 10-20 issue implementations and said small, well-tested changes worked mostly alone.
- They said medium tasks often looked right but didn't actually work.
- Experience: ask for a description first
- One commenter said asking the LLM to describe its plan before writing code gave much higher quality code.
- Experience: split roles across models
- One commenter used Gemini 2.5 PRO and Opus for architecture and Sonnet for coding.
- They found Gemini often circled around issues when coding, unlike the post.
How to Apply
- Ask for the plan before the code
- Next time you request an implementation, first ask the LLM to describe what it will do without writing code.
- Correct the plan, then tell it to implement.
- Build prompts with a brain-dump template
- For bug fixes or features, list the goal, invariants, solutions to avoid, promising ideas and code style.
- Paste the relevant code and docs along with it.
- Paste the README for new libraries
- When working with internal or new libraries the LLM may not know, include the README in the context.
- Have it write tests from that doc alone to check its understanding.
- Cross-review critical code with two models
- Before a release, paste the diff into both Gemini 2.5 PRO and Claude for bug review.
- Check by hand wherever their answers disagree.
Try It
# Paste into a Claude or Gemini web chat (brain-dump prompt in antirez's style)
Read the code base and docs below, and first explain your approach before writing any code.
## Goal
{{what to build or fix}}
## Invariants to keep
{{e.g. keep API compatibility, no new external dependencies}}
## Code style
{{e.g. standard library only, short functions}}
## Bad solutions that look good
{{e.g. caching everything in memory is a problem because of memory use}}
## Promising solutions
{{rough ideas not fully worked out}}
## Relevant docs
{{README or API docs}}
## Code
{{full code}}
First explain the implementation plan and risky points without code. I will give feedback before you start implementing.Terminology
Related Papers
Why Do LLMs Help with Scientific Misconduct Requests and What to Do About It?: Increasing the Trustworthiness of AI for Science
Adding an intention-analysis system prompt raised refusal of misconduct requests from 58% to 87%.
How Specification Explicitness Shapes Failure in LLM-Generated Code
Spelling out invariants, edge cases and constraints cut hidden-test failures in LLM code by 47.2%.
Same Task, Different Statement: When and How Reformulation Helps LLM Problem Solving
Rewriting problem statements to fit their type raises LLM accuracy, but blind rewriting hurts.
Show HN: STE80 Humanizer – de-AI text by writing 80% of the way to ASD-STE100
A skill strips 26 AI tells and rewrites text in short ASD-STE100-style sentences
Character-Name Concentration in LLM Fiction: Measuring Displacement and Mitigating Repetition
Drafting name candidates and filtering by frequency cut LLM character-name repetition by 95%
LLM Voice
Martin Fowler: LLM-drafted prose keeps an uncanny tone even after human editing.
The Instruction Tax on Factual Recall: Base Models Can Beat Their Instruction-Tuned Counterparts
Few-shot completion with repeated sampling on a base model beat chat: F1 0.684 vs 0.568
AI is a tool and using it well takes skill
A rebuttal to Hickey: LLMs are tools, and skill in directing and checking them decides the outcome