webgradients: Instructions file for Codex

AGENTS.md

webgradients AGENTS.md is an instructions file for Codex, OpenCode from itmeo/webgradients. It costs 1,579 tokens per session, scanned A, original, MIT.

Repository instructions for WebGradients, a static collection of 180 CSS gradients and their structured metadata.

In plain words
What is it for?
Use them when editing the gradient CSS, regenerating JSON metadata, or resolving duplicate names and related repository details.
Why use it?
They explain which files contain the complete gradient set and prevent agents from using an older or incomplete dataset.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is itmeo/webgradients's own configuration. It tells Codex and OpenCode how to work on webgradients itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything webgradients configures →

About the project

WebGradients is a collection of 180 ready-made color gradients provided in CSS3, Figma, Sketch, PSD, and structured JSON formats. Designers and developers use it in interfaces, design tools, generators, and AI-agent workflows, with the catalogue containing an instruction for using the collection.

itmeo/webgradients · 2,497 stars · on GitHub · webgradients.com

Reuse

Borrowing it

Nothing to install: this file belongs to itmeo/webgradients. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/itmeo/webgradients/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/itmeo/webgradients

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for webgradients AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/itmeo/webgradients/agents-md/github.svg)](https://agentmods.dev/instructions/itmeo/webgradients/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/itmeo/webgradients/agents-md"><img src="https://agentmods.dev/badge/instructions/itmeo/webgradients/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for webgradients AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/itmeo/webgradients/agents-md"><img src="https://agentmods.dev/badge/instructions/itmeo/webgradients/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,579 This file is loaded in full into every session.
When invoked 1,579 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01579 $0.01579
Opus 5.5 $0.00632 $0.00632
Sonnet 5.5 $0.00316 $0.00316
Haiku 4.5 $0.00158 $0.00158

Measured 2mo ago against content hash 2658613ede9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

webgradients 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 2mo 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.

AGENTS.md · 102 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents (Claude, Cursor, Copilot, etc.) working with this repo. This is a static data repository — 180 curated gradients, no build step, no dependencies.

Files and what they're for

File Gradients Use it for
webgradients.css 180 (complete, canonical) Ready-to-use CSS classes. Source of truth for the full set.
gradients.json 180 (complete) Structured metadata regenerated from webgradients.css: name, angle, color stops. Preferred source for programmatic use.
gradients-parsed.json 174 Older structured dataset (site-internal history). Missing the same 6 entries as before (blend-mode composites); its 2 name typos (Arielles Smile, October Silenceiver) have been fixed. Prefer gradients.json for the complete set.

Fixed: two gradients used to share the name/class Deep Blue (now resolved)

webgradients.css used to define .deep_blue{} twice — index 016 (#e0c3fc→#8ec5fc) and index 039 (#6a11cb→#2575fc) — both commented /*NNN Deep Blue*/. In CSS the later rule wins, so .deep_blue always rendered index 039's colors; index 016's gradient was unreachable through that class name. gradients-parsed.json originally called index 039 "Blue Velvet" — a leftover from before it was renamed to Deep Blue in the CSS without updating this file, which is what caused it to look like a missing/orphaned entry.

Resolved by keeping the class that was actually live (.deep_blue / index 039, so nothing that already depended on that class name changes) and giving the previously-unreachable index 016 a new, unique name: Lilac Sky / .lilac_sky. Applied consistently across webgradients.css, gradients.json, and gradients-parsed.json. Blue Velvet is retired — index 039 is Deep Blue in all three files now.

Why gradients.json only had 11 entries until now

It was an abandoned 2019 prototype (see git log -- gradients.json) — the real data work happened in gradients-parsed.json instead, which itself topped out at 174/180 because 6 gradients (Coup de Grace, Loon Crest, Sharp Glass, Chemic Aqua, Slick Carbon, Earl Gray) use layered background-blend-mode effects that don't reduce to a single {deg, gradient} pair, so the original pipeline silently dropped them. gradients.json is now regenerated directly from webgradients.css (the canonical, complete source) to close that gap:

Read the full file on GitHub · 102 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. 2mo ago First seen · 102 lines · 1,579 tokens per session scan A 2658613ede9e

Subscribe to this mod's changes

webgradients AGENTS.md is an instructions file published in the GitHub repository itmeo/webgradients (2,497 stars, last pushed 3mo ago), licensed MIT. It adds 1,579 tokens to every session, about $0.0063 per session on Opus 5.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.

Related

webgradients AGENTS.md compared with instructions from other repositories

webgradients AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
webgradients AGENTS.mditmeo/webgradientsInstructions file2.5k3mo agoMITA1,579Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode