pixel-palette

A command for managing the colors used by a sprite, including preset palettes and custom color lists.

In plain words
What is it for?
It helps apply palettes such as NES or Game Boy, optimize a sprite to a set color count, view the current palette, and save it to a file.
Why use it?
It makes it easier to keep an image within a chosen color style or reduce its number of colors.

Command

Install

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.

agentmods
npx agentmods add commands/willibrandon/pixel-plugin/pixel-palette
Clone the repo
git clone --depth 1 https://github.com/willibrandon/pixel-plugin
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,233 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.02233
Opus 5 $0.00006 $0.01117
Sonnet 5 $0.00002 $0.00447
Haiku 4.5 $0.00001 $0.00223

Measured 2d ago against content hash 01abb8afa2ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pixel-palette 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 2d 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.

commands/pixel-palette.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/pixel-palette - Palette Management

Manage sprite color palettes with presets, optimization, and custom palettes.

Usage

/pixel-palette <action> [palette-name|color-count]

Actions

set - Set palette to a preset or custom colors

/pixel-palette set nes
/pixel-palette set gameboy
/pixel-palette set custom #000000,#ffffff,#ff0000

optimize - Reduce colors to optimal palette

/pixel-palette optimize 16
/pixel-palette optimize 32

show - Display current palette

/pixel-palette show

export - Export current palette to file

/pixel-palette export my-palette.gpl

Palette Presets

Retro Consoles:

  • nes: 54-color NES palette
  • gameboy: 4-color Game Boy palette (#0f380f, #306230, #8bac0f, #9bbc0f)
  • gameboy-gray: 4-shade grayscale Game Boy
  • c64: 16-color Commodore 64 palette
  • cga: 4-color CGA palette
  • snes: Rich 256-color SNES-style palette

Generic Palettes:

  • retro16: Generic 16-color retro palette
  • retro8: Generic 8-color palette
  • retro4: Generic 4-color palette
  • grayscale4: 4 shades of gray
  • grayscale8: 8 shades of gray
  • grayscale16: 16 shades of gray

Modern Palettes:

  • pico8: PICO-8 fantasy console 16-color palette
  • sweetie16: Popular 16-color palette by GrafxKid
  • db16: DawnBringer's 16-color palette
  • db32: DawnBringer's 32-color palette

Examples

/pixel-palette set nes
→ Sets sprite to NES 54-color palette (indexed mode)

/pixel-palette optimize 16
→ Reduces sprite to optimal 16 colors

/pixel-palette set custom #000000,#ffffff,#ff0000,#00ff00,#0000ff
→ Sets custom 5-color palette

/pixel-palette show
→ Displays current palette colors

/pixel-palette set pico8
→ Sets PICO-8 16-color palette

Palette Definitions

NES Palette (54 colors):

#7C7C7C, #0000FC, #0000BC, #4428BC, #940084, #A80020, #A81000, #881400,
#503000, #007800, #006800, #005800, #004058, #000000, #000000, #000000,
#BCBCBC, #0078F8, #0058F8, #6844FC, #D800CC, #E40058, #F83800, #E45C10,
#AC7C00, #00B800, #00A800, #00A844, #008888, #000000, #000000, #000000,
#F8F8F8, #3CBCFC, #6888FC, #9878F8, #F878F8, #F85898, #F87858, #FCA044,
#F8B800, #B8F818, #58D854, #58F898, #00E8D8, #787878, #000000, #000000,
#FCFCFC, #A4E4FC, #B8B8F8, #D8B8F8, #F8B8F8, #F8A4C0, #F0D0B0, #FCE0A8,
#F8D878, #D8F878, #B8F8B8, #B8F8D8, #00FCFC, #F8D8F8, #000000, #000000

Read the full file on GitHub · 247 lines

Changes

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.

  1. 2d ago First seen · 247 lines · 12 tokens per session scan A 01abb8afa2ea

Subscribe to this mod's changes

pixel-palette is a command published in the GitHub repository willibrandon/pixel-plugin (302 stars, last pushed 10mo ago), licensed MIT. It adds 12 tokens to every session and 2,233 once invoked, about $0.0001 per session on Opus 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-08-30.