---
id: "framework-agent-primitive-loop"
type: "framework"
source_timestamps: ["00:14:30"]
tags: ["ai-agents", "system-architecture"]
related: ["concept-agent-callable-primitive", "claim-images-as-intermediate-data"]
sources: ["s07-chatgpt-images"]
sourceVaultSlug: "s07-chatgpt-images"
originDay: 7
---
# The Agent Primitive Loop

## Summary

Describes how autonomous AI agents utilize image generation as an intermediate step rather than a final output. The mechanism behind [[concept-agent-callable-primitive]] and the basis of [[claim-images-as-intermediate-data]].

## Steps

1. **Write Spec (Intent)** — The agent formulates a detailed text specification for a required visual.
2. **Call Generate Image (Subroutine)** — The agent pings the image generation API to render the specification.
3. **Read Result (Feedback)** — The agent consumes the resulting image (e.g. via vision capabilities) to inform its next action — for instance, writing code to match a UI mockup.

## Implication

The image is never seen by a human in this loop. Pricing, latency, and accuracy targets must be redesigned for machine consumers — see [[contrarian-images-for-agents]]. Requires [[prereq-agentic-workflows]] to fully appreciate.


## Related across days
- [[concept-agent-callable-primitive]]
- [[concept-agentic-economy]]
- [[claim-images-as-intermediate-data]]
- [[arc-agentic-economy-foundations]]
