tmux
यह क्या करती है
यह AI एजेंट को tmux सेशन का आउटपुट पढ़ने और उनमें इनपुट भेजने के चरण बताती है, खासकर उन इंटरैक्टिव टूल के लिए जो पहले से चल रहे हैं। यह उन डेवलपर्स के लिए है जो लंबे चलने वाले टर्मिनल काम tmux में रखते हैं।
कब इस्तेमाल करें
- ✓जब आप देखना चाहते हों कि चल रहा टर्मिनल टूल क्या छाप रहा है।
- ✓जब किसी tmux सेशन का टूल इनपुट का इंतज़ार कर रहा हो और उसे जवाब चाहिए।
- ✓जब आपको tmux सेशन शुरू करना, नाम बदलना या बंद करना हो।
Skill का लिंक
https://github.com/openclaw/openclaw/blob/main/skills/tmux/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“worker नाम के tmux सेशन को जांचिए और बताइए कि वह अभी क्या छाप रहा है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल सेशन और panes सूचीबद्ध करती है, हाल का आउटपुट पढ़ती है, और आपके मांगने पर टेक्स्ट या keys भेजती है। किसी भी प्रॉम्प्ट को मंज़ूर करने या कुछ चुनने से पहले वह पुष्टि करती है कि प्रॉम्प्ट समझ में आ गया है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
tmux
Use for existing interactive tmux sessions. For one-shot commands, use normal shell. For new non-interactive background jobs, use background execution.
Basics
tmux ls
tmux list-windows -t shared
tmux list-panes -t shared:0
tmux capture-pane -t shared:0.0 -p
tmux capture-pane -t shared:0.0 -p -S -
Target format: session:window.pane, e.g. shared:0.0.
Send input
Literal text, then Enter:
tmux send-keys -t shared:0.0 -l -- "Please continue"
tmux send-keys -t shared:0.0 Enter
Special keys:
tmux send-keys -t shared:0.0 C-c
tmux send-keys -t shared:0.0 C-d
tmux send-keys -t shared:0.0 Escape
Use -l -- for arbitrary text. Split text and Enter to avoid paste/newline surprises.
Sessions
tmux new-session -d -s worker
tmux rename-session -t old new
tmux kill-session -t worker
Prompt checks
tmux capture-pane -t worker-3 -p | tail -20
tmux capture-pane -t worker-3 -p | rg "proceed|permission|Yes|No|❯"
Approve/select only when the prompt is understood:
tmux send-keys -t worker-3 -l -- "y"
tmux send-keys -t worker-3 Enter
Helpers
scripts/find-sessions.sh: discover sessions.scripts/wait-for-text.sh: wait until captured pane contents contain text.
wait-for-text.sh searches echoed input and scrollback as well as process output. For command completion, use a unique marker whose full text is split across arguments in the command sent to tmux:
nonce="$(od -An -N8 -tx1 /dev/urandom | tr -d ' \n')"
marker="OPENCLAW_DONE_${nonce}"
tmux send-keys -t shared:0.0 -l -- "sleep 4; printf '%s%s\n' 'OPENCLAW_DONE_' '$nonce'"
tmux send-keys -t shared:0.0 Enter
scripts/wait-for-text.sh -t shared:0.0 -p "$marker" -F -T 30
The echoed command never contains the complete marker, and the nonce prevents an older completion line from matching.
Notes
capture-pane -pprints to stdout for scripts.-S -captures full scrollback.- tmux sessions persist across SSH disconnects.
अक्सर पूछे जाने वाले सवाल
क्या यह बिना पूछे कमांड भेज देगी?
यह कोई प्रॉम्प्ट तभी मंज़ूर करती है जब वह समझ में आए और कार्रवाई साफ़ हो।
क्या tmux एक-बार के कमांड के लिए है?
नहीं। एक-बार के कमांड के लिए सामान्य shell सरल है, और tmux मौजूदा इंटरैक्टिव सेशन के लिए है।
क्या यह किसी काम के पूरा होने का इंतज़ार कर सकती है?
हां। एक helper स्क्रिप्ट तब तक रुक सकती है जब तक pane में कोई खास टेक्स्ट न दिखे, हालांकि यूनिक मार्कर सबसे अच्छा काम करता है।
जानकारी
लेखक का मूल विवरण
Control tmux sessions/panes for interactive CLIs: list, capture output, send keys, paste text, monitor prompts.
repo: openclaw/openclaw
लोकप्रियता
- GitHub स्टार
- 394k
- रैंकिंग में स्थान
- #86
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
discord-user-post
394kयह आपके एजेंट को, आपकी मंज़ूरी के बाद, चैनल की पुष्टि करके आपके नाम से Discord डेस्कटॉप ऐप के ज़रिए संदेश भेजने देती है।
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
graincrawl
394kयह आपके एजेंट को सेव की गई Granola मीटिंग नोट्स और ट्रांसक्रिप्ट में खोजने, उनकी ताज़गी जांचने और किसी अवधि के हिसाब से गिनती करने देती है।
मिलती-जुलती skills
wizard
310kआपको सेटअप के वे चरण दिखाती है जो केवल आप कर सकते हैं, जैसे credentials जोड़ना या डैशबोर्ड सेटिंग्स बदलना, एक निर्देशित स्क्रिप्ट के साथ।
git-guardrails-claude-code
310kएक सुरक्षा hook लगाती है जो जोखिम भरे git कमांड, जैसे push, hard reset और ज़बरदस्ती branch हटाना, चलने से पहले रोक देता है।
setup-pre-commit
310kहर git commit के समय कोड को फ़ॉर्मेट करने, type-check करने और टेस्ट करने वाली अपने-आप चलने वाली जांचें सेट करती है।