ktop
ktop is a fast Linux top/htop-style process monitor written in Rust. It has a full Scrin-powered TUI, Aisling color/effect passes, a spotlight grep overlay, mouse actions, anomaly detection, process tree mode, and non-TUI CLI fast paths for grep/kill workflows when the system or terminal is under stress.
Install
From source:
CLI Fast Paths
Use these when the terminal is degraded, the TUI is not wanted, or you need a quick process action from scripts:
--kill accepts either a PID, comma-separated PIDs, or a spotlight query. It prints matches and asks for confirmation unless --yes is provided.
Supported signals: TERM, KILL, STOP, CONT, INT, HUP.
TUI Controls
qorEsc: quit/orCtrl+F: open the spotlight grep overlayj/k, arrow keys,PageUp/PageDown,Home/End: navigate processes- Mouse hover: show quick actions for a process row
- Left click: select a process row
- Right click: open the signal palette for that process
- Middle click: confirm
SIGTERMfor that process T: toggle process tree mode with matching ancestors shown for filtered resultsA: toggle anomaly view for high-resource or suspicious process statese: toggle lightweight Aisling matrix/glitch/burn effectsd: toggle the selected-process detail pane on wide terminalsc,m,p,n,u,t,a: sort by CPU, memory, PID, name, user, threads, or ageTab: cycle sort moder: reverse sort directionSpace: pause or resume refreshesg: force refreshs: open the signal palette for TERM, KILL, STOP, CONT, INT, and HUPK: confirm and sendSIGTERMto the selected processx: clear the active filter
Spotlight Grep
The overlay filters live as you type. Plain words match PID, user, process name, or command line. Field tokens are supported:
user:rootname:sshcmd:pythonpid:123ppid:1uid:1000state:Rage>2h,age<10mcpu>20,cpu<5mem>1,mem<10!tokento exclude matches
The same query style is used by --grep and query-based --kill.
Views
The header shows sort mode, view mode, load averages, process count, and thread count.
Wide terminals show a process detail deck with CPU/memory bars, identity fields, anomaly score, process age, boot-relative start time, RSS/VIRT, thread count, tree depth, and wrapped command text.
The top meter area keeps compact CPU and memory trend strips plus process state counts so spikes and lifecycle issues are visible over recent refreshes.
Anomaly view highlights high-resource or suspicious process states. The anomaly score is based on CPU, memory, state, thread pressure, and young hot processes.
Performance And Resilience
- Scrin reuses frame buffers across draws.
- Scrin diffs frames and writes only changed terminal cell runs.
- Aisling effects are sparse and update only a few animated cells per frame.
/proc/[pid]/cmdlinereads are bounded.- CLI PID killing does not take a full process sample.
- CPU-based CLI anomaly checks take a short second sample for meaningful deltas.
Platform
ktop currently targets Linux and reads process data from /proc.