How mohsanrazaq/nodus works
NODUS is an in-development Linux runtime monitor for process lifecycle and AI-agent descendant attribution. The main workflow takes two /proc snapshots, compares process identities and lifecycle states, calculates CPU usage for persistent processes, and appends events to a JSONL file. Separate analysis capabilities reconstruct process ancestry and classify agent descendants, including detached or uncertain processes. The graph reflects the sampled runtime code and README; agent attribution is exposed by the monitor but is not part of run_once.
Main entry points: process_monitor.py Monitor orchestration · main.py CLI entry · proc_reader.py `/proc` reader · agent_comparator.py Agent attribution
Components 10
Runtime entry
- CLI entry
main.py - Monitor orchestration
nodus/monitor/process_monitor.py
Process collection
- `/proc` reader
nodus/monitor/proc_reader.py
Process analysis
- Snapshot comparison
nodus/monitor/snapshot_comparator.py - Process tree
nodus/monitor/process_tree.py - Agent attribution
nodus/monitor/agent_comparator.py
Event output
- JSONL event file
Other components
- Operator
- Linux `/proc`
- Terminal output
Connections 10
- Operator → CLI entry: runs
README.md - CLI entry → Monitor orchestration: creates and runs
main.py - Monitor orchestration → `/proc` reader: collects snapshots
nodus/monitor/process_monitor.py - `/proc` reader → Linux `/proc`: reads process data
nodus/monitor/proc_reader.py - Monitor orchestration → Snapshot comparison: compares snapshots
nodus/monitor/process_monitor.py - Monitor orchestration → Process tree: delegates tree queries
nodus/monitor/process_monitor.py - Monitor orchestration → Agent attribution: compares agent descendants
nodus/monitor/process_monitor.py - Agent attribution → Process tree: finds descendants
nodus/monitor/agent_comparator.py - Monitor orchestration → JSONL event file: appends events
nodus/monitor/process_monitor.py - CLI entry → Terminal output: prints counts
main.py