Grab banner
YutaoMa YutaoMa

Grab

Development community

Description

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

Installation

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.

Full documentation available on GitHub

View Source Repository