Lab build

CrewAI engineering team

Crew of lead, backend, frontend and test agents that writes a trading account module and Gradio UI.

Role
Builder, end to end
Group
Agents and MCP
Services
AI & LLM systems

What it does

An engineering lead agent turns requirements into a design, a backend engineer writes the Python module (accounts.py with an Account class), a frontend engineer builds a Gradio app.py and a test engineer writes unit tests. Code-writing agents execute code safely in a Docker container, and the team mixes GPT-4o and Claude models.

What was built

  1. 01

    Agents and tasks are defined in agents.yaml and tasks.yaml with roles, backstories and expected outputs.

  2. 02

    Engineering lead produces a design; the backend agent writes accounts.py with share-price lookup.

  3. 03

    Backend and test agents run generated code inside Docker with a maximum execution time.

  4. 04

    Frontend agent writes a Gradio app.py that demonstrates the account module.

The pipeline, layer by layer

Five layers, one pipeline.

  1. L1Spec

    • Requirements input
  2. L2Design

    • Engineering lead agent
  3. L3Build

    • Backend engineer agent
    • Frontend engineer agent
  4. L4Verify

    • Test engineer agent
    • Docker code execution
  5. L5Output

    • accounts.py, app.py, tests

Stack

  • CrewAI
  • GPT-4o
  • Claude
  • Docker
  • Gradio
  • YAML
  • Python

Next lab build · 34 / 46

CrewAI stock picker

Hierarchical crew finds trending companies, researches them and pushes its pick to the user's phone.

Previous: LangGraph Sidekick browsing agent

Need a system like this in production? Tell us about it.