YutaoMa

Grab — Development skill for Claude Code

Development community

Capture content from a sibling tmux pane and use it as context.

How to install Grab

Installs to ~/.claude/commands/yutaoma-tmux-tabs-grab.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/YutaoMa/tmux-tabs/HEAD/.claude/commands/grab.md -o ~/.claude/commands/yutaoma-tmux-tabs-grab.md

Restart Claude Code, or start a new session, for it to be picked up.

What Grab does

Capture content from a sibling tmux pane and use it as context.

Run the capture command, forwarding any arguments the user provided after `/grab`:

tmux-tabs capture $ARGUMENTS

Handling results

**Exit code 0 (success):** The stdout contains the captured pane content. Present it to the user and use it as context for the current conversation.

**Exit code 1 (error):** Something went wrong (not in tmux, no panes found). Show the stderr to the user.

**Exit code 2 (ambiguous — multiple

Alternatives in Development

  • Herdr Reviewr — Review your coding agent's diff in a terminal pane and send line comments back to Claude Code, Codex, OpenCode 823 ★
  • A B Copy — Use when you want a marketing-copy A/B — spawns two writer sibling sessions via CCC that draft the SAME messag 130 ★
  • Cmux Fresh — Clear cmux's persisted session so the next launch opens with fresh/blank windows 107 ★

Full documentation available on GitHub

View Source Repository