setup-mac

A guided setup command for preparing a Mac to work with a project, including developer tools, Homebrew, Node Version Manager, and Node.js.

In plain words
What is it for?
Installing or checking the command-line tools and development software needed to run the repository on macOS.
Why use it?
It checks whether each required tool is already installed and verifies installations as it goes. The instructions also explain when a system dialog or a real Terminal window is needed.

Command 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 commands/maccman/growth-agents/setup-mac
Clone the repo
git clone --depth 1 https://github.com/maccman/growth-agents

Made for: Cursor.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 876 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 3 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.00000 $0.00876
Opus 5 $0.00000 $0.00438
Sonnet 5 $0.00000 $0.00175
Haiku 4.5 $0.00000 $0.00088

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

Security

Grade E, and why

setup-mac scanned grade E with 3 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

12. **Environment variables** — Check if a `.env` file exists in the repo root. If not, copy `.env.example` to `.env`, then ask the user which AI providers they want to use, collect the API keys, and update the `.env` fi

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
.cursor/commands/setup-mac.md · 64 lines

How it starts

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

Mac Setup Action

When the user triggers this command, walk them through setting up their Mac for this repo. Run each step automatically. After each install command, verify it succeeded before moving on. Speak in plain, friendly language — assume the user has never used a terminal before.

Steps

  1. Xcode Command Line Tools — Run xcode-select -p to check. If missing, run xcode-select --install and tell the user a system dialog will appear — they should click "Install" and wait for it to finish before continuing. Pause and ask the user to confirm when the install is done.

  2. Homebrew — Run brew --version to check. If missing, install via:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    

    After installing, ensure brew is on the PATH (source the shellenv for Apple Silicon: eval "$(/opt/homebrew/bin/brew shellenv)").

  3. nvm (Node Version Manager) — Run nvm --version to check. If missing, install via:

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
    

    Then source the shell profile so nvm is available: source ~/.zshrc.

  4. Node.js — Run node --version to check. If missing, run nvm install --lts to install the latest LTS version.

  5. pnpm — Run pnpm --version to check. If missing, run npm install -g pnpm.

  6. Python 3 — Run python3 --version to check. If missing, run brew install python.

  7. uv (Python package manager) — Run uv --version to check. If missing, run brew install uv.

  8. tsx (TypeScript runner) — Already a devDependency, but verify global availability with pnpm dlx tsx --version or rely on the project-local install.

  9. Media / PDF tools — Optional (ask the user). Install these Homebrew packages if not already present:

    • imagemagick
    • ghostscript
    • ffmpeg Run: brew install imagemagick ghostscript ffmpeg
  10. csvkit — Run uv tool install csvkit (or pipx install csvkit) so csvkit and csvsql are available on the PATH.

Read the full file on GitHub · 64 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 · 64 lines · 0 tokens per session scan E 36b72b7c0c76

Subscribe to this mod's changes

setup-mac is a command published in the GitHub repository maccman/growth-agents (5 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 876 tokens. A static security scan graded it E with 3 findings (harvests environment variables, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.