<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: V12 Labs</title>
    <description>The latest articles on DEV Community by V12 Labs (@v12labs).</description>
    <link>https://dev.to/v12labs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4278503%2Fb8202d5c-c25f-4806-9792-e8e3f7b1e319.png</url>
      <title>DEV Community: V12 Labs</title>
      <link>https://dev.to/v12labs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/v12labs"/>
    <language>en</language>
    <item>
      <title>OpenAI Agents SDK vs LangGraph: Which Should You Use for Production AI Workflows?</title>
      <dc:creator>V12 Labs</dc:creator>
      <pubDate>Wed, 02 Dec 2026 14:27:23 +0000</pubDate>
      <link>https://dev.to/v12labs/openai-agents-sdk-vs-langgraph-which-should-you-use-for-production-ai-workflows-4ido</link>
      <guid>https://dev.to/v12labs/openai-agents-sdk-vs-langgraph-which-should-you-use-for-production-ai-workflows-4ido</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; choose &lt;strong&gt;OpenAI Agents SDK&lt;/strong&gt; when you want a lightweight, OpenAI-native way to build agents with tools, handoffs, guardrails, sessions, and tracing. Choose &lt;strong&gt;LangGraph&lt;/strong&gt; when your workflow needs durable state, explicit control flow, branching, retries, human review, and complex multi-step orchestration.&lt;/p&gt;

&lt;p&gt;For many production systems, the best answer is not one or the other. A team can use &lt;strong&gt;LangGraph as the orchestration layer&lt;/strong&gt; and use &lt;strong&gt;OpenAI Agents SDK inside specific nodes or tasks&lt;/strong&gt; where OpenAI-native agent execution is the right fit.&lt;/p&gt;

&lt;p&gt;At V12 Labs, we think about this less as a framework debate and more as a workflow architecture decision: what needs to be automated, where state must live, where humans need control, and what happens when the model is wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick comparison
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;OpenAI Agents SDK&lt;/th&gt;
&lt;th&gt;LangGraph&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Best fit&lt;/td&gt;
&lt;td&gt;OpenAI-native agent workflows&lt;/td&gt;
&lt;td&gt;Stateful, durable, multi-step agent workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Primary strength&lt;/td&gt;
&lt;td&gt;Fast agent construction around OpenAI models, tools, handoffs, guardrails, sessions, and tracing&lt;/td&gt;
&lt;td&gt;Explicit graph orchestration, state management, branching, persistence, and human-in-the-loop patterns&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Control flow&lt;/td&gt;
&lt;td&gt;Good for agent/tool/handoff patterns&lt;/td&gt;
&lt;td&gt;Stronger for complex workflow control and state transitions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Production durability&lt;/td&gt;
&lt;td&gt;Useful built-in primitives, especially tracing and guardrails&lt;/td&gt;
&lt;td&gt;Often stronger when the workflow needs resumability, checkpoints, retries, or long-running state&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Human review&lt;/td&gt;
&lt;td&gt;Can be implemented around agent actions and guardrails&lt;/td&gt;
&lt;td&gt;Natural fit for approval gates and interrupt/resume workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Browser automation&lt;/td&gt;
&lt;td&gt;Calls browser tools; does not replace browser automation&lt;/td&gt;
&lt;td&gt;Orchestrates browser steps; does not replace browser automation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vendor coupling&lt;/td&gt;
&lt;td&gt;More OpenAI-native&lt;/td&gt;
&lt;td&gt;More model/provider-flexible&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Use both?&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What OpenAI Agents SDK is good at
&lt;/h2&gt;

&lt;p&gt;OpenAI describes the Agents SDK as a framework for building agentic applications with primitives such as agents, tools, handoffs, guardrails, sessions, and tracing.&lt;/p&gt;

&lt;p&gt;That makes it useful when the workflow is centered on OpenAI models and you want to move quickly from a prompt-and-tool prototype into a more structured agent implementation.&lt;/p&gt;

&lt;p&gt;OpenAI Agents SDK is a strong fit when you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An agent that can call defined tools&lt;/li&gt;
&lt;li&gt;Clear handoffs between specialized agents&lt;/li&gt;
&lt;li&gt;Guardrails around inputs or outputs&lt;/li&gt;
&lt;li&gt;Session support for conversational or multi-turn workflows&lt;/li&gt;
&lt;li&gt;Tracing to inspect what the agent did&lt;/li&gt;
&lt;li&gt;A straightforward OpenAI-native development path&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a revenue operations team might use an OpenAI agent to classify inbound requests, call a CRM lookup tool, draft a response, and hand the task to another agent or human reviewer when confidence is low.&lt;/p&gt;

&lt;p&gt;The main tradeoff is that OpenAI Agents SDK is most compelling when you are already comfortable building inside the OpenAI ecosystem. If you need provider flexibility, long-running workflow state, or highly explicit orchestration, you may want a separate orchestration layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What LangGraph is good at
&lt;/h2&gt;

&lt;p&gt;LangGraph is designed for stateful, graph-based agent and workflow applications. Instead of treating an agent as one continuous loop, LangGraph lets teams define nodes, edges, state, conditional transitions, and persistence patterns.&lt;/p&gt;

&lt;p&gt;That makes it especially useful when the workflow has multiple steps that must be controlled, resumed, audited, or approved.&lt;/p&gt;

&lt;p&gt;LangGraph is a strong fit when you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explicit workflow state&lt;/li&gt;
&lt;li&gt;Branching logic&lt;/li&gt;
&lt;li&gt;Multi-agent coordination&lt;/li&gt;
&lt;li&gt;Human approval steps&lt;/li&gt;
&lt;li&gt;Checkpointing or resumability&lt;/li&gt;
&lt;li&gt;Long-running workflows&lt;/li&gt;
&lt;li&gt;Model/provider flexibility&lt;/li&gt;
&lt;li&gt;More control over what happens after each step&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a customer operations workflow may need to classify an issue, retrieve account context, decide whether to open a ticket, draft a reply, pause for human approval, update a system of record, and notify the customer. That is less of a single-agent problem and more of an orchestrated workflow problem.&lt;/p&gt;

&lt;p&gt;LangGraph tends to be the safer production foundation when the agent cannot simply â€œtry againâ€ from scratch. If the workflow modifies customer data, moves money, changes CRM fields, sends external messages, or triggers operational work, explicit state and approval gates matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  OpenAI Agents SDK vs LangGraph for production workflows
&lt;/h2&gt;

&lt;p&gt;The practical difference is this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;OpenAI Agents SDK helps you build the agent.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;LangGraph helps you control the workflow around the agent.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That distinction matters in production.&lt;/p&gt;

&lt;p&gt;A demo agent can often be a single loop: receive task, reason, call tools, respond. A production workflow usually needs more structure:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What state does the system need before the model runs?&lt;/li&gt;
&lt;li&gt;Which tools can the model call?&lt;/li&gt;
&lt;li&gt;What happens if a tool call fails?&lt;/li&gt;
&lt;li&gt;Which actions require human approval?&lt;/li&gt;
&lt;li&gt;Can the workflow resume later?&lt;/li&gt;
&lt;li&gt;How is the run traced and audited?&lt;/li&gt;
&lt;li&gt;What system of record is updated?&lt;/li&gt;
&lt;li&gt;What happens when the model output is incomplete or unsafe?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;OpenAI Agents SDK gives teams useful agent-building primitives. LangGraph gives teams a strong way to model the workflow as a state machine or graph. In many real deployments, those are complementary needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where browser automation fits
&lt;/h2&gt;

&lt;p&gt;Browser automation is often misunderstood in agent discussions.&lt;/p&gt;

&lt;p&gt;Neither OpenAI Agents SDK nor LangGraph replaces browser automation tools such as Playwright, Selenium, browser APIs, or purpose-built RPA/browser-control systems. Instead, they can coordinate when and how those tools are used.&lt;/p&gt;

&lt;p&gt;A production browser-agent workflow usually has three layers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Browser execution layer:&lt;/strong&gt; the system that clicks, types, extracts page data, uploads files, or navigates web apps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent reasoning layer:&lt;/strong&gt; the model-driven component that interprets instructions, selects tools, or drafts next actions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workflow orchestration layer:&lt;/strong&gt; the control system that tracks state, retries failures, pauses for review, and records outcomes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;OpenAI Agents SDK can work well in the reasoning layer. LangGraph can work well in the orchestration layer. Browser tools handle the actual browser interaction.&lt;/p&gt;

&lt;p&gt;For sensitive workflows, human review should appear before irreversible actions such as submitting forms, sending messages, changing account settings, deleting records, or updating customer-facing data.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to choose OpenAI Agents SDK
&lt;/h2&gt;

&lt;p&gt;Choose OpenAI Agents SDK when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your system is primarily OpenAI-based&lt;/li&gt;
&lt;li&gt;You want a lightweight framework for agents and tools&lt;/li&gt;
&lt;li&gt;You need handoffs between specialized agents&lt;/li&gt;
&lt;li&gt;You want guardrails and tracing built into the agent development flow&lt;/li&gt;
&lt;li&gt;Your workflow is relatively contained&lt;/li&gt;
&lt;li&gt;You do not need a complex durable graph around every step&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Internal assistant workflows&lt;/li&gt;
&lt;li&gt;Research and summarization agents&lt;/li&gt;
&lt;li&gt;Tool-using support assistants&lt;/li&gt;
&lt;li&gt;CRM enrichment helpers&lt;/li&gt;
&lt;li&gt;Drafting and classification workflows&lt;/li&gt;
&lt;li&gt;Agent prototypes that may later move into a larger orchestration system&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;OpenAI Agents SDK is often the faster starting point when the main question is, â€œCan this agent perform the task with the right tools and guardrails?â€&lt;/p&gt;

