chore: rename project to clawdbot
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
---
|
||||
name: tmux
|
||||
description: Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
|
||||
metadata: {"clawdis":{"emoji":"🧵","os":["darwin","linux"],"requires":{"bins":["tmux"]}}}
|
||||
metadata: {"clawdbot":{"emoji":"🧵","os":["darwin","linux"],"requires":{"bins":["tmux"]}}}
|
||||
---
|
||||
|
||||
# tmux Skill (Clawdis)
|
||||
# tmux Skill (Clawdbot)
|
||||
|
||||
Use tmux only when you need an interactive TTY. Prefer bash background mode for long-running, non-interactive tasks.
|
||||
|
||||
## Quickstart (isolated socket, bash tool)
|
||||
|
||||
```bash
|
||||
SOCKET_DIR="${CLAWDIS_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/clawdis-tmux-sockets}"
|
||||
SOCKET_DIR="${CLAWDBOT_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/clawdbot-tmux-sockets}"
|
||||
mkdir -p "$SOCKET_DIR"
|
||||
SOCKET="$SOCKET_DIR/clawdis.sock"
|
||||
SESSION=clawdis-python
|
||||
SOCKET="$SOCKET_DIR/clawdbot.sock"
|
||||
SESSION=clawdbot-python
|
||||
|
||||
tmux -S "$SOCKET" new -d -s "$SESSION" -n shell
|
||||
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'PYTHON_BASIC_REPL=1 python3 -q' Enter
|
||||
@@ -31,8 +31,8 @@ To monitor:
|
||||
|
||||
## Socket convention
|
||||
|
||||
- Use `CLAWDIS_TMUX_SOCKET_DIR` (default `${TMPDIR:-/tmp}/clawdis-tmux-sockets`).
|
||||
- Default socket path: `"$CLAWDIS_TMUX_SOCKET_DIR/clawdis.sock"`.
|
||||
- Use `CLAWDBOT_TMUX_SOCKET_DIR` (default `${TMPDIR:-/tmp}/clawdbot-tmux-sockets`).
|
||||
- Default socket path: `"$CLAWDBOT_TMUX_SOCKET_DIR/clawdbot.sock"`.
|
||||
|
||||
## Targeting panes and naming
|
||||
|
||||
@@ -43,7 +43,7 @@ To monitor:
|
||||
## Finding sessions
|
||||
|
||||
- List sessions on your socket: `{baseDir}/scripts/find-sessions.sh -S "$SOCKET"`.
|
||||
- Scan all sockets: `{baseDir}/scripts/find-sessions.sh --all` (uses `CLAWDIS_TMUX_SOCKET_DIR`).
|
||||
- Scan all sockets: `{baseDir}/scripts/find-sessions.sh --all` (uses `CLAWDBOT_TMUX_SOCKET_DIR`).
|
||||
|
||||
## Sending input safely
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ List tmux sessions on a socket (default tmux socket if none provided).
|
||||
Options:
|
||||
-L, --socket tmux socket name (passed to tmux -L)
|
||||
-S, --socket-path tmux socket path (passed to tmux -S)
|
||||
-A, --all scan all sockets under CLAWDIS_TMUX_SOCKET_DIR
|
||||
-A, --all scan all sockets under CLAWDBOT_TMUX_SOCKET_DIR
|
||||
-q, --query case-insensitive substring to filter session names
|
||||
-h, --help show this help
|
||||
USAGE
|
||||
@@ -20,7 +20,7 @@ socket_name=""
|
||||
socket_path=""
|
||||
query=""
|
||||
scan_all=false
|
||||
socket_dir="${CLAWDIS_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/clawdis-tmux-sockets}"
|
||||
socket_dir="${CLAWDBOT_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/clawdbot-tmux-sockets}"
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
|
||||
Reference in New Issue
Block a user