development-commands

Use these instructions when you need to.

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

Made for: Cursor.

Per session 1,560 This file is loaded in full into every session.
When invoked 1,560 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.01560 $0.01560
Opus 5 $0.00780 $0.00780
Sonnet 5 $0.00312 $0.00312
Haiku 4.5 $0.00156 $0.00156

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

Security

Grade A, and why

development-commands 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.

.cursor/rules/development-commands.mdc · 175 lines

How it starts

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

Development Commands & Build Instructions

📋 When to Use This Document

Use these instructions when you need to:

  • Build the iOS Browser app for testing or development
  • Build the macOS Browser app for testing or development
  • Verify that code changes compile successfully
  • Prepare the app for testing or debugging
  • Understand build failures and how to fix them

🚦 Golden Rules for Building

✅ ALWAYS DO THESE

  1. Use the full shell wrapper: /bin/sh -c 'set -e -o pipefail && xcodebuild ... | xcbeautify'
  2. Detect environment first: Never hardcode paths or simulator IDs
  3. Check exit codes: Ensure the build succeeded before proceeding
  4. Use absolute paths: Always use full paths for workspace files
  5. Include xcbeautify: Output is unreadable without it

❌ NEVER DO THESE

  1. Never use -jobs flag: It's been removed from all commands
  2. Never skip xcbeautify: Raw xcodebuild output is nearly impossible to parse
  3. Never use .xcodeproj files: Always use .xcworkspace
  4. Never hardcode simulator IDs: They change between systems
  5. Never ignore build failures: Always check and handle errors

🔍 Phase 1: Environment Detection

Pre-Flight Checks

Before building, validate your environment.

Example: See pre-flight-checks.sh

Required Variables to Detect

Variable Purpose Detection Command Expected Format
WORKSPACE_PATH Full path to .xcworkspace pwd + find . -name "DuckDuckGo.xcworkspace" /Users/.../DuckDuckGo.xcworkspace
SIMULATOR_ID iOS Simulator UUID xcrun simctl list devices | grep iPhone XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
ARCHITECTURE Mac CPU type uname -m arm64 or x86_64

Detection Commands

Example: See environment-detection.sh

🏗️ Phase 2: Build Execution

iOS Build Command Template

Read the full file on GitHub · 175 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 First seen · 175 lines · 1,560 tokens per session scan A 661406c6b67c

Subscribe to this mod's changes

development-commands is a cursor rule published in the GitHub repository duckduckgo/apple-browsers (252 stars, last pushed today), licensed Apache-2.0. It adds 1,560 tokens to every session, about $0.0078 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.