Two issues in skills/ce-work/scripts/cross-model-work.sh on v3.21.0, macOS. Both make a configured work_engine_preferences route behave differently than the equivalent review route.
1. Codex work route never sets reasoning effort
adapter_argv() builds the codex route as:
codex exec --ignore-user-config --ignore-rules --ephemeral \
-s workspace-write -C "$WORKSPACE" --json -o "$RAW_RESULT"
--ignore-user-config means ~/.codex/config.toml is not read, and no -c model_reasoning_effort is passed, so implementation runs at the model's built-in default. For gpt-5.6-luna that is medium (per codex debug models: "default_reasoning_level": "medium").
The review adapters on the same CLI do pass it — skills/ce-code-review/scripts/cross-model-adversarial-review.sh line 209:
-o "$RAW_OUT" -m "$(route_model codex)" -c 'model_reasoning_effort="xhigh"' -c 'hide_agent_reasoning=false'
So reviews get xhigh while implementation silently gets medium, and there is no supported override: work_engine_preferences exposes only harness and model, and the docs state "Do not put CLI commands or flags in configuration."
Adding -c 'model_reasoning_effort="high"' to the codex work branch fixes it locally.
2. Grok work route produces no edits at all
The grok branch uses --permission-mode acceptEdits. In a headless --prompt-file run this does not auto-approve write-class tools. Every attempt returns:
User cancelled the execution for tool `write`
"stopReason":"cancelled"
The model reasons correctly and emits the right diff, then the write is cancelled and the unit completes having changed nothing.
Reproduced 5 times on grok 0.2.118 with the adapter's exact flags, varying one thing at a time:
| Variation |
Result |
--permission-mode acceptEdits (adapter default) |
cancelled (write) |
--permission-mode dontAsk |
cancelled (write) |
no --tools allowlist |
cancelled (search_replace) |
workspace added to ~/.grok/trusted_folders.toml |
cancelled (write) |
workspace under the real runs root /tmp/compound-engineering-$UID/ce-work/... |
cancelled (write) |
Not a trust, tool-allowlist, or permission-mode issue. grok --help lists --always-approve ("Auto-approve all tool executions") as the only flag that auto-approves; the adapter never passes it. I could not verify that it fixes the run in my environment, so treat it as the likely fix rather than a confirmed one.
Worth noting the review script comments explicitly forbid emitting --always-approve — correct for a read-only review, but the work route needs some equivalent, or a preflight that fails loudly instead of returning a successful unit with an empty diff.
Impact
A user who configures grok as a work engine gets units that report success and change nothing. A user who configures codex gets a quieter surprise: implementation at medium while their reviews run at xhigh.
Environment
- compound-engineering 3.21.0
- codex-cli 0.146.0, grok 0.2.118
- macOS 15 (Darwin 25.3.0)
Two issues in
skills/ce-work/scripts/cross-model-work.shon v3.21.0, macOS. Both make a configuredwork_engine_preferencesroute behave differently than the equivalent review route.1. Codex work route never sets reasoning effort
adapter_argv()builds the codex route as:--ignore-user-configmeans~/.codex/config.tomlis not read, and no-c model_reasoning_effortis passed, so implementation runs at the model's built-in default. Forgpt-5.6-lunathat ismedium(percodex debug models:"default_reasoning_level": "medium").The review adapters on the same CLI do pass it —
skills/ce-code-review/scripts/cross-model-adversarial-review.shline 209:So reviews get xhigh while implementation silently gets medium, and there is no supported override:
work_engine_preferencesexposes onlyharnessandmodel, and the docs state "Do not put CLI commands or flags in configuration."Adding
-c 'model_reasoning_effort="high"'to the codex work branch fixes it locally.2. Grok work route produces no edits at all
The grok branch uses
--permission-mode acceptEdits. In a headless--prompt-filerun this does not auto-approve write-class tools. Every attempt returns:The model reasons correctly and emits the right diff, then the write is cancelled and the unit completes having changed nothing.
Reproduced 5 times on grok 0.2.118 with the adapter's exact flags, varying one thing at a time:
--permission-mode acceptEdits(adapter default)write)--permission-mode dontAskwrite)--toolsallowlistsearch_replace)~/.grok/trusted_folders.tomlwrite)/tmp/compound-engineering-$UID/ce-work/...write)Not a trust, tool-allowlist, or permission-mode issue.
grok --helplists--always-approve("Auto-approve all tool executions") as the only flag that auto-approves; the adapter never passes it. I could not verify that it fixes the run in my environment, so treat it as the likely fix rather than a confirmed one.Worth noting the review script comments explicitly forbid emitting
--always-approve— correct for a read-only review, but the work route needs some equivalent, or a preflight that fails loudly instead of returning a successful unit with an empty diff.Impact
A user who configures grok as a work engine gets units that report success and change nothing. A user who configures codex gets a quieter surprise: implementation at medium while their reviews run at xhigh.
Environment