# Codex CLI Ff

> Codex CLI Fire-and-Forget

- Skill: `rafaelcalleja/codex-cli-ff` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add rafaelcalleja/codex-cli-ff`
- Raw SKILL.md: https://api.skillmd.com/api/skills/rafaelcalleja/codex-cli-ff/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: rafaelcalleja (https://skillmd.com/u/rafaelcalleja)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/rafaelcalleja/codex-cli-ff

---


# Codex CLI Fire-and-Forget

## Environment Check
- Codex version: !`codex --version 2>/dev/null || echo "CODEX_NOT_INSTALLED"`

## Task

Execute the following Codex CLI task autonomously with complete output capture.

### Argument Parsing

Parse `$ARGUMENTS` to extract optional flags and the task description:

**Optional flags** (override defaults if present):
- `--model <MODEL>` — Override default model (see `references/models.md` for available models)
- `--effort <LEVEL>` — Override reasoning effort (low, medium, high, xhigh)
- `--sandbox <MODE>` — Override sandbox mode (read-only, workspace-write, danger-full-access)

**Defaults** (used when flags are not specified):
- Model: `gpt-5.3-codex`
- Effort: `xhigh`
- Sandbox: `workspace-write`
- Auto: `--full-auto` (always enabled)

**Everything after the flags is the task description.**

### Command Assembly

Assemble the codex command following this pattern:

```bash
codex exec \
  -m <model> \
  --config model_reasoning_effort="<effort>" \
  --sandbox <sandbox> \
  --full-auto \
  "<task description>"
```

### Execution

1. If the environment check above shows `CODEX_NOT_INSTALLED`, stop immediately and report the error
2. Assemble the command from parsed arguments and defaults
3. Execute the command via Bash
4. Capture and return the **complete** stdout and stderr — do not summarize or truncate

### Input

```
$ARGUMENTS
```

## Additional Resources

For model catalog, sandbox modes, and CLI flag reference, consult:
- **`references/models.md`** — Complete model table, effort levels, sandbox modes, and command examples

