Justin Moon's avatar
Justin Moon
npub1zxu6...cx2y
Justin Moon's avatar
justinmoon 2 months ago
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 image
Justin Moon's avatar
justinmoon 2 months ago
One really awesome thing about vibecoding is that you can do it for nonchalantly 15 minutes and actually be productive. With real coding I always needed to dial in for at least a few hours.
Justin Moon's avatar
justinmoon 2 months ago
Opencode has anthropic oauth built in, and with this plugin you can get chatgpt oauth too Really nice. Can switch between any anthropic or chatgpt model and subscription covers it all. I've also been playing around with their typescript sdk: I'm going to start automating some of my workflows with it. For complex tasks I've started having sonnet 4.5 and codex high both implement simultaneously, then when they're done i launch another pair of sonnet 4.5 and codex high to review the 2 implementations and debate which is better and how to proceed. But I do the copy-pasting manually still. Could completely automate this entire workflow with opencode sdk.
Justin Moon's avatar
justinmoon 3 months ago
I just vibe-coded a browser that can run react.js
Justin Moon's avatar
justinmoon 3 months ago
It's funny how coding agents really lack self-awareness when making time estimates. They're just spitting out the timelines they've seen in the training data. Here they estimate 1-2 weeks for something that will take 30 minutes at most. image
Justin Moon's avatar
justinmoon 3 months ago
It's funny how coding agents really lack self-awareness when making time estimates. They're just spitting out the timelines they've seen in the training data. Here they estimate 1-2 weeks for something that will take 30 minutes at most. image
Justin Moon's avatar
justinmoon 3 months ago
Trick for when you want the AI to make a good spec image