Memory, routing, orchestration, cost — every piece in daily use, with the measurements attached.
← all explainers
· Yasaswy Nagavolu

Moving an Agentic Setup From Windows to a Mac, Part 1: Why It Had to Move

My Windows PC had promised its programs more memory than it owns in most minutes for two weeks, and when programs used it, the SSD caught the overflow. This is why I moved a whole agentic setup to a Mac, what such a move is made of, what went wrong, and what comes next. Part 1 of From Windows to Mac.

agentic-engineeringmigrationmacoswindowsmemory

My Windows PC ran short of memory in a way that one number hides. It has 31.7 GiB of RAM. For two weeks I measured it once a minute, and in most minutes the programs on it had asked Windows to reserve more memory than the PC has. When the real memory is short, Windows moves the overflow to a file on the SSD, and everything that was fast waits for the disk. I run many AI coding agents at once, plus builds, emulators and containers, so this was a normal day, not a spike. For one part of the problem, restarting the PC was the only fix, and I was doing it every second day. So I moved my whole agentic setup to a Mac. This is part 1 of a series called From Windows to Mac. I write about agentic engineering, and moving a setup like this from one operating system to another is a job with its own method. Nobody pays me to say any of this, and I am not selling you a computer. The Mac is where the setup landed. The move is the subject.

A Windows PC and a Mac laptop on one desk, linked by a bridge. A mouse, a clipboard and a folder cross the bridge.
An agentic setup is more than files. Moving one means carrying every part of it across, and proving each part on the new machine.

1. Why we had to move: the honest memory picture

The headline fact is simple. In 77.6% of all minutes (16,225 of 20,901, from 7 to 21 November 2026), the committed memory on the PC was above the memory the PC has. The median was 38.0 GiB, which is 120% of the 31.7 GiB installed.

“Committed” needs a plain explanation, because it is easy to overstate. It is the memory that programs have asked Windows to reserve. It is a promise, not memory in use. Programs ask for more than they touch, and a high number alone does not prove a problem. I use it as the demand side of the story. The busiest 5% of minutes asked for 48.5 GiB or more, and the peak minute asked for 60.8 GiB, which is 192% of the RAM.

Promised, typical minute
38.0 GiB
of 31.7 GiB (120%)
Over what the PC has
Above 31.7 GiB in 77.6% of all minutes. A promise, not memory in use.
Promised, peak minute
60.8 GiB
of 31.7 GiB (192%)
Over what the PC has
The needle stops at the end of the dial. Still a promise.
In use, typical minute
23.4 GiB
of 31.7 GiB (74%)
Under pressure
What RAM held after the disk took the overflow.
Memory that programs asked Windows to reserve, against the 31.7 GiB the PC has, over 20,901 minutes from 7 to 21 November 2026.

A promise only hurts if Windows has to keep it on the disk. So I checked that too. My sampler does not record the page file, so for this I only have snapshots that I took on demand during investigations. They lean toward bad moments, and there are only 25. Before the restart on 5 November, 9 of the 14 snapshots showed between 400 and 3,978 hard page reads per second, and between 5.6 and 10.8 GiB in the page file. A hard page read is a program waiting for a piece of memory that had been moved to the disk. After the restart, none of the 11 later snapshots reached 400, and the highest was 190.

A different number is easier to find: memory in use. The median was 23.4 GiB (74%), and the 95th percentile was 87%. That looks fine, and it is misleading. In use is what is left after Windows has pushed things to the disk, and after my own cleanup tools had started acting on 4 November. It hides the demand.

What ate the memory

Nothing on the list is a villain. Claude sessions used a median of 1.32 GiB each, with up to 7 open at once. Builds ran Java processes up to 4.67 GiB each. An Android emulator took about 4 GiB at its peak. Browsers ran 29 or 30 processes and held about 2 GiB together. The Linux virtual machine behind the containers held a median of 4.07 GiB and up to 13.13 GiB, because the containers were removed after each CI job but the virtual machine kept the page cache. And my own hooks start many small programs: about 18 commands around every shell call, about 40 process starts a second on the busy PC.

installed 31.7 GiB
  • Container virtual machine13.1 GiB41%
  • Windows kernel leak (paged pool)7.6 GiB24%
  • Build tools (about 20 Gradle processes)4.0 GiB13%
  • Claude sessions (2 open)3.7 GiB12%
  • Browsers (29 or 30 processes)2.0 GiB6%
  • Game launcher1.4 GiB4%
