Загрузка видео...

Не удалось загрузить видео

На главную

don't use loops, design state machines

221,789 просмотров • 3 месяцев назад •via X (Twitter)

Комментарии: 60

Фото профиля David
David3 месяцев назад

do this today at

Фото профиля David K 🎹
David K 🎹3 месяцев назад

What does the state machine for this example look like?

Фото профиля David
David3 месяцев назад

My version actually don't use a full deterministic state machine, I want to keep the flexibility of AI with minimal guardrails:

Фото профиля Ilko Kacharov
Ilko Kacharov3 месяцев назад

Hot take: it's not loops vs state machines, it's both. The state machine defines what "done" looks like; the loop is the engine that grinds until it gets there. No loop = agent stalls mid-task. No state machine = it loops forever toward nothing. Winners design both.

Фото профиля David
David3 месяцев назад

Agreed, but that's not catchy and doesn't go viral 😂

Фото профиля Brian Via
Brian Via3 месяцев назад

We’re inventing computer science from first principles

Фото профиля David
David3 месяцев назад

😂 just slowly moving up the ladder of abstraction

Фото профиля David
David3 месяцев назад

A loop is just a state machine with 2 states 😅

Фото профиля David
David3 месяцев назад

😂

Фото профиля patark
patark3 месяцев назад

sir this is a kanban board /s

Фото профиля duet
duet3 месяцев назад

🪩🪩🪩

Фото профиля Daniel
Daniel3 месяцев назад

🤯🤯🤯this looks insanely powerful! 2026 -- what a year 🚀🚀 reworking stack for 3rd time in 10 days 😵‍💫

Фото профиля David
David3 месяцев назад

Give it a try at and tell me how it goes! Happy to give you some free credits :)

Фото профиля Jason Szesze
Jason Szesze3 месяцев назад

Sweet @duetchat

Фото профиля David
David3 месяцев назад

@duetchat Niceeeee

Фото профиля Mustafa Kirac
Mustafa Kirac3 месяцев назад

It's n8n all over again 🤔

Фото профиля David
David3 месяцев назад

Na, it's not a workflow engine actually, it's just the bare minimum guardrails. All workflow logic is done by agent / codegen

Фото профиля Sense Noped Out
Sense Noped Out3 месяцев назад

this is what he meant. same same

Фото профиля David
David3 месяцев назад

yup agreed. just adding a tangible example

Фото профиля Rob Schaper
Rob Schaper3 месяцев назад

State machines can be designed to run in a loop, they can also act like a DAG with an outcome certain. For example, you can have four state machines in a loop, made of four DAGs, each run updates an S3 bucket, which has a trigger to run the next state machine, etc... Cheers.

Фото профиля Relex Legal
Relex Legal3 месяцев назад

Each state should be a loop until successfully state changed

Фото профиля David
David3 месяцев назад

@relexyou Yup, our custom harness has this guarantee

Фото профиля Rick Wong
Rick Wong3 месяцев назад

State machines and workflows are amazing, but do you think humans should spend time focusing on those, or do you see a trajectory where the models are advance enough to manage both of those internally? Older solutions like zapier/make.com/n8n were heavy on workflows/states, but many realized how adept the models are becoming at managing those things internally. If you look at the design of claude's /workflow, you'll see it is actually far from what most people consider "workflow" -- they leap frogged quite a few steps ahead.

Фото профиля Mek
Mek3 месяцев назад

Claude Fable 5? Please add it to the platform as soon as possible.

Фото профиля David
David3 месяцев назад

On it 🫡

Фото профиля David
David3 месяцев назад

FYI: you may need to wait a bit for everyone's sandbox to get upgraded. If you're impatient, feel free to go into the files tab and click on "Reboot gateway". Just note that it'll terminate all currently running sessions if you do that.

Фото профиля Kenn
Kenn3 месяцев назад

Would love to give it a try

Фото профиля David
David3 месяцев назад

Nice, sign up at and shoot me a DM if you want more free credits

Фото профиля Shaun Sheikh
Shaun Sheikh3 месяцев назад

Very cool

Фото профиля David
David3 месяцев назад

Thanks! Give it a try at :)

Фото профиля Enterprise Software Architecture
Enterprise Software Architecture3 месяцев назад

👀 I’ve already ascended to recursive state-loop machines by design.

Фото профиля Will
Will3 месяцев назад

Don't design state machines, build hyper structures

Фото профиля Farshad Taheri
Farshad Taheri3 месяцев назад

Yea, this been there for sometimes and not working plus too slow

Фото профиля David
David3 месяцев назад

What do you mean?

Фото профиля Farshad Taheri
Farshad Taheri3 месяцев назад

Have you used it for any actual/real complex workflow?

Фото профиля D
D3 месяцев назад

how's duet make money? bulk token arb?

Фото профиля David
David3 месяцев назад

we run our own inference stack for certain models

Фото профиля D
D3 месяцев назад

Ah yes, got it. Thx!

Фото профиля Manas
Manas3 месяцев назад

Aight we are back to langgraph great 😭

Фото профиля David
David3 месяцев назад

Very different, it's not a workflow engine

Фото профиля Felipe
Felipe3 месяцев назад

We have the same but we used coder and n8n to integrate with linear is Duet a platform by itself? Like, could linear, clickup or others platforms have the same features as u guys?

Фото профиля David
David3 месяцев назад

Yup @duetchat is its own platform And it's fundamentally different than linear/clickup. In duet the kanban view is just treated as a way to visualize all your agents, as a user you don't actually interact with the cards, and that's by design The problem we are solving isn't better project management, but how can we deploy 00s of agents and actually track & steer them. Right now it's kanban, in 6 months maybe something else

Фото профиля Felipe
Felipe3 месяцев назад

@duetchat I see that, I mean we have the same, but "in-house implementation", linear is just because it's what we used before You can see we have the plan, plan approval, review approval etc... that u also have related states, on your kanban on the video Here it's using n8n for the flow

Фото профиля Felipe
Felipe3 месяцев назад

@duetchat U guys don't see your product "benefiting" from being something that can integrate with a existing linear/clickup/jira etc...? Like, stack can integrate with your codebase, but also be seen from clickup if you do something with n8n as well; Like "integrate Duet" on your workflow

Фото профиля Aleksandr Fulha
Aleksandr Fulha3 месяцев назад

state machines ARE loops with transition contracts. paperclip handoff: each agent's exit state is typed, next agent's entry matched. break-on-mismatch instead of run-on-pattern. the loop still runs — the contract just keeps it honest about what it's passing forward.

Фото профиля Scott Evernden
Scott Evernden3 месяцев назад

tomorrow .. "we learn about arrays"

Фото профиля David
David3 месяцев назад

😂😂

Фото профиля Duncan
Duncan3 месяцев назад

Excellent callout :)

Фото профиля SurfboardRSS
SurfboardRSS3 месяцев назад

This is the way

Фото профиля kreo
kreo3 месяцев назад

i like your thinking young man

Фото профиля David
David3 месяцев назад

🫡

Фото профиля 0xA
0xA3 месяцев назад

Don’t use state machines. Design coinductive coalgebras over Cartesian closed categories.

Фото профиля SAWC || CS STUDENT
SAWC || CS STUDENT3 месяцев назад

What does this entail?

Фото профиля David
David3 месяцев назад

just sign up for @duetchat -

Фото профиля Michael Gustin
Michael Gustin3 месяцев назад

What the fuck does that mean Kobe Bryant

Фото профиля David
David3 месяцев назад

are you the same animal but a different beast?

Фото профиля Walter Monecke
Walter Monecke3 месяцев назад

this looks amazing!

Фото профиля Divya Soni
Divya Soni3 месяцев назад

Making probabilistic machines deterministic. We've come a full circle here

Фото профиля David
David3 месяцев назад

Deterministic orchestration probabilistic execution Also - my state machine implementation isn't fully deterministic. Guardrail only enforces correct states, orchestrator agent can transition to any state it wants

Фото профиля Eray
Eray3 месяцев назад

don’t use loops. design a fault-tolerant replicated giant atomic state machine. @toly

Похожие видео