Building an internal agent: Code-driven vs. LLM-driven workflows
1–10 of 36 posts
Re: Building an internal agent: Code-driven vs. LLM-driven workflows
#2You get the benefit of AI CodeGen along with the determinism of conventional logic.
Re: Building an internal agent: Code-driven vs. LLM-driven workflows
#3Why always start with an LLM to solve problems? Using an LLM adds a judgment call, and (at least for now) those judgment calls are not reliable. For something like the motivating example in this article of "is this PR approved" it seems straightforward to get the deterministic right answer using the github API without muddying the waters with an LLM.
Re: Building an internal agent: Code-driven vs. LLM-driven workflows
#4In mapping out the problems that need to be solved with internal workflows, it’s wise to clarify where probabilistic judgments are helpful / required vs. not upfront. If the process is fixed and requires determinism why not just write scripts (code-gen’ed, of course).
Re: Building an internal agent: Code-driven vs. LLM-driven workflows
#5Re: Building an internal agent: Code-driven vs. LLM-driven workflows
#6So we gave the Tasklet agent a filesystem, shell, code runtime, general purpose triggering system, etc so that it could build the automation system it needed.
Re: Building an internal agent: Code-driven vs. LLM-driven workflows
#7Re: Building an internal agent: Code-driven vs. LLM-driven workflows
#8> We still start all workflows using the LLM, which works for many cases. When we do rewrite, Claude Code can almost always rewrite the prompt into the code workflow in one-shot. Why always start with an LLM to solve problems? Using an LLM adds a judgment call, and (at least for now) those judgment calls are not reliable. For something like the motivating example in this article of "is this PR approved" it seems stra…
It's the old principle of avoiding premature optimization.
Re: Building an internal agent: Code-driven vs. LLM-driven workflows
#9It’s sort of difficult to understand why this is even a question - LLM-based / judgment dependent workflows vs script-based / deterministic workflows. In mapping out the problems that need to be solved with internal workflows, it’s wise to clarify where probabilistic judgments are helpful / required vs. not upfront. If the process is fixed and requires determinism why not just write scripts (code-gen’ed, of course).
Of course the specific example in the post seems like it could be one-shotted pretty easily, so it's a strange motivating example.
Re: Building an internal agent: Code-driven vs. LLM-driven workflows
#10If I start out with a "spec" that tells AI what I want, it can create working software for me. Seems great. But let's say some weeks, or months or even years later I realize I need to change my spec a bit. I would like to give the new spec to the AI and have it produce an improved version of "my" software. But there seems to be no way to then evaluate how (much, where, how) the solution has changed/improved because of the changed/improved spec. Becauze AI's outputs are undeterministic, the new solution might be totally different from the previous one. So AI would not seem to support "iterative development" in this sense does it?
My question then really is, why can't there be an LLM that would always give the exact same output for the exact same input? I could then still explore multiple answers by changing my input incrementally. It just seems to me that a small change in inputs/specs should only produce a small change in outputs. Does any current LLM support this way of working?