xExplain

System Intelligence Library & CLI

The "System Brain" — Swift Package with counterfactual reasoning. Powers xInsight.

Quick Install

Homebrew

brew tap xdev-asia-labs/tap
brew install xexplain

Build from Source

git clone https://github.com/xdev-asia-labs/xExplain.git
cd xExplain && swift build -c release

CLI Commands

CommandDescription
xexplainQuick system analysis
xexplain --monitor, -mFull system monitor (btop-like)
xexplain --cpuCPU detailed monitor
xexplain --gpuGPU detailed monitor
xexplain --watch, -wContinuous monitoring
xexplain --json, -jJSON output format

Key Features

🔮 Counterfactual Analysis

"What if I quit this app?" → "CPU will drop by 31%"

📊 Confidence Scoring

Know how reliable each insight is (0.0 - 1.0)

🌡 Thermal Forecasting

Predict when throttling will occur