← Spare home

For AI agents

See what your agents are still running.

Claude Code in one folder, Codex in another, Ollama in the background, and a dev server nobody stopped. Spare groups agents and local servers by project folder in your menu bar, so you can tell which session is using your Mac and decide what to keep.

Free. No subscription. No account. Apple silicon · macOS 14+.

In short

Spare recognizes Claude Code, Codex, Aider, Ollama, and OpenCode, plus node, python, ruby, bun, deno, and java servers. It shows each one under the project folder it’s running from, with CPU, memory, and listening ports. Nothing is stopped unless you review it and ask.

Agents by project

Every session, under the folder it belongs to.

Agent tools start shells, language servers, test runners, and dev servers. In a process list they look like dozens of unrelated rows. Spare counts them together under the agent and project, like “Claude · api”, with a process count you can open.

Development work gets the same treatment. A server shows up as “website” with “Development · port 3000”, so you can find it by folder or by port.

Agents and projects
Using the mostMemory ↓
Claude · apiAI agent · 6 processes
740 MB6% CPU
websiteDevelopment · port 3000 · next dev
1.2 GB4% CPU
Codex · websiteAI agent · 4 processes
520 MB1% CPU
OllamaAI agent · 2 processes
4.8 GB0% CPU
docsDevelopment · port 5173 · vite
310 MB0% CPU
Illustrative list · Sample readings, not a performance claim

Working or waiting

Don’t close an agent mid-reply.

Each Claude Code session shows Working or Waiting for you, read from the status Claude Code keeps for itself. If you open a stop review while it’s working, Spare warns you first, and the warning updates live while you decide.

Other agents show Active or Quiet, estimated from CPU use in the last 10 seconds. That’s a hint, not a guarantee: an agent waiting on a slow model response can sit near 0% CPU for minutes while it still holds memory and the servers it started.

Quiet sessions stay in the list with their memory and ports. Spare can tell you whether a session is busy right now, not whether its work is complete, so check the agent before you stop anything.

Spare also shows macOS memory pressure (Normal, Warning, or Critical), with optional warnings when pressure stays high. That’s often the moment to look for a session you’ve moved on from.

Reviewed stop

Stop one session. Leave the rest.

Several sessions in one project? Review the one you’re finished with. Spare explains what a stop request affects before you approve it, including that stopping an agent session interrupts the agent and its running tools.

The review freezes the exact process list, so new processes aren’t swept in. Spare asks the work to quit gracefully. It never stops anything automatically, never force kills, and never offers to stop macOS system tasks.

Before closing

Stop this session?

Stopping this session interrupts its agent and running tools. Finish or save your work in the agent first.

Claude · apiOne session · 6 processes

Only the processes in this review would receive a stop request.

Illustrative review · No action is taken on this website

Leftover browsers

Find the browsers your agents left open.

Browser automation tools start their own Chrome for Testing sessions, and some keep them running after the agent is done. Each one can hold hundreds of megabytes.

Spare shows what opened every session, whether that’s an agent like Claude in a specific folder, a dev tool, or a background daemon that outlived its agent run. Sessions nothing is driving anymore are highlighted, and you can close them together after one review.

Inside Google Chrome for Testing
Separate sessionOpened by Claude · api
95 MB0% CPU
Separate sessionKept open in the background by agent-browser
94 MB0% CPU
Separate sessionKept open in the background by agent-browser
86 MB0% CPU
Illustrative list · Sample readings, not a performance claim

The spare command

Let your agent check your Mac, too.

Spare includes a command-line tool. Agents can run spare status, spare list --json, spare leftovers, and spare strays to see what’s using memory and what they left running. To close anything, they ask with spare quit, spare leftovers --close, or spare strays --close, and the request waits in Spare’s panel for your approval.

$ spare status
Room to work
CPU 24% in use (76% available) · Memory pressure Normal

$ spare list --agents
NAME             KIND    MEMORY  CPU  DETAILS
Claude · api     Agent   740 MB   6%  6 processes
Codex · website  Agent   520 MB   1%  4 processes

$ spare leftovers --close
Waiting for approval in Spare’s panel.
Approved, and it has closed.
Sample output

Every command takes --json. spare --help lists the commands, options, and exit codes, so an agent can learn the tool on its own.

The requests name who asked, found from the command’s parent processes, such as “Claude in api”. Nothing closes without you, and the command reports whether you approved or declined.

Homebrew installs the command. Otherwise choose Install Command Line Tool… from Spare’s gear menu.

