# Rjv Subagents Codex

Launch and route sub-agents in Codex (Luna, Terra, Astra, opencode, and local Ollama). Requires loading `rjv-delegate` first for delegation policy.

**Canonical URL:** https://skillshunter.net/skills/discovered-84a67449c7c052b13bb35bf826a06b2fbf2b6fd956688d5a

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-84a67449c7c052b13bb35bf826a06b2fbf2b6fd956688d5a

**Markdown URL:** https://skillshunter.net/skills/discovered-84a67449c7c052b13bb35bf826a06b2fbf2b6fd956688d5a.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-84a67449c7c052b13bb35bf826a06b2fbf2b6fd956688d5a/download

**Category:** Software & Development

**Source URL:** https://github.com/rjvim/ai-skills/blob/9a942086adef21dbd0c061d9d9e8fd5f43328bf6/skills/rjv-subagents-codex/SKILL.md

**Source commit:** 9a942086adef21dbd0c061d9d9e8fd5f43328bf6

**Listing approved at:** 2026-12-03

**Created at:** 2026-12-02T09:10:05.000000Z

**Updated at:** 2026-12-03T16:19:55.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Always set the model explicitly. Only a fresh sub-agent (`fork_turns` `"none"` or a number) accepts a model override; a full-history fork rejects it. Sensitive work must stay on Codex cloud models (Terra or higher) and should not be sent to local Ollama or opencode.

### When to use it

- Launching sub-agents for repo tools and file operations
- Routing self-contained text tasks to appropriate models
- Setting time boxes for sub-agent execution
- Managing sensitive work on Codex cloud models

## Skill instructions

---
name: rjv-subagents-codex
description: "Mechanism: launch and route sub-agents in Codex (Luna, Terra, Astra, opencode and local Ollama). Codex only; in Claude Code use rjv-subagents-claude. Load rjv-delegate first for delegation policy."
---

# Codex sub-agents

**Load `rjv-delegate` first.** It owns when to delegate, splitting,
briefs, time boxes and the 2x stop, machine hygiene, parallel limits,
watching slow work, unattended runs and checking results.

Big model on this host: **Astra** or **Sol**.

## Ladders and rungs

| Job needs… | Ladder (cheap → dear) |
|---|---|
| **Repo tools** (recon, file reads, edits, commands) | local Ollama explorer or worker → Luna → Terra |
| **Self-contained text** (context fits in prompt) | local one-shot → opencode → Luna → Terra |

| Rung | Mechanical | Standard | Hard |
|---|---|---|---|
| Codex sub-agent | `gpt-5.6-luna`, low | `gpt-5.6-terra`, medium | `gpt-6-astra`, high |
| opencode (`rjv-opencode-agents`) | DeepSeek v4.1 Flash, one retry | not used | not used |
| Local Ollama (`rjv-codex-ollama-subagents`) | gemma explorer or worker; qwen coder one-shot | not used | not used |

## Time boxes

| Worker | Boxes to pick from |
|---|---|
| Codex sub-agent (Luna, Terra, Astra) | 5 · 10 · 15 min |
| opencode | 2 · 5 min |
| Local Ollama, one-shot text | 5 · 10 min |
| Local Ollama with repo tools (explorer or worker) | 10 · 20 · 30 min |

Why the rows differ: third-party models are fast and get only mechanical
work, so a slow run means looping. Local models are slower and Ollama
queues parallel calls, so their boxes are larger.

## Host mechanics

- **Always set the model explicitly.** Only a fresh sub-agent
  (`fork_turns` `"none"` or a number) accepts a model override; a
  full-history fork rejects it.
- **Local Ollama queues concurrent calls**, so parallel local runs save
  tokens and take as long as sequential. One-shot local models have no
  tools and cannot do recon.
- **Sensitive work stays on Codex cloud models** (Terra or higher).
  Never send secrets, credentials, customer data, approval/access-control
  logic, migrations, harness edits or production-risk work to local
  Ollama or opencode.
- **opencode** runs only through `rjv-opencode-agents`, which puts text
  work in an empty directory and watches every run. `repo` mode (under
  `--auto`) only when the user asks in this session; never start one on
  your own. opencode's shell still reaches the account, so never put
  secrets or customer data in its brief.
- **Codex reviews.** The user relays them by hand (`rjv-code-review`).
  Start a review sub-agent yourself only when the user asks or the
  plan's Cast names one (`rjv-session-link`); default model is
  `gpt-6.1-sol` at low effort unless the user names another. An explicit
  user model choice takes precedence.
- **Unattended runs.** Local Ollama first (slow is fine overnight), then
  Luna. No Astra sub-agents unless the piece is Hard.
- **Global instructions** live at `~/.codex/AGENTS.md` (prune with
  `rjv-writing-skills`).

