Skip to content
HN On Hacker News ↗

agents need control flow, not more prompts

▲ 590 points 296 comments by bsuh 3w ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

46 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 0 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 203
PEAK AI % 46% · §1
Analyzed
May 7
backend: pangram/v3.3
Segments scanned
1 windows
avg 203 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 203 words · 1 segments analyzed

Human AI-generated
§1 Mixed · 46%

brian’s thoughts Home 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:

Babysitter: Keep a human in the loop to catch errors before they propagate. Auditor: Perform exhaustive end-to-end verification after the run. Prayer: Vibe accept the outputs.