From da3ff03c3c76bb1ff14623a6e140caa7b5a33b94 Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Sun, 15 Mar 2026 21:20:23 -0700 Subject: [PATCH] fix: adjust headless prompt to prohibit text output and force immediate tool execution --- automate_void.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 automate_void.sh diff --git a/automate_void.sh b/automate_void.sh new file mode 100755 index 0000000..0da9511 --- /dev/null +++ b/automate_void.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Source user profile to ensure Letta is in PATH +source /home/cameron/.bashrc + +# Ensure we are in the correct directory +cd /home/cameron/void + +# Log the execution time +echo "--- Void Execution Loop Triggered at $(date) ---" + +# 1. Fetch data locally (cheap API calls) +./.venv/bin/void-cli sync +./.venv/bin/void-cli monitor + +# 2. Run the heuristic check +if ./.venv/bin/python src/void_tools/precheck.py; then + echo "Actionable data confirmed. Invoking Letta Agent..." + export LETTA_API_KEY=$CAMERON_LETTA_API_KEY + letta -a agent-c52e371d-cb89-4f99-8634-b606bdc69cad -p "SYSTEM DIRECTIVE: Automated headless execution loop. DO NOT send any text messages to the user. You MUST sequentially execute tool calls: 1) read inbox.yaml and horizon.yaml, 2) draft outbox.yaml using RunShellCommand, and 3) run ./void-cli dispatch. Do not stop or return a text response until dispatch is fully complete." +else + echo "Pre-check negative. Sleeping until next cycle." +fi \ No newline at end of file -- 2.51.2