**Show HN: My First Open Source Project - Claude Code Splitter**
Are you a developer working on complex architectures? Do you use the incredible AI coding assistant, Claude Code by Anthropic? If so, you know its limitation: it's single-threaded. This means you can only interact with one agent at a time, which can be a bottleneck for high-performance developers like yourself.
Introducing Claude Code Splitter, my first open source project! It's a terminal multiplexer configuration that transforms your command line interface (CLI) into a multi-agent AI command center. With this tool, you can run 4 independent, parallel Claude Code sessions in one terminal, effectively quadrupling your coding velocity.
Here's how it works: the script uses tmux to create a 2x2 grid of terminal panes, each running an independent Claude Code session. These agents share your authentication but operate independently, allowing you to work on multiple tasks simultaneously.
The default script creates 4 agents in a 2x2 grid, but you can modify it to add more by adding more tmux split-window commands. For example, to add a 5th agent, simply add the following line before the final tmux attach command:
tmux split-window -v
As you add more agents, screen real estate decreases, so 4 agents is the sweet spot for most 1080p/1440p monitors. You'll need to be online to use Claude Code Splitter, as it relies on the Anthropic API.
Here are some frequently asked questions:
- Do I need four API keys? No, you can use one key for all agents.
- Can all four agents work at once? Yes, they're independent processes that can run simultaneously.
- Does this require any additional setup or dependencies? You'll need tmux installed on your system. If you're using a Mac, Linux, or Windows (via WSL), it's likely already there.
To get started, simply run the script and complete the login flow with Claude Code. Press Ctrl+C to exit when finished. You should now have four agents ready to work in parallel!
If this productivity hack saves you time, consider starring the repository! It takes just 2 seconds and helps others find this useful tool.