Brains vs Hands: How to Run AI Agents Safely in Production — Viren Baraiya
Key Takeaway
Running AI agents safely in production requires a strict architectural split where the non-deterministic LLM plans the actions and a durable, deterministic workflow harness executes them.
Highlights
Production agents function as applications rather than isolated components, executing background tasks, event-driven loops, or long-running coordination
Separating agent responsibility forces non-deterministic LLMs to act as the brain (planning) while deterministic harnesses act as the hands (execution)
Agentic harnesses operate as late-bound sagas, dynamically constructing and compiling execution paths at runtime from a fixed set of tools
Deterministic execution harnesses guarantee side-effect management, idempotency, and mandatory human approval gates for critical actions like cluster restarts
Conductor serves as an open-source workflow orchestration engine to compile LLM plans into fully runnable, state-tracked workflows
Timeline
Expanding Agent Architectures Beyond Basic Chatbots
Initial agent implementations centered around simple tool-calling loops and customer service chatbots. Scaling agents into production requires background execution, event handling for telemetry and alerts, and multi-agent coordination. Breaking tasks into single-responsibility agents mirrors microservices, preventing hallucinations and creating structured application-level workflows.
- Production environments require agents to operate as scheduled workers, event-driven listeners, and long-running coordinators
- Single-agent architectures handling multiple responsibilities suffer higher risks of hallucinations
- Agent systems reflect microservice patterns by combining single-responsibility units through choreography and orchestration
Decoupling Brains from Hands for Deterministic Safety
Non-deterministic reasoning is useful for analyzing situations and planning steps, but operational actions such as payment processing or infrastructure modification require guaranteed deterministic behavior. The harness tracks state and enforces explicit workflows. When an LLM recommends restarting a cluster, the harness controls the exact sequence, manages idempotency, and routes human approval requests via platforms like Slack.
- Agent harnesses blend LLM non-determinism with deterministic execution rules
- LLMs serve strictly as the brain for planning, while the harness serves as the hands for execution
- Critical system state changes require deterministic safeguards, idempotency, and human-in-the-loop approvals
Agentic Harnesses as Late-Bound Sagas
Traditional sagas require hardcoding every possible state branch upfront. Agentic harnesses act as late-bound sagas where the agent dynamically selects from a deterministic set of tools to construct execution paths at runtime. This approach delivers traditional workflow benefits, including state visibility, failure recovery, and long-running durability, without requiring combinatorial hardcoding.
- Agentic harnesses implement late-bound sagas by assembling tools into dynamic runtime workflows
- Runtime workflow compilation eliminates the need to hardcode every possible branching condition manually
- Durable execution engines preserve visibility and state recovery across long-running agent tasks
Demonstration of Self-Planning SRE Agent in Conductor
A live demonstration showcases an SRE remediation agent analyzing log inputs and generating multi-step plans. A specialized plan-and-compile step converts the LLM's proposed sequence into a structured Conductor workflow. The harness executes the sequence, evaluates system state, and runs a second iteration that intelligently skips redundant actions, such as repeating a data rollback, before verifying recovery.
- The remediation loop gathers evidence, analyzes logs, and generates structured execution plans
- Plan-and-compile steps convert LLM text plans into executable Conductor workflows
- Multi-step evaluations prevent redundant actions across iterative execution loops
Description
Let the model decide what should happen next. Never let it improvise how a production cluster gets restarted. Viren Baraiya, co-founder and CTO of Orkes and the original creator of Netflix Conductor, explains how to run agents in production. Real agents aren't just chatbots: they run on schedules, react to events, coordinate other agents and can run for months, so the harness around them starts to look like an application, much like a set of microservices. His key idea is a clean split between the brain and the hands. The LLM plans what should happen next; a deterministic, durable harness does the actual work, with approval gates, idempotent steps and recorded side effects. He frames agent harnesses as late-bound sagas, workflows the agent assembles at runtime, and demos an SRE agent whose plan is compiled into a Conductor workflow, executed, checked and re-planned over two loops. In this talk: • Background, scheduled, event-driven and long-running agents • Why the harness is the application, mixing deterministic and non-deterministic parts • The brain and the hands: the LLM plans, the harness executes • Demo: an SRE agent's plan compiled into a durable workflow SPEAKER Viren Baraiya, Co-founder & CTO, Orkes X: https://x.com/virenbaraiya LINKS Orkes: https://orkes.io Orkes on X: https://x.com/orkesio CHAPTERS 0:00 Intro 0:47 Who runs agents in production? 1:12 Beyond the hello-world agent 1:52 Background, scheduled and event-driven agents 2:27 Coordinators and multi-agent systems 3:02 Agents are applications, not components 3:12 Lessons from microservices 4:22 The harness is the application 5:02 Deterministic and non-deterministic parts 6:02 Harnesses run for seconds or months 6:41 Durability is table stakes 7:26 How the loop works 8:21 The agent plans, the harness executes 9:21 Human approval gates 9:41 Idempotency and side effects 9:56 The brain and the hands 10:21 Agent harnesses as late-bound sagas 11:21 Every possible branch 11:51 Demo: an SRE agent 13:31 Compiling the plan into a workflow 14:16 Demo: the second loop 15:56 Conductor, open source Recorded at the AI Engineer World's Fair 2026 in San Francisco. Subscribe for more talks from the engineers building with AI. AI Engineer: https://ai.engineer YouTube: https://www.youtube.com/@aiDotEngineer X: https://x.com/aiDotEngineer LinkedIn: https://www.linkedin.com/company/aidotengineer/ #AIAgents #WorkflowOrchestration #AIEngineer
