AI Agent Use Cases

Added today

10All 241

1–20 of 241

Dev

An Agent That Implements a Pixel-Art Paint Tool Inside Claude Code

Because entering terminal pixel art by hand was cumbersome, the creator used Claude Code to build a paint mode for drawing with a mouse.

How it works

  1. While making a mini-game mode for Claude Code, the creator found it difficult to enter pixel art character by character and decided to build a paint mode.
  2. Working with Claude Code, they separated the display module from the save and clipboard module, and implemented half-block rendering that fits two pixels into one character cell along with four-way symmetry drawing.
  3. They also wrote test code and a script that generates preview images for the README with Claude Code.

Results

It supports a 9-color palette, brush sizes 1–4, lines, fill, and 20 levels of undo, and can export artwork as JS arrays, ASCII, or SVG. The creator did not disclose metrics such as user response.

Notes

It was released under the MIT License and is said to make no network requests. The creator wrote that fine-grained mouse coordinates work in kitty, Ghostty, iTerm2, and WezTerm.

Source

Reddit Original post ↗

Example prompt · Claude Code

Build a small paint tool that lets users draw pixel art with a mouse inside a terminal and export it as code.

Inputs: runtime environment [for example, a Claude Code plugin or general terminal app], supported terminals [list], canvas size range [width x height], and export formats [choose from JS array, ASCII, and SVG]. First, verify whether the environment can receive mouse drags and coordinates at a resolution smaller than a character cell, and, if it is a plugin, which extension APIs are available.

Implementation steps: 1) Start with a display that draws two vertical pixels in one cell using half-block characters. 2) Make left-drag draw and right-drag erase, and add brush-size and color selection. 3) Add lines, fill, undo and redo, and horizontal and vertical symmetry in sequence. 4) Separate screen rendering from file-save and clipboard processing so dragging does not stutter. 5) Add a feature that crops and exports the artwork. Do not add external program execution or network requests.

Deliverables: source code, installation instructions, and tests. First, verify with tests on a 24x12 canvas that drawing, undo, and symmetry are correct at the pixel level, then expand the features.