rex-claude
यह क्या करती है
यह स्किल आपके एजेंट को Rex टर्मिनल के भीतर दूसरे Claude Code सेशन चलाने और उनका समन्वय करने देती है। यह उन लोगों के लिए है जो Rex में एक साथ कई AI सेशन चलाते हैं और चाहते हैं कि एक सेशन दूसरों को चलाए।
कब इस्तेमाल करें
- ✓जब आप Rex पैन या टैब में एक और Claude Code सेशन शुरू करना चाहते हैं।
- ✓जब आपको किसी child सेशन के खत्म होने या अनुमति माँगने का इंतज़ार करना हो।
- ✓जब आप चाहते हैं कि एक एजेंट दूसरे सेशन की स्क्रीन पढ़े या उसे चलाए।
Skill का लिंक
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/rex-claude/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Rex में backend फ़ोल्डर में दूसरा Claude Code सेशन खोलिए, उसे टेस्ट का काम भेजिए, और पूरा होने पर मुझे बताइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट Rex के भीतर एक हेल्पर स्क्रिप्ट से किसी फ़ोल्डर में Claude शुरू करता है, prompts भेजता है, हर सेशन की स्थिति देखता है, फिर नतीजे पढ़ता है या पैन बंद करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Drive Claude Code sessions in Rex
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 REX_SESSION, so run them from a Bash call inside Rex.
RC="<base directory>/scripts/rex-claude.sh"
bash "$RC" help
Requirements: you are running inside a Rex terminal (REX_SESSION and REX_BLOCK 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.
Workflow
Prepare the directory. The child starts in
-d DIRand loads that directory's.claude/settings.json, plus the user's~/.claude/settings.json(model, default permission mode, hooks). To test a setting without touching the user's files, put it in a throwaway project's.claude/settings.json, or pass-- --settings '<json>'.Launch.
B=$(bash "$RC" launch -d "$DIR" -l my-task --trust -- --model sonnet)launchprints the new block ID. Save it, because every later command targets it. Arguments after--go toclaude, for example--permission-mode default,--settings,--add-diror--model. By default it splits your pane to the right without taking focus. Use--split below,--ratio 30, or--tab NAMEfor a new tab, and--focusto move focus to the new pane.Send the prompt.
bash "$RC" send "$B" 'Run the tests and fix the failing one. Write a summary to REPORT.md.'Newlines become spaces, because Return submits the prompt. For long instructions, write them to a file in the child's directory and send
Read TASK.md and do what it says., or usesend "$B" -f FILE. A prompt that starts with/runs a slash command, such as/exit.Wait for the turn.
bash "$RC" wait "$B" --timeout 600The Bash tool's default timeout is 2 minutes. Run
waitin the foreground only with a Bashtimeoutat least as long as--timeout. For anything longer, run it withrun_in_backgroundand continue when its notification arrives.waitonly counts status reports made after the lastsendorkeys, so the previous turn'sdonedoesn't end it early.Exit Output Meaning 0 doneoridleThe turn finished 10 blocked permission approve Write: /pathWaiting on a person: a permission prompt, a question or a login 11 error …The session reported an error 12 exitedclaude is no longer running in the pane 124 timeout (state=working)Still running; wait again or look at the screen Handle
blocked. Look at it withbash "$RC" screen "$B" 25. A permission prompt is the user's safety net, so follow the rules below before pressing anything. To approve once, pressbash "$RC" keys "$B" enterwhile❯ 1. Yesis selected, thenwaitagain. To refuse, pressbash "$RC" keys "$B" escape.Read the result. Prefer a file the child wrote (ask for
REPORT.mdin the prompt) over the screen. Claude Code draws on the alternate screen, which has no scrollback, soscreenshows only what is visible right now.bash "$RC" status "$B"prints the state, the pending prompt's message, the session title and the working directory.Verify on disk. Check files, test output or git state yourself. Don't report the child's own summary as proof.
Clean up. Leave the pane open when the user may want to read it. To end the session,
send "$B" /exit(thenwaitreturns 12), andclose "$B"closes the pane.
bash "$RC" ls lists every Claude Code pane in this Rex session with its state, including panes the user opened themselves.
Rules
- Drive only panes you launched, or a pane the user names. `l
अक्सर पूछे जाने वाले सवाल
इसे इस्तेमाल करने के लिए क्या चाहिए?
आपको Rex टर्मिनल के भीतर चलना होगा, और आपके कंप्यूटर पर claude और jq उपलब्ध होने चाहिए।
इसे कैसे पता चलता है कि सेशन खत्म हो गया?
Claude Code अपनी स्थिति Rex को बताता है, जैसे काम चल रहा है, पूरा या अटका हुआ, इसलिए स्किल स्क्रीन से अंदाज़ा नहीं लगाती।
क्या यह अनुमति वाले prompts संभाल सकती है?
हाँ। यह पहचान सकती है कि सेशन किसी अनुमति prompt पर अटका है, और workspace trust dialog भी संभाल सकती है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 33k
- रैंकिंग में स्थान
- #8898
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
owasp-security
33kआपके एजेंट को वेब ऐप, API, मोबाइल, कंटेनर और AI एजेंट्स के लिए OWASP सुरक्षा मार्गदर्शन सिखाती है, ताकि वह आम कमज़ोरियाँ पहचान सके और सुधार सुझा सके।
agent-management
33kआपके एजेंट को AI Maestro कमांड-लाइन से AI एजेंट बनाने, सूची देखने, hibernate और wake करने, नाम बदलने और हटाने देती है, हर एजेंट के जीवन-चक्र को संभालते हुए।
agent-messaging
33kAgent Messaging Protocol का उपयोग करके AI एजेंट्स के बीच हस्ताक्षरित संदेश भेजने, प्राप्त करने और उनका जवाब देने देती है, ज़्यादातर आपकी अपनी मशीन पर।
docs-search
33kआपके एजेंट को फ़ंक्शन सिग्नेचर, क्लास परिभाषा और कमेंट के लिए ऑटो-जनरेटेड कोड डॉक्यूमेंटेशन खोजने देती है, ताकि कोड बदलने से पहले वह असली API जाँच सके।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।