▲ | d4rkp4ttern 5 days ago | |
I recently dove into Tmux just to be able to combine it with Claude-Code(CC): allowing CC to watch and interact with a CLI application in a separate pane. A nice feature of tmux is that it is scriptable, I.e allows programmatically sending keystrokes to a specific pane. So I built this little tool "tmux-cli" that creates a convenient, safe wrapper (that prevents self-killing, and has built-in delays for Enter key, etc) around tmux that lets CC spawn another pane, launch a CLI script and actually interact with it. This gives CC some interesting abilities: interact with CLI scripts expecting user input; spawn another instance of CC and give it a task (like sub-agents but fully-visible); launch a CLI script with a debugger like Pdb and stepping thru it; launch UI servers and use Puppeteer MCP to check the browser. It's easy to install via uv:
https://github.com/pchalasani/claude-code-tools | ||
▲ | EPendragon 5 days ago | parent [-] | |
That's an awesome tool you made! For me scriptability of tmux is one of its selling points. You have taken it a step further. Love to see it! |