मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)394k · #86

tmux

यह क्या करती है

यह AI एजेंट को tmux सेशन का आउटपुट पढ़ने और उनमें इनपुट भेजने के चरण बताती है, खासकर उन इंटरैक्टिव टूल के लिए जो पहले से चल रहे हैं। यह उन डेवलपर्स के लिए है जो लंबे चलने वाले टर्मिनल काम tmux में रखते हैं।

कब इस्तेमाल करें

  • ✓जब आप देखना चाहते हों कि चल रहा टर्मिनल टूल क्या छाप रहा है।
  • ✓जब किसी tmux सेशन का टूल इनपुट का इंतज़ार कर रहा हो और उसे जवाब चाहिए।
  • ✓जब आपको tmux सेशन शुरू करना, नाम बदलना या बंद करना हो।

Skill का लिंक

https://github.com/openclaw/openclaw/blob/main/skills/tmux/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/openclaw/openclaw/blob/main/skills/tmux/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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 -p prints 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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

discord-user-post

394k

यह आपके एजेंट को, आपकी मंज़ूरी के बाद, चैनल की पुष्टि करके आपके नाम से Discord डेस्कटॉप ऐप के ज़रिए संदेश भेजने देती है।

प्रोडक्टिविटीईमेल और मैसेज

discrawl

394k

यह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।

डेटाडेटाबेस

gitcrawl

394k

यह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।

डेटाएनालिसिस और स्प्रेडशीट

graincrawl

394k

यह आपके एजेंट को सेव की गई Granola मीटिंग नोट्स और ट्रांसक्रिप्ट में खोजने, उनकी ताज़गी जांचने और किसी अवधि के हिसाब से गिनती करने देती है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills