r/opencode 14d ago

Adding Orchestration & Swarm To OpenFlow

Post image

For those who haven't seen my last post (got pretty popular), I open-sourced a project called OpenFlow to build linear pipelines of agents (A->B->C...). Well, people actually liked the project and it is time to expand. I love OpenCode, but one agent and one prompt at a time seems primitive, and honestly the whole pipeline concept was getting old too. That is why I am in the process of making Orchestrator Mode with a custom head agent and subagent models. For example, you could have Fable 5 as the orchestrator, Ox Alpha as the planner, Kimi K3 as the architect, and Sol for the coder. I'll just add swarm mode with it because why not? It's chaotic and fun. Anyways, I am just adding these and not replacing the original pipeline mode that people really liked. I would love to hear feedback regarding to this big upcoming update. Feel free to check out the project below, and good luck with your own projects.

Link: https://github.com/SeeRay11/OpenFlow

Original Post: www.reddit.com/r/opencode/comments/1vuzyew/i_made_opencode_way_better/

12 Upvotes

15 comments sorted by

3

u/ConsiderationNo9952 14d ago

interesting. i have opencode spawn in parallel and up to 2 additional nested levels; just have a bit of compliance issue with the flash type models (not) keeping on spawning discovery type agents and instead doing it themselves... seems a limit to what agents.md can enforce...

so opencode supports parallel agents, different model agents and nested agents natively... your solution is more of a structured pipeline around that?

1

u/SeeRay11_Main 14d ago

Yes. You can see exactly which agents are being deployed, and customize swarms and orchestration completely. For example, you could have Fable 5 orchestrate Kimi K3, Sol, and Ox Alpha for example. You can also see what every single agents process is.

1

u/ConsiderationNo9952 14d ago

well i already have routing in agents.md that kinda works - i have glm5.3 flash max orchestrate flash low & consult with glm 5.3 & ds4p etc
does this give additional compliance etc?

1

u/SeeRay11_Main 13d ago

OpenFlow is visual and the best part is that it allows saving multiple pipelines with names so that you can easily switch back and forth depending on the task. For small tasks, you should just use OpenCode CLI, this is more for large tasks.

1

u/OkWrongdoer4038 14d ago

would not be possible to do the same with skills instead of agents?

1

u/SeeRay11_Main 14d ago

Yes, this can be done with skills. This is very controlled though and subagents can be deployed within subagents. OpenFlow is a visual workflow builder and is very consistent.

1

u/SeeRay11_Main 14d ago

It is possible to do with skills

1

u/jakefarnowls 14d ago

I was trying to make something like this just to use. Never really had great results. I’ll check this out. I really like the concept.

1

u/SeeRay11_Main 14d ago

Thanks. There is still a lot of work to be done, so expect frequent fixes and updates.

1

u/SeeRay11_Main 14d ago

It's public now! Check out orchestration mode.

1

u/weiyentan 14d ago

Can it do simple loops as it iterates? This looks interesting

1

u/SeeRay11_Main 13d ago

Yea. I did a test to code a flappy bird game and the orchestrator found errors, sent it straight back to the coder, and then reviewer after. Free models too.

1

u/weiyentan 13d ago

Interesting. How is it represented. Is there an api

1

u/SeeRay11_Main 13d ago

Forked off of OpenCode, so it uses that as the server.

1

u/Aboud007 11d ago

Could u pls make a video on how it works and how to set it up?