&lt;h2&gt;
  
  
  When to choose LangGraph
&lt;/h2&gt;

&lt;p&gt;Choose LangGraph when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The workflow has many steps or branches&lt;/li&gt;
&lt;li&gt;State must persist across the run&lt;/li&gt;
&lt;li&gt;You need human-in-the-loop approval&lt;/li&gt;
&lt;li&gt;You need checkpointing, resuming, or retry behavior&lt;/li&gt;
&lt;li&gt;Different agents or tools need to coordinate&lt;/li&gt;
&lt;li&gt;You want more model/provider flexibility&lt;/li&gt;
&lt;li&gt;The workflow touches production systems of record&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Customer support resolution workflows&lt;/li&gt;
&lt;li&gt;Sales operations automations&lt;/li&gt;
&lt;li&gt;Onboarding workflows&lt;/li&gt;
&lt;li&gt;Multi-step research and reporting pipelines&lt;/li&gt;
&lt;li&gt;Compliance-sensitive review systems&lt;/li&gt;
&lt;li&gt;Browser workflows that need pause/resume and auditability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;LangGraph is often the better foundation when the main question is, â€œHow do we make this workflow reliable, observable, and controllable in production?â€&lt;/p&gt;

&lt;h2&gt;
  
  
  When to use both
&lt;/h2&gt;

&lt;p&gt;Using both can make sense when each tool has a clear job.&lt;/p&gt;

&lt;p&gt;One common pattern:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LangGraph&lt;/strong&gt; manages the overall workflow state, routing, retries, and human approval.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenAI Agents SDK&lt;/strong&gt; powers a specific agent step inside the workflow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Browser automation or API tools&lt;/strong&gt; execute actions against external systems.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A product layer&lt;/strong&gt; gives operators a way to review, approve, and correct outputs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;LangGraph starts a customer onboarding workflow.&lt;/li&gt;
&lt;li&gt;A node gathers account data from internal systems.&lt;/li&gt;
&lt;li&gt;An OpenAI agent drafts a personalized onboarding plan.&lt;/li&gt;
&lt;li&gt;LangGraph routes low-confidence cases to human review.&lt;/li&gt;
&lt;li&gt;A browser/API tool updates the CRM only after approval.&lt;/li&gt;
&lt;li&gt;The workflow logs the decision and continues to the next step.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This architecture avoids forcing one framework to solve every problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical decision framework
&lt;/h2&gt;

&lt;p&gt;Use this checklist before choosing a framework:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Is this an agent problem or a workflow problem?
&lt;/h3&gt;

&lt;p&gt;If the core challenge is tool use, reasoning, handoffs, and model behavior, start with OpenAI Agents SDK.&lt;/p&gt;

&lt;p&gt;If the core challenge is state, branching, retries, approvals, and long-running execution, start with LangGraph.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. How much state does the workflow need?
&lt;/h3&gt;

&lt;p&gt;Simple state can live inside an agent session or application database. Complex state usually benefits from explicit workflow modeling.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. What can go wrong?
&lt;/h3&gt;

&lt;p&gt;If failure only produces a bad draft, the system can be simple. If failure updates a customer record, sends an email, submits a form, or triggers downstream work, you need stronger controls.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Where do humans need to review?
&lt;/h3&gt;

&lt;p&gt;Human review should not be an afterthought. Design it into the workflow before irreversible actions.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. How important is provider flexibility?
&lt;/h3&gt;

&lt;p&gt;If you expect to use multiple model providers, LangGraph may be a better neutral orchestration layer. If you are standardizing on OpenAI, OpenAI Agents SDK may reduce complexity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom line
&lt;/h2&gt;

&lt;p&gt;OpenAI Agents SDK and LangGraph solve overlapping but different problems.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;strong&gt;OpenAI Agents SDK&lt;/strong&gt; when you want a focused, OpenAI-native agent framework.&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;LangGraph&lt;/strong&gt; when you need durable, stateful orchestration for production workflows.&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;both&lt;/strong&gt; when LangGraph should control the workflow and OpenAI Agents SDK should power specific agent steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The best production agent systems are rarely just â€œan agent.â€ They are workflow systems with clear state, controlled tools, review points, observability, and a product surface for the humans who still need to make decisions.&lt;/p&gt;

&lt;p&gt;If you are designing a production AI workflow, V12 Labs can help map the workflow before you build. See our work on &lt;a href="https://dev.to/services/ai-solutions"&gt;AI workflow systems&lt;/a&gt; and &lt;a href="https://dev.to/services/custom-software"&gt;AI-native product engineering&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>openai</category>
      <category>langgraph</category>
    </item>
    <item>
      <title>Your first AI agent shouldn't be autonomous</title>
      <dc:creator>V12 Labs</dc:creator>
      <pubDate>Wed, 02 Dec 2026 14:27:06 +0000</pubDate>
      <link>https://dev.to/v12labs/your-first-ai-agent-shouldnt-be-autonomous-47o7</link>
      <guid>https://dev.to/v12labs/your-first-ai-agent-shouldnt-be-autonomous-47o7</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Your first AI agent should observe and recommend before it is allowed to act. Connect it to your systems through read-only tools, write down how decisions are actually made, run it next to the people doing the work today, and only then hand it low-risk actions with approval on anything consequential. Autonomy is something the agent earns through measured reliability, not a setting you switch on during launch week.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why autonomy is the wrong starting point
&lt;/h2&gt;

&lt;p&gt;Most of the conversation around agents is about how much they can do on their own. That is an interesting research question. Inside a real business, it is the wrong first question. The useful first question is narrower: can this agent reliably do one useful thing, and how would we know?&lt;/p&gt;

&lt;p&gt;An agent that can update records, send emails, and issue refunds on day one has also been given the ability to make every mistake at machine speed. You have not yet seen how it reasons about your edge cases, what information it is missing, or where your own instructions are ambiguous. Giving it write access before you know those things means you learn about them from your customers.&lt;/p&gt;

&lt;p&gt;The approach below reverses the order. It treats autonomy as the last step of a deployment, not the first. Before you start, you can also check whether the task belongs in a deterministic workflow or an agent with our &lt;a href="https://www.v12labs.io/tools/workflow-vs-agent" rel="noopener noreferrer"&gt;Workflow vs. AI Agent Decision Calculator&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Give it eyes, not hands
&lt;/h2&gt;

&lt;p&gt;Start by connecting the relevant systems through read-only tools. With MCP (Model Context Protocol), that usually means exposing search and retrieval tools for your CRM, ticketing system, document store, and database, and deliberately leaving out any tool that creates, updates, or deletes.&lt;/p&gt;

&lt;p&gt;At this stage the agent can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Search documents and policies&lt;/li&gt;
&lt;li&gt;Retrieve customer, order, or account records&lt;/li&gt;
&lt;li&gt;Summarize what is happening on a case&lt;/li&gt;
&lt;li&gt;Draft a recommended next action&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It cannot change anything. That constraint is useful. It lets you evaluate the agent's understanding separately from its ability to act, and it removes most of the risk from early testing. If the agent misreads a record, the cost is a wrong suggestion that a person ignores, not a wrong update that a person has to find and undo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Teach it how decisions are made
&lt;/h2&gt;

&lt;p&gt;Most of what makes a business decision correct is not in any database. It lives in people's heads: which customers get an exception, what "urgent" means for this team, when a refund needs a manager, which supplier is unreliable in December.&lt;/p&gt;

&lt;p&gt;Write those rules, edge cases, and workflows down as Markdown skills. A skill is a focused document the agent loads when a task calls for it: how to handle a refund request, how to triage a support ticket, how to qualify an inbound lead.&lt;/p&gt;

&lt;p&gt;Not everything belongs in a system prompt. A single giant prompt becomes hard to maintain, hard to review, and hard to test. Separate skills let you:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Maintenance&lt;/th&gt;
&lt;th&gt;Review&lt;/th&gt;
&lt;th&gt;Testing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One large system prompt&lt;/td&gt;
&lt;td&gt;Every change touches everything&lt;/td&gt;
&lt;td&gt;Hard to see what changed&lt;/td&gt;
&lt;td&gt;Failures are hard to attribute&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Markdown skills per workflow&lt;/td&gt;
&lt;td&gt;Change one file per rule change&lt;/td&gt;
&lt;td&gt;Ops owners can read and edit&lt;/td&gt;
&lt;td&gt;Failures map to a specific skill&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Skills also give non-engineers a place to contribute. The person who knows the refund policy best can review the refund skill directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Run it alongside a human
&lt;/h2&gt;

&lt;p&gt;Now run a shadow period. Give the agent around 20 real cases that your team is already handling. The agent produces its decision and reasoning; the people currently doing the work produce theirs. Then compare.&lt;/p&gt;

&lt;p&gt;For every case, ask three questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Where does the agent disagree with the human?&lt;/strong&gt; Sometimes the agent is wrong. Sometimes the human was inconsistent. Both are worth knowing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What information was missing?&lt;/strong&gt; If the agent could not see the contract terms or the last support conversation, that is a tool or integration gap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Which instructions were ambiguous?&lt;/strong&gt; If two reasonable readings of a skill lead to different outcomes, the skill needs rewriting.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Those failures are your actual development backlog. They are far more valuable than a generic list of features, because each one is tied to a real case in your business.&lt;/p&gt;

&lt;p&gt;Illustrative example. Not a client result. Imagine an agent that recommends how to handle incoming refund requests. In a shadow run of 20 cases, it matches the team on most routine requests but flags two customers for full refunds that the team would have handled with store credit. Looking closer, the agent never saw the internal note that those accounts were on a special agreement. The fix is not a smarter model. It is a read-only tool for account notes and one line in the refund skill.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Give it hands, gradually
&lt;/h2&gt;

