A CLI-first intelligent system guardian that predicts update breakages, protects dependencies, and recovers Linux environments.
Predict. Protect. Recover.
Linux stability is often a game of Russian Roulette. When a user runs sudo apt upgrade, they are blind to the "blast radius" of the transaction. A routine update can silently mismatch an NVIDIA driver with a new kernel version or break a DKMS module because of a Secure Boot (MOK) state change. Currently, package managers focus on dependency resolution, not system stability. They check if a package exists, but they don't check if it will actually boot.
Prescient Linux is a proactive system guardian that transforms the package manager into an intelligent auditor. It hooks directly into the native lifecycle of apt (and soon pacman), intercepting the transaction at the "point of no return" before any changes are committed to the disk. Prescient performs a deterministic pre-flight audit, cross-referencing incoming kernel headers against local hardware security states, partition health, and critical system tripwires.
The Vanguard Engine: A high-performance, RAM-cached auditor that utilizes optimistic batching for O(1) package scanning. It evaluates massive 100+ package transactions in under 200ms, pulling the emergency brake if it detects /boot saturation, unsigned DKMS module conflicts, or driver mismatches.
Universal Transaction Interceptor: Unlike a standalone script, Prescient is a "Guardrail by Default." Using native DPkg::Pre-Install-Pkgs hooks, it wakes up automatically every time you update, ensuring safety checks are never skipped.
Atomic Local Rollbacks (undo): Prescient integrates directly with timeshift and BTRFS (snapper) to take targeted, risk-based system snapshots only when critical infrastructure is threatened. If an update breaks the graphical interface, users can drop into a TTY terminal and instantly restore their system to the exact pre-update state.
Transparent Auto-Healing (diagnose & heal): Prescient features a post-crash logic engine that parses journalctl to translate cryptic kernel panics and deadlocks into human-readable terminal commands. The Auto-Healer then maps these failures to known remediation playbooks, interactively proposing and executing the exact bash commands needed to recover crashed services safely.
The "North Star" Philosophy: Built for low latency and low false positives. Prescient stays out of the way until it’s needed, providing clear, actionable explanations instead of cryptic error codes.
Prescient is built with zero proprietary dependencies, relying entirely on native Linux binaries:
Language: Python 3.11+ (Utilizing shutil, subprocess, and /dev/shm caching).
UI/UX: Rich (For high-fidelity, accessible terminal output).
Architecture: Typer (For high-performance CLI command routing).
Configuration: Extensible TOML schemas for dynamic threat intelligence learning.
Hook System: Native interceptors for deep integration with apt and dpkg.