Coder Crew
Ed DonnerSingle Python developer agent that plans, writes, runs, and checks code for a given assignment.
CrewAI · OpenAI gpt-4o-mini · assignment-scoped coding loop
Overview
Layer 4 Collaborate on the Mental Model. Coder is a one-agent crew: a Python developer that plans how the solution will work, writes the code, runs it (Docker-safe), and checks output for {assignment}.
Behavior
- Prompt Chaining + run check. Role text forces plan → write → run → check instead of a single dump; failures retry up to the agent limit. See Building effective agents.
- Assignment-scoped. Goal text injects
{assignment}for each run. - Safe code execution.
allow_code_execution=Truewithcode_execution_mode="safe"(Docker). - Minimal crew. No manager layer; the coder owns the whole loop and writes
output/code_and_output.txt.
Coder flow
Assignment in; working script and output out. Diagram key: ✦ AI agent · second line = Anthropic workflow · purple = actor · white = service.
---
config:
theme: default
themeVariables:
background: "#ffffff"
fontSize: "14px"
---
flowchart TB
person[Developer]
assignment[Assignment]
coder["✦ Coder
Prompt Chaining"]
plan[Plan]
code[Write code]
runCheck[Run and check]
artifact[code_and_output.txt]
person -->|set assignment| assignment --> coder
coder --> plan --> code --> runCheck --> artifact
artifact --> person
classDef agent fill:#e8f0ee,stroke:#0f3d36,stroke-width:2px,color:#0d0d0d
classDef service fill:#fafaf8,stroke:#c8c8c2,stroke-width:1px,color:#0d0d0d
classDef actor fill:#f3eef8,stroke:#6b4f9a,stroke-width:2px,color:#0d0d0d
class coder agent
class assignment,plan,code,runCheck,artifact service
class person actor
Config: 3_crew/coder/src/coder/config/. Process: Process.sequential.
Run from 3_crew/coder. Layers and workflows on Mental Model. Part of CrewAI Labs (Project tab).