-
Notifications
You must be signed in to change notification settings - Fork 1
loop
github-actions[bot] edited this page Apr 30, 2026
·
2 revisions
L* is Loom's internal execution loop. It is the engine behind Agent.run(), Session.run(), and Run.wait().
L* = (Reason -> Act -> Observe -> Delta)*
| Phase | What happens |
|---|---|
Reason |
build messages, call the model, interpret next step |
Act |
execute tool calls and safety checks |
Observe |
feed results back into runtime context |
Delta |
decide whether to continue, renew, or finish |
| Public API | Internal loop effect |
|---|---|
agent.run(...) |
starts one L* execution |
session.run(...) |
starts one L* execution with session reuse |
run.events() |
streams runtime events emitted during L* |
RunResult |
materialized output after L* exits |
L* behavior is controlled indirectly through:
RuntimeConfig.limitsRuntimeConfig.featuresGenerationHeartbeatConfigSafetyRule
loom/runtime/loop.pyloom/runtime/engine.py
Getting Started
Core Concepts
Runtime
Multi-Agent
Ecosystem
Self-Improvement
API Reference
Reference
Cookbook
- Overview
- Single-Turn Assistant
- Session Workflow
- Knowledge-Backed Answers
- Guardrailed Tool Agent
- Monitoring Agent
- Repo Copilot
- Internal Docs QA
- Ops Agent
- Approval Workflow