&lt;p&gt;Once the shadow run shows the agent agreeing with your team on the cases that matter, start giving it actions. Do it in tiers.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tier&lt;/th&gt;
&lt;th&gt;Example actions&lt;/th&gt;
&lt;th&gt;Control&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Low risk&lt;/td&gt;
&lt;td&gt;Add an internal note, tag a ticket, draft a reply&lt;/td&gt;
&lt;td&gt;Runs automatically, logged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medium risk&lt;/td&gt;
&lt;td&gt;Send a templated email, update a CRM field&lt;/td&gt;
&lt;td&gt;Human approves before it runs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;High risk&lt;/td&gt;
&lt;td&gt;Issue a refund, change a contract, delete data&lt;/td&gt;
&lt;td&gt;Human approves, with a second check&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Require approval for anything consequential. Track how often approvals are accepted as-is, edited, or rejected. When an action type has a steady record of being approved without edits, you have evidence for moving it to a lower tier. When it does not, you know exactly where to keep working.&lt;/p&gt;

&lt;p&gt;Expand autonomy only after you have measured reliability, and expand it one action type at a time. That way, if something goes wrong, you know which change introduced it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this looks like as a plan
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Phase&lt;/th&gt;
&lt;th&gt;Agent capability&lt;/th&gt;
&lt;th&gt;Output you review&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Eyes&lt;/td&gt;
&lt;td&gt;Read-only search and retrieval&lt;/td&gt;
&lt;td&gt;Summaries and recommendations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rules&lt;/td&gt;
&lt;td&gt;Markdown skills per workflow&lt;/td&gt;
&lt;td&gt;Skills reviewed by process owners&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shadow&lt;/td&gt;
&lt;td&gt;Decisions on real cases, no actions&lt;/td&gt;
&lt;td&gt;Disagreement and gap log&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hands&lt;/td&gt;
&lt;td&gt;Tiered actions with approvals&lt;/td&gt;
&lt;td&gt;Approval rate per action type&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The goal is not an agent that can do everything. It is an agent that reliably does something useful, with a clear record of why you trust it.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Doesn't starting read-only slow the project down?&lt;/strong&gt;&lt;br&gt;
It shortens the part that usually takes longest: finding and fixing the failures you would otherwise discover in production. A read-only agent is already useful as a research and drafting assistant while you build trust.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many cases should a shadow run include?&lt;/strong&gt;&lt;br&gt;
Around 20 real cases is a practical starting point for one workflow. The aim is enough variety to surface missing information and ambiguous rules, not a statistically perfect benchmark.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What belongs in a skill versus the system prompt?&lt;/strong&gt;&lt;br&gt;
Keep the system prompt for identity, tone, and global safety rules. Put workflow-specific rules, edge cases, and examples in skills that the agent loads only when the task needs them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When can an action run without approval?&lt;/strong&gt;&lt;br&gt;
When it is low risk, reversible, and has a consistent record of being approved without edits during the approval period. Promote one action type at a time and keep logging.&lt;/p&gt;

&lt;p&gt;Autonomy should be earned, not assumed. If you want help planning a first agent that starts with eyes and earns its hands, &lt;a href="https://www.v12labs.io/build-your-ai-workflow" rel="noopener noreferrer"&gt;map your workflow with us&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>automation</category>
      <category>programming</category>
    </item>
    <item>
      <title>Bland.ai + Twilio Integration: How We Built Production AI Phone Agents</title>
      <dc:creator>V12 Labs</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:28:36 +0000</pubDate>
      <link>https://dev.to/v12labs/blandai-twilio-integration-how-we-built-production-ai-phone-agents-2gjl</link>
      <guid>https://dev.to/v12labs/blandai-twilio-integration-how-we-built-production-ai-phone-agents-2gjl</guid>
      <description>&lt;p&gt;There's a lot of marketing copy out there about "AI phone agents." Almost none of it is engineering. This post is the engineering version: what we actually built when we built VocalDesk, what stack we chose and why, what the third-party services actually do (and don't do), and the production layer you have to build yourself if you want something a real business will trust on its real phone numbers.&lt;/p&gt;

&lt;p&gt;If you're evaluating Bland.ai, comparing it to Retell or Vapi, deciding whether to roll your own with Twilio + Deepgram + ElevenLabs, or just trying to understand what the inside of a real voice-agent product looks like, this is for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision: build the voice stack ourselves, or buy it?
&lt;/h2&gt;

&lt;p&gt;When we started VocalDesk, the first real architectural choice was "do we own the voice infrastructure or do we rent it?"&lt;/p&gt;

&lt;p&gt;Owning it looks like: Twilio Programmable Voice for telephony, Deepgram or AssemblyAI for streaming STT, an LLM (Claude, GPT-4) for the conversation logic, ElevenLabs or Cartesia for TTS, and a Node service stitching it all together with WebRTC or media streams. You write the turn-taking logic. You handle interruptions. You manage the streaming pipelines. You optimize for latency end-to-end.&lt;/p&gt;

&lt;p&gt;Renting it looks like: pick a vertically integrated provider (Bland.ai, Retell, Vapi) that ships the entire pipeline and exposes a single API. You give up control of the voice stack to get a 30-day path to production.&lt;/p&gt;

&lt;p&gt;We chose to rent. Specifically, &lt;strong&gt;Bland.ai for the voice runtime, Twilio for telephony (BYOT), and a custom application layer on top.&lt;/strong&gt; Here's the math behind that choice and the reality behind the trade-offs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Bland.ai actually does
&lt;/h2&gt;

&lt;p&gt;Bland is a vertically integrated voice stack. They run their own STT, their own LLM orchestration layer, and their own TTS, on dedicated GPU infrastructure they market as latency-optimized. Their developer surface is API-first:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A REST API to dispatch outbound calls and configure inbound numbers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conversational Pathways.&lt;/strong&gt; A visual node graph where you define the call flow (Default nodes for the LLM, Webhook nodes that hit your backend mid-call, Knowledge Base nodes, Transfer nodes, End Call nodes), with &lt;code&gt;{{variable}}&lt;/code&gt; extraction and conditional transitions&lt;/li&gt;
&lt;li&gt;Real-time webhooks (mid-call, your service responds and the response gets injected into the dialogue)&lt;/li&gt;
&lt;li&gt;Post-call webhooks (transcript, recording URL, extracted variables fire to your endpoint when the call ends)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pathways is the core authoring abstraction. If you've built chatbots, think of it as a state machine where each state is an LLM-driven node and the edges are conditions on extracted variables. It works for structured calls (appointment booking, lead qualification, simple support) and falls down on open-ended conversations that need reasoning beyond a single node prompt.&lt;/p&gt;

&lt;p&gt;What Bland gives you, all-in: voice in, voice out, a flow engine, telephony bundled or BYOC. What you avoid building: streaming STT, LLM orchestration with interruption handling, low-latency TTS, codec negotiation, dual-stream audio, voice activity detection, the entire mess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Twilio (BYOT) instead of Bland's own numbers
&lt;/h2&gt;

&lt;p&gt;Bland sells phone numbers natively. We didn't use them. We used Twilio numbers and connected them to Bland through their &lt;strong&gt;Bring Your Own Twilio (BYOT)&lt;/strong&gt; flow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Generate Twilio Account SID + Auth Token in the Twilio Console&lt;/li&gt;
&lt;li&gt;POST them to Bland to get an &lt;code&gt;encrypted_key&lt;/code&gt; (shown once)&lt;/li&gt;
&lt;li&gt;Import existing Twilio numbers into Bland via the Add-ons surface&lt;/li&gt;
&lt;li&gt;For outbound calls, include &lt;code&gt;encrypted_key&lt;/code&gt; and a Twilio-owned &lt;code&gt;from&lt;/code&gt; number in the call request&lt;/li&gt;
&lt;li&gt;For inbound, configure the imported number with the Authorization + &lt;code&gt;encrypted_key&lt;/code&gt; headers&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The reason for the extra step: Twilio is the most universally trusted carrier substrate in the developer world. Customer compliance teams know Twilio. Number portability through Twilio is well-trodden. Twilio's deliverability, A2P 10DLC registration, STIR/SHAKEN attestation, and DNC list integrations are mature in a way that's hard to verify on a young provider. If a customer wants their phone numbers to live somewhere they can move, Twilio is the answer.&lt;/p&gt;

&lt;p&gt;The cost is one extra hop in the request flow and a small bit of credential plumbing. Worth it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The latency reality
&lt;/h2&gt;

&lt;p&gt;Bland's marketing positions them as "lowest latency on the planet." They don't publish a specific milliseconds number. Third-party reviews (including from competitors and from neutral developers) consistently put real-world turn-taking around &lt;strong&gt;800ms average, with tail latency reaching ~2.5s&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This is fine for many use cases. It's not fine for all.&lt;/p&gt;

&lt;p&gt;Conversational interruption handling, where the user starts talking over the agent, works but isn't crisp. Long-running webhook calls to your backend will be felt by the caller. If you push a real-time webhook node that hits a slow CRM, the silence on the line is real.&lt;/p&gt;

&lt;p&gt;Practically, what we did:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Aggressively cache anything we'd otherwise lookup in real time (customer profile, recent ticket history, account status). Cache on call start; let the in-call webhook nodes hit the cache, not the source of truth.&lt;/li&gt;
&lt;li&gt;Anything that takes more than ~300ms moves to a post-call workflow. The agent says "I'm getting that for you," logs the request, and the lookup happens after the call with a follow-up SMS or email.&lt;/li&gt;
&lt;li&gt;Use Bland's &lt;code&gt;wait_for_response&lt;/code&gt; semantics with realistic timeouts. A 1.5s timeout sounds fine and feels broken; 3-4s feels like a real conversation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your use case genuinely needs sub-300ms turn-taking (say you're building a real-time AI co-pilot on top of human calls), Bland is the wrong choice. Build it yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Bland doesn't do (and what VocalDesk had to build)
&lt;/h2&gt;

