Add Gemini subagent management system via tmux#146
Draft
dandye wants to merge 1 commit intogemini_slash_commandsfrom
Draft
Add Gemini subagent management system via tmux#146dandye wants to merge 1 commit intogemini_slash_commandsfrom
dandye wants to merge 1 commit intogemini_slash_commandsfrom
Conversation
Implements a comprehensive tmux-based subagent orchestration system that enables running multiple Gemini instances in parallel for complex workflows. Key features: - spawn: Create new Gemini subagents in detached tmux sessions - send: Send messages to running subagents with intelligent handling of: - Regular prompts (literal text with double Enter submission) - Shell commands (starting with !, single Enter execution) - Slash commands (/help, /model, etc.) - get-output: Retrieve subagent output with configurable line limits - list: View all active subagent sessions with simple or detailed format - kill: Terminate subagent sessions cleanly - attach: Instructions for interactive session viewing - status: Debug and monitor subagent health - spawn-split: Create subagents in split panes - broadcast: Send messages to multiple subagents simultaneously Technical implementation: - Uses tmux sessions to maintain persistent Gemini instances - Starts bash shell first, then launches Gemini to ensure session stability - 5-second initialization delay to allow Gemini startup sequence - Intelligent message routing based on content prefix detection - Literal text mode (-l flag) for regular prompts to prevent shell interpretation This enables advanced use cases like parallel research tasks, distributed analysis, and multi-agent coordination workflows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a comprehensive subagent management system for Gemini CLI, enabling parallel execution of multiple Gemini instances through tmux session orchestration.
Features
Core Commands
Advanced Commands
Technical Implementation
Use Cases
Testing
All commands have been tested with:
Example Usage
Manual tmux verification