Thank you for your interest in contributing to AI Coder.
git clone https://github.com/your-username/ai-coder.git
cd ai-coder
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env # add your OPENAI_API_KEY- Fork the repo and create a branch from
main
git checkout -b feature/your-feature-name-
Make your changes — keep commits atomic and well-described
-
Add or update tests for anything you change
pytest tests/ -v- Make sure lint passes
pip install ruff
ruff check . --select E,F,W --ignore E501- Push and open a pull request against
main
- Async-first — all I/O must be
async/await; no blocking calls in the hot path - Type annotations — all function signatures must be fully annotated
- No bare
except— always catch a specific exception type - Docstrings — module-level and class-level docstrings required; function docstrings for anything non-obvious
- Line length is not enforced (E501 is ignored) but be reasonable
- Add a class to
core/agents/agents.pyfollowing the same pattern as existing agents - Wire it into
services/orchestrator.py— add anelif agent == "your_agent":branch - Update the
PlannerAgent.SYSTEMprompt to include the new agent name - Add tests in
tests/test_agents.py
Open a GitHub issue with:
- Python version and OS
- Minimal reproduction steps
- Full traceback