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.
npx agentmods add instructions/v0id-user/setmac/claude-mdgit clone --depth 1 https://github.com/v0id-user/setmacWhat 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.
| Model | Per session | Once 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 |
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.
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.jsonmanifest — 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 forsetmac-cliscripts/build-cli.sh— PyInstaller outputssetmac-cliscripts/bundle.sh— copiessetmac-cliinto .app bundle
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.
- 3d ago First seen · 117 lines · 1,414 tokens per session scan A 9ff576295fd0
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.
Other instructions, from other repositories
cc-releases CLAUDE.md
Claude Code instructions for nancheung/cc-releases, covering claude.md, project overview, development commands, setup and local testing.
wispterm AGENTS.md
Instructions for xuzhougeng/wispterm, covering agents.md, architecture, ui presentation styles, cohesion and coupling and integration layer vs feature domains.
HomeClaw AGENTS.md
Instructions for omarshahine/HomeClaw, covering homeclaw, architecture, project structure, build system and xcode version.
coder CLAUDE.md
Claude Code instructions for coder/coder, a project described as: Secure environments for developers and their agents.
best-claude-hud AGENTS.md
Instructions for GaoSSR/best-claude-hud, covering project agent instructions and release work.
moonproxy-desktop AGENTS.md
Instructions for MoonProxyHQ/moonproxy-desktop, covering moonproxy, 功能, 技术栈, 目录结构 and 配置与数据存储.