News for hackers. Stuff that matters.
Re:Agents need control flow, not more prompts by onion2k on Thursday May 07, 2026 @02:06PM (#48052695)
Agents are probabilistic systems. A common mechanism to get a reliable answer from systems that can have variable output is to run them several times (ideally in separate, isolated instances) and then have something vote on the best result or use the most common result. This happens in things like rockets and aviation where you have multiple systems giving an answer and an orchestrator picking the result.

I've tried doing something similar with AI by running a prompt several times and then have an agent pick the best response. It works fairly well but it burns a lot of tokens.

Re:Agents need control flow, not more prompts by Yokohiii on Thursday May 07, 2026 @03:59PM (#48054098)
An LLMs "wrong" decision is either systemic or biased. They learn "common sense" from human input (i.e. shared datasets, reinforcement learning). If a decision is flat out wrong for you, asking 10 LLMs is unlikely to help.
Re:Agents need control flow, not more prompts by suprfnk on Thursday May 07, 2026 @02:19PM (#48052867)
But then, if an agent picks the best response, how would you know that that is reliable?
Re:Agents need control flow, not more prompts by onion2k on Thursday May 07, 2026 @03:43PM (#48053910)
You could get the agents to output something structured and then use a deterministic test if you're worried about that.
Re:Agents need control flow, not more prompts by xienze on Thursday May 07, 2026 @02:34PM (#48053048)
Obviously you have multiple agents justify why they picked a certain response and then create another agent that picks the solution with the best justification.
Re:Agents need control flow, not more prompts by kkyr on Thursday May 07, 2026 @02:42PM (#48053156)
touché