Variables

LOOP_MOMENTS

Variable: LOOP_MOMENTS

const LOOP_MOMENTS: readonly ["input", "before-tool", "after-tool", "window", "output"]

Defined in: src/core/agent/moments.ts:41

Every moment of one agent turn where a rule may act, in the order the loop reaches them.

input → [ window → … LLM … → before-tool → tool → after-tool ]* → output

watch attends all five and more; act attends exactly these. The difference is what a rule may DO there — an observer reports, a rule changes what happens next.

On this page