Files
macha-autonomous/agent.py
Lily Miller 78292e836f Improve tool output processing: raise pass-through threshold, use extraction for medium outputs
FIXES:
1. Truncation was too aggressive (2KB threshold, truncate to 2000 chars)
2. Important data was being lost in medium-sized outputs (2-10KB)

Changes:
- Raise pass-through threshold from 2KB to 5KB
- Medium outputs (5-20KB) now use hierarchical extraction instead of truncation
- _extract_key_findings already handles chunking automatically
- Better preservation of important data like service lists

Benefits:
- Full service lists will now be properly analyzed
- No more missing services due to truncation
- Macha can see the complete picture before responding
2025-10-06 16:59:09 -06:00

39 KiB