Stray

Your AI coding agent finished. Its processes didn't.

Stray finds what AI coding agents leave behind on your Mac: scripts stuck at full CPU, dev servers nobody closed, memory that keeps growing and gigabytes of junk on disk. It tells you which session left each one, and lets you clean it up.

v0.3.0macOS 14 or laterApple siliconMIT license

01 · How this started

06:51:12at 95% CPU

That's how long a Python script an agent wrote kept one core busy. Activity Monitor just called it “Python”. No name, no owner.

Next to it sat two dev servers nobody had closed in hours, holding over 1 GB of RAM and two ports. They used no CPU, so no "what's slowing down my Mac" list would ever show them.

Why it happens: agents run commands without a real terminal. When the session ends, nothing tells those processes to quit, so they keep running until you reboot.

Activity Monitor can't help, because it has no idea what an agent session is. Stray does.

02 · What it catches

Every leftover gets a verdict.

Stray doesn't flag things for using a lot of CPU. It looks for processes that stopped making sense, and says what to do about each one.

Stuck
python3 parse_logs.py6 h 51 min · 95% CPU
Busy, but going nowhere: one thread, no disk activity, no wakeups. A real build looks different, so it's left alone.
Turn off
Orphan
next dev :31114 h 37 min · 654 MB
The session that started it is gone, nothing is connected to it, and it holds a port.
Probably stale
Orphan
expo start :808159 min · 443 MB
Also orphaned, but something still has 5 connections open to it. Stray tells the difference and leaves it alone.
In use
Leak
vite :5173+212 MB in 10 min
Memory that only goes up across a ten-minute window, so a single spike doesn't count.
Probably stale
Disk
DerivedData · landing960 MB
Build caches and folders agents left behind, checked against whether the project still exists.
Safe to delete

Each finding also says who left it, for example left behind by ttys002 · session ended, so you know which terminal tab to look at.

03 · In your menu bar

Click the paw. Get the answer.

04 · The rules it follows

An app that can kill things has to be boringly careful.

  1. 01
    Never acts on its own

    Every kill and every delete is one click from you, and Cancel is the default button.

  2. 02
    Trash first

    Deleted files go to the Trash by default, and only from folders Stray knows are safe.

  3. 03
    Nothing leaves your Mac

    No telemetry, no account. The only network call is an optional update check, off by default.

  4. 04
    No root, no password prompts

    It only ever acts on processes that belong to you.

  5. 05
    Secrets stay hidden

    API keys in command lines are masked before anything is shown or copied.

  6. 06
    Pays its own bill

    About 0.7% of one core, and it shows its own usage at the bottom of the window.

05 · Get it

Stray.dmg→Applications→

Download Stray

Signed with a Developer ID and notarized by Apple, so it opens like any other app. macOS 14 or later, Apple silicon. On an Intel Mac, build it from source.