Skip to content

ALIGN Agentic Loop Image GeneratioN

Agentic loop image generation without diffusion or autoregressive image models. Coding agents draw in p5.js, using iterative refinement and adversarial visual review for…

Install: claude mcp add codex --scope user -- codex mcp-server

Works with Claude Code, Codex · 44 GitHub stars

Install

$claude mcp add codex --scope user -- codex mcp-server

Install command taken from the project's README or registry entry. Always review code before running it.

ALIGN — Agentic Loop Image GeneratioN

🎨 Let coding agents paint. ALIGN explores image generation beyond diffusion and autoregressive image models: a powerful coding agent studies a reference, writes p5.js to draw the picture, and improves the program through independent visual review. Every stroke, layer and construction stage lives in source you can read, edit and replay.

English · 中文 · Interactive gallery

Out of Line · ALIGN-video’s first film · 60 seconds · Agent-authored Blender animation and synthesized sound · Zero diffusion models. ▶ Watch with sound · Download 1080p MP4

A machine follows a grid until a paper flower makes it pause and draw its first curve. Its lines eventually recreate the face it once erased. The story carries ALIGN’s exploration: image and video creation can take a path beyond diffusion models, with an agent developing ideas, writing code, rendering and revising the result.

Qingming in Wuhan · Claude executor + Codex MCP reviewer · 11 versions. Explore the scroll and replay its construction →

A closer look: Yellow Crane Tower (left) · Hubuxiang street life (right). Click either image to explore that part of the scroll.

A Thousand Li of Rivers and Mountains · Claude executor + Codex MCP reviewer · Ten painting stages. Explore the scroll and replay its construction →

Figure 1 is itself a p5.js program: six construction stages and an SVG export.

The loop is straightforward: study the reference, specify the work, draw and render, ask a fresh reviewer to look at the pixels, then change the program. A small wiki keeps the decisions and reasons across rounds. Feedback can be accepted, challenged against the reference, or reverted when the result gets worse. The skills follow HERO: useful work and concrete checks, without extra defensive machinery.

Why an Agentic Loop Works Better

Planning starts the picture; visual feedback drives the next iteration. Even with detailed plans and a strong coding agent, our first render had floating figures, repetitive buildings and weak spatial relationships.

ALIGN brings two core ideas from our ARIS (Auto-Research-In-Sleep) project into programmatic image generation. The first is an agentic loop that turns critique into action. Here it takes the form render → review → revise: each image gives the reviewer concrete evidence, its critique gives the executor a new problem to solve, and the program and wiki carry decisions forward. Reasoning continues through the consequences of earlier choices.

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…

Explore related