Remix.run Logo
▲ edwin0 10 hours ago

The part that makes me uneasy is when the AI writes both the code and the tests. They might agree with each other and still miss the same thing. How are people here checking for that without doing the whole job twice?

▲Bootstrapper909 10 minutes ago | parent | next [-]

We split them. The agent writing the code never writes the checks it's judged by, and those separate checks caught way more than its own tests did.

▲ch_sm 8 hours ago | parent | prev | next [-]

Not sure about that. This was structurally the same before AI: the author of the code wrote the tests. The tests still helped.

▲seanw444 4 hours ago | parent [-]

The author of the code was physically touching the internals and potentially intuiting obvious shortcomings as they worked on it. That very crucial part is now gone.

▲webarchitect 7 hours ago | parent | prev | next [-]

I like fault injection (fuzzing, chaos), and mutation testing. I think introducing these helps the AI write better tests and helps having some confidence in the tests that are written.

▲fractallyte 6 hours ago | parent | prev | next [-]

You should be using two (or even three) different LLMs. For example: Claude to do the coding, and Codex to do an adversarial review. This can go back and forth for several iterations before converging on an acceptably "correct" version of the code...

Occasionally, Claude may not be able to fix the issue – and it may turn out that Codex can, because it has a different approach.

Either way, at least two LLMs is the only way to get (mostly) reliable code.

▲eivindmeyer 5 hours ago | parent | next [-]

You can automate this entire orchestration with zeroshot.sh, mentioning it since it is relevant here.

▲NishanStepak 5 hours ago | parent | prev [-]

Claude, ChatGPT, Google Gemini, then Replit...

▲unfazed213 2 hours ago | parent | prev | next [-]

[flagged]

▲vijayharre10 8 hours ago | parent | prev [-]

[flagged]