apple-browsers AGENTS.md

apple-browsers AGENTS.md is an instructions file for Codex, OpenCode from duckduckgo/apple-browsers. It costs 449 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for contributing to an Apple browser project. They point coding agents to the relevant team rules for Swift code, tests, project structure, and privacy-related changes.

In plain words
What is it for?
Use them when changing the Apple browser codebase, especially Swift code, user settings, analytics events, tests, or project files.
Why use it?
They give an agent the project’s expected conventions before it edits code. This helps avoid changes that fail review or conflict with repository practices.

Instructions file for CodexOpenCode

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

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 apple-browsers AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/duckduckgo/apple-browsers/agents-md.svg)](https://agentmods.dev/instructions/duckduckgo/apple-browsers/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/duckduckgo/apple-browsers/agents-md"><img src="https://agentmods.dev/badge/instructions/duckduckgo/apple-browsers/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 449 This file is loaded in full into every session.
When invoked 449 The same file — it is already loaded in full.
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.00449 $0.00449
Opus 5 $0.00225 $0.00225
Sonnet 5 $0.00090 $0.00090
Haiku 4.5 $0.00045 $0.00045

Measured today against content hash 1f1cae9e9454, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

apple-browsers 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 today.

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 · 33 lines

How it starts

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

This file configures AI coding assistants for the Apple monorepo. Development rules are maintained in .cursor/rules/ as the single source of truth.

Personal preferences (workflow, communication style, tool settings) belong in your tool's user-level config, not here:

  • Claude Code: ~/.claude/CLAUDE.md
  • Cursor: User-level settings

This repo-level file is for team-shared conventions only.

Mandatory Rules

Detailed rules live in .cursor/rules/. Read from the list below when the request is relevant. Do not read any other files in .cursor/rules unless requested explicitly.

File Covers
general.mdc Project overview, architecture summary, rule index, quick-start checklists
code-style.mdc Full Swift style guide: naming, formatting, closures, optionals, memory management
anti-patterns.mdc What NOT to do: singletons, async mistakes, SwiftUI pitfalls, testing mistakes
user-defaults-storage.mdc Storing settings or preferences via KeyValueStore
pixels.mdc Defining, naming, or firing pixel events
project-structure.mdc Adding files or directories to the iOS project; buildable folders and Xcode groups

Testing against the Privacy Configuration

Do not write unit tests that assert the current state of the Privacy Configuration, such as whether a particular feature or flag is present, absent, enabled, or disabled. The Privacy Configuration is controlled remotely, so tests that rely on it too strongly may be affected.

Instead, arrange each relevant configuration state explicitly and verify the app's behavior in that state. Where applicable, verify behavior when flags are added or removed, enabled or disabled, or changed while the app is running.

Opening a PR with snapshot changes

Before opening a monorepo PR, if the working tree has changes under the SnapshotReferences submodule, run ./scripts/open-snapshot-submodule-pr.sh first, then add the submodule PR link it prints to the monorepo PR description.

Read the full file on GitHub · 33 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. today Changed · +6 lines · +101 tokens per session 1f1cae9e9454
  2. 3d ago First seen · 27 lines · 348 tokens per session scan A 46989f204620

Subscribe to this mod's changes

apple-browsers AGENTS.md is an instructions file published in the GitHub repository duckduckgo/apple-browsers (251 stars, last pushed today), licensed Apache-2.0. It adds 449 tokens to every session, about $0.0022 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.

Related

Other instructions, from other repositories