hermes-agent/tools
teknium1 67cf37fc26 fix: head+tail truncation for execute_code stdout (inspired by openclaw context-pruning)
Previously, _drain() only captured the first MAX_STDOUT_BYTES (50KB) of
stdout, silently dropping all tail output. Scripts that print() their
final results at the end would have those results lost.

Now uses a two-buffer approach: 40% head + 60% tail (rolling window).
This matches the pattern already used in terminal_tool.py (line 1042-1051)
but gives the tail more space since execute_code scripts typically
print() their final results at the end.

Inspired by openclaw's softTrim context-pruning (headChars/tailChars).
2026-03-09 02:15:48 -07:00
..
environments
…
__init__.py
…
approval.py
…
browser_tool.py feat: browser console/errors tool, annotated screenshots, auto-recording, and dogfood QA skill 2026-03-08 21:28:12 -07:00
clarify_tool.py
…
code_execution_tool.py fix: head+tail truncation for execute_code stdout (inspired by openclaw context-pruning) 2026-03-09 02:15:48 -07:00
cronjob_tools.py fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification 2026-03-08 21:00:21 -07:00
debug_helpers.py
…
delegate_tool.py
…
file_operations.py fix: search_files now reports error for non-existent paths instead of silent empty results 2026-03-08 16:47:20 -07:00
file_tools.py fix: apply secret redaction to file tool outputs 2026-03-09 00:49:46 -07:00
fuzzy_match.py
…
homeassistant_tool.py
…
honcho_tools.py
…
image_generation_tool.py
…
interrupt.py
…
mcp_tool.py
…
memory_tool.py
…
mixture_of_agents_tool.py
…
openrouter_client.py
…
patch_parser.py
…
process_registry.py
…
registry.py
…
rl_training_tool.py
…
send_message_tool.py fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification 2026-03-08 21:00:21 -07:00
session_search_tool.py
…
skill_manager_tool.py
…
skills_guard.py
…
skills_hub.py
…
skills_sync.py fix: make skills manifest writes atomic 2026-03-08 23:53:57 -07:00
skills_tool.py
…
terminal_tool.py
…
todo_tool.py
…
transcription_tools.py
…
tts_tool.py
…
vision_tools.py feat: enhance auxiliary model configuration and environment variable handling 2026-03-08 18:06:47 -07:00
web_tools.py feat: enhance auxiliary model configuration and environment variable handling 2026-03-08 18:06:47 -07:00