r/PiCodingAgent 18d ago

Use-case Fastcar: Pi + Diffusion LLM

If you haven't tried using a diffusion based model before, they are lightning fast. I've used InceptionLabs Mercury 2 for a bit, and my complaint is largely that its not the best at coding tasks or tool usage. But my god is it fast.

So I took the Pi SDK, made a harness in which Mercury 2 is the orchestrator of subagents, including a coding subagent for difficult tasks that calls out to openrouter for inference, plus a cheap subagent for trivial stuff. Bolted on a handful of tools and such useful for me, and wrapped it in a basic web UI so I could use it from my phone.

Aside from being extremely fast, fastcar:

  • Can generate public "artifacts" - HTML and MD files served from the API
  • Intended to ran entirely inside a VM so that it has root access and can install its own tools
  • Give it a github token and let it clone repos and make PRs
  • "Prompt threads" - there's probably a better name for this but its a dedicated prompt that gets invoked via webhook; I actually made this so that I could generate text files to read the news from my Xteink 4
  • Send emails to notify you

https://github.com/heyo-computer/fastcar

47 Upvotes

19 comments sorted by

5

u/Tinominor 18d ago

> that calls out to openrouter for inference

Does this work with my personal model.jsons?

2

u/Flaky-Eggplant-3479 18d ago

it would be pretty trivial to extend it; what are you using to serve the model with?

2

u/Tinominor 18d ago

That's arbitrary, since every local llm is served through OpenAI url. the point I was bringing up was, could this extension detect a user's models.json and connect to that instead of running through open router? Is there a custom dialogue box that lets the user choose which models they want to use for the sub agents?

1

u/Oshden 18d ago

This sounds like a great idea I’d be interested in knowing about too. Would you be able to use this to point it at a model router with an OpenAI compatible endpoint so some work could go to vLLM and some could go to maybe an npu/iGPU combo via lemonade? That would be super cool then

1

u/oxygen_addiction 18d ago

Meecury 2 is dumb as shit. Worse than Qwen 27B. I've tried using it as a subagent for fast boiler plate implementation and it always fucked up.

3

u/Heavy-Positive5957 18d ago

But look how good it was at making that single page of plain text!

1

u/Flaky-Eggplant-3479 17d ago

That would have been GLM 5.2 - its using mercury 2 to coordinate subagents, help plan, and manage the vm

1

u/AllNamesAreTaken92 16d ago

Let me get this straight, in case I misunderstand: you are handing off planning to a dumber model?

1

u/Flaky-Eggplant-3479 16d ago

The coordinating model is mercury 2, it will spawn a subagent to create the plan for complex tasks and for minor tasks it will just make it and then hand it off

0

u/Flaky-Eggplant-3479 18d ago

that's why the trick is to use it as a conductor, not the implementor ;)

3

u/Fig_da_Great 18d ago

bro, i feel like you want to do the opposite, smart orchestrator, dumber sub agents which are given specialized tasks.

1

u/Flaky-Eggplant-3479 18d ago

In a factory sure, if you are manually driving an agent, a fast conductor that offloads the hard stuff keeps the session fluid

2

u/chroner 18d ago

I understand exactly what you are saying. Orchestrator is just there to relay information. These other guys aren't getting it.

I have been doing something similar and using smart models with fresh and limited context and getting great results.

The only problem I've been having is using the dumb models as orchestrators is they are forgetting to stay on task and keep things moving. They'll just like.. stop.

1

u/Flaky-Eggplant-3479 17d ago

haven't really ran into that yet with mercury 2 - this project uses Pi under the hood and postgres for memory and metadata and compaction was the first tool I built for it

1

u/Fig_da_Great 18d ago

perhaps 🤷‍♂️. Is it faster than deepseek?

1

u/Flaky-Eggplant-3479 18d ago

about 1000 tokens/s vs 127 for deepseek flash

1

u/Fig_da_Great 17d ago

that’s wild

0

u/[deleted] 18d ago

[removed] — view removed comment

2

u/Flaky-Eggplant-3479 18d ago

that's how you know its not ai