CodeCrew is an AgentScope-based multi-agent software generation system. You provide one natural-language task, and CodeCrew orchestrates a full generation pipeline that researches requirements, validates specification quality, designs architecture, plans files, writes code, performs QA, and produces documentation in a generated output project.
Python
1
16 commits
updated Apr 10, 2026
CodeCrew is an AgentScope-based multi-agent software generation system. You provide one natural-language task, and CodeCrew orchestrates a full generation pipeline that researches requirements, validates specification quality, designs architecture, plans files, writes code, performs QA, and produces documentation in a generated output project.
Comprehensive project documentation is available in the docs/ directory and can be published as responsive HTML and PDF.
Build documentation dependencies:
pip install -e .[docs]
Build responsive HTML:
py -m mkdocs build --strict
Build PDF bundle:
py -m mkdocs build -f mkdocs-pdf.yml
CodeCrew has three execution surfaces that all use the same core pipeline:
codecrew) for direct local execution.codecrew-server) for job-based asynchronous execution.frontend) that submits jobs and streams logs.At runtime, the orchestration engine is in src/codecrew/pipeline.py and relies on:
src/codecrew/agents.py for role-specific AgentScope agents.src/codecrew/model_configs.py for provider/model routing.src/codecrew/tools/* for file operations, command execution, reading, and iterative code-fix loop.src/codecrew/pipeline.pySequentialPipeline and Msg from AgentScope.UserAgent.src/codecrew/agents.pyReActAgent instances for each role with dedicated prompts and limits.src/codecrew/model_configs.pyLLM_PROVIDER.src/codecrew/tools/__init__.pyresearch, architect, coding, qa, docs).src/codecrew/server.pyfrontend/app/page.tsxfrontend/app/jobs/[job_id]/page.tsxfrontend/app/jobs/[job_id]/files/page.tsxfrontend/app/api/**src/codecrew/queue/celery_app.pysrc/codecrew/queue/tasks.pyconcurrency=1, prefetch=1) to protect rate-limited providers.The pipeline executes agents in this order:
ARCHITECTURE.md via tool.execution_loop (write + lint/test command support).If human_override=True, UserAgent checkpoints are inserted between major stages.
write_file prevents path escape outside target output root.execute_command blocks dangerous patterns and enforces timeout.execution_loop returns structured failure details for retry/fix iterations.Configured in src/codecrew/model_configs.py.
LLM_PROVIDER valuesollamagroqcerebrasopenaillama.cppbitnet — Microsoft BitNet b1.58 2B-4T (1-bit, CPU-optimized, see bitnet/README.md)free_haRoles are mapped to model lanes:
reasoningcodingstructuredqafastFor ollama, each role can target separate endpoints:
OLLAMA_URL_REASONINGOLLAMA_URL_CODINGOLLAMA_URL_STRUCTUREDThis supports distributed local/cloud-hosted Ollama instances.
Base URL defaults to http://127.0.0.1:8000.
POST /api/generate
{ "task": string, "llm_provider": string }{ "job_id": string }GET /api/jobs/{job_id}
GET /api/jobs/{job_id}/stream
log, job_status, error, done).GET /api/jobs/{job_id}/files
GET /api/jobs/{job_id}/download
/.POST /api/generate (Next.js route), which proxies to FastAPI./jobs/{job_id}./api/jobs/{job_id} for initial state./api/jobs/{job_id}/stream for live logs/status.Command:
codecrew --task "build a FastAPI URL shortener with tests"
Steps:
.env.CodeCrewPipeline.Optional human-in-the-loop:
codecrew --task "build a Next.js dashboard" --human-override
>=3.10,<3.14free_ha keys)python -m venv .venv
.venv\Scripts\activate
pip install -e .[dev]
copy .env.example .env
Populate .env values for your chosen provider.
Because multi-agent pipelines demand massive token contexts that often hit strict rate limits on free-tier APIs, the primary and most efficient way to run CodeCrew is by tunneling a free GPU instance from Kaggle or Google Colab using Pinggy.
!curl -fsSL https://ollama.com/install.sh | sh
!nohup ollama serve > ollama.log 2>&1 &
deepseek-r1:14b (Reasoning Lane) - ~9GB VRAMqwen2.5-coder:14b (Coding Lane) - ~9GB VRAMqwen2.5:7b (Structured / QA Lanes) - ~5GB VRAM!ollama pull deepseek-r1:14b
!ollama pull qwen2.5-coder:14b
!ollama pull qwen2.5:7b
!ssh -p 443 -R0:localhost:11434 a.pinggy.io
https://...pinggy.link URL into your local .env and assign the pulled models to their specific lanes:
LLM_PROVIDER=ollama
OLLAMA_BASE_URL=https://your-tunnel-id.a.pinggy.link
OLLAMA_MODEL_REASONING=deepseek-r1:14b
OLLAMA_MODEL_CODING=qwen2.5-coder:14b
OLLAMA_MODEL_STRUCTURED=qwen2.5:7b
This setup provides free, unlimited commercial-grade output by completely bypassing strict commercial API token limits.
If you want the easiest low-cost setup, use the built-in free provider path:
.env.example to .env.LLM_PROVIDER=free_ha.SEARCH_PROVIDER=duckduckgo because it is already free and requires no key.GROQ_API_KEY=your_keyCEREBRAS_API_KEY=your_keyOPENAI_API_KEY empty unless you explicitly want OpenAI.Minimal .env example:
LLM_PROVIDER=free_ha
SEARCH_PROVIDER=duckduckgo
GROQ_API_KEY=your_groq_key
CEREBRAS_API_KEY=
OPENAI_API_KEY=
Notes:
free_ha works when at least one of GROQ_API_KEY or CEREBRAS_API_KEY is set.LLM_PROVIDER=ollama and run your own Ollama endpoint instead.LLM_PROVIDER=bitnet with the BitNet b1.58 2B-4T 1-bit model — see bitnet/README.md for setup.Start the backend:
codecrew-server
In a second terminal, start the frontend:
cd frontend
npm install
npm run dev
Then open http://localhost:3000, choose free_ha, and submit your prompt.
codecrew-server
cd frontend
npm install
npm run dev
Open http://localhost:3000.
Queue mode is available under src/codecrew/queue/.
CodeCrewPipeline (non-interactive).By default, generated projects are created under ./output (or per-job subdirectories from API mode).
Typical artifacts:
ARCHITECTURE.md created by architect agent.README.md..git repository in output project.job_state.json for API job persistence.Run backend tests:
.\.venv\Scripts\python.exe -m pytest -q
Run frontend production build (includes type/lint checks used by Next build):
cd frontend
npm run build
Unknown LLM_PROVIDER
LLM_PROVIDER is one of supported values and environment is loaded.GROQ_API_KEY, CEREBRAS_API_KEY, OPENAI_API_KEY).free_ha requires at least one key
.env, never in prompts or generated source templates.src/codecrew/
agents.py
pipeline.py
model_configs.py
main.py
server.py
crew.py
config/
agents.yaml
tasks.yaml
providers/
llm_provider.py
search_provider.py
tools/
__init__.py
file_writer.py
execution_loop.py
code_executor.py
readers.py
frontend/
app/
page.tsx
jobs/[job_id]/page.tsx
jobs/[job_id]/files/page.tsx
api/**
tests/
MIT
16 commits
Python
41.3%
C++
30.5%
HTML
18.6%
TypeScript
5.0%
Shell
1.6%
JavaScript
1.6%
CodeCrew is an AgentScope-based multi-agent software generation system. You provide one natural-language task, and CodeCrew orchestrates a full generation pipeline that researches requirements, validates specification quality, designs architecture, plans files, writes code, performs QA, and produces documentation in a generated output project.
Python
1
16 commits
updated Apr 10, 2026
CodeCrew is an AgentScope-based multi-agent software generation system. You provide one natural-language task, and CodeCrew orchestrates a full generation pipeline that researches requirements, validates specification quality, designs architecture, plans files, writes code, performs QA, and produces documentation in a generated output project.
Comprehensive project documentation is available in the docs/ directory and can be published as responsive HTML and PDF.
Build documentation dependencies:
pip install -e .[docs]
Build responsive HTML:
py -m mkdocs build --strict
Build PDF bundle:
py -m mkdocs build -f mkdocs-pdf.yml
CodeCrew has three execution surfaces that all use the same core pipeline:
codecrew) for direct local execution.codecrew-server) for job-based asynchronous execution.frontend) that submits jobs and streams logs.At runtime, the orchestration engine is in src/codecrew/pipeline.py and relies on:
src/codecrew/agents.py for role-specific AgentScope agents.src/codecrew/model_configs.py for provider/model routing.src/codecrew/tools/* for file operations, command execution, reading, and iterative code-fix loop.src/codecrew/pipeline.pySequentialPipeline and Msg from AgentScope.UserAgent.src/codecrew/agents.pyReActAgent instances for each role with dedicated prompts and limits.src/codecrew/model_configs.pyLLM_PROVIDER.src/codecrew/tools/__init__.pyresearch, architect, coding, qa, docs).src/codecrew/server.pyfrontend/app/page.tsxfrontend/app/jobs/[job_id]/page.tsxfrontend/app/jobs/[job_id]/files/page.tsxfrontend/app/api/**src/codecrew/queue/celery_app.pysrc/codecrew/queue/tasks.pyconcurrency=1, prefetch=1) to protect rate-limited providers.The pipeline executes agents in this order:
ARCHITECTURE.md via tool.execution_loop (write + lint/test command support).If human_override=True, UserAgent checkpoints are inserted between major stages.
write_file prevents path escape outside target output root.execute_command blocks dangerous patterns and enforces timeout.execution_loop returns structured failure details for retry/fix iterations.Configured in src/codecrew/model_configs.py.
LLM_PROVIDER valuesollamagroqcerebrasopenaillama.cppbitnet — Microsoft BitNet b1.58 2B-4T (1-bit, CPU-optimized, see bitnet/README.md)free_haRoles are mapped to model lanes:
reasoningcodingstructuredqafastFor ollama, each role can target separate endpoints:
OLLAMA_URL_REASONINGOLLAMA_URL_CODINGOLLAMA_URL_STRUCTUREDThis supports distributed local/cloud-hosted Ollama instances.
Base URL defaults to http://127.0.0.1:8000.
POST /api/generate
{ "task": string, "llm_provider": string }{ "job_id": string }GET /api/jobs/{job_id}
GET /api/jobs/{job_id}/stream
log, job_status, error, done).GET /api/jobs/{job_id}/files
GET /api/jobs/{job_id}/download
/.POST /api/generate (Next.js route), which proxies to FastAPI./jobs/{job_id}./api/jobs/{job_id} for initial state./api/jobs/{job_id}/stream for live logs/status.Command:
codecrew --task "build a FastAPI URL shortener with tests"
Steps:
.env.CodeCrewPipeline.Optional human-in-the-loop:
codecrew --task "build a Next.js dashboard" --human-override
>=3.10,<3.14free_ha keys)python -m venv .venv
.venv\Scripts\activate
pip install -e .[dev]
copy .env.example .env
Populate .env values for your chosen provider.
Because multi-agent pipelines demand massive token contexts that often hit strict rate limits on free-tier APIs, the primary and most efficient way to run CodeCrew is by tunneling a free GPU instance from Kaggle or Google Colab using Pinggy.
!curl -fsSL https://ollama.com/install.sh | sh
!nohup ollama serve > ollama.log 2>&1 &
deepseek-r1:14b (Reasoning Lane) - ~9GB VRAMqwen2.5-coder:14b (Coding Lane) - ~9GB VRAMqwen2.5:7b (Structured / QA Lanes) - ~5GB VRAM!ollama pull deepseek-r1:14b
!ollama pull qwen2.5-coder:14b
!ollama pull qwen2.5:7b
!ssh -p 443 -R0:localhost:11434 a.pinggy.io
https://...pinggy.link URL into your local .env and assign the pulled models to their specific lanes:
LLM_PROVIDER=ollama
OLLAMA_BASE_URL=https://your-tunnel-id.a.pinggy.link
OLLAMA_MODEL_REASONING=deepseek-r1:14b
OLLAMA_MODEL_CODING=qwen2.5-coder:14b
OLLAMA_MODEL_STRUCTURED=qwen2.5:7b
This setup provides free, unlimited commercial-grade output by completely bypassing strict commercial API token limits.
If you want the easiest low-cost setup, use the built-in free provider path:
.env.example to .env.LLM_PROVIDER=free_ha.SEARCH_PROVIDER=duckduckgo because it is already free and requires no key.GROQ_API_KEY=your_keyCEREBRAS_API_KEY=your_keyOPENAI_API_KEY empty unless you explicitly want OpenAI.Minimal .env example:
LLM_PROVIDER=free_ha
SEARCH_PROVIDER=duckduckgo
GROQ_API_KEY=your_groq_key
CEREBRAS_API_KEY=
OPENAI_API_KEY=
Notes:
free_ha works when at least one of GROQ_API_KEY or CEREBRAS_API_KEY is set.LLM_PROVIDER=ollama and run your own Ollama endpoint instead.LLM_PROVIDER=bitnet with the BitNet b1.58 2B-4T 1-bit model — see bitnet/README.md for setup.Start the backend:
codecrew-server
In a second terminal, start the frontend:
cd frontend
npm install
npm run dev
Then open http://localhost:3000, choose free_ha, and submit your prompt.
codecrew-server
cd frontend
npm install
npm run dev
Open http://localhost:3000.
Queue mode is available under src/codecrew/queue/.
CodeCrewPipeline (non-interactive).By default, generated projects are created under ./output (or per-job subdirectories from API mode).
Typical artifacts:
ARCHITECTURE.md created by architect agent.README.md..git repository in output project.job_state.json for API job persistence.Run backend tests:
.\.venv\Scripts\python.exe -m pytest -q
Run frontend production build (includes type/lint checks used by Next build):
cd frontend
npm run build
Unknown LLM_PROVIDER
LLM_PROVIDER is one of supported values and environment is loaded.GROQ_API_KEY, CEREBRAS_API_KEY, OPENAI_API_KEY).free_ha requires at least one key
.env, never in prompts or generated source templates.src/codecrew/
agents.py
pipeline.py
model_configs.py
main.py
server.py
crew.py
config/
agents.yaml
tasks.yaml
providers/
llm_provider.py
search_provider.py
tools/
__init__.py
file_writer.py
execution_loop.py
code_executor.py
readers.py
frontend/
app/
page.tsx
jobs/[job_id]/page.tsx
jobs/[job_id]/files/page.tsx
api/**
tests/
MIT
16 commits
Python
41.3%
C++
30.5%
HTML
18.6%
TypeScript
5.0%
Shell
1.6%
JavaScript
1.6%