9 stable releases
| new 6.60.0 | Feb 6, 2026 |
|---|---|
| 6.58.0 | Jan 30, 2026 |
| 6.42.0 | Dec 7, 2025 |
| 6.40.0 | Nov 27, 2025 |
#1676 in Development tools
30 downloads per month
Used in bashrs
77KB
2K
SLoC
ML-powered error classification oracle for bashrs.
Uses aprender Random Forest classifier (GPU-accelerated via trueno/wgpu) to:
- Classify shell errors into actionable categories (24 categories)
- Suggest fixes based on error patterns
- Detect error drift requiring model retraining
GPU Acceleration
Enable GPU feature for RTX 4090 acceleration via wgpu/trueno:
bashrs-oracle = { version = "*", features = ["gpu"] }
Performance Targets (from depyler-oracle)
- Accuracy: >90% (depyler achieved 97.73%)
- Training time: <1s
- Predictions/sec: >1000
- Model size: <1MB (with zstd compression)
bashrs-oracle
ML-powered error classification oracle for bashrs using aprender (GPU-accelerated).
Features
- GPU Acceleration: Uses aprender with trueno SIMD backend for fast inference
- Error Classification: Classifies shell script errors into actionable categories
- Fix Suggestions: Provides ML-based fix suggestions for common errors
Usage
use bashrs_oracle::{ErrorClassifier, ErrorCategory};
let classifier = ErrorClassifier::new()?;
let category = classifier.classify("unquoted variable expansion")?;
Categories
Security- Security vulnerabilities (injection, etc.)Correctness- Logic errors and bugsStyle- Code style issuesPerformance- Performance problemsPortability- Cross-shell compatibility issues
License
MIT OR Apache-2.0
Dependencies
~22–30MB
~497K SLoC