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
Use ChatGPT for planning and Codex for local execution
They set up a handoff where ChatGPT designs the work and checks it, while Codex makes the changes and runs commands on the local machine.
Turn a sketch into a review-ready iPhone app
They used Codex and ChatGPT to make a work-in-progress tracker, test it, and submit it to the App Store.
Use spare AI quota to draft reviewable PRs
A founder pointed an agent at goals and task lists so it could turn leftover Claude and Codex quota into pull requests for review.
Make a menu bar quota checker for AI tools
A commenter used Codex to create a Mac status-bar app that tracks when Codex and Claude Code quotas refresh.
Use Claude Code to refactor a monorepo in phases
A developer used Claude Code to swap tooling, reorganize features, and refresh a site by checking each step in a tight validation loop.
Assemble a ranked trends view from multiple sites
They had Claude Code gather posts from four platforms, organize them into ideas, and sort them by likely demand and build effort.