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 instructions/gyng/ditherer/agents-mdgit clone --depth 1 https://github.com/gyng/dithererWhat 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.04655 | $0.04655 |
| Opus 5 | $0.02328 | $0.02328 |
| Sonnet 5 | $0.00931 | $0.00931 |
| Haiku 4.5 | $0.00466 | $0.00466 |
Grade A, and why
ditherer AGENTS.md 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.
How it starts
The opening of the file, as written. The whole thing — 331 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ditherer — Agent Guidelines
Project Overview
Ditherer is a browser-based image/video processing tool. Users load an image, select a dithering algorithm (or other effect), adjust parameters via a control panel, and apply the filter. The app also supports video frame processing, palette extraction, and state export/import via URL.
Stack: React 19, Vite, TypeScript, Rust/WASM (color space conversions), cmdk + Radix UI for the filter picker.
Quick reference: npm run dev (dev server) · npm run build (production build to build/) · npm run test (Vitest) · npm run lint (eslint).
Architecture
Component Hierarchy (Atomic Design)
The UI follows an implicit atomic design pattern:
Tokens — Design primitives defined in CSS custom properties:
- Colors:
--light-gray,--gray,--beautiful-blue,--bg-color - Layout values are inline (no token system yet)
Atoms — Leaf control components in src/components/controls/. Each renders a single HTML control:
Range.tsx—<input type="range">with editable value displayBool.tsx—<input type="checkbox">Enum.tsx—<select>dropdownStringly.tsx—<input type="text">Textly.tsx—<textarea>
Molecules — Composed controls:
Palette.tsx— palette selector + nested atom controls for palette optionsColorArray.tsx— color swatch grid + palette extraction UI (stateful)
Organisms — Sections of the app:
Controls(src/components/controls/index.tsx) — dispatches to the right atom/molecule based onoptionTypes.typeChainList(src/components/ChainList/index.tsx) — filter chain editor, presets, drag/drop reorderingExporter(src/components/App/Exporter.tsx) — URL/JSON state export panelSaveAs(src/components/SaveAs/index.tsx) — image/video file export dialog (uses MediaRecorder for video)
Page — Single page app:
App(src/components/App/index.tsx) — top-level layout: sidebar controls + draggable canvas area
State Management
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.
- 2d ago First seen · 331 lines · 4,655 tokens per session scan A d49beaed9bb3
ditherer AGENTS.md is an instructions file published in the GitHub repository gyng/ditherer (88 stars, last pushed 28d ago), licensed MIT. It adds 4,655 tokens to every session, about $0.0233 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.
Other instructions, from other repositories
remocn CLAUDE.md
Instructions for Remocn/remocn, covering remocn, что это, целевая аудитория, архитектура and два уровня компонентов.
gemini-watermark-and-synthid-remover CLAUDE.md
Instructions for froggeric/gemini-watermark-and-synthid-remover, covering claude.md, build commands, architecture, pipeline: detect → remove → inpaint and ai denoise (optional, off by default).
transcreve-ai GEMINI.md
Instructions for DeHor-Labs/transcreve-ai, covering transcreveai agent instructions, required nested usage and operational rules.
img-converter CLAUDE.md
Instructions for dutchbase/img-converter, covering claude.md, commands, architecture and adding a new format.
image-tiler-mcp-server CLAUDE.md
Instructions for keiver/image-tiler-mcp-server, covering claude.md, project overview, commands, architecture and typescript configuration.
reframe CLAUDE.md
Claude Code instructions for kiyeonjeon21/reframe, a project described as: Declarative motion graphics AI can write, humans can tweak — edits survive AI regeneration. Deterministic mp4 from plain-data scenes. npm: reframe-video.