build-and-run-macos-app

build-and-run-macos-app is a command for Claude Code from fanfan-de/anybox. It costs 0 tokens per session (435 once invoked), scanned A, original, MIT.

A command that creates or updates a project script for building and launching a macOS app. It supports projects managed by Xcode or Swift Package Manager and can connect the script to the Codex app's Run button.

In plain words
What is it for?
Use it to set up build-and-run workflows for Xcode workspaces, Xcode projects, Swift packages, command-line tools, and AppKit or SwiftUI apps.
Why use it?
It gives the project one repeatable way to stop an old process, build the current code, launch the fresh app, and optionally inspect or verify it.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Codex.

Good fit Use it to set up build-and-run workflows for Xcode workspaces, Xcode projects, Swift packages, command-line tools, and AppKit or SwiftUI apps.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fanfan-de/anybox/build-and-run-macos-app
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.

Clone the repo
git clone --depth 1 https://github.com/fanfan-de/anybox

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 build-and-run-macos-app

README.md
[![agentmods](https://agentmods.dev/badge/commands/fanfan-de/anybox/build-and-run-macos-app/github.svg)](https://agentmods.dev/commands/fanfan-de/anybox/build-and-run-macos-app)
Your own site
<a href="https://agentmods.dev/commands/fanfan-de/anybox/build-and-run-macos-app"><img src="https://agentmods.dev/badge/commands/fanfan-de/anybox/build-and-run-macos-app/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 build-and-run-macos-app

Your own site · 80×15
<a href="https://agentmods.dev/commands/fanfan-de/anybox/build-and-run-macos-app"><img src="https://agentmods.dev/badge/commands/fanfan-de/anybox/build-and-run-macos-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.00435
Opus 5 $0.00000 $0.00217
Sonnet 5 $0.00000 $0.00087
Haiku 4.5 $0.00000 $0.00044

Measured 12d ago against content hash ed7cfae2db75, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

build-and-run-macos-app 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 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.

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.

plugins/Anybox-Plugins/build-macos-apps/commands/build-and-run-macos-app.md · 31 lines

What it actually says

/build-and-run-macos-app

Create or update the project-local macOS build_and_run.sh script, wire the Codex app Run button, then use that script as the default build/run entrypoint.

Arguments

  • scheme: Xcode scheme name (optional)
  • workspace: path to .xcworkspace (optional)
  • project: path to .xcodeproj (optional)
  • product: SwiftPM executable product name (optional)
  • mode: run, debug, logs, telemetry, or verify (optional, default: run)
  • app_name: process/app name to stop before relaunching (optional)

Workflow

  1. Detect whether the repo uses an Xcode workspace, Xcode project, or SwiftPM package.
  2. If the workspace is not inside git yet, run git init at the project root so Codex app git-backed features unlock.
  3. Create or update script/build_and_run.sh so it always stops the current app, builds the macOS target, and launches the fresh result.
  4. For SwiftPM, keep raw executable launch only for true CLI tools; for AppKit/SwiftUI GUI apps, create a project-local .app bundle and launch it with /usr/bin/open -n.
  5. Support optional script flags for --debug, --logs, --telemetry, and --verify.
  6. Follow the canonical bootstrap contract in ../skills/build-run-debug/references/run-button-bootstrap.md for the exact script shape and .codex/environments/environment.toml format.
  7. Run the script in the requested mode and summarize any build, script, or launch failure.

Guardrails

  • Do not initialize a nested git repo inside an existing parent checkout.
  • Do not leave stale Run actions pointing at old script paths.
  • Keep the no-flag script path simple: kill, build, run.
  • Use --debug, --logs, --telemetry, or --verify only when the user asks for those modes.
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 First seen · 31 lines · 0 tokens per session scan A ed7cfae2db75

Subscribe to this mod's changes

build-and-run-macos-app is a command published in the GitHub repository fanfan-de/anybox (57 stars, last pushed 29d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 435 tokens. 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.