Investigate why a service is getting killed
Run a read-only SSH check to find the cause of a process death and rank fixes by risk.
- What they did
- A developer had Claude Code shutting down almost immediately on an Ubuntu server, so they asked Codex CLI from their Mac to inspect the machine remotely. They supplied the SSH address and the symptom, and Codex requested permission before connecting, then reviewed memory, active processes, limits, and kernel messages through journalctl.
- How it went
- Codex traced the failure to the OOM killer, which had terminated claude on a 1.9 GB droplet that had no swap configured. It also noted MySQL using about 786 MB and returned a set of repair options ordered by risk, without making any changes.
- Tips
- When a box is unstable, start with a read-only investigation so you can confirm the cause before touching settings. In this case, the first suggestion was a 2 GB swap file, and the author later said that would have been cheaper than resizing the droplet.
Try it yourself with Claude Code
I have a server at [user@host] and [service name] keeps getting killed. Connect over SSH and diagnose the cause without changing the machine. Check kernel messages, memory use, swap status, process activity, and service logs; if you need to run anything that could alter the system, stop and ask for my approval first with the exact command. Finish with your diagnosis and a list of possible fixes, sorted from lowest risk to highest risk.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Test a local app in Chrome and fix browser errors
A developer used Claude Code and Claude in Chrome to open a local app, exercise the UI, catch a routing bug, and repair it without manual browser work.
Control Claude Code by voice while you work hands-free
A developer built a local spoken-command setup around Claude Code and used it to fix a WhatsApp integration without touching the keyboard.
Use Claude Code to revive an old assembly build
A developer used Claude Code to get a 1991 assembly game’s old tools compiling again on modern setup files.
Use a long-running agent to chase a stubborn bug
A developer let Codex work overnight against a repeatable test, using debug prints and hypotheses to track down an unexplained bug.
Turn tracked tickets into pull requests
Use an agent to pick up issues or tickets, make the code change in an isolated pod, and open a PR for review.
Ask Claude Code to prototype a kernel change
Linus Torvalds had Claude Code help produce a Linux kernel patch, plus tests, review, and a first cover-letter draft.