Paste into Claude Code or Codex, or add it to CLAUDE.md or AGENTS.md
This Mac has Spare, a menu bar app with a command-line tool called `spare`. Run `spare --help` to learn it.
Use it when I ask what's slowing my Mac down or what I can close, or before starting something heavy:
- `spare status` and `spare list --json` show what's using CPU and memory, grouped into apps, projects, and AI agents.
- `spare show <name>` explains what something is and what closing it would affect.
- `spare idle` and `spare leftovers` find apps I haven't used and browser sessions that automation tools left open.
- `spare strays` finds headless browsers, MCP servers, tunnels, and dev servers that agents left running and nothing owns anymore.
Never kill processes yourself. To close something, run `spare quit <name>`, `spare leftovers --close`, or `spare strays --close`. I approve or decline it in Spare's panel, and the command tells you which.

While you were away

Come back to a summary, not a mystery.

Leave an agent working over lunch and return to a summary of observed resource use while you were idle, with the leading apps, projects, and agents that are still running.

For a longer view, the Recap window covers Today, This week, or Last 7 days, with a CPU chart, time spent under elevated memory pressure, and top workloads. Up to 30 days of hourly summaries stay on your Mac, and you can export a period as CSV.

See all of Spare’s features →

Let your agent do it

Install Spare from Claude Code or Codex.

Paste the prompt below into your coding agent. It checks your Mac, installs Spare with Homebrew or the signed DMG, and opens it.

Or install from Terminal or an AI agent

Homebrew
brew install --cask coreyhaines31/tap/spare
Paste into Claude Code, Codex, or another coding agent
Install Spare, the free open-source macOS menu bar app from https://github.com/coreyhaines31/spare.
1. Check this Mac is Apple silicon (`uname -m` prints arm64) on macOS 14 or later (`sw_vers -productVersion`). If not, stop and tell me Spare isn't supported.
2. If /Applications/Spare.app already exists, Spare is installed and updates itself; skip to step 5.
3. If Homebrew is installed, run: brew install --cask coreyhaines31/tap/spare
4. Otherwise, download the -arm64.dmg asset from the latest release at https://github.com/coreyhaines31/spare/releases/latest, mount it, copy Spare.app into /Applications, and unmount it.
5. Open Spare with: open /Applications/Spare.app
6. If `command -v spare` finds nothing, link Spare's command-line tool: ln -sf /Applications/Spare.app/Contents/MacOS/spare-cli /opt/homebrew/bin/spare (use /usr/local/bin/spare with sudo if /opt/homebrew/bin doesn't exist).
7. Run `spare status` to confirm it works, then tell me to look for the knob icon in my menu bar. Spare has no Dock icon.

Before you install

Questions from developers.

Which agents does Spare recognize?

Claude Code, Codex, Aider, Ollama, and OpenCode. It also recognizes node, python, ruby, bun, deno, and java development servers. Attribution is based on visible process ownership, so work Spare can’t identify still appears as a generic task.

Does Spare show GPU use for Ollama or other local models?

Only for your whole Mac. You can show the overall GPU percentage in the menu bar, but Spare doesn’t break GPU use down by app or model. Per-app readings are CPU and memory only, and Spare doesn’t monitor network, temperature, fans, battery, or per-app power.

Does Spare see inside Docker containers?

No. Spare does not inspect Docker containers, so services running inside them aren’t broken out by project.

Can Spare tell if an agent is mid-task?

Yes for Claude Code, which reports whether each session is working or waiting for you. For Codex and other agents, Spare estimates it from CPU use in the last 10 seconds. A stop review, and any stop request from the spare command, warns you when the agent looks mid-task.

Will Spare stop an agent on its own?

Never. Stopping always starts with a review you approve. A stop request can still interrupt an agent mid-task, so finish or save your work in the agent first.

Does Spare find processes agents leave running?

Yes. Spare lists headless browsers, MCP servers, public tunnels, file servers, and dev servers that agents started and nothing owns anymore, such as an agent-browser daemon whose agent exited or a dev server running for days. Anything a live agent session still owns is left alone. Stopping one stops everything it started, after you approve it.

Can my agent close apps with Spare?

It can ask. spare quit, spare leftovers --close, and spare strays --close show the request in Spare’s panel and wait for you to approve or decline it. The agent never closes anything by itself through Spare.

Where does my data go?

Nowhere. Spare has no account, and its readings and history stay on your Mac. You can pause recording or clear history at any time.

Is Spare free?

Yes. Spare is free and open source under the MIT license. Download the signed, Apple-notarized release for Apple-silicon Macs running macOS 14 or later.

Compare Spare with other tools.

Get Spare

Free to use. Yours to explore.

Download Spare for Apple silicon, or explore the MIT-licensed source on GitHub. Free to use, with no subscription or account.

macOS 14+ · Apple silicon · Signed and notarized