Replying to Avatar Justin Moon

This is something i vibecoded a few weeks ago. just a static prototype and doesn't work yet, but i keep thinking about it and might actually implement

Idea is that I would define a javascript DSL for coding agent state machines (e.g. "create 4 agents to all implement this task, then launch 2 reviewer, then have the reviewers argue, then choose one branch and make a pr"). maybe it would just be xstate (https://stately.ai/docs/xstate).

User would explain workflow they want in natural languages and a state machine workflow would be generated automatically. they could inspect it -- should be short like 100 LOC or less. Could ask for changes in natural language. They see a nice mermaid style diagram. Then they could launch it and the state machine runtime would orchestrate this workflow.

The state machine templates could be easily shared since they're just short text snippets

this is great and am surprised something is not already out there.

I'm gonna make a "woo" suggestion. In stages there are certain agent attributes you really want. i.e in hand-crafted json I might declare "creativity": 80%. In the coding phase commitment to security might be "defensibility": high. In the QA Agent rigour may be "adversarial": 50%

I watched Interstellar again last night and Cooper keeps adjusting Tars' humour settings (probably the only comic relief in the movie) - so agents need a disposition. Its easy to specify directly into the DSL but how you encourage humans to prompt that consistently might not be so easy. I guess if the workflow designer was conversational...

Reply to this note

Please Login to reply.

Discussion

Nice ideas

btw I just saw langchain is still getting funding so might be good alternative plumbing to mcp or what nostr:nprofile1qy2hwumn8ghj7mn0wd68yetvd96x2uewdaexwqgkwaehxw309aex2mrp0yhxummnw3ezucnpdejqqgzqh8y9lll2lsw2m7xrpf89ezrxplmwf9c6phrj84dtva94ucd52ylppsfv is doing. https://www.youtube.com/watch?v=hjIlj4OAECQ