News for hackers. Stuff that matters.
Re:Scaling LLMs to Larger Codebases by jarjoura on Monday December 22, 2025 @01:26PM (#46357031)
As of Dec 2025, Sonnet/Opus and GPTCodex are both trained and most good agent tools (ie. opencode, claude-code, codex) have prompts to fire off subagents during an exploration (use the word explore) and you should be able to Research without needing the extra steps of writing plans and resetting context. I'd save that expense unless you need some huge multi-step verifiable plan implemented.

The biggest gotcha I found is that these LLMs love to assume that code is C/Python but just in your favorite language of choice. Instead of considering that something should be written encapsulated into an object to maintain state, it will instead write 5 functions, passing the state as parameters between each function. It will also consistently ignore most of the code around it, even if it could benefit from reading it to know what specifically could be reused. So you end up with copy-pasta code, and unstructured copy-pasta at best.

The other gotcha is that claude usually ignores CLAUDE.md. So for me, I first prompt it to read it and then I prompt it to next explore. Then, with those two rules, it usually does a good job following my request to fix, or add a new feature, or whatever, all within a single context. These recent agents do a much better job of throwing away useless context.

I do think the older models and agents get better results when writing things to a plan document, but I've noticed recent opus and sonnet usually end up just writing the same code to the plan document anyway. That usually ends up confusing itself because it can't connect it to the code around the changes as easily.

Re:Scaling LLMs to Larger Codebases by coldtea on Monday December 22, 2025 @04:07PM (#46359095)
>Instead of considering that something should be written encapsulated into an object to maintain state, it will instead write 5 functions, passing the state as parameters between each function.

Sounds very functional, testable, and clean. Sign me up.

Re:Scaling LLMs to Larger Codebases by the_sleaze_ on Monday December 22, 2025 @04:16PM (#46359199)
I know this is tongue in cheek, but writing functional code in an object oriented language, or even worse just taking a giant procedural trail of tears and spreading it across a few files like a roomba through a pile of dog doo is ... well.. a code smell at best.

I have a user prompt saved called clean code to make a pass through the changes and remove unused, DRY and refactor - literally the high points of uncle bob's Clean Code. It works shockingly well at taking AI code and making it somewhat maintainable.

Re:Scaling LLMs to Larger Codebases by zx8080 on Monday December 22, 2025 @07:53PM (#46361157)
Does its output follow the "no comments needed" principle of the uncle Bob?
Re:Scaling LLMs to Larger Codebases by boredtofears on Monday December 22, 2025 @07:20PM (#46360915)
Care to share the prompt? Sounds useful!
Re:Scaling LLMs to Larger Codebases by the_sleaze_ on Tuesday December 23, 2025 @09:42AM (#46365653)
Sure. Please improve it and come back around to let me know.

https://gist.github.com/prostko/5cf33aba05680b722017fdc0937f...

Re:Scaling LLMs to Larger Codebases by KptMarchewa on Tuesday December 23, 2025 @10:13AM (#46365919)
>I know this is tongue in cheek, but writing functional code in an object oriented language, or even worse just taking a giant procedural trail of tears and spreading it across a few files like a roomba through a pile of dog doo is ... well.. a code smell at best.

After forcing myself over years to apply various OOP principles using multiple languages, I believe OOP has truly been the worst thing to happen to me personally as engineer. Now, I believe what you actually see is just an "aesthetics" issue, moreover it's purely learned aesthetics.

Re:Scaling LLMs to Larger Codebases by coldtea on Tuesday December 23, 2025 @02:38PM (#46368582)
Not so much tongue in cheek, but a little on the light side, sure.

I'd argue writing functional code in C++ (which is multi-paradigm anyway), or Java, or Typescript is fine!

Re:Scaling LLMs to Larger Codebases by indigodaddy on Monday December 22, 2025 @02:19PM (#46357737)
Interesting, for me they almost always assume/write TS.
Re:Scaling LLMs to Larger Codebases by nextaccountic on Tuesday December 23, 2025 @05:20AM (#46364091)
> As of Dec 2025, Sonnet/Opus and GPTCodex are both trained and most good agent tools (ie. opencode, claude-code, codex) have prompts to fire off subagents during an exploration (use the word explore) and you should be able to Research without needing the extra steps of writing plans and resetting context. I'd save that expense unless you need some huge multi-step verifiable plan implemented.

Does the UI shows clearly what portion was done by a subagent?

Re:Scaling LLMs to Larger Codebases by master_crab on Tuesday December 23, 2025 @09:30AM (#46365575)
The UI (terminal) in Claude code will tell you if it has launched a subagent to research a particular file or problem. But it will not be highlighted for you, simply displayed in its record of prompts and actions.
Re:Scaling LLMs to Larger Codebases by mstank on Tuesday December 23, 2025 @10:14AM (#46365938)
If you use the vscode extension you can click to view the sub-agent prompts and see all tool calls.
Re:Scaling LLMs to Larger Codebases by xnorswap on Tuesday December 23, 2025 @10:50AM (#46366279)
Yes it will, this is almost verbatim (redacted product) claude-code output from my current session:

   ● I'll explore the codebase to understand the current <redacted> architecture, testing patterns, and integration points. This will help me formulate effective strategies for reducing QA burden.

   ● 3 Explore agents finished (ctrl+o to expand)
      ├─ Explore <redacted> architecture · 57 tool uses · 60.0k tokens
      │  ⎿  Done
      ├─ Explore current testing approach · 29 tool uses · 51.7k tokens
      │  ⎿  Done
      └─ Explore API integration patterns · 44 tool uses · 71.7k tokens
         ⎿  Done

During agent execution, it also shows what each sub-agent is up to. In ctrl+o mode it'll show the prompts it passed to each sub-agent.
Re:Scaling LLMs to Larger Codebases by dboreham on Tuesday December 23, 2025 @11:05AM (#46366422)
AI can be an FP absolutist too.
Re:Scaling LLMs to Larger Codebases by je42 on Tuesday December 23, 2025 @03:27PM (#46369123)
If claude ignores your claude.md you can force it to read via settings to cat it every session start for example.