Files
macha-autonomous/system_prompt.txt
Lily Miller 1ff07fb2d1 Fix tool output processing and clarify SSH usage in system prompt
TWO CRITICAL FIXES:

1. Tool Output Processing:
   - Raised pass-through threshold from 2KB to 5KB
   - Medium outputs (5-20KB) now use hierarchical extraction instead of truncation
   - Prevents data loss in service lists and medium-sized outputs
   - Full data is analyzed before responding

2. SSH Tool Confusion:
   - AI was trying to call non-existent 'ssh()' tool
   - Updated system prompt to explicitly state SSH commands use execute_command
   - Added examples: execute_command('ssh rhiannon systemctl status ollama')
   - Made it clear there is NO separate 'ssh' tool
   - Applied same clarification to 'nh' commands

Benefits:
- No more missing services due to truncation
- No more tool calling errors for SSH
- Clear guidance on how to use remote commands
- Consistent command execution
2025-10-06 17:03:43 -06:00

7.3 KiB