r/PiCodingAgent • u/behopkinsj • 2d ago
Plugin I Built an Orchestration Plugin That's Been Saving Me Costs
I built an orchestration plugin for Pi, with the goal of optimizing costs and making Pi more precise.
I've been wanting to build this for a while; it uses LangGraph to link agents together so that they focus on a single task, while Pi acts as the orchestrator. Once an orchestration flow is created, it can be reused later. So once you have an automation that works well, you can use it however many times you'd like.
So far, it's been saving me cost with long-running tasks. What do you all think?
Website: https://leafi.app/pi/
GitHub: https://github.com/Bruce-Hopkins/Leafi
10
u/invin10001 2d ago
Wait, how does putting multiple agents on the same task save costs? Shouldn't you break down the task so each is byte-sized for the right agent to pick up and implement? Maybe I'm missing the bigger picture, can you elaborate with an example?
1
u/patrick9331 1d ago
Why did you choose Langgraph?
1
u/R3VO360 1d ago
Noob here, what's the difference between this and plain langgraph? Can you design a workflow where each node can decide whether it is needed to re-run the previous step of the pipeline with different parameters?
1
u/fingerthief 2d ago
Are there any numbers or measurements on cost?
All the studies and papers I’ve read on orchestration along with my own evals show it’s basically never actually cheaper. Certainly useful for other reason but not for cost.
4
u/swagonflyyyy 2d ago
I was using a different one and noticed my orchestrator agent ranting:
Guess it worked lmao.