Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(security): allow read-only dir, type and get-content commands

Steven Enamakela00f34589585
diff --git a/crates/openhuman-core/src/security/policy/command_analysis.rs b/crates/openhuman-core/src/security/policy/command_analysis.rs
index b919ee1302..957cc3347d 100644
--- a/crates/openhuman-core/src/security/policy/command_analysis.rs
+++ b/crates/openhuman-core/src/security/policy/command_analysis.rs
@@ -193,6 +193,9 @@ pub(super) fn classify_host_command(base: &str, args: &[String], source: &str) -
| "printf"
| "whoami"
| "date"
+ | "dir"
+ | "type"
+ | "get-content"
) || base == "git" && matches!(first, "status" | "diff" | "log" | "show" | "branch")
|| base == "cargo" && matches!(first, "check" | "test" | "tree" | "metadata")
|| matches!(base, "npm" | "pnpm" | "yarn") && matches!(first, "ls" | "list")