Skip to content

Commit 360b8f9

Browse files
committed
feat: add reasoning_effort input for codex
1 parent 6cb2872 commit 360b8f9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/eval-agent-on-issue.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ on:
9898
model:
9999
description: "Model to use (e.g. claude-sonnet-4-5-20250929, gpt-5.4)"
100100
required: true
101+
reasoning_effort:
102+
description: "Reasoning effort for Codex (minimal, low, medium, high, xhigh). Default: medium."
103+
required: false
104+
default: ""
101105
force_new_branch:
102106
description: "Whether to force a new branch. Defaults to false."
103107
required: false
@@ -462,10 +466,15 @@ jobs:
462466
- name: Run Codex
463467
if: inputs.agent_runtime == 'codex'
464468
run: |
469+
REASONING_FLAG=""
470+
if [ -n "${{ inputs.reasoning_effort }}" ]; then
471+
REASONING_FLAG="-c model_reasoning_effort=${{ inputs.reasoning_effort }}"
472+
fi
465473
codex exec "$(cat __agent_prompt__.md)" \
466474
--model ${{ inputs.model }} \
467475
--sandbox danger-full-access \
468476
--json \
477+
$REASONING_FLAG \
469478
2>&1 | tee /tmp/codex-trace.json
470479
471480
- name: Add signature blocks to comment files

0 commit comments

Comments
 (0)