Code assistance with built-in safeguards
Rust-native autonomous assistant with atomic writes, automatic backups, and guardrails against destructive operations. Designed for production environments where reliability is non-negotiable.
View Documentation GitHubSafety in action
Watch hyle's guardrails protect your codebase in real-time.
Enterprise use cases
Real scenarios where hyle's reliability features matter. Click to see implementation details.
Production database migrations are high-stakes. A wrong ALTER TABLE can take down your service. hyle generates migrations with rollback scripts, validates syntax before execution, and creates point-in-time backups of affected schema. If migration fails, automatic rollback kicks in.
Large refactors touch dozens of files. One wrong rename propagates errors everywhere. hyle creates timestamped backups before every write. If the refactor breaks the build, restore any file to its pre-refactor state. Each backup includes the prompt that caused the change for audit trails.
Compliance requires knowing who changed what and why. hyle logs every file operation with timestamps, diffs, and the prompts that triggered them. Export to JSON for integration with your audit system. SOC2 and ISO 27001 friendly.
Config files are read at startup. Partial writes mean broken deployments. hyle writes to a temp file, calls fsync, then atomically renames. If power fails mid-write, you get the old config, never corruption. Kubernetes ConfigMaps and secrets handled the same way.
"Clean up the build artifacts" shouldn't mean "delete production data." hyle maintains a blocklist of dangerous command patterns. rm -rf, DROP DATABASE, kubectl delete --all - all blocked by default. Override with explicit confirmation for legitimate use cases.
Long-running refactors can hit API rate limits. hyle tracks model health in real-time. When one model returns 429, it automatically switches to a fallback. Work continues without interruption. When the primary recovers, it switches back automatically.
Safety features
Destructive Command Blocking
rm -rf, DROP DATABASE, and similar patterns blocked by default
Atomic File Writes
Write to temp, fsync, rename. No partial writes, ever.
Write Verification
Read-back check after every file write confirms integrity
Backup Rotation
Timestamped backups with configurable retention (default: 3)
Rate Limit Handling
Auto-switches to fallback models on 429 responses
Session Auto-save
Work preserved on Ctrl-C, crash, or power failure
Specifications
| Component | Detail |
|---|---|
| Language | Rust 1.75+ (MSRV) |
| Binary Size | ~10MB (release, stripped) |
| Dependencies | 38 crates (cargo-audit clean) |
| Test Coverage | 364 tests (unit + integration) |
| License | MIT |
| Config Location | XDG directories (0600 permissions) |
| Backup Location | ~/.local/state/hyle/backups/ |
| Audit Log | ~/.local/state/hyle/audit.jsonl |