Back to Browse

Using tmux as a Subagent Bridge for Claude Code

301 views
Mar 6, 2026
0:45

Want to run subagents from Claude Code, but have the subagent use a different AI CLI like Gemini or Codex? Answer: tmux. Claude Code creates a tmux session, launches Gemini CLI inside it, sends a research prompt via tmux send-keys, and monitors the output with tmux capture-pane — all running as a background subagent so I can keep working. How it works: → Claude Code creates a tmux session and starts Gemini CLI → Sends a prompt via tmux send-keys → A background subagent polls tmux capture-pane for results → Claude keeps working while Gemini searches Google → The subagent reports back automatically when Gemini finishes No API keys, no custom integrations — just tmux as a communication layer between two AI CLIs. Full pattern doc: https://github.com/chezluc/lukes-tools/blob/main/tmux-subagent-pattern.md #ClaudeCode #GeminiCLI #AI #DeveloperTools #tmux #Automation

Download

0 formats

No download links available.

Using tmux as a Subagent Bridge for Claude Code | NatokHD