Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/the-teacher/active_harness/image_generationgit clone --depth 1 https://github.com/the-teacher/active_harnessWrote 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/agents/the-teacher/active_harness/image_generation)<a href="https://agentmods.dev/agents/the-teacher/active_harness/image_generation"><img src="https://agentmods.dev/badge/agents/the-teacher/active_harness/image_generation.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.01219 |
| Opus 5 | $0.00000 | $0.00609 |
| Sonnet 5 | $0.00000 | $0.00244 |
| Haiku 4.5 | $0.00000 | $0.00122 |
Grade A, and why
image_generation 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 4d 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 — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Image Generation Agents
ActiveHarness agents can generate images natively — no custom_llm_backend/RubyLLM required. Enable it with image true and use the same model/fallback DSL as any other agent.
class ImageAgent < ActiveHarness::Agent
image true
size "1024x1024"
model do
use provider: :openrouter, model: "openai/gpt-5-image-mini"
fallback provider: :openai, model: "gpt-image-1"
end
end
result = ImageAgent.call(input: "A watercolor fox in a snowy forest")
result.output # => base64 string, "data:image/png;base64,..." or an HTTPS URL (provider-dependent)
result.processed # => same as output (default format is :text)
Image APIs take a single prompt string — there's no separate system/user message split like in chat. So if the agent declares a system_prompt, it's prepended to @input (joined by a blank line) to form the final prompt; without one, @input is sent as-is.
class ImageAgent < ActiveHarness::Agent
image true
# Base style guidance — applies to every request.
system_prompt "Watercolor style, soft pastel colors, no text overlays."
model do
use provider: :openrouter, model: "openai/gpt-5-image-mini"
end
end
ImageAgent.call(input: "A fox sitting in a snowy forest")
# final prompt sent to the provider:
# "Watercolor style, soft pastel colors, no text overlays.
#
# A fox sitting in a snowy forest"
system_prompt accepts a plain string, a Prompt class, or a lambda — same as text agents (see Prompts) — so the base style can itself be dynamic (e.g. built from @context/@params).
Supported Providers
Only two providers currently support image generation:
| Provider | Class | Example models |
|---|---|---|
:openai |
Providers::Images::OpenAI |
"dall-e-2", "dall-e-3", "gpt-image-1" |
:openrouter |
Providers::Images::OpenRouter |
any image-capable OpenRouter model, e.g. "openai/gpt-5-image-mini", "google/gemini-2.5-flash-image" |
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.
- 4d ago First seen · 99 lines · 0 tokens per session scan A 4802b87d7618
image_generation is an agent published in the GitHub repository the-teacher/active_harness (89 stars, last pushed 25d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,219 tokens. 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-08-30.
Other agents, from other repositories
pixel-art-animation-reviewer
Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…
AGENTS.motiscope
Agent "AGENTS.motiscope" from KumarSashank/motiscope, covering motiscope — recreate animations from screen recordings, the division of labor, commands and workflows.
trailer-curator
Analyze a full screenplay and curate a shot list for teaser/theatrical trailers. Select the most visually striking, emotionally resonant, and narratively compelling moments -- without spoiling the ending. Build a trailer that makes people want to watch the full film.
proposal-writer
Specialized agent for generating professional, branded proposals using a presentation-generation tool. Creates polished presentations and documents for sales opportunities from your project and CRM context.
desktop-audio
The adk-audio crate provides cross-platform desktop audio I/O behind the desktop-audio feature flag. Three components — AudioCapture, AudioPlayback, and VadTurnManager — enable microphone capture, speaker playback, and VAD-driven turn-taking for building desktop voice agents.
vision
Analyze images with task-aware visual reasoning.