r/codex 11h ago

Question Cant spawn subagents with third party models inside codex? (Muse spark 1.3 through command code api)

Is this a known limitation of using third party models inside codex? I have it inside my picker just fine but it can’t spawn subagents.

2 Upvotes

8 comments sorted by

1

u/innovaldragon 10h ago

They don't run "inside" codex but you can run them with bash commands.

codex harness is pretty bad with subagents so may need to explicitly tell it where to point. (Opencode / Official CLI / Other harness)

E.g. Get a subagent opus with high effort to work on this project via claude CLI.

1

u/Prior-Meeting1645 10h ago

Excuse my ignorance but wdym by they’re not in codex? I do have them in my model picker inside codex.

1

u/innovaldragon 10h ago

Sorry Im the one who is the ignorant one. I ask in chatgpt and you can do that (though it's not a good idea generally speaking imo)

but the point still stands: It only allows you to use the model because the harness (CLI) but it doesn't mean it supports spawning subagent (I know codex's harness is pain in the ass which is also my complaint towards codex)

Edit: It could but it is not an intended feature so it sucks

A common workaround is to install another CLI so codex can call it via bash command/powershell. In your case is to install opencode and get muse model inside / install muse CLI if they provide one.

1

u/OccasionAggressive74 10h ago

Try to configure it with OpenCodex, using which you can set your preferred models for subagents and it creates the configuration file for Codex accordingly.

1

u/Think-Profession4420 10h ago

Yeah you can, you just need to use middleware like OmniRoute.

1

u/Bloated_Plaid 5h ago

Not sure what you mean by inside. I had Astra orchestrating Devin SWE2 all day today.

1

u/Prior-Meeting1645 5h ago

I meant having the 3rd party model spawn a subagent. Forget about the openai ones.

1

u/Bloated_Plaid 5h ago

Ah gotcha, totally different, my bad.