Back to Reflection
ApprenticeBuild Lab

Reflection

Drag and drop agent blocks to build the correct architecture for this pattern.

Mission: Build a Self-Improving Code Generator

Create a system where an agent generates code, a critic reviews it, and the generator improves based on feedback — like an automated code review loop.

0.0s

> Drag blocks to the canvas

Coder Agent

Generates code from a specification

Critic Agent

Reviews code for bugs, style, and correctness

Feedback Loop

Passes critique back to the coder for revision

Max Retries Gate

Stops the loop after N iterations to prevent infinite loops

Router

Routes requests to different handlers

Memory Store

Stores long-term context

Drop blocks here to build your agent pipeline

Arrange them in the correct order