- Node.js (v18 or later)
- npm or yarn
- OpenAI API key(s)
-
Clone the repository
git clone https://github.com/scottonanski/Ai-Collaboration-Platform.git cd Ai-Collaboration-Platform -
Install dependencies
yarn install # or npm install -
Set up environment variables Create a
.env.localfile in the root directory with your OpenAI API keys:VITE_OPENAI_API_KEY_WORKER1=your_openai_api_key_here VITE_OPENAI_API_KEY_WORKER2=your_second_openai_api_key_here
Note: You can use the same API key for both workers if needed.
-
Start the development server
yarn dev # or npm run dev -
Open in your browser The application will be available at
http://localhost:5173
For production deployment, you'll need to set up the environment variables on your hosting platform. The following environment variables are required:
VITE_OPENAI_API_KEY_WORKER1=your_production_openai_key_1
VITE_OPENAI_API_KEY_WORKER2=your_production_openai_key_2-
Create a production build:
yarn build # or npm run build -
The production files will be generated in the
distdirectory. -
Deploy the contents of the
distdirectory to your hosting provider (e.g., Vercel, Netlify, or a traditional web server).
Security Note: Never commit your
.env.localfile to version control. It's already included in.gitignoreby default.
Project Type: AI-Powered Multi-Agent Collaboration Platform
Current State: Advanced Prototype with Mixed Implementation Status
Architecture: React/TypeScript Frontend + FastAPI Backend + OpenAI Integration
It's a sophisticated AI collaboration orchestration platform that enables multiple AI agents (workers) to collaborate on complex tasks through structured dialogue and iteration.
Core Concept: Two AI workers with different roles (e.g., Developer & Analyst) collaborate in turns to solve problems, with a human moderator able to inject guidance and pause/resume the collaboration.
-
AI Collaboration Engine
- ✅ Dual AI worker system with role-based collaboration
- ✅ Turn-based conversation management
- ✅ Real-time streaming responses from OpenAI
- ✅ Pause/resume collaboration controls
- ✅ Human interjection capabilities
- ✅ Configurable collaboration turns and models
-
Chat Interface & Communication
- ✅ Real-time chat interface with streaming animations
- ✅ Message history and conversation flow
- ✅ Worker identification and role display
- ✅ Message timestamps and formatting
-
Configuration & Settings
- ✅ Worker name and role customization
- ✅ OpenAI model selection (gpt-3.5-turbo, gpt-4.1-nano)
- ✅ API key management via environment variables
- ✅ Collaboration parameters (turns, summary options)
-
State Management
- ✅ Persistent state with Zustand
- ✅ Real-time collaboration control state
- ✅ Message persistence and updates
- ✅ Settings persistence
-
Memory System
- 🚧 Basic working memory for conversation context
- 🚧 Memory compression and strategic storage (basic implementation)
- ❌ Advanced long-term memory retrieval
- ❌ Context-aware memory prioritization
-
File System Management
- 🚧 Basic file tree structure in state
- 🚧 File upload/download placeholder functionality
- ❌ Actual file content editing and management
- ❌ Real file system integration
-
Code Editing Features
- 🚧 Monaco Editor component exists
- ❌ Not integrated with AI collaboration workflow
- ❌ No code execution capabilities
- ❌ No syntax highlighting for AI-generated code
-
Code Execution Environment
- ❌ No actual code execution (mentioned in README)
- ❌ No preview functionality
- ❌ No integrated terminal
-
Advanced Memory Features
- ❌ Strategic memory chunk visualization
- ❌ Memory importance scoring
- ❌ Context-based memory retrieval
-
Multi-Modal Content
- ❌ Image/document processing (UI exists but not functional)
- ❌ File content analysis
- ❌ Advanced content understanding
-
Collaboration Visualization
- ❌ Flow diagrams and collaboration maps
- ❌ Performance analytics
- ❌ Collaboration insights
- Orchestrates AI-to-AI Collaboration: Enables structured dialogue between AI agents with different specializations
- Manages Complex Problem-Solving: Breaks down tasks through iterative collaboration rounds
- Provides Human Oversight: Allows humans to guide and moderate AI collaboration
- Handles Streaming AI Responses: Real-time communication with OpenAI API
- Maintains Conversation Context: Preserves dialogue history and state across sessions
| Feature Category | Status | Completion % |
|---|---|---|
| AI Collaboration Core | ✅ Complete | 95% |
| Chat Interface | ✅ Complete | 90% |
| Configuration System | ✅ Complete | 85% |
| Memory Management | 🚧 Partial | 40% |
| File System | 🚧 Partial | 20% |
| Code Editing | ❌ Mockup | 10% |
| Code Execution | ❌ Not Started | 0% |
| Multi-Modal Features | ❌ Mockup | 5% |
Overall Project Completion: ~45%
-
Fix Build Issues
- Resolve TypeScript compilation errors
- Optimize Vite configuration
- Add proper testing infrastructure
-
Enhance Memory System
- Implement advanced memory compression
- Add memory search and retrieval
- Create memory importance scoring
-
Improve Error Handling
- Add comprehensive API error handling
- Implement connection retry logic
- Add user-friendly error messages
-
Real File System
- Implement actual file CRUD operations
- Add file content editing
- Connect file system to AI collaboration
-
Code Execution Engine
- Integrate sandboxed code execution
- Add support for multiple languages
- Implement real-time preview
-
AI-Code Integration
- Connect AI responses to code editor
- Add code analysis capabilities
- Implement AI-guided refactoring
-
Multi-Modal Capabilities
- Add image and document processing
- Implement content analysis
- Add rich media support
-
Collaboration Analytics
- Build collaboration flow visualization
- Add performance metrics
- Implement collaboration insights
-
Advanced AI Features
- Add more AI model options
- Implement specialized worker types
- Add custom prompt engineering
-
Performance Optimization
- Optimize streaming performance
- Add caching layers
- Implement lazy loading
-
Security & Scalability
- Add proper authentication
- Implement rate limiting
- Add deployment configurations
-
Rebrand Project Identity: The current README misrepresents the project. This is an AI Collaboration Platform, not primarily a code editor.
-
Focus on Core Strength: The AI collaboration engine is the most valuable and unique feature - prioritize enhancing this.
-
Simplify Initial Scope: Remove non-essential features (file system, code execution) to focus on perfecting AI collaboration.
-
Add Real Use Cases: Develop specific collaboration templates (code review, design planning, problem-solving).
-
Improve User Experience: Add guided onboarding and collaboration templates for new users.
High Value Features (Keep & Enhance):
- AI worker collaboration orchestration
- Real-time streaming interface
- Human-AI interaction capabilities
Medium Value Features (Develop Strategically):
- Memory management system
- File system integration
Low Priority Features (Consider Removing):
- Code execution environment
- Multi-modal content processing
- Complex visualization features
This project has significant potential as an AI collaboration platform.