Start with a goal
A user, application, scheduled task, or chat channel submits a goal along with the active system instructions and session context.
// Pipeline
The core loop stays deliberately legible: accept a goal, ask the model what to do, execute validated tools, feed observations back, and stream the result.
A user, application, scheduled task, or chat channel submits a goal along with the active system instructions and session context.
The selected provider returns text, tool calls, or both. PasClaw normalizes provider-specific responses into one execution flow.
Validated tool calls run under the configured policy. Their structured results become observations for the next turn.
The loop continues until the model produces a final result, reaches a configured limit, or is redirected by an operator.
From the documentation
Implementation notes drawn from the PasClaw repository documentation.
The executable routes commands into agent, gateway, and TUI modes. RunToolLoop then coordinates provider responses, tool execution, memory, and session persistence.
Sessions serialize after every turn and keep a compact working-state snapshot available after compaction or restart.
Common questions
Keep exploring
See how the rest of PasClaw fits together.