The biggest holders at one moment, 4 November, as memory they had asked for. Not all of it was in RAM: the virtual machine had 6.9 of its 13.1 GiB resident.

The last part is the one I could not tune away. Windows also has a leak in the kernel: when a program that starts child programs exits, the permission token it created can stay in memory forever. That token memory grew by 0.7 to 2.4 GiB a day, and the only fix is a restart. On 4 November it held up to 7.6 GiB. In the 15 days from 5 to 19 November I restarted the PC 7 times. In the 10 days before that I restarted it once.

26 Oct
Boot
Then 10 days without a restart.
4 Nov
Leak found at 7.6 GiB
9 of 14 snapshots show heavy hard page reads.
5 Nov
Restart
Later snapshots peak at 190 reads a second.
9 to 19 Nov
Six more restarts
Every second day. The leak grows 0.7 to 2.4 GiB a day.
Seven restarts in the 15 days from 5 to 19 November, against one in the 10 days before. Only a restart frees the leak.

2. What an agentic setup is made of, and what had to change

When people say they will move their dev setup, they mean a folder of projects. An agentic setup is more than that. It is seven kinds of thing, and each one assumes a Windows machine in a different way.

  • Agents and subagents, which are instruction files with a model and a tool list.
  • Skills, small packages of know-how that an agent loads when it needs them.
  • Hooks, programs that run before and after every tool call. I have about 18 commands per shell call.
  • Scheduled background tasks, such as the memory sampler, the cleanup jobs and the readers that fetch my mail.
  • Instructions, the long file that tells every agent how I work, which also names the shell and the tools.
  • Secrets and personal data, which must never be inside a public package.
  • Scripts that assume paths and processes, which is where most of the pain was.

Before I touched anything I audited the setup. It had 26 shipped files with a hardcoded dev folder or a user path. 16 PowerShell scripts and 3 VBScript scripts could only run on Windows. 326 Python packages had been installed by hand, and no list of them existed. About 7 GB of old chat transcripts could not move at all. In total I tracked 44 defects while porting 16 areas. 42 are done. The two open ones need a Mac build runner, and a decision about a per-machine profile.

I used the same six steps for every area. They are the part you can reuse, whatever your own pair of systems is.

The old setup
1Audit by area
The package
2Port behind one switch point
3Ship one package
The encrypted archive
4Carry secrets and memory
The new machine
5First-run check
6Run the checklist
The method in six steps, by where each one happens.
  1. Audit by area. List every area of the setup, and for each one write what it assumes about the old system.
  2. Port each area behind one switch point. The code that differs per operating system lives in one place, so the rest of the setup does not care which machine it is on.
  3. Ship it as one package. A public package carries agents, skills, hooks, settings, background tasks and a declared list of Python packages.
  4. Carry what cannot be packaged. Secrets, project memory and unfinished work travel in one encrypted archive, with a passphrase, and never in the package. Browser logins and runner tokens are deliberately not carried.
  5. Run a first-run check on the new machine. One command that installs the basics and reports what is missing.
  6. Keep a checklist. Mine has 84 acceptance checks in 11 groups. Anything that is not on the checklist is not done.

These are the 8 areas that taught me the most, out of 16.

AreaWhat changedWhy it mattered
Background tasksWindows Task Scheduler jobs became per-user launchd agents.Before the port, no background job ran on the Mac at all.
Memory readersLinux-only and Windows calls were replaced by ps, vm_stat and sysctl.The heavy-work gate said "scarce" forever on the Mac.
Dev folder paths26 files with a hardcoded folder now use one resolver, and a lint fails any new literal.A hardcoded path breaks on the first other machine.
Secrets and dataThree secret stores became one, and an encrypted archive carries them.A public package cannot hold private data.
Hooks and status barThe status bar was wired to PowerShell and showed blank on the Mac. Hooks now use an absolute path to node.A shell that never loaded the profile still works.
No-popup rulesThe guard now denies terminal apps, headed browsers and extra script launches.Three new cleanup launches were not hidden and failed the gate.
Python packagesA hashed lock builds one managed environment of 24 packages, and a lint rejects an undeclared import.Hooks imported packages that nothing declared.
First-run checksA bootstrap installs the basics. 84 acceptance checks prove the result.Docker's install needs a password, so that step ends as needs a terminal.
Eight of the 16 areas, each with what changed and why it was worth a line.

3. What went wrong, honestly

