A multi-agent coding assistant: it routes a request to a general chat agent, a file-reading agent, or a full plan → code → test → debug → report pipeline for code changes.
User input
↓
Router → decides: chat / question / action
↓
├── chat → Qaagent answers directly (no tools, has memory)
├── question → Reader reads the relevant file and answers (Filesystem MCP)
└── action → Planner → [approval gate] → Coder → Tester → [if failed] Debugger → Reporter
Coder, Tester, and Debugger each run as a "worker" agent (uses tools, no forced structured output) followed by a separate "Formatter" agent that converts the worker's raw output into a structured result. This split exists because some providers (e.g. Groq) don't allow structured JSON output and tool/function calling in the same request.
| Agent | Model | Provider | Notes |
|---|---|---|---|
| Router | qwen3:8b | Ollama (local) | decides intent, no tools |
| Qaagent | qwen3:8b | Ollama (local) | general chat, has session memory |
| Reader | llama-3.3-70b-versatile | Groq | reads files via Filesystem MCP |
| Planner | qwen3:8b | Ollama (local) | plans file changes |
| Coder / CoderFormatter | llama-3.3-70b-versatile / gpt-oss family | Groq | writes code via Filesystem MCP |
| Tester / TesterFormatter | llama-3.3-70b-versatile / gpt-oss family | Groq | runs pytest via a function tool |
| Debugger / DebuggerFormatter | llama-3.3-70b-versatile / gpt-oss family | Groq | fixes failing code |
| Reporter | qwen3:8b | Ollama (local) | summarizes the whole run |
Model choice per agent is intentional: local Ollama for agents that don't need reliable tool-calling (routing, planning, chat, summarizing), Groq for agents that must reliably call tools or produce strict structured output.
| File | Purpose |
|---|---|
mainagents.py |
agent definitions, MCP setup, the runagent() pipeline |
main.py |
terminal entry point for manual testing |
backend.py |
FastAPI layer (in progress) |
config.yaml |
per-agent model, instructions, temperature, max tokens |
pip install -r requirements.txtCopy example.env to .env and fill in:
- Ollama endpoint (local, no real key needed)
- Groq API key (console.groq.com)
- Supabase Postgres connection string (must use
postgresql+asyncpg://, not plainpostgresql://)
MCP servers used: Sequential Thinking and Filesystem (both via npx, Windows-compatible). The Filesystem MCP is scoped to a single test folder — change the path in mainagents.py before running.
python main.pyThis project is actively being developed and debugged. Multi-agent pipelines with tool-calling and structured output are still somewhat fragile across providers, and behavior can vary noticeably depending on which model runs each agent. Known issues encountered so far:
- Some models occasionally hallucinate tool calls instead of actually invoking them, especially with certain MCP/provider combinations.
- Long code generation (e.g. a full game with many lines) can get truncated mid-JSON inside a single tool call, since the model tries to fit too much content into one
write_filecall. - Structured output (
json_schema) is only supported by specific models on some providers (e.g. Groq) — using an unsupported model there will fail outright. - Free-tier rate limits (tokens/minute) can be hit with longer multi-agent chains, especially on smaller models with low token caps.
If you swap models or providers, expect to re-tune max_tokens, tool_choice, and possibly the agent split (worker vs. formatter) again — this behavior is not fully portable across models yet.