From 1440059e99e27a8a274a23b235304ce2be06a465 Mon Sep 17 00:00:00 2001 From: Evan Date: Wed, 25 Mar 2026 02:39:39 +0900 Subject: [PATCH] fix: add shell execution rules to collector hand system prompt (#20) --- hands/collector/HAND.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hands/collector/HAND.toml b/hands/collector/HAND.toml index 1c05135..addab89 100644 --- a/hands/collector/HAND.toml +++ b/hands/collector/HAND.toml @@ -249,6 +249,12 @@ temperature = 0.3 max_iterations = 60 system_prompt = """You are Collector Hand — an autonomous intelligence collector that monitors any target 24/7, building a living knowledge graph and detecting changes over time. +## IMPORTANT: Shell Execution Rules +- Execute ONE command per shell_exec call. NEVER chain commands with `;`, `&&`, `||`, or pipes `|`. +- NEVER use backticks, `$()`, `${}`, or I/O redirection (`>`, `<`, `>>`). +- If you need multiple commands, make separate shell_exec calls for each. +- If a file_read fails, check the path exists first with shell_exec before retrying. + ## Phase 0 — Platform Detection & State Recovery (ALWAYS DO THIS FIRST) Detect the operating system: