61

My tips for using LLM agents to create software

I’ve seen going very successfully using both codex with gpt5 and claude code with opus. You develop a solution with one, then validate it with the other. I’ve fixed many bugs by passing the context between them saying something like: “my other colleague suggested that…”. Bonus thing: I’ve started using symlinks on CLAUDE.md files pointing at AGENTS.md, now I don’t even have to maintain two different context files.

a minute agoLucasoato

One weird trick is to tell the LLM to ask you questions about anything that’s unclear at this point. I tell it eg to ask up to 10 questions. Often I do multiple rounds of these Q&A and I‘m always surprised at the quality of the questions (w/ Opus). Getting better results that way, just because it reduces the degrees of freedom in which the agent can go off in a totally wrong direction.

2 hours agomanmal

Oh great.

LLM -> I've read 1000x stack overflow posts on this. The way coding works, is I produce sub-standard code, and then show it to others on stackoverflow! Others chime in with fixes!

You -> Get the LLM to simulate this process, by asking to to post its broken code, then asking for "help" on "stackoverflow" (eg, the questions it asks), and then after pasting the fix responses.

Hands down, you've discovered why LLM code is so junky all the time. Every time it's seen code on SO and other places, it's been "Here's my broken code" and then Q&A followed by final code. Statistically, symbolically, that's how (from an LLM perspective) coding tends to work.

Because of course many code examples it's seen are derived from this process.

So just go through the simulated exchange, and success.

And the best part is, you get to go through this process every time, to get the final fixed code.

9 minutes agobbarnett

This is a little anthropomorphic. The faster option is to tell it to give you the full content of an ideal context for what you’re doing and adjust or expand as necessary. Less back and forth.

35 minutes agodeadbabe

Can you give me the full content of the ideal context of what you mean here?

26 minutes agomanmal

Certainly!

6 minutes agorzzzt

> One of the weird things I found out about agents is that they actually give up on fixing test failures and just disable tests. They’ll try once or twice and then give up.

Its important to not think in terms of generalities like this. How they approach this depends on your tests framework, and even on the language you use. If disabling tests is easy and common in that language / framework, its more likely to do it.

For testing a cli, i currently use run_tests.sh and never once has it tried to disable a test. Though that can be its own problem when it hits 1 it can't debug.

# run_tests.sh # Handle multiple script arguments or default to all .sh files

scripts=("${@/#/./examples/}")

[ $# -eq 0 ] && scripts=(./examples/*.sh)

for script in "${scripts[@]}"; do

    [ -n "$LOUD" ] && echo $script

    output=$(bash -x "$script" 2>&1) || {

        echo ""

        echo "Error in $script:"

        echo "$output"

        exit 1

    }
done

echo " OK"

----

Another tip. For a specific tasks don't bother with "please read file x.md", Claude Code (and others) accept the @file syntax which puts that into context right away.

an hour agoathrowaway3z

> If you are a heavy user, you should use pay-as-you go pricing

if you’re a heavy user you should pay for a monthly subscription for Claude Code which is significantly cheaper than API costs.

an hour agopmxi
[deleted]
17 minutes ago

Am I alone in spending $1k+/month on tokens? It feels like the most useful dollars i've ever spent in my life. The software I've been able to build on a whim over the last 6 months is beyond my wildest dreams from a a year or two ago.

an hour agoramesh31

> The software I've been able to build on a whim over the last 6 months is beyond my wildest dreams from a a year or two ago.

If you don't mind sharing, I'm really curious - what kind of things do you build and what is your skillset?

an hour agofainpul

Care to show what you've built?

an hour agozppln

If I paid for my API usage directly instead of the plan it'd be like a second mortgage.

3 hours agoCuriouslyC

To be fair, allocating some token for planning (recursively) helps a lot. It requires more hands on work, but produce much better results. Clarifying the tasks and breaking them down is very helpful too. Just you end up spending lots of time on it. On the bright side, Qwen3 30B is quite decent, and best of all "free".

an hour ago3abiton

This lines up with my own experience of learning how to succeed with LLMs. What really makes them work isn't so different from what leads to success in any setting: being careful up front, measuring twice and cutting once.

4 hours agoxwowsersx

I spent much of the last several months using LLM agents to create software. I've written two blog posts about my experience; this is the second post that includes all the things I've learned along the way to get better results, or at least waste less money.

7 hours agoefitz

you should write more about your experience using LLM. Is this solely using LLM?

4 hours agoafeezaziz

[dead]

an hour agoblarg-and-co

> I’m not a professional developer, just a hobbyist with aspirations

Stopped reading.

2 hours agorvz

If you kept reading you'd realize the guy was just humble bragging.

34 minutes agonavane

> I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones.

an hour agoexe34

Why?

2 hours agoindigodaddy

I guess you need an active developer license to write blog posts

an hour agocompootr

Or maybe this industry still trusts experienced software engineers to write well maintained and robust software used by millions that make money.

an hour agorvz

It's quite simple.

I perfer building and using software that is robust, heavily tested and thoroughly reviewed by highly experienced software engineers who understand the code, can detect bugs and can explain what each line of code they write does.

Today, we are now in the phase where embracing mediocre LLM generated code over heavily tested / scrutinized code is now encoraged in this industry - because of the hype of 'vibe coding'.

If you can't even begin to explain the code or point out any bugs generated by LLMs or even off-load architectural decisions to them, you're going to have a big problem in explaining that in code review situations or even in a professional pair-programming scenario.

an hour agorvz

> I perfer building and using software that is robust, heavily tested and thoroughly reviewed by highly experienced software engineers who understand the code, can detect bugs and can explain what each line of code they write does.

that's amazing. by that logic you probably use like one or two pieces of software max. no windows, macos or gnome for you.

an hour agoexe34

LOL.. I was going to say after working in the tech industry.. half the time it is a rats nest in there.

There are excellent engineers.. but their are also many not so great engineers and once the sausage is made it usually isn't a pretty picture inside.

Usually only small young projects or maybe a beautiful component or two. Almost never an entire system/application.

11 minutes agoXenophileJKO

Unfortunately, all of modern software depends on some random obscure dependency that is not properly reviewed https://xkcd.com/2347/