Idea · Oct 4, 2026

Stroke Budget

An AI agents lab where students design the painting tool API an LLM agent uses to reproduce a target image under a fixed stroke budget, then see how tool design, not prompting, changes the result.

What it would do

Inspired by the Show HN 'Giving Opus 5.5 a simulated paint canvas' (stillwet.art), this tool makes tool design the object of study in an AI agents unit. The instructor provides target images (a flag, a simple still life, a pixel sprite) and a simulated canvas with wet-paint physics. Students define the agent's tools as JSON schemas: maybe a single 'stroke(points, color, width)', maybe higher-level 'fill_region', 'gradient' or 'erase' tools, maybe a 'look' tool that returns a downsampled view of the canvas. The agent runs a loop with a hard budget of tool calls, and the app scores the result against the target with SSIM and a perceptual color distance. A run viewer replays every call with the agent's stated intent beside it, so students can see where the agent misread the canvas or wasted strokes. A class leaderboard ranks tool sets (not prompts) on the same targets, and the instructor can lock the system prompt so that tool design is the only variable.

Key features

  • Simulated canvas with brush, fill and wet-blend primitives rendered on HTML canvas
  • Student-authored tool schemas validated before a run, with a locked or editable system prompt
  • Hard tool-call budget and token accounting per run
  • Similarity scoring (SSIM plus perceptual color distance) against the target image
  • Step-by-step replay showing each tool call, its arguments and the agent's stated intent
  • Class leaderboard comparing tool sets across a shared set of targets

More in AI Literacy & Ethics

AI Rules Board

One clear set of AI rules per assignment, and one page where students see the rules for all their courses.

AI Literacy & EthicsProduct for a businessSmallOct 24, 2026

Agent Session Review

If you allow coding assistants like Claude Code in your course, see how each student actually used them.

AI Literacy & EthicsProduct for a businessLargeOct 22, 2026

System 1 vs System 2 Showdown

Students build a small encoder-based 'System 1' decision model and race it against a prompted LLM on typed decisions (yes/no, pick-one, score), measuring accuracy, latency, cost, and calibration.

AI Literacy & EthicsClass assignmentLargeSep 27, 2026

Tiny Brains League

Students train the smallest neural network they can to play a simple strategy game, then compete on a class ladder where score is weighed against parameter count.

BuiltAI Literacy & EthicsProduct for a businessSep 26, 2026

All 110 ideas in AI Literacy & Ethics →