Hacker News new | past | comments | ask | show | jobs | submit
What do you use to get Opus to call Qwen?
I just fell Claude "there's an LLM server on this port serving this model, use it as a subagent"

Claude will write some scripts to call the LLM API and use it like any other tool.

I haven't found a pressing need for anything more complex than that. My multi-agent setups tend to be a pile of bespoke scripts per project anyway, an MCP server is only gonna get in the way. But I suppose this is because I self-host the models, if you're using OpenRouter or whatever it may need more complexity than a curl call to an unauthenticated port

loading story #50400995
So I use Google Gemini to plan or review; otherwise same loop so brain dumping how I get Gemini to Qwen/Gemma/Meta's model I forget the codename for; local agent reads the AI Studio log locally via Google Drive where they store the logs by default in a JSON format

So with the gdrive app for my OS it just looks like a local file path. Had the local agent learn to parse it.

I still prompt in AI studio direct as needed; local agents see the log change but cannot push back to Gemini their result.

Few reasons:

AI Studio is available where ever via browser, no VS Code or my usual vim setup to miss. I can switch between projects there as an idea hits and the agent switches up the local repo path and session history.

AI studio can search web, etc, etc already so my agent is less complicated with addons in general

Also using AI Studio between local agent turns has been my "human in the middle" approach; to have an explicit gap in the process and check each turn.

I only have a 24GB 3090 most models also take longer locally and I never hit the free tier limits with Gemini :D

Though the latest Meta model is twice as fast at 30B for me as other similar size models. 1-2 hour code gen and QA of build errors is now 30-50 minutes to parse latest changes from Gemini and get a successful build. The Meta model is pretty great at "fill in the middle" from a well structured plan.

Overall this loop feels like a normal workday pace. I freelance so I have a lot more say over that.

Custom MCP with a variety of functions, I have different Qwen profiles with a variety of subagent numbers and cache pools, my default is 192k pool with 64k initial context that can grow 32k at a time up to 128k, allowing 3x64k, 2x96k or 1x128k and 1x64k subagents. Qwen uses Pi harness. Model I use specifically is ukisai/Swift-1.5-Qwen3.8-27B-GSQ-RCO-GGUF
loading story #50404921
loading story #50399511
Install the llm cli and tell opus to use it to prompt qwen.
you can easily run qwen locally in a pi harness (or similar) and just tell claude code to delegate all implementation work to it. claude will even setup the harness with the local model
You can have a setup like this with OpenCode agents, where you can define custom top-level agents, subagents, and assign specific models to each.

https://opencode.ai/docs/agents/

There are a lot of ways to do this if you stop using Big Ai harnesses that make it difficult to use models besides theirs.

ohmypi will spawn subagents across different providers out of the box. Opus will spawn subagents running on my local ds4 installation just fine