From ebee2552e13b074560453b1f6419ef1876cd0194 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 19:46:27 +0000 Subject: [PATCH 1/2] Initial plan From a70e38d49968263b60a27b182ed052557a47ad23 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 19:48:09 +0000 Subject: [PATCH 2/2] Update README with v0.4.1 guardrails feature documentation Co-authored-by: joone <1979160+joone@users.noreply.github.com> --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 011879c..377af6d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,16 @@ ## What's New +### v0.4.1 - 2026-02-16 +- **Added** + - **Guardrails for dangerous commands**: Loz now includes built-in safety guardrails that automatically block potentially dangerous shell commands before execution. The following commands are blocked: + - `rm -rf /` and its bypass variants (`rm -rf/*`, `rm -rf /.`) + - `shutdown` and `reboot` commands + - Fork bomb: `:(){ :|:& };:` + - Filesystem formatting: `mkfs` + - Direct disk operations: `dd if=` + - This feature provides an additional layer of protection to prevent accidental system damage, complementing the existing confirmation prompts. + ### v0.4.0 - 2026-02-08 - **Added** - Cross-platform command execution: Loz now detects your OS and shell (Linux, macOS, Windows PowerShell, or cmd) and generates/executed commands accordingly. @@ -219,7 +229,7 @@ Loz empowers users to execute Linux commands using natural language. Below are s #### Caution -To prevent unintentional system modifications, avoid running commands that can alter or remove system files or configurations, such as `rm`, `mv`, `rmdir`, or `mkfs`. +To prevent unintentional system modifications, loz includes built-in guardrails that block the most dangerous commands (such as `rm -rf /`, `shutdown`, `mkfs`, etc.). However, you should still exercise caution with commands that can alter or remove system files or configurations, such as `rm`, `mv`, or `rmdir`. #### Safe Mode