&lt;p&gt;This is the part most evaluations skip. Pathways stops at the dial tone. Everything before and after a call is yours. Specifically:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Post-call workflows.&lt;/strong&gt; When a call ends, Bland POSTs a payload (transcript, recording URL, extracted variables, call ID) to your webhook. From there, you own everything: queueing the work, classifying the outcome, syncing to a CRM, sending follow-ups, escalating. We use a job queue (BullMQ on Redis) and Postgres for everything that lives beyond the call.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transcript and recording storage.&lt;/strong&gt; Bland holds these transiently. For compliance (recording retention policies), search ("show me every call where the customer mentioned X"), and analytics, we mirror everything to S3 (recordings) and Postgres + pgvector (transcripts with embeddings).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real RAG over a knowledge base.&lt;/strong&gt; Bland's KB node accepts pasted text. Functional, not great. For real document grounding (PDFs, web docs, evolving knowledge bases with citations), we built our own retrieval layer. Chunking, embeddings, reranking, citation extraction. The agent calls a webhook node, which hits our retrieval API, which returns the answer with sources, which the agent reads back.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CRM and calendar integration.&lt;/strong&gt; No native HubSpot, Salesforce, Google Calendar. The pattern: webhook node mid-call hits &lt;code&gt;/api/customer-lookup&lt;/code&gt; or &lt;code&gt;/api/book-appointment&lt;/code&gt;, which proxies to the actual integration and returns JSON we consume as variables. Building this generically (so customers can configure their own CRM without code) is most of the application work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Analytics and QA.&lt;/strong&gt; Bland exposes raw call data. Call success classification, sentiment scoring, agent grading, leaderboards, drill-downs by reason: all yours. We built this on top of the post-call webhook payloads with a separate analytics LLM pass.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Compliance.&lt;/strong&gt; TCPA call windows, DNC scrubbing, consent logging, A2P registration if you do SMS follow-ups. All your responsibility. None of this is glamorous and all of it is the kind of thing that quietly kills a product if you don't get it right.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Authentication / identity verification.&lt;/strong&gt; DTMF capture is supported, but the lookup ("verify this is who they say they are by checking the SSN-last-4 against our system") is a webhook node calling your service.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A/B testing.&lt;/strong&gt; No native experimentation. We built a thin layer that routes calls to different pathway IDs based on a configurable split.&lt;/p&gt;

&lt;p&gt;If you stack all of this up, the application layer ends up being roughly &lt;strong&gt;70% of the engineering effort&lt;/strong&gt;. Bland is the fast 30% that would otherwise be six months of voice infra.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we'd do differently next time
&lt;/h2&gt;

&lt;p&gt;Two things.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One: build a provider abstraction earlier.&lt;/strong&gt; We started with Bland-specific webhook payloads flowing directly into our handlers. When we evaluated adding Retell as a fallback (different latency profile, different pricing model), we found Bland-shaped assumptions all over the application layer. We've since refactored to a &lt;code&gt;VoiceProvider&lt;/code&gt; interface that normalizes call lifecycle events, transcript payloads, and webhook semantics across providers. Doing this on day one would have saved a chunk of work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two: treat pricing volatility as a real risk.&lt;/strong&gt; Bland raised the Start plan from $0.09/min to $0.14/min in Dec 2025 (~55%). They charge per-minute on transfers, voicemails, and even no-answer outbound calls. None of this is unique to Bland (voice AI providers are still sorting out their pricing), but it means your unit economics need a buffer. We model gross margin assuming ~$0.20/min all-in, not the headline number.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five-line summary
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Use a vertically integrated provider&lt;/strong&gt; (Bland, Retell, Vapi) unless you have a specific reason to own the voice stack. The 30%/70% split between voice infra and application layer is real, and renting the 30% is almost always correct.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Use Twilio for telephony&lt;/strong&gt; even if your voice provider sells numbers. Customers trust Twilio. Number portability and compliance maturity matter.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Build the application layer for portability.&lt;/strong&gt; Provider abstraction on day one, not day 600.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Treat the post-call layer as the product.&lt;/strong&gt; That's where the business value lives: analytics, CRM sync, follow-ups, compliance, search. The call itself is a thin slice.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Latency is lower than the marketing says.&lt;/strong&gt; Plan for 800ms average. If you need lower, build it yourself or pick a different architecture.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  We help startups ship voice agents that actually work
&lt;/h2&gt;

&lt;p&gt;If you're building an AI phone agent product, V12 Labs has done this. We built VocalDesk on the architecture above, and we build custom voice agent systems for clients on the same foundations: Bland or Retell for the voice runtime, Twilio for telephony, a custom application layer that handles the 70% nobody talks about.&lt;/p&gt;

&lt;p&gt;If you're trying to figure out whether to build it yourself, hire an agency, or buy a SaaS, &lt;a href="https://www.v12labs.io/#calendar" rel="noopener noreferrer"&gt;book a call&lt;/a&gt; and we'll walk through the architecture before any code gets written. The right choice depends on your latency needs, your compliance constraints, your team's depth, and your willingness to own infrastructure.&lt;/p&gt;

&lt;p&gt;The architecture above is the same regardless. Get it right and the implementation is just typing.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://www.v12labs.io/blog/how-we-built-vocaldesk" rel="noopener noreferrer"&gt;V12 Labs&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>twilio</category>
      <category>architecture</category>
      <category>voiceai</category>
    </item>
    <item>
      <title>How We Built StoryFlow: AI-Powered Narrative Tools for Content Creators</title>
      <dc:creator>V12 Labs</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:28:07 +0000</pubDate>
      <link>https://dev.to/v12labs/how-we-built-storyflow-ai-powered-narrative-tools-for-content-creators-29m4</link>
      <guid>https://dev.to/v12labs/how-we-built-storyflow-ai-powered-narrative-tools-for-content-creators-29m4</guid>
      <description>&lt;p&gt;Content creators don't have a writing problem. They have a structure problem. Most people know what they want to say, they just can't figure out how to say it in a way that holds attention from start to finish. StoryFlow was our answer to that. It's an open-source AI tool we built at V12 Labs that helps creators structure, draft, and refine narrative-driven content. Here's the full build story.&lt;/p&gt;

&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The Problem We Kept Seeing&lt;/li&gt;
&lt;li&gt;What StoryFlow Actually Does&lt;/li&gt;
&lt;li&gt;The Tech Stack Decision&lt;/li&gt;
&lt;li&gt;What the AI Actually Does Under the Hood&lt;/li&gt;
&lt;li&gt;What Was Unexpectedly Hard&lt;/li&gt;
&lt;li&gt;What We Shipped vs. What We Cut&lt;/li&gt;
&lt;li&gt;What We'd Do Differently&lt;/li&gt;
&lt;li&gt;The Open-Source Repo&lt;/li&gt;
&lt;li&gt;Ready to Build?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Problem We Kept Seeing
&lt;/h2&gt;

&lt;p&gt;We work with a lot of early-stage founders at V12 Labs. Almost all of them have content goals, blog posts, LinkedIn articles, pitch narratives, onboarding docs. And almost all of them hit the same wall: they can write sentences but they can't structure an argument.&lt;/p&gt;

&lt;p&gt;The typical workflow looked like this: open a blank document, write a few paragraphs, realize it's going nowhere, start over, give up. The problem wasn't a lack of ideas or writing ability. It was that narrative structure, how to open, how to build tension, how to land a point, is a skill most people were never taught explicitly.&lt;/p&gt;

&lt;p&gt;Existing AI writing tools made this worse in a specific way. They generated text fluently but structurelessly. You'd get paragraphs that sounded good individually but didn't build toward anything. The creator still had to do the hard structural work themselves.&lt;/p&gt;

&lt;p&gt;We wanted to flip the workflow. Instead of AI generating text that creators then had to structure, we wanted AI doing the structural scaffolding first so creators could fill in what only they know, the specific experiences, examples, and opinions that make content worth reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  What StoryFlow Actually Does
&lt;/h2&gt;

