Build garage · 3 min
Agent loop code
Step through Think → Act → Observe safely.
Arcade: 0 XP · 0d streak — clever clears earn up to ★★★.
Playground
Agent loop in code
Think → act → observe — cap steps and gate dangerous tools.
- Model plans next action
- Tool call returned — validate args
- Append tool result to messages
- Stop at max steps or final answer