Reference implementation

adk-loop-lab

A documentation site for building bounded, inspectable agent loops with Google ADK.

A useful agentic loop combines durable state, selective memory, bounded execution, verification, explicit progress tracking, and deterministic stopping conditions.

The Loop Lifecycle

Rendering diagram...

The project does not treat the model call as the system. The model is one step inside a loop controller that reconstructs context, executes bounded work, verifies results, records evidence, and then decides whether another iteration is justified.

Three Planes

  • Control plane: deterministic lifecycle ordering, checkpoints, stopping policy, and budget enforcement.
  • Execution plane: ADK agents, Gemini calls, workflow composition, and sandboxed tools.
  • Data plane: SQLite-backed state and memory, plus JSONL event traces for auditability.

Three Examples

Quick Start

git clone https://github.com/rmax-ai/adk-loop-lab.git
cd adk-loop-lab
uv sync
uv run adk-loop run level-1

For a deeper read, continue with the architecture page, the concepts guide, or the examples index.