A security-hardened, modern diagnostic tool built with Tauri v2 and React for Windows systems. Developed by Fara Technologies LLC for WindowsForum.com. This comprehensive utility features advanced security architecture, encrypted data storage, and a unique Hybrid AI analysis engine that leverages both OpenAI and local Phi Silica models on Copilot+ PCs.
- 38+ Diagnostic Tasks across 8 categories (System, Hardware, Storage, Network, etc.)
- Real-time System Monitoring with live CPU, memory, disk, and network visualization (Non-blocking)
- Encrypted Data Storage using AES-256-GCM with machine-specific keys
- Automated Issue Detection identifies critical problems (low disk space, firewall disabled, etc.)
- One-Click Fixes for common system issues
- Scan History & Comparison with intelligent change detection
- Multiple Export Formats (JSON, Text, HTML, Forum-formatted)
- Unified AI Service: Seamlessly switches between Cloud (OpenAI) and Edge (Phi Silica) models.
- Local AI (Phi Silica): Runs entirely on-device using the NPU on Copilot+ PCs (Windows 11 24H2+).
- Cloud AI (OpenAI): Fallback integration for standard PCs with function calling support.
- Context-Aware Analysis: Intelligent interpretation of diagnostic results and health scores.
- Command Injection Prevention with strict command whitelisting (12 allowed commands)
- PowerShell Script Filtering blocks dangerous operations, allows only diagnostic cmdlets
- Filesystem Access Restrictions limited to specific safe directories
- Encrypted Local Storage for sensitive scan data and API keys
- Secure OAuth2 Implementation with PKCE for WindowsForum.com integration
- Input Validation & Sanitization on all user inputs and system commands
| Category | Tasks | Description |
|---|---|---|
| System | 7 | OS info, BIOS, boot config, environment variables, updates |
| Hardware | 6 | CPU, RAM, motherboard, TPM, device enumeration |
| Storage | 5 | Disks, partitions, volumes, fragmentation, SMART health |
| Network | 4 | Adapters, IP config, routing, connectivity, DNS |
| Drivers | 3 | System drivers, versions, digital signatures |
| Software | 6 | Programs, services, Windows features, startup apps |
| Logs | 4 | Event logs, Windows Update history, reliability |
| Debug | 3 | BSOD analysis, crash dumps, system files |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Frontend (React + TypeScript) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β’ App.tsx - Main application layout & routing β
β β’ SystemMonitoring.tsx - Real-time stats dashboard β
β β’ IssuesTab.tsx - Issue detection & remediation UI β
β β’ AIInterpretationPanel.tsx - AI analysis display β
β β’ HealthModel.tsx - System health scoring visualizationβ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Tauri v2 IPC Bridge β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Backend (Pure Rust) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β’ lib.rs - Command exposure & app state management β
β β’ diagnostics.rs - Core diagnostic task execution β
β β’ ai_service.rs - Unified AI provider abstraction β
β β’ phi_silica.rs - Local AI (Windows App SDK/WinRT) β
β β’ issue_detector.rs - Automated problem identificationβ
β β’ security.rs - Command validation & input filtering β
β β’ encrypted_storage.rs - AES-256-GCM data encryption β
β β’ native_monitor.rs - Real-time performance counters β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Whitelist-Only Execution: Only 12 pre-approved system commands
- Argument Validation: Strict parameter checking for each command
- PowerShell Protection: Blocks dangerous cmdlets (Invoke-Expression, Start-Process, etc.)
- AES-256-GCM Encryption: All scan data encrypted at rest
- Machine-Specific Keys: Derived from Windows GUID + user context
- DPAPI Integration: Secure storage for API keys and tokens
- Windows 10/11 (x64)
- Rust:
winget install Rustlang.Rust.GNU - Node.js:
winget install OpenJS.NodeJS - (Optional) Copilot+ PC: Required for local Phi Silica AI features (Windows 11 24H2+)
# Clone repository
git clone https://github.com/faratech/wfdiag.git
cd wfdiag
# Install dependencies
npm install
# Run in development mode
npm run tauri dev
# Build for production
npm run tauri buildstart_diagnostics(task_ids)- Begin diagnostic sessionrun_diagnostics_parallel(task_ids)- Batch execution (5 concurrent)detect_issues()- Analyze results for specific problemsfix_issue(issue_id)- Attempt to automatically resolve an issue
ai_get_status()- Check availability of OpenAI and Phi Silicaai_analyze_diagnostic(...)- Interpret specific task resultsanalyze_with_phi_silica(prompt)- Direct interaction with local modelensure_phi_silica()- Initialize/Download local model
save_current_scan(results)- Store encrypted scan resultscompare_scans(current_id, previous_id)- Intelligent comparisonexport_results(format)- Export as JSON/Text/HTML
The tool employs a Hybrid AI Strategy:
- Phi Silica (Local): Prioritized on supported hardware (Copilot+ PCs). It runs locally on the NPU, ensuring privacy and zero latency. It uses the
Microsoft.Windows.AI.TextAPI via Windows App SDK. - OpenAI (Cloud): Fallback for standard PCs. Requires an API key. Supports advanced function calling to autonomously select and run diagnostic tasks based on user queries.
- β Non-blocking System Monitor: Decoupled slow polling operations (Disk, NPU) for instant UI responsiveness.
- β Network Rate Fix: Corrected transfer rate calculation to eliminate spikes during startup.
- β β Accurate Swap Metrics: Switched to native PDH counters for true paging file utilization.
- β Settings Persistence: Resolved issue with AI provider preference resetting to "Auto".
- β UI Polishing: Enhanced network charts with simultaneous Upload/Download tooltips.
- β Hybrid AI Engine: Integration of local Phi Silica models alongside OpenAI.
- β Issue Detector: Automated identification of common system problems.
- β Auto-Fixer: One-click remediation for supported issues.
- β Health Model: Visual health scoring system.
- β UI Updates: New Issues tab and improved navigation rail.
- v2.1.0 - Security Hardening & Encryption
- v2.0.0 - Rewrite in Tauri v2 + React
This project is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
- β Free for personal, educational, and research use
- β No commercial use without permission
- β No derivative works
Contact: * contact
Copyright Β© 2025 Fara Technologies LLC. All rights reserved. Developed for WindowsForum.com