setmac: Instructions file for Claude Code

CLAUDE.md

setmac CLAUDE.md is an instructions file for Claude Code from v0id-user/setmac. It costs 4,695 tokens per session, scanned D, original, MIT.

Repository instructions for setmac, a macOS app and command-line tool that reinstall development tools, applications, and configuration after a computer reset.

In plain words
What is it for?
Use them when working on setmac's SwiftUI interface, Python command-line backend, shared tool manifest, installation logic, or live status reporting.
Why use it?
They give an AI agent the project's structure, technology choices, commands, and conventions needed to make safe, consistent changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is v0id-user/setmac's own configuration. It tells Claude Code how to work on setmac 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 setmac configures →

Reuse

Borrowing it

Nothing to install: this file belongs to v0id-user/setmac. 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/v0id-user/setmac/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/v0id-user/setmac

Made for: Claude Code.

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 setmac CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/v0id-user/setmac/claude-md/github.svg)](https://agentmods.dev/instructions/v0id-user/setmac/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/v0id-user/setmac/claude-md"><img src="https://agentmods.dev/badge/instructions/v0id-user/setmac/claude-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 setmac CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/v0id-user/setmac/claude-md"><img src="https://agentmods.dev/badge/instructions/v0id-user/setmac/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,695 This file is loaded in full into every session.
When invoked 4,695 The same file — it is already loaded in full.
Security scan D 3 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.04695 $0.04695
Opus 5.5 $0.01878 $0.01878
Sonnet 5.5 $0.00939 $0.00939
Haiku 4.5 $0.00470 $0.00470

Measured 12d ago against content hash 1236b787e48d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

setmac CLAUDE.md scanned grade D 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 12d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **auth_required**: Sent at most once per run (it is cached after that): up front when a `requires_admin` tool still needs installing and `sudo -n true` fails, otherwise the first time an installer calls `sudo -A` (for

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.

- `profile review` prints every install/check command verbatim, flags download-and-run (`curl | sh`), and lists dotfile locations, `sensitive_ok`, admin tools, taps and notes. `profile trust` / `update` confirm on a TTY

Makes network callslowCapability

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

- `profile review` prints every install/check command verbatim, flags download-and-run (`curl | sh`), and lists dotfile locations, `sensitive_ok`, admin tools, taps and notes. `profile trust` / `update` confirm on a TTY
CLAUDE.md · 186 lines

How it starts

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

setmac

macOS developer environment installer — automates reinstalling all dev tools, apps, and configs after a fresh format.

Architecture

  • SwiftUI macOS app (SPM, macOS 26+) — native sidebar UI, streams live status/logs
  • Python CLI backend (uv + click) — does all actual installing via subprocess
  • Public catalog Resources/tools.json + profiles — a profile (Resources/profiles/<name>/profile.json or the user's own folder) picks catalog tools and adds its own; the CLI merges them and the app shows the CLI's merged list
  • SwiftUI spawns CLI via Process, reads JSON-line stdout, updates UI in real-time

Project Structure

Sources/               # SwiftUI app (SPM target: "Setmac")
├── App/               # SetmacApp.swift, ContentView.swift
├── Models/            # InstallState.swift, ToolManifest.swift
├── Navigation/        # SidebarItem, SidebarView, DetailView
├── Views/             # OverviewView, CategoryDetailView, ToolCardView, etc.
└── Services/          # CLIBridge.swift, ManifestLoader.swift (decode error text, devRepoRoot)

cli/                   # Python CLI (uv project: "setmac-cli")
├── src/setmac/
│   ├── cli.py         # click entry point
│   ├── output.py      # JSON-line protocol (thread-safe)
│   ├── registry.py    # Merged manifest, dependency graph, get_registry(ctx)
│   ├── profile.py     # Profile resolution, loading, merging with the catalog
│   ├── gitprofile.py  # Git profiles: clone, pin (lock), content hash
│   ├── trust.py       # Trust store and the review text
│   ├── scanner.py     # Secret and personal-data scanner for dotfiles
│   ├── export.py      # Old all-in-one manifest -> private profile folder
│   ├── validate.py    # Manifest and config-path rules (structured problems)
│   ├── commands/      # install, status, configs, brewfile, profile
│   └── installers/    # brew, script, custom dispatchers

Resources/
├── tools.json         # Public tool catalog (no dotfiles, no personal tools)
├── profiles/          # Starter profiles: minimal, web, backend, mobile
├── icon.png           # App icon source (1024x1024, drawn by scripts/draw-icon.swift)
└── Assets.xcassets    # Accent color

scripts/               # build-cli.sh, bundle.sh, draw-icon.swift, generate-icon.sh, dmg.sh, classify-tools.py

Read the full file on GitHub · 186 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. 12d ago Changed · +23 lines · +1,376 tokens per session scan B → D 1236b787e48d
  2. 13d ago Changed · +46 lines · +1,905 tokens per session scan A → B cb85c9740c60
  3. 2mo ago First seen · 117 lines · 1,414 tokens per session scan A 9ff576295fd0

Subscribe to this mod's changes

setmac CLAUDE.md is an instructions file published in the GitHub repository v0id-user/setmac (16 stars, last pushed 6d ago), licensed MIT. It adds 4,695 tokens to every session, about $0.0188 per session on Opus 5.5. A static security scan graded it D with 3 findings (asks for root, 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-30.

Related

setmac CLAUDE.md compared with instructions from other repositories

setmac CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setmac CLAUDE.mdv0id-user/setmacInstructions file166d agoMITD4,695Claude Code
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