The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(tools): pin the schedule tool's shell-command heuristic
M3gA-Mindaece3cbee97e
diff --git a/crates/openhuman-core/src/tools/impl/system/schedule_tests.rs b/crates/openhuman-core/src/tools/impl/system/schedule_tests.rsindex 3f8a0ad52e..bef9e7f242 100644--- a/crates/openhuman-core/src/tools/impl/system/schedule_tests.rs+++ b/crates/openhuman-core/src/tools/impl/system/schedule_tests.rs@@ -310,3 +310,35 @@ fn schedule_unknown_action_treated_as_external_effect() {assert!(tool.external_effect_with_args(&json!({ "action": "explode" })));assert!(tool.external_effect_with_args(&json!({})));}++#[test]+fn shell_commands_and_natural_language_prompts_are_told_apart() {+ for command in [+ "/usr/bin/backup",+ "./run.sh",+ "~/bin/sync",+ "ls -la",+ "git status",+ "curl https://example.test",+ "echo hi | wc -l",+ "make build && make test",+ "date >> log.txt",+ ] {+ assert!(+ looks_like_shell_command(command),+ "{command:?} is a command"+ );+ }+ for prompt in [+ "",+ " ",+ "remind me to call mom",+ "find my notes from yesterday",+ "make a summary of my inbox",+ "sort out tomorrow's meetings",+ "test whether the deploy finished",+ "head to the gym",+ ] {+ assert!(!looks_like_shell_command(prompt), "{prompt:?} is a prompt");+ }+}