Agents need control flow, not more prompts

Hacker News Top News

Summary

The article argues that reliable AI agents require deterministic control flow and programmatic verification in software, rather than relying solely on complex prompt chains.

No content available
Original Article
View Cached Full Text

Cached at: 05/08/26, 08:26 AM

# agents need control flow, not more prompts Source: [https://bsuh.bearblog.dev/agents-need-control-flow/](https://bsuh.bearblog.dev/agents-need-control-flow/) [## brian’s thoughts](https://bsuh.bearblog.dev/)[Home](https://bsuh.bearblog.dev/)[Blog](https://bsuh.bearblog.dev/blog/) *07 May, 2026* **Thesis: reliable agents tackling complex tasks need deterministic control flow encoded in software, not increasingly elaborate prompt chains** If you’ve ever resorted to**MANDATORY**or**DO NOT SKIP**, you’ve hit the ceiling of prompting\. Imagine a programming language where statements are**suggestions**and functions return “Success” while**hallucinating**\. Reasoning becomes impossible; reliability collapses as complexity grows\. Software scales through recursive composability: systems built from libraries, modules, and functions\. It’s code all the way down\. Code exposes predictable behavior, enabling local reasoning\. Prompt chains lack this property\. While useful for narrow tasks, prompts are non\-deterministic, weakly specified, and difficult to verify\. Reliability requires moving logic out of prose and into runtime\. We need deterministic scaffolds: explicit state transitions and validation checkpoints that treat the LLM as a component, not the system\. But deterministic orchestration is only half the battle\. In a system prone to silent failure, an agent without aggressive error detection is just a fast way to reach the wrong conclusion\. Without programmatic verification, we are left with three options: 1. **Babysitter**: Keep a human in the loop to catch errors before they propagate\. 2. **Auditor**: Perform exhaustive end\-to\-end verification after the run\. 3. **Prayer**: Vibe accept the outputs\.

Similar Articles

Coding Agents Won’t Be Won by Prompts, but by Runtime Infrastructure

Reddit r/AI_Agents

As coding agents become more capable, the bottleneck shifts from model quality to the infrastructure that supports long-running tasks, including durable state, permissions, checkpoints, observability, and cost controls. The author argues that the best agent products resemble runtime and workflow systems rather than just improved prompt interfaces.

Should AI prompt human more?

Reddit r/AI_Agents

The article argues that AI agents should not just obediently execute tasks but should proactively challenge humans when tasks are vague, contradictory, or risky, transforming from tools into true collaborators.

@ghumare64: https://x.com/ghumare64/status/2052825541057626258

X AI KOLs Timeline

An X thread arguing that production AI agents need operational scaffolding (runbooks, permissions, logs, rollback, verification) rather than just better prompts. The author draws parallels to DevOps evolution, stating that prompts provide advice while runbooks provide control, and that agent systems require platform engineering solutions for permissions, state management, verification, observability, and rollback capabilities.