&lt;p&gt;StoryFlow is built around three core functions:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Narrative arc generation&lt;/strong&gt;. You give it a topic and a target audience. It returns 3â€“5 structural arc options (problem-agitation-solution, hero's journey, before/after/bridge, listicle-with-spine, etc.) with a brief explanation of when each works best.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Section scaffolding&lt;/strong&gt;. Once you pick an arc, it breaks the piece into sections with a purpose statement for each ("this section needs to establish the reader's pain before introducing your solution") and suggested transition logic between sections.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Draft review&lt;/strong&gt;. You paste in a draft section and it tells you what's working narratively, what's missing, and what to cut, without rewriting your words. It's advisory, not generative. The goal is to make your writing better, not replace it.&lt;/p&gt;

&lt;p&gt;What it deliberately doesn't do: write your content for you. That was a product decision we made early and held to. If the AI writes it, it doesn't sound like you. Content that doesn't sound like you doesn't build trust with your audience. StoryFlow is a structural coach, not a ghostwriter.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tech Stack Decision
&lt;/h2&gt;

&lt;p&gt;We built StoryFlow on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js + TypeScript&lt;/strong&gt;, our default frontend stack across almost everything at V12 Labs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anthropic Claude (claude-3-5-haiku)&lt;/strong&gt;, for the narrative intelligence layer&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supabase&lt;/strong&gt;, for user state, saved arcs, and draft history&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vercel&lt;/strong&gt;, deployment, edge functions for the AI calls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Why Claude over GPT-4o for this specific product? Two reasons. First, Claude's instruction-following is tighter for constrained outputs, when we asked it to return structured arc options in a specific JSON format, it was more consistent than GPT-4o in our testing. Second, Claude tends to be more conservative about over-generating. For a tool where we explicitly didn't want the AI writing paragraphs of content, that mattered.&lt;/p&gt;

&lt;p&gt;We considered building this on an open-source model (Llama 3, Mistral) to keep costs at zero, but the structural reasoning quality wasn't there at the time we built it. The gap in narrative coherence was significant enough that we stuck with Claude.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the AI Actually Does Under the Hood
&lt;/h2&gt;

&lt;p&gt;The core intelligence in StoryFlow isn't a single large prompt, it's a chain of smaller, constrained calls.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Arc generation call:&lt;/strong&gt; Takes topic + audience + content type (blog post, LinkedIn article, video script, pitch narrative) and returns a structured JSON array of arc options with names, descriptions, and ideal-use-case notes. We constrain the output format tightly, no freeform text, pure structured data. The UI renders it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Section scaffolding call:&lt;/strong&gt; Takes the selected arc and the specific topic/angle and returns a section-by-section breakdown. Each section object has: name, word-count target, purpose (what this section must accomplish narratively), transition cue (the last sentence of this section should set up...), and common mistakes to avoid in this section type.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Draft review call:&lt;/strong&gt; This is the most complex. It takes a section, its stated purpose from the scaffolding, and the full arc context, then returns an assessment across four dimensions: narrative function (does it do what it's supposed to?), clarity (can a non-expert follow this?), momentum (does it move the reader forward?), and specificity (is it concrete or generic?). Each dimension gets a 1â€“3 score and a one-line note. No rewrites, no generated replacement text.&lt;/p&gt;

&lt;p&gt;The entire system is built around keeping the human in control of the words. The AI handles the structural meta-layer only.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Was Unexpectedly Hard
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Getting the arc generation to be genuinely useful, not just named differently.&lt;/strong&gt; Our first version returned five arc options that were basically the same structure with different labels. The differentiation felt cosmetic. We had to spend a lot of time on the prompting and the arc taxonomy to make sure each option was actually a meaningfully different approach that would produce a structurally different piece of content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The draft review calibration.&lt;/strong&gt; Getting the AI to be critical without being discouraging, and to be specific without being prescriptive, took a lot of prompt iteration. Early versions either gave vague positive feedback ("this section has good energy") or rewrote entire paragraphs against our explicit instructions. The final prompt is about 400 tokens of careful instruction on what advisory-without-rewriting means in practice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Supabase real-time state.&lt;/strong&gt; We wanted users to see their arc and scaffolding update live as they edited their topic or changed their audience. The Supabase real-time subscriptions worked but added latency we didn't anticipate at the edge. We ended up with a hybrid approach, optimistic local state with Supabase sync on blur rather than on keypress.&lt;/p&gt;

&lt;h2&gt;
  
  
  What We Shipped vs. What We Cut
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Shipped:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Arc generation and selection&lt;/li&gt;
&lt;li&gt;Full section scaffolding with purpose statements&lt;/li&gt;
&lt;li&gt;Draft review for individual sections&lt;/li&gt;
&lt;li&gt;Save/load functionality for arcs and drafts&lt;/li&gt;
&lt;li&gt;Export to markdown and plain text&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cut:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cross-section coherence review (checking if section 3 sets up section 4 properly), the prompt complexity was too high and output quality too variable&lt;/li&gt;
&lt;li&gt;LinkedIn-specific post formatting mode, we built it, tested it, decided it was out of scope for v1&lt;/li&gt;
&lt;li&gt;Team collaboration (multiple users on one piece). Supabase makes this possible, but we didn't have a real use case to validate against&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What We'd Do Differently
&lt;/h2&gt;

&lt;p&gt;The decision to build draft review as advisory-only was right. But we underestimated how much explanation users need to understand why that constraint exists. A lot of early testers tried to use it as a rewriter and were frustrated when it didn't. We'd add more upfront framing around the product's philosophy, "we help you think, not think for you", before anyone touches the UI.&lt;/p&gt;

&lt;p&gt;We'd also build the LinkedIn post mode from day one. Content creators on LinkedIn are the highest-intent audience for a tool like this, and we left that segment underserved in v1.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Open-Source Repo
&lt;/h2&gt;

&lt;p&gt;StoryFlow is fully open-source at &lt;strong&gt;github.com/v12labs-engineering/storyflow&lt;/strong&gt;. The repo includes the full Next.js codebase, the prompt library with all three core calls documented, a setup guide for running locally with your own Claude API key, and notes on the arc taxonomy we developed.&lt;/p&gt;

&lt;p&gt;If you're a developer building tools for content creators, the prompt architecture for constrained AI advisory feedback, scoring without rewriting, might be the most useful thing to borrow from the repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ready to Build?
&lt;/h2&gt;

&lt;p&gt;At V12 Labs, we build production-ready AI tools like StoryFlow for founders and early-stage companies. Full source code ownership from Day 1.&lt;/p&gt;

&lt;p&gt;If you have an AI tool idea you want to ship, &lt;a href="https://www.v12labs.io" rel="noopener noreferrer"&gt;book a discovery call at v12labs.io&lt;/a&gt;. We'll scope it honestly and tell you what's possible in 15 days.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://www.v12labs.io/blog/how-we-built-storyflow" rel="noopener noreferrer"&gt;V12 Labs&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>nextjs</category>
      <category>opensource</category>
      <category>writing</category>
    </item>
    <item>
      <title>Graph Engineering, Explained: Why AI Agent Systems Are Moving Beyond One Loop</title>
      <dc:creator>V12 Labs</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:19:36 +0000</pubDate>
      <link>https://dev.to/v12labs/graph-engineering-explained-why-ai-agent-systems-are-moving-beyond-one-loop-1gg0</link>
      <guid>https://dev.to/v12labs/graph-engineering-explained-why-ai-agent-systems-are-moving-beyond-one-loop-1gg0</guid>
      <description>&lt;p&gt;Loop engineering lasted about six weeks before the AI industry started asking what came after it.&lt;/p&gt;

&lt;p&gt;On July 18, 2026, Peter Steinberger, whose earlier post helped ignite the loop-engineering conversation, &lt;a href="https://x.com/steipete/status/2078277297791189132" rel="noopener noreferrer"&gt;asked a one-line question&lt;/a&gt;: "Are we still talking loops or did we shift to graphs yet?" The timing was almost too perfect. Our &lt;a href="https://www.v12labs.io/blog/2026-07-18-loop-engineering-explained" rel="noopener noreferrer"&gt;guide to loop engineering&lt;/a&gt;, published the same day, ended by predicting that graphs would be the next term to absorb ideas that agent frameworks had already been implementing for years.&lt;/p&gt;

&lt;p&gt;That prediction aged quickly. "Graph engineering" is now appearing in technical guides, open-source projects, and architecture discussions. But the phrase is moving faster than its definition. Depending on who is using it, a graph can mean an agent workflow, a multi-agent organization, a knowledge graph, a task-dependency graph, or simply a diagram with boxes and arrows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Short answer: graph engineering is the practice of explicitly designing how agents, tools, deterministic code, validators, data, and humans connect to complete a task. Nodes do work. Edges decide what can happen next. Shared state carries evidence between steps. Branches, parallel paths, retries, approvals, and stop conditions make the system more than one agent running in a loop. The architecture is real. The name is new, loose, and already overused.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The important shift is not from loops to graphs. A useful agent graph contains loops. The shift is from engineering one autonomous worker to engineering the coordination system around many kinds of work.&lt;/p&gt;

&lt;h2&gt;
  
  
  What graph engineering actually is
&lt;/h2&gt;

&lt;p&gt;A basic agent loop is intentionally simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Ask model -&amp;gt; call tool -&amp;gt; inspect result -&amp;gt; repeat until done
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That works when one agent can own the task, keep the relevant context, and evaluate progress against one clear completion condition.&lt;/p&gt;

&lt;p&gt;A graph is what the system becomes when the next step depends on more than "continue or stop":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Intake
  -&amp;gt; classify request
  -&amp;gt; run research and policy checks in parallel
  -&amp;gt; merge evidence
  -&amp;gt; generate action
  -&amp;gt; verify
       -&amp;gt; pass: execute
       -&amp;gt; fixable failure: revise and verify again
       -&amp;gt; high risk: request human approval
       -&amp;gt; exhausted budget: stop and escalate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The exact vocabulary varies by framework, but the core pieces are stable:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;What it means in an agent system&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Node&lt;/td&gt;
&lt;td&gt;A unit of work: an agent, model call, tool, function, validator, or human decision&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Edge&lt;/td&gt;
&lt;td&gt;A permitted transition from one node to another&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;State&lt;/td&gt;
&lt;td&gt;The durable facts and artifacts the workflow needs to carry forward&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Router&lt;/td&gt;
&lt;td&gt;Logic that selects the next path based on state or a structured decision&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fan-out / fan-in&lt;/td&gt;
&lt;td&gt;Parallel work that splits into branches and later merges&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gate&lt;/td&gt;
&lt;td&gt;A test, policy check, budget check, or approval that blocks unsafe progress&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cycle&lt;/td&gt;
&lt;td&gt;A path that returns to an earlier node for revision or retry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Termination&lt;/td&gt;
&lt;td&gt;The explicit conditions under which a run succeeds, fails, or escalates&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://docs.langchain.com/oss/python/langgraph/graph-api" rel="noopener noreferrer"&gt;LangGraph's Graph API&lt;/a&gt; describes the model directly: state is the current application snapshot, nodes perform work, and edges determine what runs next. Its edges can branch conditionally or trigger multiple nodes in parallel. &lt;a href="https://microsoft.github.io/autogen/dev/user-guide/agentchat-user-guide/graph-flow.html" rel="noopener noreferrer"&gt;Microsoft AutoGen's GraphFlow&lt;/a&gt; exposes the same underlying ideas for multi-agent teams: sequential execution, parallel fan-out, conditional branching, and loops with exit conditions.&lt;/p&gt;

&lt;p&gt;The term "graph engineering" does not belong to either framework. It is a broader label for making those coordination decisions deliberately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why graphs are emerging now
&lt;/h2&gt;

&lt;p&gt;Graphs are not new to computer science, workflow engines, distributed systems, or AI. The question is why this framing caught attention in 2026.&lt;/p&gt;

&lt;h3&gt;
  
  
  Single-agent loops became useful enough to expose the next bottleneck
&lt;/h3&gt;

&lt;p&gt;When an agent could not reliably use tools or persist through a multi-step task, orchestration was premature. The model itself was the limiting factor.&lt;/p&gt;

&lt;p&gt;As agent loops improved, teams started assigning them larger jobs. One agent researched while another reviewed. A planner decomposed a task. Workers ran in parallel. A verifier decided whether work could ship. A human approved high-risk actions. The hard problem moved outward from the prompt and into the relationships between those parts.&lt;/p&gt;

&lt;p&gt;Anthropic's production Research system is a concrete example. Its &lt;a href="https://www.anthropic.com/engineering/multi-agent-research-system" rel="noopener noreferrer"&gt;multi-agent architecture&lt;/a&gt; uses a lead agent to plan, create parallel research agents, combine their findings, decide whether more work is needed, and then pass the result to a citation agent. That is a graph whether or not the product calls it one.&lt;/p&gt;

&lt;h3&gt;
  
  
  Frameworks made the topology visible
&lt;/h3&gt;

&lt;p&gt;LangGraph made state, nodes, and edges explicit. AutoGen added directed graph execution. &lt;a href="https://adk.dev/graphs/" rel="noopener noreferrer"&gt;Google's Agent Development Kit 2.0&lt;/a&gt; now exposes graph-based workflows that combine agents, tools, human input, and deterministic code with explicit routing and state. The &lt;a href="https://openai.github.io/openai-agents-python/multi_agent/" rel="noopener noreferrer"&gt;OpenAI Agents SDK orchestration guide&lt;/a&gt; distinguishes manager-controlled agents-as-tools from handoffs, and it recommends mixing model-directed decisions with code-directed flows when predictability, cost, and performance matter.&lt;/p&gt;

&lt;p&gt;These tools did not invent branching or parallel execution. They made agent coordination a first-class object developers could inspect, test, persist, and deploy. Their maturity still varies: AutoGen labels GraphFlow experimental, while Google lists live streaming and some third-party integrations as current limitations of its graph workflows. That is evidence of an actively developing architecture layer, not a finished standard.&lt;/p&gt;

&lt;h3&gt;
  
  
  Multi-agent systems made implicit wiring expensive
&lt;/h3&gt;

&lt;p&gt;With one agent, a bad transition often looks like a bad answer. With several agents, the final failure may begin much earlier: the router selected the wrong specialist, a worker withheld information, the merge lost provenance, the verifier checked the wrong condition, or no component had authority to stop the run.&lt;/p&gt;

&lt;p&gt;A 2025 study, &lt;a href="https://arxiv.org/abs/2503.13657" rel="noopener noreferrer"&gt;Why Do Multi-Agent LLM Systems Fail?&lt;/a&gt;, analyzed more than 1,600 traces across seven multi-agent frameworks and organized 14 failure modes into three groups: specification and system design, inter-agent misalignment, and task verification and termination. Better prompts alone did not resolve the full set. The topology and communication protocol mattered.&lt;/p&gt;

&lt;p&gt;That is the strongest case for graph engineering: not that graphs make agents intelligent, but that explicit structure makes coordination failures easier to locate and control.&lt;/p&gt;

&lt;h2&gt;
  
  
  A graph does not replace a loop
&lt;/h2&gt;

&lt;p&gt;The "loops are dead" framing is technically wrong and operationally unhelpful.&lt;/p&gt;

&lt;p&gt;A graph can contain many loops:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a researcher searches until it has enough evidence&lt;/li&gt;
&lt;li&gt;a builder edits until tests pass&lt;/li&gt;
&lt;li&gt;a reviewer returns weak work to the builder&lt;/li&gt;
&lt;li&gt;a recovery node retries a failed integration with backoff&lt;/li&gt;
&lt;li&gt;an improvement loop uses production traces to update prompts or policies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The graph answers a different question. A loop asks, "Should this worker continue?" A graph asks, "Which worker or control should run next, with what state, and under which conditions?"&lt;/p&gt;

&lt;p&gt;Loops provide local iteration. Graphs provide system-level coordination.&lt;/p&gt;

&lt;p&gt;This distinction also prevents a common category error: graph engineering is not the same thing as knowledge-graph engineering, GraphRAG, or graph neural networks. Those approaches use graphs to represent knowledge or data relationships. Agent graph engineering uses a graph primarily to represent execution and control flow. A system can use both, but they solve different problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  What graphs give you that one loop does not
&lt;/h2&gt;

&lt;p&gt;The practical value appears when the work has real branching structure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conditional routing
&lt;/h3&gt;

&lt;p&gt;Different inputs need different paths. A support workflow might route billing questions to one specialist, security issues to a human escalation, and known product questions to a retrieval-backed responder. The router's output should be structured, recorded, and testable rather than buried in a free-form prompt.&lt;/p&gt;

&lt;h3&gt;
  
  
  Parallel work with an explicit join
&lt;/h3&gt;

&lt;p&gt;Independent tasks can run simultaneously: research several markets, inspect separate services, or evaluate an answer against multiple criteria. But parallelism is only useful when the graph also defines how results rejoin, how duplicates are handled, what happens when one branch fails, and whether partial success is acceptable.&lt;/p&gt;

&lt;p&gt;Anthropic reported that parallel subagents and parallel tool calls cut research time by as much as 90% for complex research tasks. The same engineering post warns that multi-agent systems consume tokens rapidly and are a poor fit when tasks have many dependencies or require every agent to share the same context. Parallelism is a topology choice, not a universal upgrade.&lt;/p&gt;

&lt;h3&gt;
  
  
  Independent verification
&lt;/h3&gt;

&lt;p&gt;A graph can separate the component that produces work from the component that approves it. That makes the verifier a gate with explicit authority rather than another suggestion in the same conversation.&lt;/p&gt;

&lt;p&gt;The gate still needs a reliable rubric. The multi-agent failure study found task verification and termination problems across model and framework choices. Drawing a verifier node does not make its judgment correct.&lt;/p&gt;

&lt;h3&gt;
  
  
  Human approval as a normal path
&lt;/h3&gt;

&lt;p&gt;Human-in-the-loop should not mean an emergency Slack message after the agent has already acted. In a graph, approval can be a defined node that receives the proposed action, supporting evidence, risk flags, and the exact decision required. The workflow pauses durably and resumes from that state.&lt;/p&gt;

&lt;h3&gt;
  
  
  Failure isolation and recovery
&lt;/h3&gt;

&lt;p&gt;A graph can assign different policies to different failures: retry a flaky API call, reroute a missing-data case, send a policy conflict to a human, or stop when the token budget is exhausted. This is where graph-shaped agent systems start looking less like prompt chains and more like durable workflow software.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the current coverage has gaps
&lt;/h2&gt;

&lt;p&gt;The first wave of graph-engineering content is repeating several mistakes from the loop-engineering cycle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 1: diagrams are being confused with architecture.&lt;/strong&gt; Boxes and arrows are easy. The hard work is defining the state schema, input and output contract for every node, merge behavior, idempotency, timeouts, retry policy, ownership, and terminal states. If those are missing, the diagram documents aspiration rather than execution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 2: more agents are being treated as more capability.&lt;/strong&gt; Anthropic found multi-agent systems useful for high-value, heavily parallel tasks, but reported that they use about 15 times the tokens of ordinary chat interactions and are not a good fit for work with tightly shared context or many dependencies. A graph can spend more compute in more places without improving the outcome.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 3: shared state is discussed as memory, not as a data contract.&lt;/strong&gt; State needs types, provenance, versioning, access rules, and a clear source of truth. If two branches overwrite the same field or a summary strips the evidence another node needs, the graph has created distributed ambiguity.&lt;/p&gt;

&lt;p&gt;The recovery model matters too. A resumed node may run again from its start, so external side effects need idempotency keys or equivalent deduplication. Otherwise a successful retry can send the same email twice, create duplicate records, or repeat a deployment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 4: handoffs are under-specified.&lt;/strong&gt; Every edge is a contract. What artifact crosses it? Which context is intentionally excluded? Who owns the next decision? Can the receiving node reject incomplete input? Most multi-agent failures that look like weak reasoning can begin as lossy or ambiguous handoffs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 5: termination remains the load-bearing problem.&lt;/strong&gt; Cycles need hard limits. Parallel branches need completion rules. Human-review nodes need expiry and fallback behavior. The system needs to distinguish success, partial completion, safe failure, and abandonment. A graph without termination semantics is a more elaborate way to run forever.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 6: graph generation is being sold ahead of graph validation.&lt;/strong&gt; Letting an agent dynamically invent its own workflow is appealing, but graph planning is harder than producing a sequence. The &lt;a href="https://arxiv.org/abs/2410.07869" rel="noopener noreferrer"&gt;WorFBench research&lt;/a&gt; found a measurable gap between models' sequence-planning and graph-planning abilities. If a model proposes a topology, deterministic validation should check reachable nodes, cycles, permissions, required gates, budgets, and valid terminal paths before execution.&lt;/p&gt;

&lt;h2&gt;
  
  
  When a graph is actually worth building
&lt;/h2&gt;

&lt;p&gt;Use a graph when the task has structural complexity that a single loop is hiding:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;inputs genuinely route to different specialists or policies&lt;/li&gt;
&lt;li&gt;independent subtasks can run in parallel and later merge&lt;/li&gt;
&lt;li&gt;production actions require explicit approval or verification gates&lt;/li&gt;
&lt;li&gt;failures need different recovery paths&lt;/li&gt;
&lt;li&gt;work must pause and resume across long waits or process restarts&lt;/li&gt;
&lt;li&gt;state and artifacts must be inspected at intermediate stages&lt;/li&gt;
&lt;li&gt;ownership changes between agents, tools, deterministic services, and humans&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Stay with one loop or a simple function pipeline when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;one agent can own the task end to end&lt;/li&gt;
&lt;li&gt;the workflow is short, linear, and easy to replay&lt;/li&gt;
&lt;li&gt;all steps require the same tightly coupled context&lt;/li&gt;
&lt;li&gt;a test or deterministic checker can verify the final result&lt;/li&gt;
&lt;li&gt;the graph would add more orchestration code than useful control&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The best graph is often smaller than the first diagram. Every node adds latency, cost, state, permissions, error modes, and an interface that can drift. If two nodes always run together and share all context, they may be one node. If an LLM is making a decision that ordinary code can make reliably, that node may not need an agent at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  What good graph engineering looks like
&lt;/h2&gt;

&lt;p&gt;A production graph should be reviewable as a set of contracts, not just visible as a picture.&lt;/p&gt;

&lt;p&gt;For each node, define:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;its single responsibility&lt;/li&gt;
&lt;li&gt;the minimum state it may read&lt;/li&gt;
&lt;li&gt;the structured output it must write&lt;/li&gt;
&lt;li&gt;the tools and permissions it can use&lt;/li&gt;
&lt;li&gt;its timeout, retry, and cost budget&lt;/li&gt;
&lt;li&gt;the evidence required to declare success&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For each edge, define:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the condition that enables it&lt;/li&gt;
&lt;li&gt;the artifact or state transition it carries&lt;/li&gt;
&lt;li&gt;whether the transition is model-decided or code-decided&lt;/li&gt;
&lt;li&gt;what happens when the destination rejects the input&lt;/li&gt;
&lt;li&gt;how the transition is traced and evaluated&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For the graph as a whole, define:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;one source of truth for shared state&lt;/li&gt;
&lt;li&gt;merge rules for concurrent updates&lt;/li&gt;
&lt;li&gt;explicit success, failure, escalation, and cancellation states&lt;/li&gt;
&lt;li&gt;maximum cycles and total budget&lt;/li&gt;
&lt;li&gt;approval boundaries for consequential actions&lt;/li&gt;
&lt;li&gt;replay, checkpoint, and recovery behavior&lt;/li&gt;
&lt;li&gt;end-to-end evals plus node- and edge-level diagnostics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is why graph engineering is closer to workflow and distributed-systems engineering than to prompt writing. Prompts matter inside nodes. Reliability emerges from the contracts between them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where graph engineering is going next
&lt;/h2&gt;

&lt;p&gt;The name may fade as quickly as loop engineering did. The underlying work is likely to deepen in four directions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Graphs become executable specifications.&lt;/strong&gt; Architecture diagrams, runtime configuration, permissions, observability, and evals will increasingly describe the same graph rather than living in separate systems that drift apart.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Topology gets evaluated, not just output.&lt;/strong&gt; Teams will measure which routes fail, which nodes add value, where state becomes stale, and whether a cheaper or simpler path produces the same outcome. Research such as &lt;a href="https://arxiv.org/abs/2605.18032" rel="noopener noreferrer"&gt;PROTEA&lt;/a&gt;, which localizes failures to intermediate workflow nodes, points toward graph-level debugging rather than final-answer grading alone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Static graphs become partially adaptive.&lt;/strong&gt; Some paths will remain code-defined for safety and predictability, while agents propose subtasks, workers, or routes within bounded regions. Research systems are already exploring dynamically instantiated workflows, including 2026's &lt;a href="https://arxiv.org/abs/2605.22566" rel="noopener noreferrer"&gt;GraphFlow paper&lt;/a&gt;. The credible version is constrained adaptation with validation, not an agent rewriting its own control plane without limits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Durability becomes non-negotiable.&lt;/strong&gt; Long-running graphs need persisted state, idempotent actions, resumable approvals, timeouts, and recovery after infrastructure failure. Agent frameworks will keep borrowing ideas that mature workflow engines have spent years learning.&lt;/p&gt;

&lt;p&gt;The durable idea is not that every agent should become a graph. It is that once an AI system has multiple workers, decisions, and recovery paths, the wiring is part of the product and deserves the same rigor as the models inside it.&lt;/p&gt;

&lt;p&gt;Graph engineering is the emerging name for that rigor. Keep the architecture. Be skeptical of the obituary for loops.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://x.com/steipete/status/2078277297791189132" rel="noopener noreferrer"&gt;â€œAre We Still Talking Loops or Did We Shift to Graphs Yet?â€, Peter Steinberger&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.langchain.com/blog/3-years-of-graph-engineering-with-langgraph" rel="noopener noreferrer"&gt;3 Years of Graph Engineering With LangGraph, LangChain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.langchain.com/oss/python/langgraph/graph-api" rel="noopener noreferrer"&gt;Graph API Overview, LangGraph&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.langchain.com/oss/python/langgraph/choosing-apis" rel="noopener noreferrer"&gt;Choosing Between Graph and Functional APIs, LangGraph&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.langchain.com/oss/python/langgraph/workflows-agents" rel="noopener noreferrer"&gt;Workflows and Agents, LangGraph&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://microsoft.github.io/autogen/dev/user-guide/agentchat-user-guide/graph-flow.html" rel="noopener noreferrer"&gt;GraphFlow Workflows, Microsoft AutoGen&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://adk.dev/graphs/" rel="noopener noreferrer"&gt;Graph-Based Agent Workflows, Google Agent Development Kit&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://openai.github.io/openai-agents-python/multi_agent/" rel="noopener noreferrer"&gt;Agent Orchestration, OpenAI Agents SDK&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.anthropic.com/engineering/multi-agent-research-system" rel="noopener noreferrer"&gt;How We Built Our Multi-Agent Research System, Anthropic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.anthropic.com/research/building-effective-agents" rel="noopener noreferrer"&gt;Building Effective Agents, Anthropic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://arxiv.org/abs/2503.13657" rel="noopener noreferrer"&gt;Why Do Multi-Agent LLM Systems Fail?, Cemri et al.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://arxiv.org/abs/2410.07869" rel="noopener noreferrer"&gt;Benchmarking Agentic Workflow Generation, Qiao et al.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://arxiv.org/abs/2605.18032" rel="noopener noreferrer"&gt;PROTEA: Offline Evaluation and Iterative Refinement for Multi-Agent LLM Workflows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://arxiv.org/abs/2605.22566" rel="noopener noreferrer"&gt;GraphFlow: A Graph-Based Workflow Management for Efficient LLM-Agent Serving&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Originally published at &lt;a href="https://www.v12labs.io/blog/2026-08-17-graph-engineering-explained" rel="noopener noreferrer"&gt;V12 Labs&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>architecture</category>
      <category>programming</category>
    </item>
    <item>
      <title>Loop Engineering, Explained: What It Is, What's Overhyped, and Where It's Going</title>
      <dc:creator>V12 Labs</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:19:19 +0000</pubDate>
      <link>https://dev.to/v12labs/loop-engineering-explained-what-it-is-whats-overhyped-and-where-its-going-3nph</link>
      <guid>https://dev.to/v12labs/loop-engineering-explained-what-it-is-whats-overhyped-and-where-its-going-3nph</guid>
      <description>&lt;p&gt;On June 7, 2026, Peter Steinberger, creator of the open-source agent project OpenClaw, posted twelve words that broke the AI half of the internet for a week: "You shouldn't be prompting coding agents anymore. You should be designing loops that prompt your agents."&lt;/p&gt;

&lt;p&gt;The post cleared 5 million views in a day. Addy Osmani, a Google engineer, published an essay days later giving the idea a name and an anatomy. Boris Cherny, who leads Claude Code at Anthropic, was quoted summing up his own job change in four words: "I don't prompt Claude anymore." By the end of June, "loop engineering" had a thousand explainer posts, a Hacker News thread with 1,800 comments arguing it was nothing new, and at least one team (Uber) capping employee token spend after blowing through a year's AI budget in four months.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Short answer: loop engineering is designing the system that repeatedly prompts, checks, and re-runs an AI agent instead of you typing every next instruction by hand. It's a real and useful pattern for a narrow set of problems. It is not a new idea, it is not free, and most of what got published about it in June was repackaged automation theory with an urgent name.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This post covers what the term actually means, what's missing from most of the coverage, and where the practice is credibly headed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What loop engineering actually is
&lt;/h2&gt;

&lt;p&gt;Strip the branding and the mechanism is old: a &lt;code&gt;while&lt;/code&gt; loop with an LLM call inside it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;While (task not solved):
  1. Send history + context to the model
  2. Get a response
  3. If it's a tool call: execute it, append the result, go to 1
  4. If it's a final answer: stop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the base agent loop, and it's not new. It's a direct descendant of the ReAct pattern (Reason + Act) from Princeton and Google research in 2022, and it's the same architecture Anthropic described in its 2024 "Building Effective Agents" post: an LLM, a set of tools, and a loop.&lt;/p&gt;

&lt;p&gt;What changed in June 2026 wasn't the mechanism. It was who was doing the looping and how much infrastructure sat around it. Instead of a developer manually re-prompting an agent after each step, the loop itself became a piece of engineering: something you design once, with defined triggers, guardrails, and stop conditions, and then let run without you in it.&lt;/p&gt;

&lt;p&gt;Addy Osmani's essay, the piece that gave the practice its name, broke a well-built loop into five parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Automations&lt;/strong&gt;: scheduled or triggered tasks that run without a person kicking them off&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Worktrees&lt;/strong&gt;: isolated environments so parallel agent runs don't collide on the same files&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skills&lt;/strong&gt;: codified project knowledge so the agent doesn't relearn context every run&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connectors&lt;/strong&gt;: tool and MCP integrations into existing systems&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sub-agents&lt;/strong&gt;: separating the agent that does the work from the agent that checks it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;LangChain's "Art of Loop Engineering" post added a second axis worth keeping: loops nest. There's the agent loop (calls tools until done), a verification loop (scores output against a rubric and kicks back failures), an event-driven loop (external triggers fire the whole thing inside a bigger system), and what they call a hill-climbing loop (production traces feed back into improving the agent's own configuration over time). Andrew Ng described something similar as three nested loops running at different speeds: the agent's own coding loop (seconds to minutes), the developer's feedback loop (hours), and the organization's feedback loop (weeks).&lt;/p&gt;

&lt;p&gt;The clearest production implementation isn't conceptual, it's a shipped feature: Claude Code, Codex, and other coding agents added &lt;code&gt;/goal&lt;/code&gt;-style commands in mid-2026 where you define a completion condition upfront and the agent iterates against it until the condition is met or the budget runs out. That commodified what people like Geoffrey Huntley had been hand-rolling for months with bash scripts (his "Ralph Wiggum" technique: a shell loop that just re-invokes the agent until a task is done).&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the coverage has real gaps
&lt;/h2&gt;

&lt;p&gt;Most of what got published in the two weeks after Steinberger's post falls into one of two buckets: content-mill explainers restating the same five bullet points, or hot takes that either evangelize the term or dunk on it as repackaged automation. Both miss the more useful middle ground.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 1: nobody quantifies when a loop is worth building.&lt;/strong&gt; The strongest pushback came from a production operator, not a pundit. A practitioner who runs agent loops daily laid out four conditions that actually determine whether a loop pays for itself: the work has to recur at least weekly, the output has to be machine-verifiable (tests, linters, a build passing) rather than judgment-based, you need a budget that survives failed retries, and the agent needs real tooling (logs, a reproducible environment, execution access). Most people repeating the phrase "loop engineering" this summer aren't running a loop that clears that bar. That's a screening test almost none of the explainer content includes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 2: the cost story is missing or hand-waved.&lt;/strong&gt; Agent loops burn roughly 4x the tokens of a normal chat interaction, and multi-agent setups (a maker agent plus a checker agent, which is close to a best practice at this point) push that toward 15x. Uber capped employees at $1,500 a month in token spend after its 2026 AI budget ran out in four months. Almost none of the "what is loop engineering" content mentions a real number, which is a strange omission for a practice whose entire pitch is that it runs unattended and therefore can run a lot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 3: verification gets a bullet point instead of an architecture.&lt;/strong&gt; Nearly every writeup lists "verification" as one of five or six equally-weighted components. In practice it's the load-bearing one. Anthropic's own engineering research on long-running agent harnesses treats this as the central problem: an agent grading its own output has a confirmation-bias problem, so production setups need an independent checker agent, an explicit feature list marked failing until proven passing, and end-to-end testing prompts that block an agent from marking something done without actually exercising it. A loop without a verifier that isn't the same model marking its own homework isn't a loop, it's an unattended guess machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 4: the "reference-setter vs. regulator" distinction rarely comes up.&lt;/strong&gt; One of the sharper technical takes on the topic (from a dev.to post cutting through the hype) borrows from control theory: loops are good regulators, they can maintain a target you've already defined, correcting drift and holding a known-good state. They're bad reference-setters, they can't decide what the target should be when a spec is ambiguous or the product decision isn't made yet. Most coverage treats loop engineering as a general substitute for interactive development. It isn't. If you don't know what "done" looks like yet, a loop just automates guessing faster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap 5: the vocabulary mockery is fair, but it's also not the whole story.&lt;/strong&gt; A widely-shared post mapped the entire lexicon back to plain CS: a while loop became "loop engineering," unit tests became "evals," and so on. That's a legitimate point about hype cycles renaming old ideas. But it undersells the actual shift, which isn't the mechanism, it's that the ecosystem (worktrees, MCP connectors, sub-agent verification, &lt;code&gt;/goal&lt;/code&gt; commands) matured enough to make running these loops in production practical for people who aren't building custom infrastructure from scratch. The name is inflated. The tooling underneath it is genuinely new.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it's actually going next
&lt;/h2&gt;

&lt;p&gt;A few things look more like durable trajectory than hype, based on where the credible technical sources (not the content mills) are pointing:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The vocabulary will fade; the primitives will stay.&lt;/strong&gt; "Loop engineering" as a phrase has the shelf life of a conference buzzword, it's already drawing the "just a while loop" backlash that eventually kills a term's momentum. But the primitives underneath it (isolated worktrees, skill files, sub-agent verification, event-driven triggers, &lt;code&gt;/goal&lt;/code&gt;-style completion conditions) are getting built directly into coding agent products, not just described in blog posts. Those will outlast the name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verification becomes a first-class product feature, not a design choice.&lt;/strong&gt; The maker/checker split (one agent does the work, an independent agent or process checks it) is moving from "best practice someone mentioned" to a built-in mode in agent tooling. Expect coding agents to ship this by default rather than as something a team has to hand-roll, the same way test runners became table stakes rather than optional tooling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hill-climbing loops are the next layer up.&lt;/strong&gt; LangChain's framing, that production traces feed back into automatically improving the agent's own configuration, prompts, or even fine-tuning, is where the more serious engineering orgs are already looking. This is closer to an MLOps feedback loop than a coding assistant feature, and it's the piece most current tooling doesn't do yet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost discipline becomes a forcing function.&lt;/strong&gt; Uber's budget cap isn't an outlier, it's a preview. As more teams try unattended loops and hit the same token math (4x baseline, up to 15x for multi-agent), expect a wave of tooling aimed specifically at cost-aware loop design: budget-capped agent runs, cheaper models for the checker role, and loops that fail closed (stop and escalate to a human) rather than fail open (keep burning tokens on a stuck task).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The screening question gets standardized.&lt;/strong&gt; Expect something like the four-conditions checklist (recurring, verifiable, affordable, tooled) to show up as an actual pre-flight check in agent platforms, not just advice in a blog post, because the cost of building a loop for a one-off or ambiguous task is now well-documented enough that vendors have an incentive to warn you before you waste the budget.&lt;/p&gt;

&lt;p&gt;The practice underneath the phrase is real. The honest version of it is narrower, more boring, and more expensive than the June hype cycle made it sound, and that's exactly why it'll outlast the name.&lt;/p&gt;

&lt;h2&gt;
  
  
  The next buzzword is already here
&lt;/h2&gt;

&lt;p&gt;The turnover is already visible. On July 18, 2026, the same Peter Steinberger whose post kicked off the entire loop engineering cycle six weeks earlier asked his followers: "Are we still talking loops or did we shift to graphs yet?" The post cleared 644,800 views within hours.&lt;/p&gt;

&lt;p&gt;It's a fair question and it previews the next phrase this whole cycle is likely to produce. A &lt;code&gt;while&lt;/code&gt; loop is a flat, single-threaded control structure: one agent, one path, one condition to exit on. A graph is what you reach for once a "loop" actually needs branches, parallel sub-tasks that fan out and merge back, and state that has to be shared across steps that aren't strictly sequential, which is exactly what multi-agent setups with a maker and a checker, or an event-driven system with several triggers feeding one workflow, already are once you draw them honestly. Frameworks like LangGraph have been modeling agent control flow as a graph rather than a loop for a while; Steinberger's post is less a new idea than a signal that the vocabulary is about to catch up to what production systems already look like.&lt;/p&gt;

&lt;p&gt;Expect the same cycle to repeat: a viral post renames an existing pattern, a wave of explainer content restates it without added rigor, and a smaller set of practitioners point out the graph framing was already sitting in orchestration libraries before it had a buzzworthy name. The lesson from loop engineering's own six-week arc holds here too: judge the pattern by whether it solves a real coordination problem you have, not by how fast the name is trending.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://addyosmani.com/blog/loop-engineering/" rel="noopener noreferrer"&gt;Loop Engineering, Addy Osmani&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.langchain.com/blog/the-art-of-loop-engineering" rel="noopener noreferrer"&gt;The Art of Loop Engineering, LangChain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents" rel="noopener noreferrer"&gt;Effective Harnesses for Long-Running Agents, Anthropic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.anthropic.com/research/building-effective-agents" rel="noopener noreferrer"&gt;Building Effective AI Agents, Anthropic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://newsletter.pragmaticengineer.com/p/what-is-loop-engineering" rel="noopener noreferrer"&gt;What is "loop engineering?", Gergely Orosz, The Pragmatic Engineer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/isaachagoel/loop-engineering-minus-the-hype-4ibn"&gt;Loop Engineering Minus the Hype, Isaac Hagoel, dev.to&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blackmatter.vc/lab/loop-engineering-an-honest-verdict-from-someone-who-actually-runs-agent-loops" rel="noopener noreferrer"&gt;Loop Engineering: An Honest Verdict From Someone Who Actually Runs Agent Loops, Black Matter VC&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Originally published at &lt;a href="https://www.v12labs.io/blog/2026-07-18-loop-engineering-explained" rel="noopener noreferrer"&gt;V12 Labs&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>programming</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
