@@ -14,6 +14,9 @@ This project provides a wrapper CLI that coordinates multiple AI agents to work
1414## Features
1515
1616- 🤝 ** Multi-Agent Collaboration** : Coordinate multiple AI coding assistants
17+ - 💬 ** Interactive Shell** : REPL-style interface with multi-round conversations (like Claude Code & Codex CLIs)
18+ - 📝 ** Conversation History** : Context preservation across interactions
19+ - 💾 ** Session Management** : Save and load conversation sessions
1720- 🔧 ** Extensible Architecture** : Easy to add new AI agents
1821- ⚙️ ** Configurable Workflows** : Define custom collaboration patterns
1922- 📊 ** Detailed Logging** : Track agent interactions and decisions
@@ -112,44 +115,81 @@ workflows:
112115
113116## Usage
114117
115- ### Basic Usage
118+ ### Interactive Shell (Recommended)
119+
120+ Start an interactive shell for multi-round conversations, similar to Claude Code and Codex CLIs:
121+
122+ ` ` ` bash
123+ # Start interactive shell
124+ ./ai-orchestrator shell
125+
126+ # Start with specific workflow
127+ ./ai-orchestrator shell --workflow thorough
128+ ```
129+
130+ ** Interactive features:**
131+ - Multi-round conversations with context preservation
132+ - Switch between agents on-the-fly
133+ - Save and load conversation sessions
134+ - Full readline support (arrow keys, command history, tab completion)
135+ - Shell commands for control (/help, /switch, /save, etc.)
136+
137+ See [ Interactive Shell Guide] ( docs/interactive-shell.md ) for detailed documentation.
138+
139+ ** Example interactive session:**
140+
141+ ```
142+ orchestrator (default) > Create a user authentication module with JWT
143+
144+ ✓ Task completed successfully!
145+
146+ orchestrator (default) > Add password reset functionality
147+
148+ ✓ Task completed successfully!
149+
150+ orchestrator (default) > /save auth-module
151+ Session saved!
152+
153+ orchestrator (default) > /exit
154+ ```
155+
156+ ### One-Shot Command Mode
157+
158+ For single, non-interactive tasks:
116159
117160``` bash
118161# Run with default workflow
119- ./ai-orchestrator "Create a REST API with user authentication"
162+ ./ai-orchestrator run " Create a REST API with user authentication"
120163
121164# Specify a custom workflow
122- ./ai-orchestrator --workflow custom "Implement a binary search tree"
165+ ./ai-orchestrator run " Implement a binary search tree" --workflow thorough
123166
124167# Dry run to see the execution plan
125- ./ai-orchestrator --dry- run "Add error handling to the payment service"
168+ ./ai-orchestrator run " Add error handling to the payment service" --dry-run
126169
127170# Verbose mode for detailed logging
128- ./ai-orchestrator -v "Refactor the database layer"
171+ ./ai-orchestrator run " Refactor the database layer" --verbose
129172```
130173
131174### Advanced Usage
132175
133176``` bash
134- # Use specific agents only
135- ./ai-orchestrator --agents codex,claude " Optimize the sorting algorithm"
136-
137177# Set maximum iterations
138- ./ai-orchestrator --max-iterations 5 " Implement and test a caching layer"
178+ ./ai-orchestrator run " Implement and test a caching layer" --max-iterations 5
139179
140180# Output to specific directory
141- ./ai-orchestrator --output ./output " Generate a CLI tool for file processing "
181+ ./ai-orchestrator run " Generate a CLI tool" --output ./output
142182
143- # Interactive mode
144- ./ai-orchestrator --interactive
183+ # Custom configuration
184+ ./ai-orchestrator run " Task description " --config ./my-config.yaml
145185```
146186
147187## Workflow Examples
148188
149189### 1. Standard Implementation Flow
150190
151191``` bash
152- ./ai-orchestrator " Create a user authentication module with JWT tokens"
192+ ./ai-orchestrator run " Create a user authentication module with JWT tokens"
153193```
154194
155195** Process:**
@@ -161,24 +201,27 @@ workflows:
161201### 2. Review-Only Workflow
162202
163203``` bash
164- ./ai-orchestrator --workflow review-only --file ./src/auth.py
204+ ./ai-orchestrator run " Review this code " --workflow review-only
165205```
166206
167207** Process:**
1682081 . Gemini reviews existing code
1692092 . Claude implements improvements
170210
171- ### 3. Collaborative Development
211+ ### 3. Interactive Development Session
172212
173213``` bash
174- ./ai-orchestrator --workflow collaborative " Build a task queue system"
214+ ./ai-orchestrator shell
215+
216+ > Create a task queue system
217+ > Add priority support
218+ > Add worker pool management
219+ > Write tests for the task queue
220+ > /save task-queue-project
175221```
176222
177223** Process:**
178- 1 . Codex creates initial implementation
179- 2 . Copilot suggests optimizations
180- 3 . Gemini reviews architecture
181- 4 . Claude implements all feedback
224+ Multi-round conversation with context preservation, allowing iterative refinement
182225
183226## Project Structure
184227
@@ -189,24 +232,27 @@ AI-Coding-Tools-Collaborative/
189232│ ├── __init__.py
190233│ ├── core.py # Core orchestration logic
191234│ ├── workflow.py # Workflow management
192- │ └── task_manager.py # Task distribution
235+ │ ├── task_manager.py # Task distribution
236+ │ └── shell.py # Interactive shell/REPL
193237├── adapters/
194238│ ├── __init__.py
195239│ ├── base.py # Base adapter interface
240+ │ ├── cli_communicator.py # Robust CLI communication
196241│ ├── claude_adapter.py # Claude Code adapter
197242│ ├── codex_adapter.py # Codex adapter
198243│ ├── gemini_adapter.py # Gemini adapter
199244│ └── copilot_adapter.py # Copilot adapter
200245├── config/
201- │ ├── agents.yaml # Agent configuration
202- │ └── workflows.yaml # Workflow definitions
246+ │ └── agents.yaml # Agent and workflow configuration
203247├── tests/
204248│ ├── __init__.py
205249│ ├── test_adapters.py # Adapter tests
206250│ ├── test_orchestrator.py # Orchestrator tests
207- │ └── test_integration.py # End-to-end tests
251+ │ ├── test_integration.py # End-to-end tests
252+ │ └── test_shell.py # Interactive shell tests
208253├── docs/
209254│ ├── architecture.md # Architecture details
255+ │ ├── interactive-shell.md # Interactive shell guide
210256│ ├── adding-agents.md # Guide for adding new agents
211257│ └── workflows.md # Workflow configuration guide
212258├── examples/
0 commit comments