Agents need control flow, not more prompts
131–140 of 348 posts
Re: Agents need control flow, not more prompts
#132Re: Agents need control flow, not more prompts
#133that's why you need a recursive workflow that creates its own artifacts per step that can later be used for verification.
Re: Agents need control flow, not more prompts
#134Re: Agents need control flow, not more prompts
#135I had good success with hooks in claude code. Personally I feel this problem was common with humans as well. We added tools like husky for git commits, for our peers to push code which was linted, type checked etc. I feel hooks are integral part of your code harness, that’s only deterministic way to control coding agents.
Re: Agents need control flow, not more prompts
#136HUMANS need control flow. It's a very effective strategy that has worked wonders in healthcare
Re: Agents need control flow, not more prompts
#137I wonder if a part of the problem isn't just the misapplication of LLMs in the first place. As has been mentioned elsewhere, perhaps the agent's prompt should be to write code to accomplish as much of the task in as repeatable/verifiable/deterministic a way as possible. This would hopefully include validation of the agent's output as well. The overall goal would be to keep the LLM out of doing processing that could b…
My agents often write themselves scripts. Isn't that effectively what you're asking for? Prompting for scripts can also be a useful time and accuracy tactic when you know it'll be a good fit for it.
Re: Agents need control flow, not more prompts
#138My friend, you have invented management.
Re: Agents need control flow, not more prompts
#139all caps in a prompt is a code smell. when you're typing MANDATORY, you should be writing a wrapper, not refining the prose.