rex-claude
Open other Claude Code sessions in Rex terminal panes or tabs and drive them: launch claude in a directory, answer the workspace trust dialog, send prompts, wait for each turn by its reported status (working, done, blocked on a permission prompt), read the screen, press keys and close the pane. Use when running inside the Rex terminal (REX_SESSION is set, TERM_PROGRAM=rex) and the user wants to start, delegate to, test in, watch or control a second Claude Code session side by side, for example to test a setting or permission in a fresh session, run a task in parallel in another pane, or check what another Claude pane is doing.
Target: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- Drive Claude Code sessions in Rex
- Workflow
- Rules
- Patterns
- Without the script
Rex is a terminal multiplexer from Superlogical. Its rex CLI opens panes, types into them and reads their screens. Claude Code reports its state to Rex through the Program Status Protocol (OSC 7501): idle, working, done, blocked (with kind=permission, question or auth) and error. This skill uses that state to know when a child session has finished or needs someone, instead of guessing from the screen. The helper script scripts/rex-claude.sh wraps the steps. Build its path from the "Base directory for this skill" line that Claude Code gives you when it loads this skill: /.claude/skills/rex-claude for a user install, or .claude/skills/rex-claude inside the project for a project install. Run it with bash, so it works even if the installer dropped the executable bit. Every command needs REXSESSION, so run them from a Bash call inside Rex. Requirements: you are running inside a Rex terminal (REXSESSION and REXBLOCK are set), and claude and jq are on PATH. For general Rex usage (tabs, layouts, other programs) run rex skill show, or install Rex's own skill with rex skill setup. 1. Prepare the directory. The child starts in -d DIR and loads that directory's .claude/settings.json, plus the
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- davila7/claude-code-templates
- Source file
- cli-tool/components/skills/productivity/rex-claude/SKILL.md
- Fixed revision
- 21be197f100a12b8d0dd9a211cc244c8179f84d3
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:39.788Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.