codex icon indicating copy to clipboard operation
codex copied to clipboard

Feature request: Native read-only second-opinion Advisor for high-impact decisions

Open pixelsama opened this issue 3 months ago • 3 comments

Summary

Codex should support an optional, bounded second-opinion workflow for high-impact or high-uncertainty decisions.

At a qualifying checkpoint, the main agent would create a concise decision brief, consult a read-only Advisor, and then integrate the result while explaining which recommendations it accepted or rejected.

For example, a user might use gpt-5.6-luna at Max as the main agent and consult gpt-5.6-sol at Extra High or Max only for selected Advisor reviews. The specific model names should remain user-selectable examples rather than hard-coded behavior.

Requested behavior

  • Support an explicit “Ask Advisor” action and an optional automatic mode.
  • Trigger only at meaningful checkpoints, such as architecture choices, security boundaries, data migrations, destructive actions, hard-to-reverse design decisions, or repeated failed attempts.
  • Prepare a decision brief containing the goal, constraints, available options, current recommendation, risks, and unresolved uncertainty.
  • Provide the Advisor only the context needed for the review.
  • Keep the Advisor read-only: no file changes, tool side effects, external actions, or recursive Advisor calls.
  • Let the main agent retain responsibility for the final decision and report how the advice affected it.
  • Provide controls for the Advisor model or reasoning mode, invocation count, token or cost budget, timeout behavior, and privacy/context scope.
  • Make it visible when and why an Advisor was consulted, what context was shared, and which model or mode produced the review.

Why this matters

Using the strongest reasoning mode continuously can be unnecessarily expensive and slow. A bounded second opinion at a few consequential decision points could improve reliability while keeping normal work on the preferred main model.

This is not intended to create a model debate on every task. The value is a selective, bounded, read-only, and auditable quality gate before important decisions.

Related issues, but different scope

  • #14039 concerns model selection and routing capabilities.
  • #31965 concerns exposing built-in Chat/Quick Chat as a callable consultation primitive.

Those capabilities could help implement this feature, but they would not by themselves provide checkpoint detection, decision-brief generation, bounded read-only review, or synthesis by the main agent.

Success criteria

A user can enable the workflow, define its limits, see when and why an Advisor was consulted, inspect the review and the main agent’s final synthesis, and verify that the Advisor could not perform side effects.

pixelsama avatar Aug 04 '26 04:08 pixelsama

Strong +1 for this.

Claude already has this idea as an official Advisor capability: a faster/lower-cost executor can selectively consult a stronger model during the task, then continue execution itself.

I think Codex strongly needs the same kind of first-class mechanism.

The main reason is not simply "multi-agent is nice to have." It is a much better way to allocate intelligence and tokens.

For example, my ideal setup would be:

  • GPT-6.1 Sol as the main executor
  • GPT-6 Astra as the stronger advisor

Sol can handle the majority of repository exploration, coding, tool calls, test execution, iteration, and routine implementation work.

But when Sol encounters something genuinely difficult — for example:

  • it is uncertain about the correct approach;
  • it reaches a hard architecture or algorithm decision;
  • the evidence contradicts its current reasoning;
  • it repeatedly tries fixes without making progress;
  • it suspects that the problem requires reasoning beyond what it can confidently resolve;

it should be able to automatically ask Astra for help.

Astra should receive the relevant context and provide reasoning / strategic guidance, and then Sol should continue executing the task in the same session.

Conceptually:

User task
    ↓
GPT-6.1 Sol
(main executor)
    ↓
routine work ─────────────────────→ continue normally
    ↓
hard problem / uncertainty / repeated failure
    ↓
Ask GPT-6 Astra
(stronger advisor)
    ↓
reasoning / diagnosis / strategy
    ↓
return advice to Sol
    ↓
Sol continues implementation + verification

B143KC47 avatar Sep 30 '26 14:09 B143KC47

I'd also find this useful, especially with a simple CLI interface similar to the claude --model sonnet --advisor opus workflow.

For Codex, the proposed interface could be:

codex --model <primary-model> --advisor <advisor-model>

My use case is running a self-hosted model through an OpenAI-compatible endpoint for routine implementation and tool calls, while consulting a stronger model for difficult design decisions, debugging, and reviewing changes within the same session.

Independent provider configuration is important here: the primary and advisor may use different providers, endpoints, and credentials. It would be helpful to select each model/provider separately in configuration, with the CLI flag overriding the advisor default.

The manual "Ask Advisor" action and optional automatic consultation described above would both be useful, along with visible consultation history and configurable token/cost and invocation limits. The primary agent should retain responsibility for implementation and applying the advice.

elizabetht avatar Oct 30 '26 17:10 elizabetht

I’d like a built-in /advisor in Codex CLI so I can keep Sol as the main coding agent and select Astra as a read-only advisor for the session. I’d use it to ask for a second opinion directly, or let Codex consult it at a difficult design decision or after repeated failures. Show the advisor’s recommendation in the transcript so I can see what Sol considered before continuing.

r1yaz avatar Nov 17 '26 23:11 r1yaz