> For the complete documentation index, see [llms.txt](https://cluster-protocol.gitbook.io/whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cluster-protocol.gitbook.io/whitepaper/agentic-infrastructure/agent-to-inference-loop.md).

# Agent-to-Inference Loop

The standard loop for an autonomous agent on Cluster:

```
Agent receives task
    → Agent calls Cluster inference API (x402 payment)
    → Receives model response
    → Processes response
    → Executes on-chain action (swap, transfer, deploy, etc.)
    → Logs activity against ERC-8004 identity
    → Repeats
```

The agent never leaves the on-chain ecosystem. Inference is settled on Base. Actions are executed on Base. Identity is on Base. The entire loop is verifiable and composable with other on-chain systems.