Three surprises taught me more than the plan did.

A clean-room that passed did not mean it worked. I built a clean-room test in a Linux container, and it passed 118 of 118 checks. Then I ran the setup on the real Mac for the first time, and it found 23 issues. Homebrew does not write the file that puts Node on the path. Docker Desktop needs a password typed in a real terminal. Hooks called a plain node command before that path existed. The lesson: prove each port on the machine it is for, and keep a runbook with exact commands.

Before
Clean-room on Linux
118 of 118
checks passed
  • A Linux container, not a Mac
  • Every check green
After
First real Mac run
23
issues found
  • Node missing from the path
  • Docker needs a real terminal
  • A core setup did not install first
Green on the clean-room did not mean green on the target machine.

Three reports of success were wrong. The migration plan said 189 bytes for a folder that held 2.3 GB, because file names collided and files were dropped without a message. An import reported success for a file that Git had stored in a form that could not be read back. And the Mac memory check said “scarce” forever, because it read a path that only Linux has. The lesson: read back what you wrote, fail on a collision, and treat a missing probe as an error, never as a zero.

My tests touched the real machine. A test run with a redirected home folder re-pointed the real memory sampler task, twice. A direct test run wrote a false low-memory alert into the real state. Two more tests read live processes. The lesson is that a rule in prose does not stop this. A guard in code does: tests never write production state, and background tasks only register for the real account.

4. How it runs on the Mac

The Mac runs the same containers as the PC did. They live in one Docker Desktop virtual machine, as they did under WSL. The recorded figure for that machine is 7.75 GiB in total, with about 5 to 6 GiB free, and I would raise it to 10 GiB only if needed. That figure is from my design notes, not a fresh measurement.

This next part is my own observation, not a measurement. The sentence is mine, from using the Mac every day: “On the Mac I see no page swapping, no heavy SSD use for memory, and more than 10 GB of RAM free all the time.” The Mac is a MacBook Pro with 48 GiB of memory, and it cost $2,999. That is the one line about the machine I will give you.

WhatValueHow I know
PC memory installed31.7 GiBMeasured
PC promised memory, typical minute38.0 GiB, 120% of installedMeasured, 20,901 minutes
PC hard page reads before the 5 November restart400 to 3,978 a second in 9 of 14 snapshotsMeasured, on-demand snapshots
Mac memory48 GiBThe machine I use
Mac Docker virtual machine7.75 GiB, about 5 to 6 GiB freeDesign record, not a fresh measurement
Mac page swapping and free RAMNo swapping seen, more than 10 GB freeMy observation, not measured
Same tests on both machinesNot run yetComing as a follow-up
What is measured and what is not. The Mac side is mostly my observation so far.

I have not measured the Mac side yet. A measured comparison, with the same tests on both machines, is coming as a follow-up. Until then, treat the Mac numbers as my observation. Two honest limits. The kernel leak is a Windows bug, and I have not measured its absence on the Mac. And Docker Desktop on a Mac still runs a virtual machine, so the page cache problem could return there.

5. A sneak peek at what comes next

Once the memory problem was gone, I started on the next ones. These are teasers, and each one has a status.

  • One mouse, one keyboard and one text clipboard across both machines. Built. I move the mouse off the PC screen and it appears on the Mac. Text copies across. Images do not cross yet.
  • The dev bridge. Built. A chat on one machine can hand a job to a chat on the other, and get the result back. Copies are checked, so a half-copied file never counts as done. I am still hardening it.
  • The Chief. Partly built. One place that will watch tasks, plan items, agents, subagents and pipelines as a graph. Usage tracking is built. The graph and the loop that hands out free work are planned. The graph database is planned too.
SNEAK PEEK
Shared mouse and keyboard
Built, with a text clipboard. Images do not cross yet.
The dev bridge
Built. A chat hands a job to a chat on the other machine.
The Chief
Usage tracking built. The graph and its database are planned.
Three teasers, each with its status in plain words.

6. What is next in the series

  • Part 2: moving a whole working setup to a new machine. The method from this part in full, with the audit, the switch points and the archive.
  • Part 3: two computers that feel like one. Mouse, keyboard, clipboard and files.
  • Part 4: the Chief. Watching every chat, agent and pipeline from one place.
  • A measured follow-up: the same memory and parallel-agent tests on both machines.

The order may change as I learn. If your own agentic setup has to cross from one operating system to another, I would be glad to compare notes.