build-optimizer

build-optimizer is an agent for Claude Code from CharlesWiltgen/Axiom. It costs 141 tokens per session (1,674 once invoked), scanned A, original, MIT.

An agent that examines Xcode projects for settings, scripts, compiler checks, and other causes of slow builds. Xcode is Apple's development tool for building apps for its platforms.

In plain words
What is it for?
Use it when builds are slow or need optimization, especially to review Swift compilation settings, active-architecture settings, debug information, compiler optimization, scripts, and parallel work.
Why use it?
It helps locate build bottlenecks so developers can spend less time waiting for code to compile.

Agent for Claude Code

Part of the axiom plugin — 16 commands, 42 agents shipped together

About the project

Axiom is a toolkit of instructions, agents, commands, and development tools that give coding assistants specialized guidance for Apple operating-system development. It covers Swift, SwiftUI, interface design, data, concurrency, performance, networking, accessibility, logging, crash analysis, simulator testing, and profiling for iOS, iPadOS, watchOS, and tvOS. The catalogue contains 42 agents, 16 commands, and one plugin from this toolkit.

CharlesWiltgen/Axiom · 1,147 stars · on GitHub

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 agents/charleswiltgen/axiom/build-optimizer
Clone the repo
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom

Made for: Claude Code.

Or install axiom, the plugin that ships this one along with the rest of its 16 commands, 42 agents.

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-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/charleswiltgen/axiom/build-optimizer.svg)](https://agentmods.dev/agents/charleswiltgen/axiom/build-optimizer)
Your own site
<a href="https://agentmods.dev/agents/charleswiltgen/axiom/build-optimizer"><img src="https://agentmods.dev/badge/agents/charleswiltgen/axiom/build-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 141 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,674 The whole file, excluding the scripts and references it only reads on demand.
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.00141 $0.01674
Opus 5 $0.00071 $0.00837
Sonnet 5 $0.00028 $0.00335
Haiku 4.5 $0.00014 $0.00167

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

Security

Grade A, and why

build-optimizer 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 5d 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-plugin/plugins/axiom/agents/build-optimizer.md · 225 lines

How it starts

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

Build Optimizer Agent

You are an expert at identifying and fixing Xcode build performance bottlenecks. Your mission is to scan the project and find quick wins that can reduce build times by 30-50%.

Your Mission

Scan the Xcode project and identify optimization opportunities in these categories:

  1. Build Settings (HIGH IMPACT)
  2. Build Phase Scripts (MEDIUM-HIGH IMPACT)
  3. Type Checking Performance (MEDIUM IMPACT)
  4. Compiler Flags (LOW-MEDIUM IMPACT)

What You Check

1. Build Settings (HIGH IMPACT)

Check Debug configuration:

Use Glob to locate project file:

  • Pattern: **/*.xcodeproj/project.pbxproj

Scan for these settings in Debug configuration:

  • SWIFT_COMPILATION_MODE should be singlefile (incremental)
  • ONLY_ACTIVE_ARCH should be YES (debug only)
  • DEBUG_INFORMATION_FORMAT should be dwarf (not dwarf-with-dsym)
  • SWIFT_OPTIMIZATION_LEVEL should be -Onone

Check Release configuration:

  • SWIFT_COMPILATION_MODE should be wholemodule
  • ONLY_ACTIVE_ARCH should be NO
  • SWIFT_OPTIMIZATION_LEVEL should be -O

Modern Build Settings (WWDC 2022+):

  • ENABLE_USER_SCRIPT_SANDBOXING should be YES (Xcode 14+, improves build security and caching)
  • FUSE_BUILD_SCRIPT_PHASES should be YES (parallel script execution)

Link-Time Optimization (Release Only):

  • LLVM_LTO should be YES or YES_THIN for Release builds (reduces binary size, improves performance)
  • Warning: Increases Release build time significantly, only use for production
  • Check with: grep "LLVM_LTO" project.pbxproj

2. Build Phase Scripts (MEDIUM-HIGH IMPACT)

# Find build phase scripts
grep -A 10 "shellScript" project.pbxproj

Red flags:

  • Scripts running in ALL configurations (should skip debug when possible)
  • Expensive operations without conditional checks:
    • dSYM uploads
    • Crashlytics uploads
    • Code signing scripts
    • Asset processing

Example fix:

# ❌ BAD - Runs in debug AND release
firebase-crashlytics-upload-symbols

# ✅ GOOD - Skip in debug builds
if [ "${CONFIGURATION}" = "Release" ]; then
  firebase-crashlytics-upload-symbols
fi

Read the full file on GitHub · 225 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. 5d ago First seen · 225 lines · 141 tokens per session scan A 80ea67024544

Subscribe to this mod's changes

build-optimizer is an agent published in the GitHub repository CharlesWiltgen/Axiom (1,147 stars, last pushed 7d ago), licensed MIT. It adds 141 tokens to every session and 1,674 once invoked, about $0.0007 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.

Related

Other agents, from other repositories

e2e-verifier

FlutterアプリのE2E動作検証エージェント。MCP(dart-mcp + Marionette)を使い、シミュレーター上でUI操作・検証を行う。mobile-automationスキルから呼び出される。.

K9i-0/ccpocket · 65 tokens

gem-mobile-tester

Mobile E2E testing: Detox, Maestro, iOS/Android simulators.

mubaidr/gem-team · 22 tokens

flutter-integration-analyzer

Use this agent for Flutter-backend integration analysis: trace protocols, data models, event flows, or cross-end consistency. Also use for LOG-DRIVEN ROOT CAUSE ANALYSIS — when the user provides a server log and asks why a specific misbehavior occurred (e.g. "why did it stop responding"), this agent parses the log…

JayCRL/MobileVC · 429 tokens

android-performance-specialist

Specialist in Android app performance & diagnostics — app startup (cold/warm/hot, TTID/TTFD, App Startup lib), Baseline Profiles & Macrobenchmark, rendering/jank (frame budgets, slow/frozen frames, JankStats), ANRs (ApplicationExitInfo), memory (LeakCanary, LMK, onTrimMemory), Perfetto/Studio Profiler, Play Vitals…

SteveGJones/ai-first-sdlc-practices · 128 tokens

swiftui-architect

Specialist in modern iOS app architecture with SwiftUI (iOS 26 / Swift 6.2) — the Observation framework (@Observable), MV vs MVVM vs TCA, NavigationStack & deep linking, SwiftData persistence, structured concurrency at the UI boundary, dependency injection & SwiftPM modularization, UIKit interop, and Swift Testing.…

SteveGJones/ai-first-sdlc-practices · 97 tokens

copilot

cd your-android-project git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .github/skills/compose-kotlin-agent-skills.

haidrrrry/compose-kotlin-agent-skills · 0 tokens