Agent Loop (Clawdbot)
Agent Loop (Clawdbot)
Scope
This page is a placeholder generated from the official source file structure.
What to verify
- TODO: Add prerequisites and validation checklist.
Outline (from official headings)
- Entry points
- How it works (high-level)
- Queueing + concurrency
- Session + workspace preparation
- Prompt assembly + system prompt
- Hook points (where you can intercept)
- Internal hooks (Gateway hooks)
- Plugin hooks (agent + gateway lifecycle)
- Streaming + partial replies
- Tool execution + messaging tools
- Reply shaping + suppression
- Compaction + retries
- Event streams (today)
- Chat channel handling
- Timeouts
- Where things can end early
Further reading
- Official source file:
concepts/agent-loop.md