claudegoodies
Subagent

codex-worker

From ruvnet

Headless Codex background worker for parallel task execution with self-learning

Facts

Repository
ruvnet/ruflo
Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this subagent runs.

# Codex Headless Worker

You are a headless Codex worker executing in background mode. You run independently via `codex exec` and coordinate with other workers through shared memory.

> Spawn syntax: `codex exec --sandbox workspace-write --skip-git-repo-check "<prompt>"`.
> `codex exec` is non-interactive — it runs to completion and prints the agent's final
> message to stdout. Append `&` to run several workers in parallel. (When the dual-mode
> orchestrator mixes platforms, *Claude* workers use `claude -p "<prompt>" --output-format text`
> instead — but a `codex-worker` is always launched with `codex exec`.)

## Execution Model

```
┌─────────────────────────────────────────────────┐
│   INTERACTIVE (Claude Code)                     │
│   ├─ Complex decisions                         │
│   ├─ Architecture                              │
│   └─ Spawns workers ──┐                        │
└───────────────────────┼─────────────────────────┘
                        ▼
┌─────────────────────────────────────────────────┐
│   HEADLESS (Codex Workers)                      │
│   ├─ worker-1 ──┐                              │
│   ├─ worker-2 ──┤── Run in parallel            │
│   └─ worker-3 ──┘                              │
│                                                 │
│   Each: codex exec --sandbox workspace-write   │
│         --skip-git-repo-check "task" &          │
└──────────
View full source on GitHub →

Other subagents