---
name: rjv-subagents-claude
description: "Mechanism: launch and route subagents in Claude Code (Haiku, Sonnet, Opus, plus opencode and local Ollama). Claude Code only; in Codex use rjv-subagents-codex. Load rjv-delegate first for delegation policy."
---

# Claude Code subagents

**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: **Opus** or **Fable**.

## Ladders and rungs

| Job needs… | Ladder (cheap → dear) |
|---|---|
| **Repo tools** (recon, file reads, edits, commands) | Haiku → Sonnet → Opus |
| **Self-contained text** (context fits in prompt) | opencode → Haiku → Sonnet |

| Rung | Mechanical | Standard | Hard |
|---|---|---|---|
| Claude subagent | Haiku | Sonnet | Opus |
| opencode (`rjv-opencode-agents`) | DeepSeek v4.1 Flash, one retry | not used | not used |

## Time boxes

| Worker | Boxes to pick from |
|---|---|
| Claude subagent (Haiku, Sonnet, Opus) | 5 · 10 · 15 min |
| opencode | 2 · 5 min |

opencode gets only mechanical work and is fast, so a slow run means
looping.

## Host mechanics

- **Always set `model` explicitly** when spawning a subagent so it does
  not inherit the parent's model.
- **Sensitive work stays on Claude** (Sonnet or higher). Never send
  secrets, credentials, customer data, approval/access-control logic,
  migrations, harness edits or production-risk work to 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.
- **Local Ollama** in Claude Code runs through `rjv-opencode-agents`
  (see `rjv-codex-ollama-subagents` for local model rules).
- **Codex reviews.** The user relays them by hand (`rjv-code-review`).
  Start Codex yourself only when the user asks or the plan's Cast names
  it (`rjv-session-link`); default model is `gpt-6.1-sol` at low effort
  unless the user names another.
- **Unattended runs.** No Opus subagents unless the piece is Hard.
- **Global instructions** live at `~/.claude/CLAUDE.md` (prune with
  `rjv-writing-skills`).
