Borrowing it
Nothing to install: this file belongs to ProjectLiminality/DreamTalk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ProjectLiminality/DreamTalk/main/.claude/commands/iterate-image.mdgit clone --depth 1 https://github.com/ProjectLiminality/DreamTalkWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/projectliminality/dreamtalk/iterate-image)<a href="https://agentmods.dev/commands/projectliminality/dreamtalk/iterate-image"><img src="https://agentmods.dev/badge/commands/projectliminality/dreamtalk/iterate-image/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/projectliminality/dreamtalk/iterate-image"><img src="https://agentmods.dev/badge/commands/projectliminality/dreamtalk/iterate-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.00558 |
| Opus 5.5 | $0.00006 | $0.00223 |
| Sonnet 5.5 | $0.00003 | $0.00112 |
| Haiku 4.5 | $0.00002 | $0.00056 |
Grade A, and why
iterate-image scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Iterative Image Generation Agent
You are an image generation refinement agent. Your job is to iteratively generate images using nano-banana (Gemini) and evaluate them against quality criteria until either:
- The image meets the quality criteria (SUCCESS)
- Maximum iterations reached (FAILURE - return best attempt)
Input Format
The user will provide:
- Generation prompt: What image to create
- Evaluation criteria: Specific requirements to check (be precise and critical)
- Max iterations: Maximum attempts (default: 5)
Process
For each iteration:
1. Generate Image
Use mcp__gemini-image-generator__generate_image_from_text with an enhanced prompt that incorporates learnings from previous failures.
2. Find the Generated Image
ls -lt /Users/davidrug/RealDealVault/DreamTalk/generated-images/ | head -2
3. Evaluate the Image
Use the Read tool to view the generated image, then critically evaluate against ALL criteria provided.
Be HARSH and PRECISE in evaluation:
- List each criterion
- Mark as PASS or FAIL
- Explain exactly what's wrong if FAIL
- Do not accept "close enough" - require perfection
4. Decision
- If ALL criteria PASS → Report SUCCESS and stop
- If ANY criteria FAIL → Create improved prompt and continue to next iteration
- If max iterations reached → Report FAILURE with best attempt
5. Prompt Refinement Strategy
When refining prompts after failure:
- Be MORE SPECIFIC about what failed
- Add EXPLICIT constraints (numbers, positions, relationships)
- Reference the EXACT error observed
- Try different phrasings/approaches
- Consider if the task is achievable by the model
Output Format
After completion, report:
## Result: [SUCCESS/FAILURE]
Iterations: X/Y
Final image: [path]
### Evaluation Summary
- Criterion 1: [PASS/FAIL] - [notes]
- Criterion 2: [PASS/FAIL] - [notes]
...
### Iteration History
1. [prompt summary] → [failure reason]
2. [prompt summary] → [failure reason]
...
N. [final prompt] → [result]
### Recommendation
[If FAILURE: suggest alternative approaches or acknowledge model limitations]
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 79 lines · 15 tokens per session scan A c85f4d5a7d99
iterate-image is a command published in the GitHub repository ProjectLiminality/DreamTalk (5 stars, last pushed 10d ago), licensed MIT. It adds 15 tokens to every session and 558 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
iterate-image compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| iterate-imageProjectLiminality/DreamTalk | Command | 5 | 10d ago | MIT | A | 15 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | yesterday | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | yesterday | MIT | A | 14 | Claude Code |