[Feature] Per-model V1/V2 subagent mode selection (including V2 Plaintext)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design
Research direction
Start by reading the multi-agent mode configuration and routed task delivery paths, especially the V2 Plaintext compiler for the canonical ChatGPT route. Check whether provider identity is available when selecting a parent model and constructing subagent tasks. Done means compatible third-party parents can use readable V2 tasks, or per-model mode overrides select V1/V2/V2 Plaintext for new conversations without changing existing ones; the issue does not name specific files or tests.
Written by the indexing model from the issue text.
Description
Area
Proxy and routing
What are you trying to accomplish?
I want to choose the multi-agent collaboration mode per model, instead of applying one global V1/V2 mode to every model in Codex Desktop.
My preferred setup is:
- Native ChatGPT GPT models:
v2-plaintext, so they can delegate readable tasks to routed subagents. opencode-go/deepseek-v4.1-flash:v2, since I tested it as a V2 parent and it can spawn working V2 subagents.ZQ/gpt-6.2-sol:v1as a compatibility fallback, because V2 delegation currently fails for me.
Ideally, the mode would be selected automatically when I choose a parent model for a new conversation. I would also like to know whether individual subagent models can be configured separately (for example, one model uses V1 and another uses V2), rather than being forced to use the same collaboration mode globally.
I want to retain V2 where it actually works, without repeatedly changing the global mode to accommodate an incompatible provider.
What prevents this today?
I'm using OpenCodex 2.100.5 with Codex Desktop. I have enabled multiAgentMode: "v2-plaintext".
I tested three scenarios:
- Native GPT parent → DeepSeek V2 child: Works. Both
spawn_agentandfollowup_tasksuccessfully deliver readable tasks toopencode-go/deepseek-v4.1-flash. - DeepSeek parent → V2 subagents: Also works. I tested
opencode-go/deepseek-v4.1-flashas the parent and it was able to spawn and use V2 subagents successfully. - Third-party GPT parent → DeepSeek V2 child: With
ZQ/gpt-6.2-sol(using theopenai-responsesadapter) as the parent, V2 child creation fails in practice. The child reports:Routed V2 worker task is encrypted for the native ChatGPT backend and cannot be read by the selected provider.The parent reportsunreadable_encrypted_agent_task; sometimes the child conversation fails to load at all. This still happens with V2 Plaintext enabled, as shown in the attached screenshot.
I understand the documented plaintext compiler only applies to the canonical ChatGPT forward route, not arbitrary third-party Responses providers. I have not verified where the encrypted payload originates.
Questions:
- Is it expected that
v2-plaintextdoes not rewrite tasks for a third-party GPT parent usingopenai-responses? - Is there a way to fix this specific routed-GPT-parent failure while keeping working third-party V2 parents such as DeepSeek on V2?
- If not, can OpenCodex let users assign V1/V2 modes per model, instead of forcing a global choice?
What should OpenCodex do?
Ideally, please investigate whether compatible third-party GPT providers can participate in readable V2 delegation, while preserving the current canonical-ChatGPT plaintext path.
Regardless of whether that is possible, I would like a configurable per-model collaboration mode:
- Allow an explicit
v1,v2, orv2-plaintextchoice for eligible models, with a global default for models without an override. - When starting a new conversation, use the selected parent model's configured mode automatically.
- Keep DeepSeek on V2 when it works; use V1 only for specific incompatible models such as my routed
ZQ/gpt-6.2-sol. - Do not silently change existing conversations or forward encrypted tasks to providers unable to read them.
Additional question about subagent configuration: Could the mode also be configured per subagent model in the subagent roster (e.g. model A uses V1, model B uses V2)? If mixing V1 and V2 subagents within one parent session is not supported by Codex's collaboration protocol, could you clarify that limitation and support per-parent-model modes for new sessions as a first step?
The exact implementation/configuration interface is flexible.
Example usage or interface
An illustrative configuration could look like this:
{
"multiAgentMode": "v2",
"multiAgentModeByModel": {
"gpt-6.2-sol": "v2-plaintext",
"ZQ/gpt-6.2-sol": "v1",
"opencode-go/deepseek-v4.1-flash": "v2"
}
}
This is proposed syntax, not an existing OpenCodex configuration option.
Expected behavior when starting new parent sessions:
- Select native
gpt-6.2-sol→ use V2 Plaintext; routed DeepSeek child tasks remain readable. - Select
opencode-go/deepseek-v4.1-flash→ use V2; it can spawn V2 subagents. - Select
ZQ/gpt-6.2-sol→ automatically use V1, avoiding the failing V2 task-delivery path. - No manual global-mode toggling or restart just to switch models.
If supported, I would also appreciate individual subagent-model V1/V2 settings in the subagent configuration UI. If not, per-parent-model selection alone would already solve my main workflow issue.
Alternatives or workarounds
- Global V1: Avoids some V2 incompatibilities, but unnecessarily gives up working V2 flows for native GPT and DeepSeek.
- Global V2 Plaintext: Native GPT → DeepSeek works, and DeepSeek can also act as a V2 parent, but
ZQ/gpt-6.2-solstill fails as a V2 parent. - Manually change the global mode: Possible, but inconvenient when switching between models.
- Separate OpenCodex configurations/instances: More complicated than a per-model setting.
I am aware of the experimental agentTaskRecovery mechanism, but it does not appear to be a general fix for arbitrary third-party parent models.
Additional context
Environment
- OpenCodex:
2.100.5 - Client: Codex Desktop
- Tested global mode:
v2-plaintext - Native parent:
gpt-6.2-sol(ChatGPT OAuth) - Third-party GPT parent that fails:
ZQ/gpt-6.2-sol(openai-responses) - Third-party V2 parent that works:
opencode-go/deepseek-v4.1-flash - Confirmed working third-party V2 child:
opencode-go/deepseek-v4.1-flash
Related issues and implementation
- PR #7376 — Experimental V2 Plaintext implementation
- Issue #92 — V2 cross-provider encrypted task delivery
- Issue #418 — V2 custom-parent → custom-child delegation
I'm happy to provide sanitized request logs and further reproduction details if needed.
Checks
- I searched existing issues and documentation.
- This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
- I removed secrets and personal data.
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.3k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 814
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lidge-jun/opencodex
-
bug gui platform
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
lidge-jun/opencodex#9172 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
[Feature]: Include provider, model and account label in the `upstream failure` service.log linePossibly taken @EnesKartal claimed this 4 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lidge-jun/opencodex#9057 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersPossibly taken @sedoll claimed this 6 days ago. Opencatalog provider provider-compatibility
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
lidge-jun/opencodex#9037 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug cli
Difficulty 4/5 3-5 days Newbie friendliness 52/100
lidge-jun/opencodex#9171 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
account-pool enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
All issues in lidge-jun/opencodex
Similar issues
-
manually bump balena-preload to ^19.0.6Possibly taken @shaunmulligan claimed this today. Open
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
balena-io/balena-cli#3200 ·
Maintainers usually reply within 1 day
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOMPossibly taken @olegius88 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
melgarafael/DeskcommCRM#5340 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
Maintainers usually reply within 1 day