pixel-definitions

pixel-definitions is a cursor rule for Cursor from duckduckgo/apple-browsers. It costs 22 tokens per session (3,493 once invoked), scanned A, original, Apache-2.0.

Rules for creating and maintaining pixel definition JSON5 files that document pixels fired by the iOS and macOS apps.

Cursor rule for Cursor

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 rules/duckduckgo/apple-browsers/pixel-definitions
Clone the repo
git clone --depth 1 https://github.com/duckduckgo/apple-browsers

Made for: Cursor.

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 pixel-definitions

README.md
[![agentmods](https://agentmods.dev/badge/rules/duckduckgo/apple-browsers/pixel-definitions.svg)](https://agentmods.dev/rules/duckduckgo/apple-browsers/pixel-definitions)
Your own site
<a href="https://agentmods.dev/rules/duckduckgo/apple-browsers/pixel-definitions"><img src="https://agentmods.dev/badge/rules/duckduckgo/apple-browsers/pixel-definitions.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,493 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.00022 $0.03493
Opus 5 $0.00011 $0.01747
Sonnet 5 $0.00004 $0.00699
Haiku 4.5 $0.00002 $0.00349

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

Security

Grade A, and why

pixel-definitions 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.

.cursor/rules/pixel-definitions.mdc · 306 lines

How it starts

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

Pixel Registry Definitions

Overview

Pixel definitions are JSON5 files that document pixels and wide events fired by the iOS and macOS apps. They live in:

  • iOS: iOS/PixelDefinitions/pixels/definitions/*.json5
  • macOS: macOS/PixelDefinitions/pixels/definitions/*.json5
  • iOS wide events: iOS/PixelDefinitions/wide_events/definitions/*.json5

Each platform has its own params_dictionary.json5 and suffixes_dictionary.json5 for reusable definitions.

Note: Each definitions directory contains a TEMPLATE.json5 file. These are scaffolds for creating new definition files — they are not real pixel definitions. Ignore them when reviewing or auditing existing definitions (their placeholder expires dates are intentional examples).

Pixel Definition Structure

Each .json5 file is a JSON5 object where keys are pixel names and values describe the pixel:

{
    "pixel_name_here": {
        "description": "When and why this pixel fires",
        "owners": ["githubUsername"],
        "triggers": ["other"],
        "suffixes": ["first_daily_count", "platform", "form_factor"],
        "parameters": ["appVersion", "errorCode", "errorDomain"],
        // Only for temporary pixels — omit for permanent ones
        "expires": "2025-06-30"
    }
}

Required Fields

Field Type Description
description string When the pixel fires and its purpose
owners string[] GitHub usernames of responsible people
triggers string[] What causes the pixel to fire (see trigger values below)

Optional Fields

Field Type Description
suffixes array Dynamic parts appended to the pixel name
parameters array Query parameters sent with the pixel
expires string ISO date (YYYY-MM-DD) for temporary pixels

Trigger Values

Valid trigger values: "other", "scheduled", "startup", "page_load", "new_tab", "exception", "user_submitted", "search_ddg".

Read the full file on GitHub · 306 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 · 306 lines · 22 tokens per session scan A 576ffc738018

Subscribe to this mod's changes

pixel-definitions is a cursor rule published in the GitHub repository duckduckgo/apple-browsers (252 stars, last pushed 2d ago), licensed Apache-2.0. It adds 22 tokens to every session and 3,493 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-09-01.