Read-only Mac/Linux triage CLI for debugging interviews and SadServers-style scenarios.
Project description
shervinsights
shervinsights is a read-only Mac/Linux system triage CLI.
It provides a compact summary of common machine-level issues and offers follow-up commands for deeper inspection. It is designed to be safe by default: it does not kill processes, delete files, restart services, or modify system state.
What it checks
- system load
- disk and inode usage
- high CPU and memory processes
- zombie and uninterruptible-sleep processes
- deleted-but-open files
- actively growing log-like files
- listening TCP ports
- Python and model-serving-like processes
- shell script syntax errors
- Linux-specific services, logs, timers, and GPU state when available
Install
pip install shervinsights
If your Python environment blocks direct installs, use a virtual environment:
python3 -m venv ~/.venvs/shervinsights
~/.venvs/shervinsights/bin/pip install shervinsights
~/.venvs/shervinsights/bin/shervinsights --hints
Usage
shervinsights
shervinsights --hints
shervinsights --sample 10 --hints
Show more detail for a specific area:
shervinsights --details disk
shervinsights --details proc
shervinsights --details logs
shervinsights --details ports
shervinsights --details scripts
shervinsights --details ml
shervinsights --details linux
Examples
Compact summary:
shervinsights --hints
Check log growth over a longer window:
shervinsights --details logs --sample 10 --hints
Inspect process pressure:
shervinsights --details proc --hints
Inspect ports:
shervinsights --details ports --hints
Safety
shervinsights is read-only. It prints observations and suggested next commands, but it does not apply fixes automatically.
Typical follow-up commands include:
ps -p PID -o pid,ppid,user,stat,pcpu,pmem,command
lsof -p PID
lsof FILE
tail -n 100 FILE
curl -v localhost:PORT
bash -n SCRIPT
bash -x SCRIPT
Platform notes
On macOS, shervinsights primarily uses:
pslsofdfdufindtailbashcurl
On Linux, it also uses available tools such as:
systemctljournalctlssnvidia-smi/proc
Output depends on the current user's permissions. Without elevated privileges, some process, file, service, or log details may be hidden by the operating system.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shervinsights-0.1.2.tar.gz.
File metadata
- Download URL: shervinsights-0.1.2.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
446e789c70593dcb856f25e5394abbcfa21042100414e47bd419ae8aefa8b8f6
|
|
| MD5 |
c67c01d66a9a924c38bdc6280b71f1c4
|
|
| BLAKE2b-256 |
95f8a08dd86e101cc0f6ee425eac4fdca0ce83a48105770843423c05eefd4bc1
|
File details
Details for the file shervinsights-0.1.2-py3-none-any.whl.
File metadata
- Download URL: shervinsights-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d07ba954c864193ca7e0f5010dbcacd7f6467421799f3ae9e2cad2baaf133676
|
|
| MD5 |
5e6ba5d48ed09750c01cd6011f9d5bd9
|
|
| BLAKE2b-256 |
a569639ac69601a19d696b8bbf35f3e706fc3024f41058c19572077014d7b893
|