[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79ZWS2HAT8Y2ZXM6281B5G1":3,"skill-same:01M79ZWS2HAT8Y2ZXM6281B5G1":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M79ZWS2HAT8Y2ZXM6281B5G1","tmux",null,"Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.","Gen-Verse\u002FPAST-Bench","Gen-Verse","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F197493814?v=4","01M79ZTVVJS24KDA4RF6Y4BCZD","01M79ZTVW4PBQ3G7XMH1KN5BW7",37,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fagents\u002Fnanobot\u002Fnanobot\u002Fskills\u002Ftmux\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tmux\ndescription: Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.\nmetadata: {\"nanobot\":{\"emoji\":\"🧵\",\"os\":[\"darwin\",\"linux\"],\"requires\":{\"bins\":[\"tmux\"]}}}\n---\n\n# tmux Skill\n\nUse tmux only when you need an interactive TTY. Prefer exec background mode for long-running, non-interactive tasks.\n\n## Quickstart (isolated socket, exec tool)\n\n```bash\nSOCKET_DIR=\"${NANOBOT_TMUX_SOCKET_DIR:-${TMPDIR:-\u002Ftmp}\u002Fnanobot-tmux-sockets}\"\nmkdir -p \"$SOCKET_DIR\"\nSOCKET=\"$SOCKET_DIR\u002Fnanobot.sock\"\nSESSION=nanobot-python\n\ntmux -S \"$SOCKET\" new -d -s \"$SESSION\" -n shell\ntmux -S \"$SOCKET\" send-keys -t \"$SESSION\":0.0 -- 'PYTHON_BASIC_REPL=1 python3 -q' Enter\ntmux -S \"$SOCKET\" capture-pane -p -J -t \"$SESSION\":0.0 -S -200\n```\n\nAfter starting a session, always print monitor commands:\n\n```\nTo monitor:\n  tmux -S \"$SOCKET\" attach -t \"$SESSION\"\n  tmux -S \"$SOCKET\" capture-pane -p -J -t \"$SESSION\":0.0 -S -200\n```\n\n## Socket convention\n\n- Use `NANOBOT_TMUX_SOCKET_DIR` environment variable.\n- Default socket path: `\"$NANOBOT_TMUX_SOCKET_DIR\u002Fnanobot.sock\"`.\n\n## Targeting panes and naming\n\n- Target format: `session:window.pane` (defaults to `:0.0`).\n- Keep names short; avoid spaces.\n- Inspect: `tmux -S \"$SOCKET\" list-sessions`, `tmux -S \"$SOCKET\" list-panes -a`.\n\n## Finding sessions\n\n- List sessions on your socket: `{baseDir}\u002Fscripts\u002Ffind-sessions.sh -S \"$SOCKET\"`.\n- Scan all sockets: `{baseDir}\u002Fscripts\u002Ffind-sessions.sh --all` (uses `NANOBOT_TMUX_SOCKET_DIR`).\n\n## Sending input safely\n\n- Prefer literal sends: `tmux -S \"$SOCKET\" send-keys -t target -l -- \"$cmd\"`.\n- Control keys: `tmux -S \"$SOCKET\" send-keys -t target C-c`.\n\n## Watching output\n\n- Capture recent history: `tmux -S \"$SOCKET\" capture-pane -p -J -t target -S -200`.\n- Wait for prompts: `{baseDir}\u002Fscripts\u002Fwait-for-text.sh -t session:0.0 -p 'pattern'`.\n- Attaching is OK; detach with `Ctrl+b d`.\n\n## Spawning processes\n\n- For python REPLs, set `PYTHON_BASIC_REPL=1` (non-basic REPL breaks send-keys flows).\n\n## Windows \u002F WSL\n\n- tmux is supported on macOS\u002FLinux. On Windows, use WSL and install tmux inside WSL.\n- This skill is gated to `darwin`\u002F`linux` and requires `tmux` on PATH.\n\n## Orchestrating Coding Agents (Codex, Claude Code)\n\ntmux excels at running multiple coding agents in parallel:\n\n```bash\nSOCKET=\"${TMPDIR:-\u002Ftmp}\u002Fcodex-army.sock\"\n\n# Create multiple sessions\nfor i in 1 2 3 4 5; do\n  tmux -S \"$SOCKET\" new-session -d -s \"agent-$i\"\ndone\n\n# Launch agents in different workdirs\ntmux -S \"$SOCKET\" send-keys -t agent-1 \"cd \u002Ftmp\u002Fproject1 && codex --yolo 'Fix bug X'\" Enter\ntmux -S \"$SOCKET\" send-keys -t agent-2 \"cd \u002Ftmp\u002Fproject2 && codex --yolo 'Fix bug Y'\" Enter\n\n# Poll for completion (check if prompt returned)\nfor sess in agent-1 agent-2; do\n  if tmux -S \"$SOCKET\" capture-pane -p -t \"$sess\" -S -3 | grep -q \"❯\"; then\n    echo \"$sess: DONE\"\n  else\n    echo \"$sess: Running...\"\n  fi\ndone\n\n# Get full output from completed session\ntmux -S \"$SOCKET\" capture-pane -p -t agent-1 -S -500\n```\n\n**Tips:**\n- Use separate git worktrees for parallel fixes (no branch conflicts)\n- `pnpm install` first before running codex in fresh clones\n- Check for shell prompt (`❯` or `$`) to detect completion\n- Codex needs `--yolo` or `--full-auto` for non-interactive fixes\n\n## Cleanup\n\n- Kill a session: `tmux -S \"$SOCKET\" kill-session -t \"$SESSION\"`.\n- Kill all sessions on a socket: `tmux -S \"$SOCKET\" list-sessions -F '#{session_name}' | xargs -r -n1 tmux -S \"$SOCKET\" kill-session -t`.\n- Remove everything on the private socket: `tmux -S \"$SOCKET\" kill-server`.\n\n## Helper: wait-for-text.sh\n\n`{baseDir}\u002Fscripts\u002Fwait-for-text.sh` polls a pane for a regex (or fixed string) with a timeout.\n\n```bash\n{baseDir}\u002Fscripts\u002Fwait-for-text.sh -t session:0.0 -p 'pattern' [-F] [-T 20] [-i 0.5] [-l 2000]\n```\n\n- `-t`\u002F`--target` pane target (required)\n- `-p`\u002F`--pattern` regex to match (required); add `-F` for fixed string\n- `-T` timeout seconds (integer, default 15)\n- `-i` poll interval seconds (default 0.5)\n- `-l` history lines to search (integer, default 1000)\n","# tmux Skill\n\nUse tmux only when you need an interactive TTY. Prefer exec background mode for long-running, non-interactive tasks.\n\n## Quickstart (isolated socket, exec tool)\n\n```bash\nSOCKET_DIR=\"${NANOBOT_TMUX_SOCKET_DIR:-${TMPDIR:-\u002Ftmp}\u002Fnanobot-tmux-sockets}\"\nmkdir -p \"$SOCKET_DIR\"\nSOCKET=\"$SOCKET_DIR\u002Fnanobot.sock\"\nSESSION=nanobot-python\n\ntmux -S \"$SOCKET\" new -d -s \"$SESSION\" -n shell\ntmux -S \"$SOCKET\" send-keys -t \"$SESSION\":0.0 -- 'PYTHON_BASIC_REPL=1 python3 -q' Enter\ntmux -S \"$SOCKET\" capture-pane -p -J -t \"$SESSION\":0.0 -S -200\n```\n\nAfter starting a session, always print monitor commands:\n\n```\nTo monitor:\n  tmux -S \"$SOCKET\" attach -t \"$SESSION\"\n  tmux -S \"$SOCKET\" capture-pane -p -J -t \"$SESSION\":0.0 -S -200\n```\n\n## Socket convention\n\n- Use `NANOBOT_TMUX_SOCKET_DIR` environment variable.\n- Default socket path: `\"$NANOBOT_TMUX_SOCKET_DIR\u002Fnanobot.sock\"`.\n\n## Targeting panes and naming\n\n- Target format: `session:window.pane` (defaults to `:0.0`).\n- Keep names short; avoid spaces.\n- Inspect: `tmux -S \"$SOCKET\" list-sessions`, `tmux -S \"$SOCKET\" list-panes -a`.\n\n## Finding sessions\n\n- List sessions on your socket: `{baseDir}\u002Fscripts\u002Ffind-sessions.sh -S \"$SOCKET\"`.\n- Scan all sockets: `{baseDir}\u002Fscripts\u002Ffind-sessions.sh --all` (uses `NANOBOT_TMUX_SOCKET_DIR`).\n\n## Sending input safely\n\n- Prefer literal sends: `tmux -S \"$SOCKET\" send-keys -t target -l -- \"$cmd\"`.\n- Control keys: `tmux -S \"$SOCKET\" send-keys -t target C-c`.\n\n## Watching output\n\n- Capture recent history: `tmux -S \"$SOCKET\" capture-pane -p -J -t target -S -200`.\n- Wait for prompts: `{baseDir}\u002Fscripts\u002Fwait-for-text.sh -t session:0.0 -p 'pattern'`.\n- Attaching is OK; detach with `Ctrl+b d`.\n\n## Spawning processes\n\n- For python REPLs, set `PYTHON_BASIC_REPL=1` (non-basic REPL breaks send-keys flows).\n\n## Windows \u002F WSL\n\n- tmux is supported on macOS\u002FLinux. On Windows, use WSL and install tmux inside WSL.\n- This skill is gated to `darwin`\u002F`linux` and requires `tmux` on PATH.\n\n## Orchestrating Coding Agents (Codex, Claude Code)\n\ntmux excels at running multiple coding agents in parallel:\n\n```bash\nSOCKET=\"${TMPDIR:-\u002Ftmp}\u002Fcodex-army.sock\"\n\n# Create multiple sessions\nfor i in 1 2 3 4 5; do\n  tmux -S \"$SOCKET\" new-session -d -s \"agent-$i\"\ndone\n\n# Launch agents in different workdirs\ntmux -S \"$SOCKET\" send-keys -t agent-1 \"cd \u002Ftmp\u002Fproject1 && codex --yolo 'Fix bug X'\" Enter\ntmux -S \"$SOCKET\" send-keys -t agent-2 \"cd \u002Ftmp\u002Fproject2 && codex --yolo 'Fix bug Y'\" Enter\n\n# Poll for completion (check if prompt returned)\nfor sess in agent-1 agent-2; do\n  if tmux -S \"$SOCKET\" capture-pane -p -t \"$sess\" -S -3 | grep -q \"❯\"; then\n    echo \"$sess: DONE\"\n  else\n    echo \"$sess: Running...\"\n  fi\ndone\n\n# Get full output from completed session\ntmux -S \"$SOCKET\" capture-pane -p -t agent-1 -S -500\n```\n\n**Tips:**\n- Use separate git worktrees for parallel fixes (no branch conflicts)\n- `pnpm install` first before running codex in fresh clones\n- Check for shell prompt (`❯` or `$`) to detect completion\n- Codex needs `--yolo` or `--full-auto` for non-interactive fixes\n\n## Cleanup\n\n- Kill a session: `tmux -S \"$SOCKET\" kill-session -t \"$SESSION\"`.\n- Kill all sessions on a socket: `tmux -S \"$SOCKET\" list-sessions -F '#{session_name}' | xargs -r -n1 tmux -S \"$SOCKET\" kill-session -t`.\n- Remove everything on the private socket: `tmux -S \"$SOCKET\" kill-server`.\n\n## Helper: wait-for-text.sh\n\n`{baseDir}\u002Fscripts\u002Fwait-for-text.sh` polls a pane for a regex (or fixed string) with a timeout.\n\n```bash\n{baseDir}\u002Fscripts\u002Fwait-for-text.sh -t session:0.0 -p 'pattern' [-F] [-T 20] [-i 0.5] [-l 2000]\n```\n\n- `-t`\u002F`--target` pane target (required)\n- `-p`\u002F`--pattern` regex to match (required); add `-F` for fixed string\n- `-T` timeout seconds (integer, default 15)\n- `-i` poll interval seconds (default 0.5)\n- `-l` history lines to search (integer, default 1000)\n",{"name":5,"metadata":23,"description":7},{"nanobot":24},{"os":25,"emoji":28,"requires":29},[26,27],"darwin","linux","🧵",{"bins":30},[5],"main","f8223517ae7491e776b69793d9f11e9d074ab42e","agents\u002Fnanobot\u002Fnanobot\u002Fskills\u002Ftmux",9,"https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench","https:\u002F\u002Farxiv.org\u002Fabs\u002F2608.04003","https:\u002F\u002Fgithub.com\u002FGen-Verse","Research led by Ling Yang, across Princeton, Stanford, Oxford, AItonomy Foundation","2026-08-05 09:16:45",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add Gen-Verse\u002FPAST-Bench --skill tmux",{"tool":46,"command":47},"bunx","bunx skills add Gen-Verse\u002FPAST-Bench --skill tmux",{"tool":49,"command":50},"pnpm","pnpm dlx skills add Gen-Verse\u002FPAST-Bench --skill tmux","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fagents\u002Fnanobot\u002Fnanobot\u002Fskills\u002Ftmux\u002FSKILL.md",true,[54,60],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"scripts\u002Ffind-sessions.sh","SCRIPT","脚本",2942,"https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fagents\u002Fnanobot\u002Fnanobot\u002Fskills\u002Ftmux\u002Fscripts\u002Ffind-sessions.sh",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fwait-for-text.sh",2139,"https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fagents\u002Fnanobot\u002Fnanobot\u002Fskills\u002Ftmux\u002Fscripts\u002Fwait-for-text.sh",[65,71,77,83,89,95],{"skillNo":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M79ZYB2TKDT4WVWPHY5VBKPC","kappa_review_workflow","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG06_kappa_integration_review\u002F_family_seed\u002Fskills\u002Fkappa_review_workflow\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M79ZY8F4KJCAM1HFTZ4PF4DD","change_freeze_lookup","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG05_change_freeze_followup\u002F_family_seed\u002Fskills\u002Fchange_freeze_lookup\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M79ZY684WBATTYEP78X28ZX0","temporary_waiver_audit","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG04_temporary_waiver_audit\u002F_family_seed\u002Fskills\u002Ftemporary_waiver_audit\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M79ZY3GJCBCD3BZKQZGY2J4Y","oncall_handoff_lookup","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG03_oncall_handoff_lookup\u002F_family_seed\u002Fskills\u002Foncall_handoff_lookup\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M79ZY0R87W2R56W1ZTZJKCJE","ops_exception_desk_workflow","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG02_ops_exception_desk\u002F_family_seed\u002Fskills\u002Fops_exception_desk_workflow\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M79ZXY173N2QBP1MBJG02WAT","release_followup_lookup","https:\u002F\u002Fgithub.com\u002FGen-Verse\u002FPAST-Bench\u002Fblob\u002Fmain\u002Fself-evolve-tasks-v2\u002Fproactive_information_gathering\u002FPG01_release_decision_followup\u002F_family_seed\u002Fskills\u002Frelease_followup_lookup\u002FSKILL.md",[],[]]