# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cluster-protocol.gitbook.io/whitepaper/agentic-infrastructure/agent-to-inference-loop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
