Diagnose why a Mac is running slowly
A user has Claude Code check load averages, memory pressure, disk space, stuck processes and Docker or Time Machine caches, then explain fixes with risk notes.
- Agent or tool
- Claude Code
- Topic
- DevOps & Infra
- Reported on
- Lenny's Newsletter
- Added
- 2026-10-15
Why it matters
Keeping servers and pipelines healthy is constant, detail-heavy work. Agents that can read logs and run routine fixes are a big help, as long as a person keeps an eye on what changes. It is one of 40 sightings filed under DevOps & Infra on Agent Sightings (number 15 by interest), and one of 164 involving Claude Code.
How you could try it
Here is a reusable prompt, written by us in our own words, that captures the task. Paste it into Claude Code or any similar agent and adjust the details to your situation.
My Mac feels slow. Check load averages, memory pressure, disk free space, top CPU processes, Docker disk use and Time Machine local snapshots. Explain what is wrong and suggest fixes with the exact commands and risk level for each.
The prompt breaks down into 3 steps you can check as the agent works:
- My Mac feels slow.
- Check load averages, memory pressure, disk free space, top CPU processes, Docker disk use and Time Machine local snapshots.
- Explain what is wrong and suggest fixes with the exact commands and risk level for each.
Tip: Try it first on a staging system or with read-only credentials, and require approval for anything that changes production.
Source
Read the original first-hand account on Lenny's Newsletter: https://www.lennysnewsletter.com/p/everyone-should-be-using-claude-code. Our summary is a paraphrase; details are in the source.