The Token-Lean SRE Desktop Copilot & Sentinel for Arch Linux & Derivatives
Ultra-lightweight 24/7 Rust Sentinel (~3.2 MB RAM) β’ Dual-Skin Cockpit (Classic & Star Trek LCARS) β’ Functional Stardate Engine β’ Zero token waste β’ Native D-Bus.
LCARS UI
SysPilot bridges the gap between passive Linux command-line diagnostics and everyday desktop operations. Instead of waiting for the system to break or running heavy scripts, SysPilot employs a decoupled two-tier architecture:
- Ultra-Lightweight 24/7 Rust Sentinel (
syspilot-tray): Runs continuously in the background consuming only ~3.2 MB RAM and 0.0% CPU. Communicates directly with the system and user session bus via native D-Bus (zbus 5.19, zerobusctlfork/exec), tracks pending kernel reboots, pacman database locks, disk capacity, and queries pending updates with automatic GameMode freeze. - On-Demand Graphical Dashboard (
syspilot --gui): Native Slint 1.19 desktop dashboard with kernel-level single-instance enforcement (libc::flock), dynamic Hardware Platform & GPU telemetry, 1-click guarded system upgrades, orphan cleanup, mirror ranking, and an interactive AI Copilot console.
Unlike generic AI assistants that hallucinate or blindly execute destructive shell commands, SysPilot pairs an execution runner with the specialized copilot-admin SRE skill (built upon battle-tested token-lean Linux systems engineering).
Most AI agents on Linux waste tens of thousands of tokens by indiscriminately dumping raw system logs (dmesg, journalctl), asking random questions, and trying out obsolete Ubuntu fixes.
SysPilot flips this model on its head:
βββββββββββββββββββββββββββββββββββββββββββββββββ
β STEP 0: Local Triage Engine β
β (0 tokens / 0 cost / 100% Determinism) β
β Discovers updates, failed units, disk, pacnewβ
βββββββββββββββββββββββββ¬ββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββ
β STEP 1: Embedded SRE Playbooks β
β (0 tokens / Instant Battle-Tested Knowledge)β
β FAF runner, Proton GE, PipeWire, .pacnew β
βββββββββββββββββββββββββ¬ββββββββββββββββββββββββ
β
Only when complex reasoning is required
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββ
β STEP 2: SysPilot AI Copilot β
β (Surgical context: ~400 - 900 tokens) β
β Model receives pre-filtered root causes β
β Cost: $0.0001 | Latency: ~1.5s β
βββββββββββββββββββββββββββββββββββββββββββββββββ
By having the local Rust sentinel and triage engine perform 100% of the heavy lifting for free, the AI Copilot receives only the exact surgical slice of telemetry needed to resolve the fault.
-
Ultralight 24/7 Rust Sentinel (
syspilot-tray):- Native StatusNotifierItem (SNI) implementation (
ksni 0.3) and kernel-filteredinotifywatcher (notify 9.0,EventKindMask::CORE) for KDE Plasma Wayland and X11 desktops (~3.2 MB RSS). - Native D-Bus client (
zbus 5.19) for zero-fork GameMode queries. - Immediate detection of un-rebooted kernel upgrades by monitoring
/usr/lib/modules/<version>. - Non-blocking disk space queries using
libc::statvfsdirectly without invoking external shell binaries. - Intelligent pacman lock monitor: distinguishes active package manager operations from orphaned
/var/lib/pacman/db.lckfiles.
- Native StatusNotifierItem (SNI) implementation (
-
Native Rust CLI Fast-Path (
crates/syspilot-cli): Zero-fork Rustsyspilotentrypoint handles-s/--status,-j/--json,--tray,--gui,-v, and-hdirectly viasyspilot-core::models(O_NOFOLLOW | O_NONBLOCK+fstat, SIGHUP-isolated--guispawn), delegating heavy/interactive operations (--audit,--upgrade,--copilot,--self-update) tobin/syspilotfallback (lib/syspilot/bin/syspilot). -
Zero-Subprocess
systemd1D-Bus & ALPM Local DB Probes (services.rs,orphans.rs,updater.rs): Queries failed system/user units natively overzbus(org.freedesktop.systemd1), classifies orphan packages directly from/var/lib/pacman/local/*/descwithoutpacmanforks, and checks standalone tool update caches viabtime-gated local JSON (spawn_count() == 0). -
Cross-Boot Telemetry Freshness & Previous-Boot GPU/PCIe Forensics (
previous_boot.rs): Gates cached pre-bootsummary.jsonagainst/proc/statbtime, verifies previous boot shutdown status and GPU/PCIe hardware faults (NVRM: Xiddecoding, PCIe AER fatal/nonfatal errors,nvidia-drmmodeset failures) via bounded unprivilegedjournalctlprobes (boot_id-cached), and flags stale caches ((PRE-BOOT)) while keeping unclean-shutdown and GPU fault alerts visible. -
Universal Post-Update Reboot, Kernel/DKMS & PCIe Link Safety Guard (
reboot_safety.rs): Zero-subprocess inspection of/usr/lib/modules/<version>(modules.dep,modules.builtin,.ko/.ko.zstzstd header verification), DMI SMBIOS BIOS metadata, and sysfs PCIe link width/speed negotiation for active PCI0x03GPUs (nvidia,amdgpu,i915,xe), escalating toACTION_REQUIRED(CRITICAL REBOOT RISK) on broken modules or surfacing degraded PCIe links across Dashboard, Tray, and Copilot telemetry. -
Zero-Subprocess Gaming & Vulkan Readiness Probe (
gaming.rs): Instant verification of driver-matched 64-bit and 32-bit Vulkan ICDs (/usr/liband/usr/lib32for Steam/Proton), CPUscaling_governor, hybrid GPUruntime_status, and battery power state with zero external subprocesses. -
Arch Trust Triad (Zero-Root Invariant): Hard
libc::getuid() == 0refusal in bothsyspilot-trayandsyspilot-gui; all mutating maintenance operations run transparently in the user's interactive terminal. -
Asynchronous Package Update Intelligence:
- Evaluates pending official repository updates (
checkupdatesisolated viaCHECKUPDATES_DBunder$XDG_RUNTIME_DIR/syspilot/checkupdatesand inter-processflocksynchronization) and AUR packages (yay/paru). - Distinguishes Core System Updates (kernel, systemd, glibc, dracut, grub, mesa, nvidia) from regular packages.
- Auto-heals stale lockfiles, enforces graceful process-group termination (
SIGTERM->SIGKILL), and applies cold-boot failure hysteresis (UpdateCheckState). - Suspends all background update and disk checks during active gaming sessions (GameMode Freeze).
-
On-Demand Package Pre-Caching (
[β‘ PRE-CACHE PACKAGES]): Interactively pre-downloads multi-gigabyte package archives into/var/cache/pacman/pkgprior to initiating the full upgrade, minimizing system lock times. -
Native Repository Mirrorlist Health & Pre-Flight Guard (
mirrors.rs): Natively parses/etc/pacman.confIncludedirectives, evaluates Arch and distro mirrorlistmtimeage and server redundancy in pure Rust (0forks), and probes primary mirror reachability with network control-plane offline protection (with backward-compatiblesys-healthchecks.mirrorsfallback). Telemetry surfaces across the Dashboard (LCARS&Classic), Tray Sentinel tooltip/menu, and SRE Telemetry export. When the primary Arch repository mirror is unreachable (primary DEAD), clicking Guarded System Upgrade displays a pre-flight warning modal offering 1-click mirror ranking before proceeding.
- Evaluates pending official repository updates (
-
Security & Vulnerability Intelligence (
arch-audit):- Instant, non-blocking CVE tracking parsing official Arch Linux Security Tracker data (
security.archlinux.org). - Distinguishes benign utility updates from High/Critical remote code execution or privilege escalation zero-days.
- Automatically escalates Rust Tray Sentinel status and tooltip when actionable security advisories are detected, paired with an interactive
[π INSPECT CVE]terminal audit.
- Instant, non-blocking CVE tracking parsing official Arch Linux Security Tracker data (
-
Hardware Firmware & Peripherals Telemetry (
fwupd/ LVFS):- Full visibility into firmware status for NVMe/SATA SSDs, wireless dongles (Logitech Unifying), TPMs, and motherboard UEFI.
- Interactive, guarded
[β‘ UPGRADE FIRMWARE]action running LVFS updates in an isolated terminal. - Universal NVRAM Resilience: Smart hardware-quirk classification that bypasses oversized UEFI certificates (KEK/dbx) on platforms with legacy BIOS NVRAM buffer limits when Secure Boot is disabled, eliminating false-positive warning loops.
-
Endpoint Host Firewall Inspection (Shield):
- High-speed (<5ms) multi-backend inspector verifying
firewalld,ufw, ornftablesstate and active zones. - Follows the SRE Universalism Standard: machines relying on upstream perimeter routers (e.g. pfSense) report neutral
INFO βΉwithout false alerts.
- High-speed (<5ms) multi-backend inspector verifying
-
Native Slint Desktop Cockpit (
syspilot-gui):- Ultra-fast native GUI built with Slint 1.19 and dual renderers (FemtoVG OpenGL + software CPU rasterizer fallback).
- Single instance locking via non-blocking
libc::flock. - Dynamic Hardware Platform & GPU telemetry row detecting CPU architecture, GPU model, active driver stack, and PCIe link width/speed negotiation (
DOWNGRADEDalert on link degradation) without hardcoded assumptions. - Responsive status synchronization & dual-skin
ATTENTION/RED ALERTwarning banners driven by the semanticsyspilot-core::viewlayer (RowSeverity,AttentionView).
-
π Star Trek Okuda 1987 LCARS Dual-Skin Cockpit:
-
Authentic LCARS 1987 Architecture: Faithful recreation of Michael Okuda's iconic Star Trek interface design, featuring curved 2D structural elbows, segmented pill pods, authentic color accents (Pumpkin
#ffaa66, Gold#ffcc00, Lavender#cc99cc, Ice Blue#99ccff, Alert Red#ef4444), and typography powered by the embedded Antonio condensed font. -
Dynamic Astronomical Stardate Engine: Built-in real-time mathematical stardate calculator based on the Gregorian UTC calendar (
$STARDATE = YEAR + \frac{\text{day of year}}{\text{days in year}} + \frac{\text{seconds since midnight}}{86400.0}$ ), generating authentic stardates (e.g.STARDATE 2026.311.64) updated dynamically every 10 seconds. -
1-Click Holodeck Runtime Switching (
HOLODECK β): Switch instantly between the modern Classic Cyberpunk theme and the Star Trek LCARS Cockpit. The active skin choice is persistently saved to~/.config/syspilot/skinand restored on cold starts. -
Content-Aware Dynamic Window Geometry ($H(N)$): Eliminated static window dimensions and empty black space. The window height scales proportionally based on active tab and pod count (
$590\text{px}$ Dashboard,$630\text{px}$ Maintain for 8 items,$780\text{px}$ AI Copilot), preserving snug 36px OLED breathing margins. -
SRE Universalism Hardening: Zero hardcoded distribution or hardware assumptions. Distribution branding is parsed dynamically from
/etc/os-release, GPU telemetry is queried with zero-fork sysfs/drm detection across NVIDIA, AMD, Intel, and virtualized DRI, root storage reports universal root capacity, and firewall inspection uses neutral multi-backend telemetry. -
OLED Glassmorphism & High-Contrast Readability: Hardware-accelerated glowing pods, breathing status indicator, subtle depth effects, and strict left-aligned typography (
$x = 138\text{px}$ ) compliant with WCAG AAA contrast ratios.
-
Authentic LCARS 1987 Architecture: Faithful recreation of Michael Okuda's iconic Star Trek interface design, featuring curved 2D structural elbows, segmented pill pods, authentic color accents (Pumpkin
-
Universal & Configurable AI Copilot:
- Seamlessly configured via
~/.config/syspilot/config.env(SYSPILOT_COPILOT_CMD,SYSPILOT_GOOSE_RECIPE,COPILOT_LABEL). - Supports private agent profiles or native terminal runners without modifying public codebase.
- 30-second layman graphical onboarding wizard for Google Gemini Flash, OpenAI, Claude, or local Ollama.
- Seamlessly configured via
-
Dedicated System Maintenance Suite:
-
-
Orphan Package Triage & Prune: Interactive 3-tier orphan purger preserving optional dependencies (
optdepends).
-
Orphan Package Triage & Prune: Interactive 3-tier orphan purger preserving optional dependencies (
-
- Refresh & Rank Regional Mirrors: Benchmarks and ranks fastest regional mirrors with atomic fallback safety.
-
- Safe Maintenance: Trims pacman cache (retains last 2), vacuums journal logs, and cleans temporary artifacts.
-
- Deep Clean: Purges user Trash, browser caches, thumbnail caches, and legacy diagnostic runs.
-
-
Security Advisories (CVE Triage): Deep CVE inspection powered by
arch-audit.
-
Security Advisories (CVE Triage): Deep CVE inspection powered by
-
-
Hardware Firmware Upgrade (LVFS): Upgrades firmware for NVMe, UEFI, and attached peripherals via
fwupdmgr.
-
Hardware Firmware Upgrade (LVFS): Upgrades firmware for NVMe, UEFI, and attached peripherals via
-
- Pre-Cache Packages: Interactively pre-downloads large packages ahead of maintenance without locking pacman.
-
- SysPilot Suite Self-Update & GitHub Sync: Synchronizes with upstream GitHub releases with 1-click atomic rebuild and restart.
-
-
Deterministic 1-Click FAF (Forged Alliance Forever) Setup (
syspilot --faf-repair):- Verifies 32-bit Vulkan ICDs, syncs
Game.prefsacross Steam libraries, and generates dynamic launcher wrappers.
- Verifies 32-bit Vulkan ICDs, syncs
The SysPilot native Slint GUI features a dual-skin architecture (switchable on the fly via the HOLODECK β button, with persistent preference in ~/.config/syspilot/skin):
- π Star Trek LCARS 1987 Skin: Faithful Okuda 2D layout with dynamic Stardate HUD, curved structural elbows, glowing pods, and high-contrast WCAG AAA typography.
- β Classic Cyberpunk Skin: Modern dark minimalist cockpit with high-density card containers and direct action buttons.
The cockpit is organized into 3 streamlined, high-density tabs with proportional dynamic height (
- β Dashboard (01 DASHBOARD): Real-time operational cockpit categorized into 3 synchronized telemetry pods/cards:
- System Health & Hygiene: Kernel & modules sync, root storage (
/), host firewall shield, failed systemd units, and dynamic Hardware Platform & GPU telemetry. - System Updates: Core system packages (kernel/drivers), official repository updates, AUR packages, security advisories (CVE tracking), and repository mirrorlist health (with pre-flight warning modal before guarded upgrades when primary mirror is dead).
- Third-Party & Peripherals: Hardware firmware (LVFS /
fwupd) and orphan package detection, paired with quick action triggers (RUN GUARDED UPGRADE,DIAGNOSTIC AUDIT,PRUNE ORPHANS).
- System Health & Hygiene: Kernel & modules sync, root storage (
- π System Maintenance (02 MAINTAIN): 8 atomic, battle-tested maintenance pods/cards:
-
- Orphan Package Triage & Prune: Interactive 3-tier orphan purger preserving optional dependencies (
optdepends).
- Orphan Package Triage & Prune: Interactive 3-tier orphan purger preserving optional dependencies (
-
- Refresh & Rank Regional Mirrors: Benchmarks and ranks fastest regional mirrors with atomic backup.
-
- Safe Maintenance & Cache Trimming: Trims pacman cache (retains last 2), vacuums journal logs (>14 days), and cleans old run logs.
-
- Deep Clean: Purges user Trash, browser caches, and thumbnail caches.
-
- Security Advisories (CVE Triage): Deep CVE inspection powered by
arch-audit.
- Security Advisories (CVE Triage): Deep CVE inspection powered by
-
- Hardware Firmware Upgrade (LVFS): Upgrades firmware for NVMe, UEFI, and attached peripherals via
fwupdmgr.
- Hardware Firmware Upgrade (LVFS): Upgrades firmware for NVMe, UEFI, and attached peripherals via
-
- Pre-Cache Packages: Interactively pre-downloads large packages ahead of maintenance without locking pacman.
-
- SysPilot Suite Self-Update & GitHub Sync: Synchronizes with upstream GitHub releases with 1-click atomic rebuild and restart.
-
- π‘ Tactical Playbooks & AI Telemetry (03 PLAYBOOKS): Deterministic SRE diagnostic hub featuring:
- 1-click battle-tested playbooks: GPU & Crash Triage, FAF Client Repair, Steam / Proton Readiness, Reconcile .pacnew, PipeWire Audio Fix, and Custom User Playbooks auto-discovered from
~/.config/syspilot/playbooks/*.sh. - Passive SRE Telemetry & Sanitized Bundle Export (
Copy SRE Telemetry for AI/Export Sanitized Bundle): Generates zero-subprocess Markdown diagnostics enriched with ALPM kernel/GPU driver versions, PCIe link state, BIOS version, and previous-boot GPU/Xid anomalies, scrubs home paths, usernames, IPs, and MAC addresses in pure Rust, and exports atomic0600(<= 64 KiB) crash bundles to~/.local/state/syspilot/exports/. - Pluggable multi-agent CLI launcher (
--copilot-shell): Seamlessly routes interactive sessions to Google Antigravity CLI (agy), Goose, or custom local runners.
- 1-click battle-tested playbooks: GPU & Crash Triage, FAF Client Repair, Steam / Proton Readiness, Reconcile .pacnew, PipeWire Audio Fix, and Custom User Playbooks auto-discovered from
On Arch Linux / EndeavourOS:
sudo pacman -S --needed base-devel rust cargo fontconfig freetype2git clone https://github.com/Gbur79/SysPilot.git
cd SysPilot
# Build release binaries with locked dependencies
cargo build --release --locked
# Copy binaries and shell fallback to your local directories
cp target/release/syspilot target/release/syspilot-tray target/release/syspilot-gui ~/.local/bin/
install -Dm755 bin/syspilot ~/.local/lib/syspilot/bin/syspilot
# Alternatively, use the automated installer to compile and restart the service:
./dev-tools/build-and-install.sh# Launch the Graphical Dashboard & Tray Icon
syspilot
# Launch minimized to system tray (used for autostart)
syspilot --tray
# Print instant terminal flight readiness scorecard (0 tokens)
syspilot -s
# Output machine-readable JSON triage
syspilot -j# Run Guarded System Upgrade (pre-flight checks -> upgrade -> post-audit)
syspilot -u
# Audit and update standalone applications (AUR, Flatpak, UV, Goose)
syspilot --software
# Interactive 3-tier orphan package resolver
syspilot -o
# Benchmark and rank fastest regional mirrors
syspilot --mirrors
# Run safe maintenance (pacman cache trim & journal vacuum)
syspilot -m
# Run deep clean (trash, thumbnails, browser caches)
syspilot -d
# Check gaming & Steam/Proton readiness
syspilot -g
# Setup or repair Forged Alliance Forever (FAF) & fix desktop shortcuts
syspilot --faf-repair# Ask Copilot to diagnose a specific issue
syspilot --copilot "Why is my sound crackling on headphones?"
# Launch an interactive SRE Copilot terminal session
syspilot --copilot-shell
# Inspect active SRE skill directives, guardrails, and loaded playbooks
syspilot --skillsyspilot --enable-autostart(Manages ~/.config/autostart/syspilot.desktop pointing to syspilot --tray).
sysPilot/
βββ Cargo.toml # Cargo Workspace root (syspilot-core, syspilot-cli, syspilot-tray, syspilot-gui)
βββ bin/
β βββ syspilot # Shell fallback router for heavy/interactive & root-prompt workflows
β βββ syspilot-faf-repair # Deterministic FAF runner & shortcut repair tool
βββ crates/
β βββ syspilot-core/ # Headless triage engine, zbus systemd1, ALPM orphan parser, btime/previous-boot gates, semantic view, mirrors, CVE, LVFS, firewall, terminal & playbooks
β βββ syspilot-cli/ # Native Rust CLI fast-path (`syspilot -s/-j/--tray/--gui/-v/-h`)
β βββ syspilot-tray/ # High-performance 24/7 Rust StatusNotifierItem Tray Sentinel (~3.2 MB RAM)
β βββ syspilot-gui/ # Native Slint Desktop Cockpit (Dashboard, Maintenance Suite & SRE Playbooks)
βββ copilot/
β βββ recipe.yaml # Public AI SRE recipe definition
β βββ skills/
β β βββ sys-pilot-admin/ # Token-Lean Copilot system instructions (SKILL.md)
β βββ playbooks/ # Battle-tested recipes (FAF, Proton, Audio, Pacnew)
β βββ quirks/ # Generic hardware & architecture quirks
βββ dev-tools/
β βββ bench-footprint.sh # SRE /proc/<pid>/smaps_rollup footprint & resource benchmark
β βββ build-and-install.sh # One-step test, compile & install helper
β βββ check-deps.sh # Non-mutating Cargo dependency dry-run & pinning auditor
β βββ dump-fixture.sh # SRE host telemetry & mock rig fixture dumper
β βββ lint-universalism.sh # Zero-subprocess & zero-root universalism linter
β βββ smoke-gui.sh # Dual-Skin (LCARS & Classic) headless/FemtoVG GUI smoke harness
β βββ test-cli.sh # SRE hermetic CLI & packaging test suite
β βββ verify-rust.sh # SRE hermetic verification script (fmt, clippy, tests, --cov, --mutants-diff)
βββ autostart/
β βββ syspilot.desktop # XDG autostart entry for background tray sentinel
βββ packaging/
β βββ PKGBUILD # Pure Rust Arch Linux / AUR package specification (v2.1.10)
β βββ syspilot.desktop # Application menu desktop launcher (Exec=syspilot --gui)
βββ systemd/
βββ syspilot-tray.service # User systemd service for 24/7 Rust Sentinel
Setting up Forged Alliance Forever on Arch Linux is notoriously difficult: the AUR package only ships the Java frontend, requiring manual orchestration of Steam Linux Runtime containers (pressure-vessel), custom Proton GE wine prefixes, 32-bit Vulkan drivers, and cross-copying configuration files from Windows directories.
With SysPilot Copilot, a user simply clicks βSetup / Repair FAF Clientβ or types βSetup FAFβ. The Copilot:
- Verifies multilib and 32-bit NVIDIA/AMD driver stacks locally via
syspilottelemetry. - Deploys the isolated
faf-linuxrunner inside~/faf-linux. - Automatically syncs
Game.prefsfrom the Steam Proton compatdata directory into the FAF prefix. - Generates dynamic desktop and application menu shortcuts pointing to the runner wrapper (
~/faf-linux/run), preventing version-freeze and preserving automatic background updates (syspilot --faf-repair). - Completes in seconds, saving hours of manual debugging and ensuring game night with family is never cancelled.
SysPilot is open-source software licensed under the Apache License 2.0. SysPilot is an independent community project and is not officially affiliated with EndeavourOS, Arch Linux, or Block Inc. (Goose).