logoalt Hacker News

herrkaninyesterday at 9:08 AM9 repliesview on HN

The thing that makes it work really well is to make sure it has all the tooling to verify its hypotheses. If you allow it to run the full lifecycle in loops you will be surprised how well it works.


Replies

jfrbfbreudhyesterday at 10:17 AM

Built exactly this for work a few months ago. Claude has a read-only account to the dev DB and a bunch of python postgres tools, I point it at queries/views and ask it optimize, and it has to:

1) verify identical query results

2) run repeatedly to get average, worst, best, etc duration of runs

Sped up so many legacy things that none of us were ever going to bother with.

show 1 reply
mettamageyesterday at 12:59 PM

Just like humans, AI needs a "reality" to check things against. If we don't provide that in an automated way, somehow, it will always make mistakes and we'd have to point it out. Since, at that point, we're just mediating with what reality gives us and what an AI should do with it.

AI doesn't have enough senses yet. It's trapped in a box.

show 4 replies
KptMarchewayesterday at 10:40 AM

Exactly. In the above case, AI should be able to verify it's own hypothesis by having access to the database's table statistics and planner.

moominyesterday at 2:48 PM

I’ve had a lot of success with this. Give it a good enough harness, leave it for a few days and see what it finds that actually holds up.

stogotyesterday at 9:38 AM

What tooling makes this go?

show 5 replies
cenamusyesterday at 10:58 AM

But them it's more like AI assisted performance fuzzing? Just throw stuff against some measuring harness and see what sticks?

show 2 replies
dominotwyesterday at 2:24 PM

Very few problems really have "all the tooling to verify its hypotheses" though. even if you want to construct such an harness.

Also let me ask you why we need better and better and models if what we have already can produce good output with 'all the tooling to verify its hypotheses'

show 3 replies
spiderfarmeryesterday at 11:21 AM

That’s how I do it in my Laravel apps. I simply ask it to hypothesize, benchmark, apply and verify. Laravel has great tools for that.

moron4hireyesterday at 12:17 PM

Do you people just not know about the massive, intractable security issues of doing this? Our do you just not care? Do you think it isn't going to hit you? Why do you continue to think this way in the face of the OpenAI/Hugging Face attack?

show 2 replies