Skip to content

Harshitha-chandrasekar/MultiAgent-Coding-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiAgent Coding Assistant

Overview

This project is a Multi-Agent AI Software Development System that automates the software creation workflow through collaboration between three specialized AI agents: the Planner, Architect, and Coder. Rather than having a single AI model perform all tasks, the system divides the software development lifecycle into distinct stages. Each agent is responsible for a specific phase of development, resulting in more structured outputs, improved organization, and clearer separation of concerns.

The project was recreated locally using Python, VS Code, pip, and the required AI frameworks and APIs demonstrated in the tutorial.


Project Objectives

  • Demonstrate multi-agent collaboration in software development.
  • Automate the planning-to-implementation workflow.
  • Improve code quality through specialized agent roles.
  • Showcase agent orchestration and sequential execution.
  • Provide a foundation for building advanced autonomous development systems.

System Architecture

User Request
     │
     ▼
┌─────────────────┐
│  Planner Agent  │
└────────┬────────┘
     │
     ▼
┌─────────────────┐
│ Architect Agent │
└────────┬────────┘
     │
     ▼
┌─────────────────┐
│   Coder Agent   │
└────────┬────────┘
     │
     ▼
Final Output

## How the System Works

The system follows a sequential workflow in which each agent receives the output of the previous agent and builds upon it.

### Step 1: Planner Agent

The Planner Agent analyzes the user's request and breaks it down into a structured development plan.

Outputs include:

* Project requirements
* Feature breakdown
* Development roadmap
* Task decomposition
* Implementation goals

#### Purpose

Acts as the project strategist.

#### Responsibilities

* Understand user requirements.
* Define project scope.
* Break large problems into manageable tasks.
* Create a structured implementation plan.
* Identify key features and objectives.

#### Input

User request.

#### Output

Detailed project plan and task breakdown.

---

### Step 2: Architect Agent

The Architect Agent receives the plan generated by the Planner Agent and designs the system structure.

Outputs include:

* Application architecture
* Component design
* File structure
* Module responsibilities
* Data flow design
* Technology recommendations

### 2. Architect Agent

#### Purpose

Acts as the system designer.

#### Responsibilities

* Transform the project plan into a technical design.
* Define system architecture.
* Organize components and modules.
* Establish relationships between system parts.
* Create implementation guidelines.

#### Input

Planner Agent output.

#### Output

System architecture and design specifications.

---

### Step 3: Coder Agent

The Coder Agent receives the architecture and implementation specifications and generates the actual code.

Outputs include:

* Source code
* Functions and classes
* Project files
* Configuration files
* Documentation snippets

### 3. Coder Agent

#### Purpose

Acts as the implementation specialist.

#### Responsibilities

* Convert architecture into executable code.
* Implement application logic.
* Generate files and modules.
* Follow architectural guidelines.
* Produce production-ready code.

#### Input

Architect Agent output.

#### Output

Working source code and project files.

---

## Workflow Pipeline

```text
User Prompt
      │
      ▼
Planner Agent
      │
      ▼
Project Plan
      │
      ▼
Architect Agent
      │
      ▼
System Design
      │
      ▼
Coder Agent
      │
      ▼
Application Code

Technologies Used

  • Python
  • VS Code
  • Pip
  • Large Language Models (LLMs)
  • Multi-Agent Framework
  • Environment Variables (.env)
  • API Integrations

Key Features

  • Sequential multi-agent workflow
  • Task decomposition and planning
  • Automated software architecture generation
  • Automated code generation
  • Modular and extensible design
  • Clear separation of responsibilities
  • Reproducible development process

Strengths

Structured Development Process

The project mirrors a real-world software development workflow by separating planning, design, and implementation.

Improved Organization

Each agent focuses on a single responsibility, resulting in cleaner outputs.

Scalability

Additional agents can be added in the future for testing, deployment, or review tasks.

Better Maintainability

The modular architecture simplifies updates and enhancements.

Enhanced Code Quality

The coding agent benefits from receiving a detailed plan and architecture before implementation begins.


Limitations

Sequential Dependency

Each agent depends heavily on the quality of the previous agent's output.

Error Propagation

Mistakes made during planning or architecture design can affect the generated code.

Increased Processing Time

Multiple agent interactions introduce additional latency compared to a single-agent system.

Limited Validation

The generated code may still require manual review and testing.

Context Constraints

Very large projects may exceed model context limits and require additional memory or retrieval mechanisms.


Future Improvements

  • Add a Code Reviewer Agent.
  • Add a Testing Agent for automated test generation.
  • Integrate a vector database for long-term memory.
  • Support iterative feedback loops between agents.
  • Enable parallel execution for independent tasks.
  • Add deployment and DevOps agents.

Example Application

Application Image 1

Application Image 2

Conclusion

This project demonstrates the power of multi-agent AI systems in automating software development. By dividing responsibilities among the Planner, Architect, and Coder agents, the system creates a structured workflow that closely resembles a real-world engineering process. The result is a scalable and modular framework capable of transforming user requirements into well-designed software solutions through coordinated agent collaboration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages