Where does the agent end and plain code begin? One dev's rule for splitting workflows
krunal_builds · reddit · 2026-11-20
A developer sparks a discussion on drawing the line between agent judgment and deterministic code: in a typical workflow, only 4 steps involve real judgment (e.g. parsing messy customer emails) while 8 steps are just lookups, validation and writes.
His working rule: anything with a checkable right answer stays in plain code, and the model only handles messy inputs. The system becomes boring and cheaper to run, but the agent portion looks small — which some clients read as under-delivering.
He asks whether others let the model orchestrate end-to-end with guardrails, or keep orchestration deterministic and call the model at specific points.
More from coding & agent
- Grok Bot 1.2.3 ships flight booking, per-tool permissions and community directory — NicoVerderosa · 2026-11-20
- A 2026 company is just a folder: every department as .md agent files — mdancho84 · 2026-11-20
- Banks warn customers they could be liable for their AI agents' mistakes — beingmodest · 2026-11-20
- Google AI Studio can now build Android apps from a prompt and install them privately, no Play Store listing needed — TawohAwa · 2026-11-20
- No task tracker fits agentic dev: 10-100 concurrent tasks need new patterns — bigblueboo · 2026-11-20
- SelfGraph: open-source versioned knowledge graphs for AI agents over any graph DB — JeremyCMorgan · 2026-11-20