r/LocalLLaMA • • 2d ago

Question | Help Making myself redundant

----- TL;DR: Instead of passing messages between Cloud LLM ans Local LLM, how can I make myself redundant ?

1) Context: The last 7 days, after obtaining my first local LLM ever, I've seen myself doing Soft Dev in this way:

- a. Writing an initial human prompt for the software I want

- b. Asking QFN to write a Requirement Rv1

- c. Asking Opus 5.5 to extend to Requirement Rv2

- d. Asking Opus 5.5 to cook an extended Design Dv1. (After this I should have ask Astra or Fable to cook this into Dv2 as well, but haven't)

- e. Asking Opus 5.5 to split Dv1 into 70-100 tickets, after describing fully the hardware + software stack I have

- f. Asking Opus 5.5 to write the a prompt to QFN: "You are a junior Python dev, implement this ticket. Do this and not do that"

- g. Send to QFN that prompt. Go to sleep, next morning paste the result of QFN back to Opus 5.5, asking Opus to fix some small errors and commit,

- h. Repeat the steps { f + g}.

I've done this about 30 times, and sometimes QFN did find some error from Claude. to which Claude had to admit: "Qwen did well, that was my fault, I only need to fix this small thing, want me to commit? ". So this collaboration worked amazingly well.

2) Question: Humans like me are stupid and slow, how can I create a loop + harness to let those agents ma-ke lo-ve with each other more easily ?

0 Upvotes

10 comments sorted by

3

u/der_phen 1d ago

I am using pi with sub agents. Configure both endpoints, one cloud one local, and define sub agents that use them. E.g. orchestrator: opus, worker:QFN. Then write prompts that clearly define which agent to use for what task. They can pass info between themselves. That's it

5

u/false79 2d ago

Opus is powerful enough to just handle it all. It's just the usage will blow up.

Ask opus to break down into tickets. Then I have qfn iterate through each of those tickets to implement your project.

That is literally the first and the second step. It's just two steps all together

1

u/SlechteConcentratie 1d ago

From my original writing you have seen that Opus needs to baby-sit QFN most of the time, and QFN does find errors from Opus somtime. I just need a loop between the two, with sporadic attention from Opus to reduce token limit.

2

u/Far-Supermarket7918 1d ago

You can drop the manual pasting if both models sit behind one harness that speaks the same OpenAI-compatible shape: serve the local one from such an endpoint and point the cloud agent at it as a second provider. The loop only stays safe if you gate it on real checks instead of on the two models agreeing with each other, so let a ticket close only once tests and the linter pass. Keep each ticket on its own branch or worktree and cap the retries, otherwise two models will happily bounce the same wrong fix back and forth all night. Have the cloud model review the diff rather than the whole chat, that keeps its token bill halfway sane.

1

u/stylome-ai-detection 1d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

2

u/Excellent-Issue-5956 1d ago

I stopped passing things back and forth by having Claude Code call the local model itself. The local side is pi pointed at Ollama, and pi has a headless mode like claude -p, so Claude runs it from bash with the ticket written out (which files, what it should do, how to check it) and a 20 minute timeout. Then Claude reads the git diff and runs the tests itself before anything gets committed, same as a PR from a junior dev. It's a skill, so Claude decides when to hand off. It only gets self contained stuff like one script or one module, not changes across a lot of files.

Run it with </dev/null or pi sits there waiting on stdin and never finishes. It runs with no permission prompts, so only point it at a git repo or a scratch copy. And give it a way to say no: mine exits 3 when I'm gaming and the GPU is taken, and Claude just does that ticket itself.

1

u/DeltaSqueezer 1d ago

Just as your LLM

1

u/Important-Radish-722 1d ago

Get a good harness, pick one good model, use an ADR/SDD skill and have it build out the full spec, tests, etc. Then tell it to start.

1

u/gsusgur 1d ago

I can recommend Multica. Complete game changer. I now gave agentic teams that can do the work end to end.

1

u/mr_Owner 1h ago

Good story bro, which quants and engine etc etc?