Living pixel-art mascots for the terminal, and an Agent Skill that teaches your coding agent to make them.
Every frame is real text: Unicode quadrant characters ▘▝▀▖▌▞▛▗▚▐▜▄▙▟█, two colors per cell, redrawn without flicker.
Zero dependencies · Node 20+ · ANSI · Ink · Claude Code mods · SVG
English · Русский · reel in MP4
Terminal tools have personality now. Claude Code has a little mascot that hops when you click it; CLIs show spinners, status widgets and celebrations. Making that look good in text is surprisingly hard:
- Resolution. A terminal cell is tall and narrow. Full blocks give you chunky pixels; half blocks give one column per cell. Small characters cannot move a pupil or lift a foot.
- Colors. A cell has one foreground and one background color. Draw a three-color detail into one cell and it breaks.
- Flicker. Rewriting a sprite line by line lets the terminal paint half-finished frames, and a sprite that changes height makes everything below it jump.
- AI agents can't draw in text. Language models are poor at laying out 2D character art directly; lines break and glyphs drift.
QuadMotion solves all four. You draw on a grid at twice the terminal's resolution (2×2 sub-pixels per cell). The compiler picks the quadrant glyph for every cell and resolves the two-color limit. The player keeps a fixed height, rewrites only changed rows, and wraps each frame in DEC Mode 2026 so the terminal shows it in one go. The Agent Skill lets your coding agent do the drawing safely: it edits pixel grids and timing, the scripts do the glyph math and render the frames to PNG so the agent can actually look at its animation.
Pip is the project's mascot and its proof. He is a puppet of small authored parts with planted feet, and every action follows the same grammar as Claude Code's own mascot: anticipation, release, a held contact, follow-through, settle.
And the quick reactions, Clawd-style: what a click on Pip triggers, plus his idle life.
| Hello | Happy hops | Look around | Spin | Idle life |
Play with him. In a terminal:
node src/cli.mjs playArrow keys walk, Shift runs, Space jumps, Enter pokes him, 1–9 start acts.
In a browser, open docs/showcase/index.html:
click Pip for a reaction, click the ground and he walks there, and every act
has a button.
The skill, quadrant-pixel-animator, is how most people will use
QuadMotion. It follows the open Agent Skills
standard and works in any compatible agent. It is self-contained: Node 20+,
no npm install.
Any agent, with the skills CLI:
npx skills add LiquidRing/quadmotionIt asks which agents to install for. Pick them on the command line instead:
npx skills add LiquidRing/quadmotion -a claude-code -a codex -a cursorAdd -g to install for your user instead of the current project.
Claude Code, as a plugin, typed at the Claude Code prompt:
/plugin install quadmotion --marketplace LiquidRing/quadmotion
By hand. Copy skills/quadrant-pixel-animator into the agent's skills folder:
| Agent | Project folder | User folder |
|---|---|---|
| Claude Code | .claude/skills/ |
~/.claude/skills/ |
| OpenAI Codex | .agents/skills/ |
~/.agents/skills/ |
| Cursor | .agents/skills/ |
~/.cursor/skills/ |
| Gemini CLI | .agents/skills/ |
~/.gemini/skills/ |
| GitHub Copilot | .agents/skills/ |
~/.copilot/skills/ |
| OpenCode | .agents/skills/ |
~/.config/opencode/skills/ |
| Windsurf | .windsurf/skills/ |
~/.codeium/windsurf/skills/ |
| Goose | .goose/skills/ |
~/.config/goose/skills/ |
git clone https://github.com/LiquidRing/quadmotioncp -r quadmotion/skills/quadrant-pixel-animator ~/.claude/skills/Then just ask. For example: "Make a 3-row terminal mascot of a fox with
an idle loop and a celebrate animation, and give me a Claude Code mod." The
agent draws a rig, looks at the frames with strip, validates it, and
compiles it.
- It picks the surface and the resolution first: a 9×3 status-line mascot and a detailed hero character need different sizes, and a terminal needs different output from a web page.
- It draws in full color, with outlines, shading and highlights: either a character module in code (the default for anything detailed) or a JSON rig for small mascots. It never types glyphs.
- It renders consecutive frames to a PNG with
stripand looks at them, three rounds or more per action.--view compareputs the full-color source beside the terminal result and prints how much color the terminal keeps. - It checks the work: feet on the ground, no sliding, no teleports, rig invariants.
- It compiles to:
- a standalone ANSI player;
- an Ink component;
- a Claude Code mod with its own tests;
- SVG, as the terminal shows it or in full color (
--source).
The skill carries the whole engine plus references for the character contract, the acting grammar and timing, and the quadrant spec.
A character module draws itself from a pose state; the stage supplies the world and all 19 acts. Ember is the example: fur with a light crown and a shaded underside, a cream muzzle, eyes with highlights, dark socks, a 1-sub-pixel outline. Up to four colors meet in a 2×2 cell; the terminal keeps the best two for each cell and about 96% of the colored sub-pixels stay true.
node src/cli.mjs strip --module assets/characters/ember.mjs --act walk-jump --view compare --crop pip --width 30- A quadrant compiler. It turns 16 masks into glyphs and solves two colors
per cell. The majority color becomes the foreground, so a body cell with one
eye pixel compiles to
▛, not an inverted▗. A third color folds to the nearest one and is reported with its coordinates. - Flicker-free playback. It keeps a fixed height and rewrites only rows that changed. Same-color runs share one SGR sequence. Frames are wrapped in DEC 2026 synchronized output, probed with DECRQM. The cursor is restored on exit and Ctrl+C.
- Terminal fallbacks. It falls back from 24-bit to 16 colors. Apple
Terminal gets bg-fill, which paints solid cells as colored spaces so no seams
show between rows. Sync is turned off inside tmux before 3.7.
NO_COLORand reduced motion are respected. - Outputs:
- a standalone player script;
- a React/Ink component;
- a Claude Code mod that draws the mascot above the prompt and reacts to tool calls and turn ends;
- animated SMIL SVG;
- glyph snapshots.
- A stage for living mascots:
- the Pip puppet;
- planted-foot walking and running, jumps;
- props, particles, weather, speech bubbles;
- 19 recorded acts in four groups;
- a real-time playground in the browser and in the terminal.
- Eyes and checks:
striprenders frames to PNG;npm testfails an act when Pip floats, a planted foot slides, he teleports, or a cell on him needs three colors.
git clone https://github.com/LiquidRing/quadmotion && cd quadmotionnpm run demonode src/cli.mjs compile --input assets/pip.rig.json --target all --out dist| Command | What it does |
|---|---|
play |
Pip live in this terminal |
demo |
Every act, the engine demos and the rigs, one after another |
strip |
Consecutive frames of a rig, act or scene as a PNG |
validate |
Rig invariants: even grid, ≤ 2 colors per cell, poses, holds, loop seams |
inspect |
Each pose's sub-pixel grid split into cells, beside its glyphs |
compile --target ansi|ink|claude-mod|svg|text|json |
Build outputs from a rig |
compile --scene NAME |
Export a procedural demo (physics, widgets, fire, resolution, logo) |
preview, show, caps |
Play a timeline, print poses in color, show terminal capabilities |
The same animation on the same number of cells: full blocks (1×1), half blocks (1×2) and quadrants (2×2). The pipeline has four steps:
- Grid. One character per sub-pixel, two by two per cell.
- Solve. Transparent pixels stay background. Of two opaque colors, the majority one becomes the foreground. A third color folds to the nearest.
- Encode. Mask bits TL=1, TR=2, BL=4, BR=8 pick one of 16 glyphs.
- Play. The height stays fixed, only changed rows are rewritten, and the
frame goes between
ESC[?2026handESC[?2026l.
| Path | What lives there |
|---|---|
src/core/ |
Compiler, rigs, validator, terminal capabilities, player, PNG |
src/stage/ |
Pip puppet, world, props, acts, checks, live playground |
src/adapters/ |
ANSI player, Ink, Claude Code mod, SVG/SMIL |
src/scenes/ |
Procedural engine demos |
assets/ |
JSON rigs (schema) |
skill-src/ → skills/ |
The Agent Skill: sources and the built, self-contained copy |
docs/ |
Interactive showcase and the animations in this README |
| Pip, 9×3 for a status line | Mochi | Blobby | Wisp | Sprout |
npm testnpm run buildnpm test covers several things:
- the compiler, including all 16 masks;
- the renderer, checked against a virtual terminal so the screen after diffed frames matches a full redraw;
- every adapter;
- every act, with grounding, foot slide, teleport and clean-cell checks;
- the skill's frontmatter.
npm run build rebuilds the skill copy, the showcase and the SVGs; the live
showcase is bundled with Bun. CI runs the tests on Node 22
and 24 and checks the Node 20 runtime.
To add an act, write a generator in src/stage/acts/<group>.mjs, record it
with strip --act <id>, look at it, and make npm test pass.
Version 0.2. Planned:
- publish to npm, so
npx quadmotion playworks; - add more acts;
- run the skill's paired evals (
skill-src/evals/evals.json).
The technique comes from studying how Claude Code's mascot is drawn and
animated; the notes are in
docs/research/clawd-mascot-technique.ru.md
(Russian). No Anthropic assets are included. Pip and every other character are
original and MIT-licensed. The look-at-your-frames method follows Hugo
Duprez's approach to pixel effects with AI (pixelfx).
