rex-subagents

Installation
SKILL.md

Rex subagents

You are the main agent. Every subagent a pstack skill spawns runs as its own Claude Code or Codex agent in a Rex pane to the right of yours, in your tab. The user can watch any of them and click in. A watcher hears each worker through Rex and wakes you when it finishes, blocks, fails, or exits. Never use your harness's built-in subagents for pstack work (Claude Code's Agent tool, Codex's own agents): they don't get panes, models from ~/.config/pstack/pstack-models.md, or the wake-up.

The CLI is scripts/subagent in this skill's directory, the one your harness gave when it loaded this file, else ~/.claude/skills/rex-subagents/ on Claude Code and ~/.agents/skills/rex-subagents/ on Codex. Call it by absolute path. $SUB below stands for that path. Every command prints JSON.

Spawn

$SUB spawn --name "interrogate codex" --entry "codex/<model> (xhigh)" --brief /tmp/brief-codex.md
$SUB spawn --name "swarm slice 2" --agent claude --model <model> --effort high --brief-text "..."
$SUB spawn --name "arena b" --entry "claude/<model> (xhigh)" --worktree <branch> --brief /tmp/arena.md
Installs
2
First Seen
3 days ago