Loadout

A macOS menu bar utility that controls which skills, plugins, and MCP servers Claude Code loads at startup.

Case study · macOS appJuly 20266 min read

Every plugin, skill, and MCP server enabled in Claude Code injects its metadata into the system prompt at the start of every session, whether a task uses it or not. As I covered in my note on keeping the AI bill down, every token loaded at startup competes for model attention on every turn. Loadout is a native macOS menu bar utility that controls which extensions load into memory before a session starts.

The Loadout site at loadoutmac.com, featuring an interactive HTML/CSS replica of the macOS popover.
loadoutmac.com

Consolidating four scattered configuration files

Claude Code provides built-in slash commands for managing extensions, so my first step was tracing where those commands read and write on disk:

Loadout unifies these user-level settings into a single macOS menu bar popover so changes apply across every project at once. It also scans project-level .claude/settings.local.json files across local workspaces to surface overrides: if a repository overrides a global skill state locally, Loadout displays a folder badge on that row listing the overriding project paths without overwriting the local file.

Skills and MCP tabs in Loadout: configure global defaults once, while blocked cloud integrations stay visible for one-click re-enabling.
Skills and MCP controls

Handling hosted claude.ai connectors (Gmail, Google Calendar, Google Drive, Slack, Miro, and Figma) required special state management in the MCP tab. Unlike local stdio servers, cloud connectors are not defined in local JSON files. Furthermore, once a cloud connector’s URL is added to deniedMcpServers, claude mcp list stops returning it in CLI output. A UI built solely on claude mcp list would cause a disabled cloud connector to disappear permanently. Loadout maintains an internal registry of the six hosted connector URLs and cross-references deniedMcpServers, keeping blocked cloud integrations visible in the list with a one-click toggle.

Four-state skill overrides (skillOverrides)

Although skills appear binary on disk (present in ~/.claude/skills/ or deleted), Claude Code’s ~/.claude/settings.json supports a four-state skillOverrides map keyed by the skill’s directory name:

Across a setup of 28 standalone skills, leaving all 28 set to On consumes roughly 2,800 tokens before the first message is sent. Switching those 28 skills to Name reduces the startup footprint to ~140 tokens (a 20× reduction) while keeping every skill accessible to the model.

Token footprint comparison across On, Name, Slash, and Off skill states.
Startup token cost by skill state

Auditing the Claude Code binary

In the first draft of the Loadout website, I assumed that an On skill loaded its entire SKILL.md body at session startup—roughly 4,500 tokens per skill on my machine.

Before publishing the site, I ran a verification pass against the installed Claude Code binary to confirm how it actually parsed configuration files at runtime. Inspecting the binary strings uncovered three implementation details that changed both the app and the documentation:

  1. Startup loads name + description, not the full SKILL.md body. The binary truncates skill descriptions at 1,536 characters during startup prompt assembly and defers reading the full markdown body until invocation. I discarded my initial “40× savings” estimate, re-measured the exact startup payloads, and updated both the app’s token calculator and the website to report the verified figures (2,800 tokens on On vs. 140 tokens on Name).
  2. skillOverrides is ignored for plugin-bundled skills. Early builds of Loadout allowed users to toggle individual skills inside installed plugins by writing plugin:skill keys to skillOverrides. Binary inspection showed that Claude Code only applies skillOverrides to standalone skills in ~/.claude/skills/; plugin skills are governed exclusively by their parent plugin’s enabledPlugins flag. I updated the Skills tab to render plugin-bundled skills as read-only rows beneath their parent plugin header and added a one-click cleanup banner to strip dead plugin:skill keys from existing settings files.
  3. Native deniedMcpServers vs. custom stashing. My initial prototype disabled MCP servers by moving their JSON definitions into a custom _disabledMcpServers key inside ~/.claude.json. Discovering the native deniedMcpServers array in ~/.claude/settings.json allowed me to remove the custom stash, add an automatic startup migration to move existing users onto the native array, and leave server definitions untouched.

Local port management and process-group termination

When running multiple coding agent sessions across git worktrees, forgotten Next.js, Vite, and Python dev servers frequently hold local TCP ports open in the background.

Ports and Plugins tabs: inspect active local dev servers with live TCP health dots, or toggle entire plugins in one click.
Ports and Plugins

The Ports tab (adapted from the socket-inspection approach in port-whisperer) scans listening TCP sockets via lsof -iTCP -sTCP:LISTEN -P -n, resolves each process’s working directory via lsof -a -d cwd, classifies common developer runtimes (node, next-server, vite, python, go, cargo, ruby), and runs a live TCP probe against 127.0.0.1:<port> to render a green or red status indicator.

Building and testing the Ports tab surfaced two edge cases:

Architecture and constraints

The application consists of two Swift source files and one shell build script (source on GitHub). It runs with zero background daemons, zero telemetry, no user accounts, and no modifications to the Claude Code installation. Every toggle parses the target JSON file in memory, writes the updated dictionary to a sibling temporary file, and performs an atomic file swap so an unexpected crash cannot corrupt ~/.claude/settings.json.

Because Claude Code does not expose a local IPC socket for external tools to trigger a live configuration reload, changes made in Loadout take effect automatically on the next session startup. For terminal sessions that are already running, Loadout copies /reload-plugins to the macOS clipboard and displays a status banner so you can paste the command into your active terminal.

On loadoutmac.com, I rebuilt the macOS popover in interactive HTML and CSS—measured directly from the SwiftUI view dimensions—so visitors can test the four tabs, toggle skill states, and run the token calculator in the browser before downloading the .dmg.


20×
Startup token reduction using Name-only mode
2
Swift source files in the entire app
0
Background daemons, accounts, or binary patches

The app’s subtitle comes from the vertical kanji on the site header, 装備 (sōbi): the equipment you choose to carry into the field.

All work