Skip to content

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEXUS

NEXUS is an OS observability, diagnostics, and guardrail stack written in Rust. It observes real system facts, reasons about them, and can perform policy-checked, user-confirmed actions — all with an honest attitude toward its own limits. It is not an OS replacement; it is a platform that lives on top of your OS.

Core principle: no fake features. Every value you see comes from a real system source. Anything NEXUS cannot genuinely do is reported as PLATFORM-LIMITED / NOT IMPLEMENTED rather than fabricated.

Status

All roadmap phases through Phase 10 are implemented on macOS (Linux targets are wired through the same SystemPlatform abstraction):

Phase Focus Status
0 Foundation (workspace, OS abstraction, docs, test strategy) ✅
1 System Observer (CPU, memory, disk, uptime, processes, health) ✅
2 Process Intelligence (tree, inspect, resource attribution, anomalies) ✅
3 Storage Intelligence (large files, cache classify, reclaim) ✅
4 Network Intelligence (interfaces, live bandwidth) ✅
5 Security Engine (risk scoring, evidence alerts) + audit ✅
6 Diagnostics Engine (correlation / reasoning) ✅
7 Action Engine (risk, permission, confirmation, execute, verify, audit) ✅
8 AI (local-first, deterministic, honest not-LLM advisory) ✅
9 Sandbox (genuine OS-level sandboxing via seatbelt) ✅
10 Desktop Experience (Simple/Developer modes + terminal dashboard) ✅

Layout

  • apps/nexus-cli — the command-line interface
  • apps/nexus-desktop — a live terminal dashboard
  • crates/nexus-core — shared snapshot/health types
  • crates/nexus-platform — OS abstraction (SystemPlatform)
  • crates/nexus-resource — snapshot collection
  • crates/nexus-process — process intelligence + anomalies
  • crates/nexus-storage — storage analysis + classification
  • crates/nexus-network — interface counters + live bandwidth
  • crates/nexus-diagnostics — correlated diagnosis
  • crates/nexus-security — evidence-based risk assessment
  • crates/nexus-policy — risk classification + permission policy
  • crates/nexus-audit — JSONL audit journal
  • crates/nexus-actions — controlled, verified action execution
  • crates/nexus-ai — deterministic advisory provider layer
  • crates/nexus-sandbox — OS-level sandboxing (seatbelt)
  • crates/nexus-config — Simple/Developer mode + persisted settings
  • crates/nexus-api — programmatic facade composing every engine

Getting started

Prerequisites: Rust (stable toolchain) on macOS. Linux targets are wired through the same SystemPlatform abstraction but the sandbox engine is seatbelt-based and therefore macOS-only.

1. Build

cargo build --release

This compiles the whole workspace. The two applications land in target/release/:

  • nexus-cli — command-line interface
  • nexus-desktop — live terminal dashboard

2. Run the CLI

./target/release/nexus-cli health       # OS health score + issues
./target/release/nexus-cli status       # JSON snapshot (CPU/mem/disk/processes)
./target/release/nexus-cli processes    # top processes by CPU

3. Run the dashboard (the application)

./target/release/nexus-desktop

The dashboard opens a full-screen live-refresh terminal view. It redraws each tick with genuinely live data: CPU, memory, disk, process list, network bandwidth, and security/attention notes. Press Ctrl-C to exit.

Useful dashboard flags:

./target/release/nexus-desktop once          # render a single frame, then stop
./target/release/nexus-desktop --simple      # force Simple mode for this run
./target/release/nexus-desktop --developer   # force Developer mode for this run

Tip: run the dashboard from a real, full-screen terminal so the live redraw looks clean.

4. Sandbox proof (optional)

./target/release/nexus-cli sandbox demo      # proves a seatbelt write is blocked

Commands

nexus status        JSON snapshot (CPU/mem/disk/processes)
nexus health        health score + issues (also: health json)
nexus processes     top processes (list | inspect <pid> | tree | json | csv)
nexus storage       storage analysis (default: your home directory) --top N --json
nexus network       interface counters + live bandwidth (network json / live)
nexus diagnostics   correlated diagnosis of the current snapshot (diagnostics json)
nexus security      evidence-based process risk assessment (security json)
nexus advice        advisory recommendations with evidence (advice json)
nexus audit         the persisted action journal (audit json)
nexus act           plan / execute a policy-checked action
nexus sandbox       OS-level sandboxing status + live demo
nexus mode          show/change UI mode (simple | developer)
nexus config        show persisted configuration
nexus-desktop               live dashboard (honors Simple/Developer mode)
nexus-desktop once          render a single frame
nexus-desktop health        print health, then exit
nexus-desktop --simple      force Simple mode for a run
nexus-desktop --developer   force Developer mode for a run

Examples

cargo run -p nexus-cli -- health
cargo run -p nexus-cli -- security
cargo run -p nexus-cli -- processes csv   # export process list as CSV
cargo run -p nexus-cli -- sandbox demo    # proves a write is blocked
cargo run -p nexus-desktop                # run the live dashboard
cargo run -p nexus-desktop -- health      # print health, then exit

Testing

cargo test          # run the whole workspace test-suite
cargo test -p nexus-sandbox   # includes a genuine enforcement assertion

Several tests exercise live data (process counts, health scores, bandwidth). The sandbox test actually enforces a seatbelt profile and confirms a write is blocked — only on hosts that provide the mechanism.

Honesty manifest

  • Deterministic nexus-ai states plainly that it is not an LLM.
  • nexus-sandbox refuses to run (rather than fake success) when the host has no sandbox mechanism.
  • The audit journal records only actions NEXUS genuinely performed.
  • Network connection/port mapping is PLATFORM-LIMITED rather than guessed.

About

nexus:a simplified intelligent Operating System Enhancement Layer(built using rust)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages