---
title: "Discussion on \"Stop building agents like prompts. Build them like state machines.\" | Hashnode"
description: "Discussion on \"Stop building agents like prompts. Build them like state machines.\". Durable execution (Temporal, Restate, Inngest), idempotency keys for tool calls, and human-in-the-loop as an interrupt primitive."
url: "https://hashnode.com/posts/stop-building-agents-like-prompts-build-them-like-state-machines/69e4a4eeee84f66e943d98e7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stop building agents like prompts. Build them like state machines.](https://blogs.subhanshumg.com/stop-building-agents-like-prompts-build-them-like-state-machines?utm_source=hashnode&utm_medium=feed)

Durable execution (Temporal, Restate, Inngest), idempotency keys for tool calls, and human-in-the-loop as an interrupt primitive.

Apr 19 · 11 min read · blogs.subhanshumg.com  
Read the article

-   [#agentic-ai](https://hashnode.com/tag/agentic-ai)
-   [#agents](https://hashnode.com/tag/agents)
-   [#state-machines](https://hashnode.com/tag/state-machines)
-   [#temporal](https://hashnode.com/tag/temporal)
-   [#langgraph](https://hashnode.com/tag/langgraph)
-   [#llmops](https://hashnode.com/tag/llmops)
-   [#devops](https://hashnode.com/tag/devops)
-   [#developer](https://hashnode.com/tag/developer)
-   [#sre](https://hashnode.com/tag/sre)
-   [#system-design](https://hashnode.com/tag/system-design)

## Written by

[Subhanshu Mohan Gupta](https://hashnode.com/@SubhanshuMG)

@SubhanshuMG · India

  
[View profile](https://hashnode.com/@SubhanshuMG)

DevOps Lead

A versatile DevSecOps Engineer specialized in creating secure, scalable, and efficient systems that bridge development and operations. My expertise lies in automating complex processes, integrating AI-driven solutions, and ensuring seamless, secure delivery pipelines. With a deep understanding of cloud infrastructure, CI/CD, and cybersecurity, I thrive on solving challenges at the intersection of innovation and security, driving continuous improvement in both technology and team dynamics.

## Responses 1

Markdown supported · ⌘↵ to post

[ermastondang71-lang](https://hashnode.com/@ermastondang)

[Apr 19](https://hashnode.com/posts/stop-building-agents-like-prompts-build-them-like-state-machines/69e4a4eeee84f66e943d98e7/comment/69e51b8713e74eec583835e2)

Diamonds Weelife
