Skip to content

Commit 955f5f8

Browse files
committed
fix(ce-work-beta): make Codex availability check unambiguous for agents
Use explicit CODEX_AVAILABLE/CODEX_NOT_FOUND sentinel output instead of relying on command -v's path-or-empty result, which agents misread. Include install hints (npm, brew) in the fallback message.
1 parent 21dabf4 commit 955f5f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/compound-engineering/skills/ce-work-beta/references/codex-delegation-workflow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ If `inside_sandbox` is true, delegation would recurse or fail.
5454
**2. Availability Check**
5555

5656
```bash
57-
command -v codex
57+
command -v codex >/dev/null 2>&1 && echo "CODEX_AVAILABLE" || echo "CODEX_NOT_FOUND"
5858
```
5959

60-
If the Codex CLI is not on PATH: emit "Codex CLI not found -- using standard mode." and set `delegation_active` to false.
60+
If the output is `CODEX_NOT_FOUND`: emit "Codex CLI not found (install via `npm install -g @openai/codex` or `brew install codex`) -- using standard mode." and set `delegation_active` to false.
6161

6262
**3. Consent Flow**
6363

0 commit comments

Comments
 (0)