setmac CLAUDE.md

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

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/v0id-user/setmac/claude-md
Clone the repo
git clone --depth 1 https://github.com/v0id-user/setmac
Per session 1,414 This file is loaded in full into every session.
When invoked 1,414 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.01414 $0.01414
Opus 5 $0.00707 $0.00707
Sonnet 5 $0.00283 $0.00283
Haiku 4.5 $0.00141 $0.00141

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

Security

Grade A, and why

setmac CLAUDE.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 3d 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.

CLAUDE.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 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
  • Shared Resources/tools.json manifest — single source of truth for both GUI and CLI
  • 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

cli/                   # Python CLI (uv project: "setmac-cli")
├── src/setmac/
│   ├── cli.py         # click entry point
│   ├── output.py      # JSON-line protocol (thread-safe)
│   ├── registry.py    # Loads tools.json, dependency graph
│   ├── commands/      # install, status, configs
│   └── installers/    # brew, script, custom dispatchers

Resources/
├── tools.json         # Tool manifest (~38 tools)
├── configs/           # Captured dotfiles
└── Assets.xcassets    # App icon

scripts/               # build-cli.sh, bundle.sh, generate-icon.sh, dmg.sh

Key Commands

Uses just (not make) as the command runner.

just dev               # Clean build + run with live os.log streaming
just build             # swift build (incremental)
just release           # swift build -c release
just bundle            # .app bundle with embedded CLI + configs
just status            # CLI: check all tool statuses
just capture-configs   # CLI: snapshot current dotfiles
just                   # List all available recipes

Critical Conventions

CLI binary naming

The bundled CLI binary is named setmac-cli (NOT setmac) to avoid case-insensitive APFS collision with the GUI binary Setmac. This applies to:

  • CLIBridge.swift — looks for setmac-cli
  • scripts/build-cli.sh — PyInstaller outputs setmac-cli
  • scripts/bundle.sh — copies setmac-cli into .app bundle

Read the full file on GitHub · 117 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. 3d 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 (14 stars, last pushed 5mo ago), licensed MIT. It adds 1,414 tokens to every session, about $0.0071 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-08-30.