Plan. Architect. Code. Review. Fix. Execute. Test. Publish β Completely Autonomous.
"Great software isn't written by one engineerβit is built through collaboration. Coder brings that collaborative engineering workflow to autonomous AI agents."
Coder is an autonomous AI Software Engineering System that transforms a single natural language prompt into a complete software project by orchestrating multiple specialized AI agents.
Unlike traditional AI coding assistants that simply generate code in one response, Coder simulates an entire professional software engineering team.
Each agent has a dedicated responsibilityβfrom understanding requirements to planning, architecture design, implementation, code review, debugging, execution, testing, iterative refinement, and final project publishing.
The entire workflow is coordinated using LangGraph, allowing every agent to communicate through structured state transitions rather than isolated prompts.
Instead of asking one large language model to perform every task, Coder decomposes software development into independent responsibilities, resulting in a more reliable, scalable, and maintainable autonomous development pipeline.
Coder can now take a project from a single natural language idea to a generated, reviewed, tested, and GitHub-published software project with minimal human intervention.
Coder replaces a monolithic AI assistant with a collaborative team of specialized AI agents.
- Planner Agent
- Architect Agent
- Coder Agent
- Reviewer Agent
- Fixer Agent
- Executor Agent
- Tester Agent
- Publisher Agent
Each agent performs a specialized engineering responsibility within the workflow.
Instead of directly generating source code, the Planner Agent first converts user requirements into structured engineering specifications using strongly typed Pydantic models.
This provides the rest of the workflow with a clear understanding of:
- Project requirements
- Features
- Technology stack
- Expected functionality
- Development objectives
The Architect Agent transforms the high-level plan into an implementation blueprint.
It automatically determines:
- Project structure
- Required files
- Technology stack
- Feature breakdown
- Implementation order
- Component responsibilities
before any code generation begins.
Rather than generating the entire project at once, the Coder Agent builds software incrementally.
Each implementation task is completed independently while maintaining awareness of the existing project files.
This allows Coder to:
- Generate projects file-by-file
- Read previously generated files
- Modify existing files when necessary
- Maintain consistency between components
- Build actual software inside the filesystem
The AI does not simulate writing code.
It directly interacts with a real project directory using tool calling.
Supported tools include:
read_file()write_file()list_files()get_current_directory()run_cmd()
This allows the AI agents to work with real project files during development.
Every generated project undergoes an independent review process.
The Reviewer Agent validates:
- Missing features
- Implementation quality
- Maintainability
- Code correctness
- Architectural consistency
- Best practices
Instead of blindly accepting generated code, Coder introduces an independent review stage before execution and testing.
If issues are detected during review, the Fixer Agent automatically modifies the affected files instead of regenerating the entire project.
This enables targeted repair while:
- Preserving existing functionality
- Reducing unnecessary regeneration
- Saving tokens and computation
- Improving overall project reliability
The project can move repeatedly through:
Reviewer
β
Fixer
β
Reviewer
until the review stage is successfully completed or the retry limit is reached.
Depending on the detected technology stack, Coder automatically determines how the generated project should be validated.
Current workflow support includes:
- Python projects
- React projects
- Static HTML/CSS/JavaScript projects
The Executor Agent uses subprocess-based execution where applicable and intelligently handles projects that do not require traditional execution.
Generated projects are evaluated against the original user requirements.
Testing considers:
- Feature completeness
- Functional correctness
- Execution results
- Overall implementation quality
Instead of merely checking whether code exists or whether syntax is valid, the Tester Agent evaluates whether the generated project actually satisfies the intended requirements.
Once the generated project successfully passes the validation pipeline, the Publisher Agent handles the final delivery stage.
The Publisher Agent can:
- Initialize a Git repository
- Stage generated project files
- Create a Git commit
- Configure the main branch
- Push the project to GitHub
This allows Coder to complete the complete lifecycle:
Idea
β
Plan
β
Build
β
Review
β
Fix
β
Execute
β
Test
β
Publish
The generated project is therefore not only created locally but can also be automatically published as a Git repository.
Coder is designed to work with multiple LLM models/providers instead of being tightly coupled to a single model.
Different agents can be configured to use different models depending on their responsibilities.
This provides:
- Model flexibility
- Easier experimentation
- Provider independence
- Agent-specific model selection
- Better adaptability as new models become available
The architecture allows individual models to be replaced without redesigning the entire multi-agent workflow.
Every stage communicates using structured Pydantic schemas instead of free-form text.
This provides:
- Better reliability
- Predictable outputs
- Easier debugging
- Type safety
- Improved agent collaboration
The entire software engineering lifecycle is represented as a graph instead of a linear prompt chain.
This enables:
- Conditional routing
- Agent collaboration
- Retry mechanisms
- Self-healing loops
- Stateful execution
- Scalable workflow design
USER PROMPT
β
βΌ
βββββββββββββββββββββββ
β Planner Agent β
βββββββββββ¬ββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Architect Agent β
βββββββββββ¬ββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Coder Agent β
βββββββββββ¬ββββββββββββ
β
Generated Project
β
βΌ
βββββββββββββββββββββββ
β Reviewer Agent β
βββββββββ¬ββββββββ¬ββββββ
β β
Approvedβ βIssues Found
β β
βΌ βΌ
Executor Fixer
β β
β β
βΌ β
Tester βββββββ
β
Tests Passed?
β β
Yes No
β β
βΌ βΌ
Publisher Fixer
β
βΌ
GitHub Repository
Natural Language Prompt
β
βΌ
Requirement Analysis
β
βΌ
Project Planning
β
βΌ
Architecture Design
β
βΌ
Incremental Code Generation
β
βΌ
Code Review
βββββββ΄ββββββ
β β
Approved Needs Fix
β β
βΌ βΌ
Execution Automatic Repair
β β
βΌ β
Functional β
Testing βββββββββ
β
βΌ
Tests Passed
β
βΌ
Git Initialization
β
βΌ
Commit
β
βΌ
GitHub Push
β
βΌ
Final Project Delivery
| Agent | Responsibility |
|---|---|
| π§ Planner | Understands user requirements and creates a structured software development plan |
| π Architect | Converts the plan into an implementation blueprint and file structure |
| π» Coder | Implements the project incrementally using filesystem tools |
| π Reviewer | Performs independent code review and detects implementation issues |
| π§ Fixer | Repairs affected files while preserving existing functionality |
| β Executor | Builds or executes the generated project depending on the technology stack |
| π§ͺ Tester | Validates the generated project against the original user requirements |
| π Publisher | Initializes Git, commits the generated project and publishes it to GitHub |
| Capability | Status |
|---|---|
| Autonomous Planning | β |
| Multi-Agent Collaboration | β |
| LangGraph Workflow | β |
| Incremental Code Generation | β |
| Structured Pydantic Outputs | β |
| Filesystem Tool Calling | β |
| Automated Code Review | β |
| Autonomous Bug Fixing | β |
| Project Execution | β |
| Functional Testing | β |
| Typed State Management | β |
| Conditional Agent Routing | β |
| Multi-LLM Support | β |
| Automatic Git Initialization | β |
| Automatic Git Commit | β |
| Automatic GitHub Publishing | β |
| Technology | Purpose |
|---|---|
| LangGraph | Multi-agent workflow orchestration |
| LangChain | Agent creation & tool calling |
| Multiple LLM Models | Specialized reasoning across different agents |
| Pydantic | Structured outputs & state validation |
| Technology | Purpose |
|---|---|
| Python | Core programming language |
| pathlib | Secure filesystem operations |
| subprocess | Project execution and command handling |
| dotenv | Environment variable management |
| Tool | Purpose |
|---|---|
read_file() |
Reads project files |
write_file() |
Creates & updates project files |
list_files() |
Lists generated project files |
get_current_directory() |
Returns working directory |
run_cmd() |
Executes shell commands and generated projects |
| Technology | Purpose |
|---|---|
| Git | Version control |
| GitHub | Repository hosting and project publishing |
| VS Code | Development environment |
| pip | Package management |
Unlike traditional chatbots, Coder is built as a graph-based autonomous software engineering workflow.
Each node represents an independent AI engineer with a specialized responsibility.
Planner
β
βΌ
Architect
β
βΌ
Coder
β
βΌ
Reviewer
ββββ΄ββββββββββββββββ
β β
βΌ βΌ
Fixer Executor
β β
β βΌ
β Tester
β β
ββββββββββββββββββββ€
β
Tests Passed?
ββββββ΄ββββββ
β β
Yes No
β β
βΌ βΌ
Publisher Fixer
β
βΌ
END
LangGraph enables:
- Conditional routing
- Retry mechanisms
- Agent collaboration
- Self-healing execution loops
- Stateful reasoning
- Scalable workflows
- End-to-end automation
All agents communicate through structured state objects instead of plain text.
Plan
β
βΌ
TaskPlan
β
βΌ
CoderState
β
βββ user_prompt
βββ task_plan
βββ current_step_idx
βββ generated_files
βββ fix_attempts
βββ test_attempts
βββ published
β
βΌ
ReviewResult
β
βΌ
ExecutionResult
β
βΌ
TestResult
β
βΌ
Publish Status
Using structured state greatly improves:
- Reliability
- Type safety
- Maintainability
- Predictability
- Debugging
- Communication between agents
User Prompt
β
βΌ
Planner Agent
β
βΌ
Structured Plan
β
βΌ
Architect Agent
β
βΌ
Implementation Plan
β
βΌ
Coder Agent
β
βΌ
Generated Project Files
β
βΌ
Reviewer Agent
ββββββββββ΄ββββββββββ
βΌ βΌ
Approved Needs Fix
β β
βΌ βΌ
Executor Fixer Agent
β β
βΌ β
Tester ββββββββββββββββββ
β
βΌ
Tests Passed
β
βΌ
Publisher Agent
β
βΌ
GitHub Repository
Unlike ordinary code generators, Coder interacts directly with the operating system through AI tools.
LLM
β
βΌ
LangChain Agent
β
βββββββββββββΌβββββββββββββ
βΌ βΌ βΌ
read_file() write_file() list_files()
β β β
βββββββββββββΌβββββββββββββ
βΌ
generated_project/
β
βββ index.html
βββ style.css
βββ script.js
βββ app.py
βββ ...
β
βΌ
run_cmd()
β
βΌ
Validation
This enables the AI to generate and manipulate real software projects instead of simply returning code as text.
One of the major additions in the current version is automatic project publishing.
Generated Project
β
βΌ
Check Git Repository
β
βΌ
git init
β
βΌ
git add .
β
βΌ
git commit
β
βΌ
git branch -M main
β
βΌ
git push
β
βΌ
GitHub Repository
The Publisher Agent executes the final version-control workflow after successful testing.
This allows Coder to move from local project generation to actual repository delivery.
Coder is not dependent on a single LLM.
The architecture supports configuring different models for different engineering responsibilities.
Multi-LLM Layer
β
ββββββββββββββββΌβββββββββββββββ
β β β
βΌ βΌ βΌ
Model A Model B Model C
β β β
ββββββββββββββββΌβββββββββββββββ
β
βΌ
Specialized Agents
β
ββββββββββββββββΌβββββββββββββββ
βΌ βΌ βΌ
Planner Coder Tester
This makes the system more flexible and allows models to be selected according to the requirements of individual agent tasks.
Coder/
β
βββ agent/
β β
β βββ graph.py
β βββ prompts.py
β βββ states.py
β βββ tools.py
β βββ __init__.py
β
βββ generated_project/
β βββ index.html
β βββ style.css
β βββ script.js
β βββ ...
β
βββ .env
βββ main.py
βββ requirements.txt
βββ README.md
βββ .gitignore
Every generated project follows the same engineering lifecycle.
User Prompt
β
βΌ
Project Plan
β
βΌ
Implementation Tasks
β
βΌ
Incremental File Generation
β
βΌ
Filesystem Validation
β
βΌ
Code Review
β
βΌ
Automatic Bug Fixing
β
βΌ
Execution
β
βΌ
Functional Testing
β
βΌ
Git Initialization
β
βΌ
Commit & Push
β
βΌ
GitHub Repository
Prompt
β
Planner
β
Architect
β
Task Breakdown
β
Coder
β
Generated Files
β
Reviewer
β
Fix (if required)
β
Execute
β
Test
β
Publish
β
GitHub Repository
The workflow relies on strongly typed schemas to maintain reliable communication between agents.
Plan
β
βββ project_name
βββ description
βββ tech_stack
βββ features
βββ ...
β
TaskPlan
β
βββ plan
βββ implementation_steps
β
CoderState
β
βββ user_prompt
βββ task_plan
βββ current_step_idx
βββ generated_files
βββ fix_attempts
βββ test_attempts
βββ published
β
ReviewResult
β
ExecutionResult
β
TestResult
β
Publish Status
Instead of exchanging raw text between agents, each stage passes validated objects, significantly reducing malformed outputs and improving workflow reliability.
Demo screenshots and videos will be added here.
git clone https://github.com/RajanyaSaha-27/Coder.gitcd Coderpython -m venv .venvActivate it:
.venv\Scripts\activatepython3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtCreate a .env file in the project root.
Configure the API keys required by the LLM providers/models enabled in your current configuration.
For example:
GROQ_API_KEY=your_groq_api_keyAdditional provider keys can be configured depending on the models selected in the application.
Important: Never commit API keys or other secrets to GitHub.
Since Coder can automatically publish generated projects to GitHub, make sure Git is installed and configured on your system.
Verify Git installation:
git --versionConfigure your Git identity if required:
git config --global user.name "Your Name"git config --global user.email "[email protected]"The machine running Coder must also have the appropriate GitHub authentication and repository permissions configured for automatic pushing.
Simply execute:
python main.pyYou will be prompted to enter your software requirements.
Example:
Enter your project prompt:
Build a modern responsive Todo application with HTML, CSS and JavaScript.
Coder will automatically:
- Generate a project plan
- Design the architecture
- Create implementation tasks
- Generate source code
- Review the implementation
- Fix detected issues
- Execute the project when applicable
- Test the generated software
- Initialize Git
- Commit the project
- Push the project to GitHub
without requiring additional development prompts.
Build a responsive weather dashboard using HTML, CSS and JavaScript.
Create a command-line password manager in Python.
Build a modern React expense tracker with charts.
Build a chatbot using Python and an LLM API.
Create a house price prediction project using Random Forest.
USER PROMPT
β
Planner Agent β
β
Architecture Generated β
β
Task Plan Created β
β
Generating index.html β
β
Generating style.css β
β
Generating script.js β
β
Code Review β
β
Execution Successful β
β
Testing Passed β
β
Initializing Git β
β
Creating Commit β
β
Pushing to GitHub β
β
PROJECT PUBLISHED β
Transforms user requirements into structured software plans.
Independent AI engineers collaborate using LangGraph.
Multiple LLM models/providers can be integrated into the workflow.
Every stage communicates using validated Pydantic schemas.
Projects are built file-by-file instead of generating everything at once.
Supports real file creation and modification through AI tools.
Independent reviewer validates generated projects.
Detected issues are automatically repaired through iterative feedback loops.
Generated projects can be executed or validated depending on their technology stack.
Generated software is evaluated against the original user requirements.
Generated projects can be initialized, committed and pushed to GitHub automatically.
New AI agents and models can be integrated into the LangGraph workflow.
Coder is designed as a long-term autonomous software engineering platform.
Future capabilities include:
- π§ Long-Term Project Memory
- π Web Browsing and Documentation Retrieval
- π§ͺ Automatic Unit Test Generation
- π Advanced Integration Testing
- π³ Dockerized Project Execution
- β One-Click Cloud Deployment
- π₯ Collaborative Multi-Agent Discussions
- β‘ Cost-Aware Model Routing
- π Performance Analytics
- π Plugin Ecosystem
- π Secure Sandboxed Code Execution
- π³ Advanced Git Branch Management
- π¦ Project Versioning and Iterative Development
- π More Technology Stack Support
Unlike conventional AI coding assistants that generate code in a single response, Coder models the complete software engineering lifecycle.
It separates responsibilities across specialized AI agents that collaborate just like a real engineering team.
The system does not stop after generating code.
It can:
Understand
β
Plan
β
Architect
β
Code
β
Review
β
Fix
β
Execute
β
Test
β
Publish
This architecture makes software generation:
- More reliable
- Easier to extend
- Better structured
- More maintainable
- More autonomous
Coder represents a shift from AI code generation to AI software engineering.
Contributions are always welcome!
If you'd like to improve Coder:
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Push the branch.
- Open a Pull Request.
Whether it's improving prompts, optimizing workflows, adding new agents, integrating new models, or fixing bugs, every contribution is appreciated.
This project is licensed under the MIT License.
Feel free to use, modify, and distribute it in accordance with the license.
B.Tech CSE (AI & ML)
This project builds upon ideas and technologies from:
- LangGraph
- LangChain
- Groq
- Pydantic
- Python
- Git
- GitHub
- Open Source AI Community
Special thanks to the creators and contributors of these amazing technologies that make autonomous AI systems possible.