SKILL

rex-claude

在 Rex 终端窗格或标签页中打开其他 Claude Code 会话并对其进行驱动:在目录中启动 claude、应答工作区信任对话框、发送提示词、根据每个轮次报告的状态(工作中、已完成、因权限提示而阻塞)等待、读取屏幕、按键并关闭窗格。当在 Rex 终端内运行(已设置 REX_SESSION,TERM_PROGRAM=rex)且用户希望并排启动、委派给、在其中测试、观察或控制第二个 Claude Code 会话时使用,例如在新会话中测试某项设置或权限、在另一个窗格中并行运行任务,或查看另一个 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.

适用对象:软件开发与测试。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • 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

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
davila7/claude-code-templates
源文件
cli-tool/components/skills/productivity/rex-claude/SKILL.md
固定版本
21be197f100a12b8d0dd9a211cc244c8179f84d3
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T15:01:39.788Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。