Quad Harness
0.2.0Download

Docs Features

Running on a small Mac

How Quad Harness watches memory, swap, processor, disk, heat and battery, quietly uses less when your Mac is strained, and shows you exactly what it changed.

6 min read

An agent harness is heaviest exactly when the machine is weakest: a model server or an emulator in one corner, a build in another, a browser, voice and a long session at once. On an 8 GB Mac that ends in beach balls and swap. Quad Harness watches how the Mac is doing, says so early and plainly, and uses less before you have to notice. Everything it changes is listed, with the reason, and can be switched off.

This is the Resource monitor feature.

What it watches

Signal Where it comes from
Memory pressure (normal, warning, critical) The same number macOS itself uses
Memory used, swap macOS memory statistics
Processor Load across all cores
Disk space Free space where the app keeps its data
Heat and battery The power and thermal state, every 30 seconds
What is ours The app and everything it started: the engine, background jobs, dev servers, emulators, shells

Everything is read with ordinary system calls, with no admin rights and no extra permissions. Nothing is sent anywhere, and nothing is stored except the choices you make on the Performance page.

It reads every 2 seconds while the window is open and something is running, every 10 while it is open and idle, every 30 to 60 while it is hidden and busy, and not at all while it is hidden and idle (except once a minute while the Mac is strained, so that the adjustments are let go when the trouble passes).

The level

The Mac is calm, strained or critical:

Strained when Critical when
macOS reports memory pressure macOS reports critical memory pressure
under 8% of memory is free and the Mac is swapping under 3% is free and swap is over 1 GB
swap is over 2 GB (or 15% of memory) swap is over 6 GB (or 40% of memory)
the processor has averaged over 90% for three readings
the Mac is hot and slowing itself down it is at its thermal limit
under 2 GB of disk is left under 512 MB is left
on battery, under 20%

To keep it from flapping, the level goes up after two readings in a row and comes down after 30 calm seconds.

When the Mac is strained, a Mac pill appears in the top bar with a coloured dot. Choose it to open the This Mac window.

What the app changes

Change When strained When critical
Fewer things at once: subagents, workflow tasks, background agents and sub-sessions 2 at a time instead of 4 1 at a time
Smaller pictures: device pictures and screenshots 800 px on the long side 640 px
Slower polling: jobs, git, servers, devices and pull request checks Half as often A quarter as often
Calmer screen: animations off, the window glass goes solid Yes Yes
Hold back background calls: automatic session titles wait until the Mac has room Yes Yes
Ask before heavy starts: an emulator, simulator, dev server or background job Asks when it needs more than half of what is free Always asks

When it asks before a heavy start, it says what is free and what the start needs, and offers to start anyway, to free memory first, or to cancel.

Each change is listed in Settings → Performance with In effect, Ready or Switched off, and a switch to turn it off.

Modes

In Settings → Performance, choose one:

Mode What it does
Automatic (default) Do less only when the Mac is short of memory, busy, hot or low on disk, and go back to normal when it passes.
Always light Always keep to the light settings: smaller pictures, two things at a time, slower polling, no animations. For a small Mac.
Off Only show how the Mac is doing. Nothing is changed, and the agent is not told.

The light mode offer

On a first run on a Mac with 8 GB of memory or less, four cores or fewer, an Intel processor, or with Low Power Mode on, a quiet chip in the top bar and a card in Settings → Performance offer light mode once: Use light mode or Not now. Nothing changes until you accept.

Settings → Performance

The page shows:

  • A headline: Your Mac has room, Your Mac is under strain or Your Mac is critically short of resources.
  • Live gauges for memory, swap, processor, disk, heat and battery.
  • The mode, and each change with its switch.
  • What is using it: the app and everything it started, grouped, with memory and processor for each, and a total. Stop asks one of them to quit, as Activity Monitor does. The app itself is never offered. A process the app did not start is shown but never stopped from here.
  • Clear out…: when disk is short, clears what the app made itself and can make again: pictures from tools and saved output older than a week, scratch files older than a day. Never your sessions, artifacts or anything in a project. It says how much it will free before you confirm.
  • Open “This Mac”: the live page (below).

The This Mac window and page

The This Mac window (key M) shows the same readings in a compact form: memory over the last few minutes, how much Quad is holding back and why, and what is using the Mac. Open as a live page opens it as an artifact that updates as the numbers change.

That page is an ordinary artifact that asked for the Mac’s live readings. Ask the agent for your own dashboard and it can read the same data.

What the agent knows

  • The read-only system_resources tool gives the agent the numbers, the level, what has been adjusted, the heaviest of the app’s own processes, and a line of advice. It can then choose to build with fewer jobs, or skip an emulator, on its own.
  • While the Mac is strained or critical (or in light mode), one short paragraph is added to the agent’s instructions. It contains no numbers, so it changes only when the level changes and does not disturb the provider’s prompt cache.
  • Tools that start something heavy refuse with a message that says what to ask you, and go ahead when you confirm.

Other ways to lighten the load

  • Set Glass to Solid in the Appearance popover. Blur is the most expensive thing on screen.
  • Close windows you are not using. A closed window is not drawn at all.
  • Switch off features you do not use in Settings → Features. Their background work stops.
  • Use a hosted model instead of a large local one when memory is tight.