Agent Graph Engineering series: services, contracts, subgraphs, human-in-the-loop

huygl99 · reddit · 2026-11-02

A developer's ongoing Agent Graph Engineering write-up (parts 2-7) walks through production agent architecture decisions one at a time: separating product and agent services before prompts silently rot; declaring shapes once and generating clients so the compiler catches renames; constraining what each step may return; at-most-once execution for irreversible actions plus fencing customer words as data instead of scanning them; splitting one graph into specialists with a supervisor routing ("an agent cannot go off script" is the whole point for refund-issuing systems); and human-in-the-loop failure modes like approvals that silently never send. Upcoming parts cover streaming progress, tracing costs, and swapping models or prompts safely.

Original post →

More from coding & agent

coding & agent channel →