An interactive simulation of an AI team using LangChain-powered agents with Flask and Vanilla JS.
The AI Team Simulation project creates a collaborative environment where specialized AI agents work together to accomplish tasks. Each agent has a unique role and expertise, enabling natural interactions and task delegation within the team.
- Multiple specialized AI agents (PM, Developer, Tester, etc.)
- Real-time chat interface
- Visual representation of agent relationships
- GitHub repository integration
- Inter-agent collaboration and task delegation
- Python 3.11 or higher
- Required environment variables:
OPENAI_API_KEY
: OpenAI API key for LangChainGITHUB_TOKEN
: GitHub personal access token with repository permissions
- Clone the repository:
git clone https://github.com/yourusername/ai-team-simulation.git
cd ai-team-simulation
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
- Create a
.env
file in the project root - Add the following variables:
OPENAI_API_KEY=your_openai_api_key GITHUB_TOKEN=your_github_token
- Create a
- Start the Flask server:
python main.py
- Access the application:
- Open your web browser
- Navigate to
http://localhost:5000
- Project Manager (PM): Handles project planning and coordination
- Business Analyst (BA): Analyzes requirements and processes
- Developer: Provides technical solutions and implementation
- Tester: Ensures quality and performs testing
- DevOps: Manages deployment and infrastructure
- UX Designer: Designs user interfaces and experiences
- Select an agent from the dropdown menu
- Type your message in the input field
- Press Enter or click Send
- View responses from the selected agent and any collaborating agents
- Access via the "View Agent Relationships" button
- Interactive visualization showing:
- Agent connections and relationships
- Communication paths
- Role dependencies
- Access the GitHub integration page
- Enter repository details
- Initialize or connect to an existing repository
- View repository status and information
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to your branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.