Skip to content

feat(codex): vary reasoning_effort by mode - #504

Closed
richharvestCC wants to merge 1 commit into
garrytan:mainfrom
richharvestCC:feat/codex-reasoning-effort-by-mode
Closed

richharvestCC wants to merge 1 commit into
garrytan:mainfrom
richharvestCC:feat/codex-reasoning-effort-by-mode

Conversation

@richharvestCC

Copy link
Copy Markdown

Summary

  • Review and challenge modes keep xhigh — finding new defects requires maximum reasoning depth
  • Consult mode now uses high (analysis/verification) or medium (solution/direction proposals)
  • Updates the "Model & Reasoning" documentation section to reflect the change

Motivation

All codex modes were hardcoded to reasoning_effort="xhigh". This makes sense for review/challenge where the goal is to discover unknown defects, but consult calls where the problem is already defined and only a direction is needed don't benefit from maximum reasoning — they just consume more tokens.

Decision criteria: "Finding new defects → xhigh. Answering known questions → high or medium."

Changes

  • codex/SKILL.md.tmpl: Added step 4 in Consult Mode (Step 2C) with reasoning effort selection logic
  • codex/SKILL.md.tmpl: Changed consult codex exec calls from hardcoded xhigh to <EFFORT> placeholder
  • codex/SKILL.md.tmpl: Updated "Model & Reasoning" section to document the per-mode strategy

Test plan

  • Run /codex review — should still use xhigh
  • Run /codex challenge — should still use xhigh
  • Run /codex consult with analysis prompt — should use high
  • Run /codex consult with solution prompt — should use medium

Review and challenge modes keep xhigh — finding new defects requires
maximum reasoning depth. Consult mode now uses high (for analysis/
verification prompts) or medium (for solution/direction prompts),
since answering known questions doesn't need the same depth as
discovering unknown problems.

This avoids unnecessary token consumption on consult calls where
the problem is already defined and only a direction is needed.
@16francej

Copy link
Copy Markdown
Collaborator

Closing — the codebase has changed significantly since this was opened and this no longer applies to current main. Thanks for the contribution.

@16francej 16francej closed this Jul 14, 2026
capy-ai Bot added a commit that referenced this pull request Nov 22, 2026
…r byte (GST-3298) (#4646)

New `gstack-vendored-verify` checks that every file a repo copies from
an open-source project is byte-for-byte that project's file, at a commit
on its default branch, a tag or a branch the base names, from a
repository the base branch trusts.

Why: harness-evals copies 1,056 upstream test files into its eval tasks
and today hides them from review in tar archives; this proves the claim
the archives only assert (1,054 of 1,056 verify on #504 in 19 seconds; 2
are upstream executables).

Nothing to do unless you vendor code: the new `review_vendored` policy
key is off by default.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p11/outside-voice#1 reader=outside-voice
Review-Finding: p11/outside-voice#2 reader=outside-voice
Review-Finding: p11/outside-voice#3 reader=outside-voice
Review-Finding: p11/adversarial-native#3 reader=adversarial-native
Review-Finding: p11/adversarial-native#1 reader=adversarial-native
Review-Finding: p11/adversarial-native#5 reader=adversarial-native
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants