rex

rex is a skill for Claude Code, Codex from musingfox/cc-plugins. It costs 47 tokens per session (434 once invoked), scanned A, original, MIT.

A command-line tool for managing Rex sessions, terminal tabs, panes, commands, and connected applications. It can also watch coding agents running in Rex panes using their reported status.

In plain words
What is it for?
Use it to open and arrange terminal panes, run or inspect commands, send follow-ups, and monitor agents such as Claude Code or pi.
Why use it?
It lets you control several terminal work areas and wait for agent results without guessing from old screen output. It distinguishes working, blocked, done, timed-out, and closed panes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Good fit Use it to open and arrange terminal panes, run or inspect commands, send follow-ups, and monitor agents such as Claude Code or pi.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/musingfox/cc-plugins/rex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add musingfox/cc-plugins --skill rex
Clone the repo
git clone --depth 1 https://github.com/musingfox/cc-plugins

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rex

README.md
[![agentmods](https://agentmods.dev/badge/skills/musingfox/cc-plugins/rex/github.svg)](https://agentmods.dev/skills/musingfox/cc-plugins/rex)
Your own site
<a href="https://agentmods.dev/skills/musingfox/cc-plugins/rex"><img src="https://agentmods.dev/badge/skills/musingfox/cc-plugins/rex/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rex

Your own site · 80×15
<a href="https://agentmods.dev/skills/musingfox/cc-plugins/rex"><img src="https://agentmods.dev/badge/skills/musingfox/cc-plugins/rex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 434 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00434
Opus 5.5 $0.00019 $0.00174
Sonnet 5.5 $0.00009 $0.00087
Haiku 4.5 $0.00005 $0.00043

Measured 4d ago against content hash bd2dedc5ebc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rex scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/rex/SKILL.md · 22 lines

What it actually says

Run rex __internal skill and follow the guide it prints. The guide comes from the installed Rex CLI, so it describes the commands available in that version.

If the command fails, the installed Rex version predates the guide. Start with rex whoami --json, then use rex --help and rex COMMAND --help.

Watching agents in panes

An agent's state comes from the program status it reports (OSC 7501), not from its screen. Never infer it by scraping rex capture: old turns' output stays on screen.

  • To wait for an agent, run rex do ~/.agents/skills/rex/scripts/agent-wait.lua -s S -b B until=done,blocked timeout=600. It returns the matching record as JSON. Exit 124 means it timed out, and exit 3 means the pane is gone.
  • After rex send a follow-up, add fresh=true, so the previous turn's done does not satisfy the wait.
  • To read the state once, run rex block call -s S -b B program_status. Save the output in a variable and check the exit code before parsing; a closed pane exits 3 ("not found").
  • Claude Code reports working, blocked and done. During AskUserQuestion it reports blocked with kind=question, and msg holds the question.
  • Empty records is not idle: the program has not reported yet, for example while the folder-trust dialog blocks the session from starting. Capture the pane to see what it waits on.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 22 lines · 47 tokens per session scan A bd2dedc5ebc4

Subscribe to this mod's changes

rex is a skill published in the GitHub repository musingfox/cc-plugins (2 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 434 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

rex compared with skills from other repositories

rex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rexmusingfox/cc-pluginsSkill22d agoMITA47Claude Code, Codex
orbit-notionnexu-io/open-designSkill106ktodayApache-2.0A117Claude Code, Codex
agentmailpaperclipai/paperclipSkill112ktodayMITA30Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
rowboat-spacesrowboatlabs/rowboatSkill18ktodayApache-2.0A60Claude Code, Codex
feishuHmbown/CodeWhaleSkill41k6d agoMITA33Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k10d agoMITA52Claude Code, Codex