Orion/2. Areas/Home Personal/knowledge/hermes-large-write-payload-truncation.md
Avi a66996ac10 Orion vault — clean initial history
Knowledge vault (Orion/PARA) migrated from the pre-Orion 484vault on
2026-10-01. Deliberately orphaned: prior history contained a plaintext
password and stays local-only on branch archive/pre-boilerplate-history.
Secrets and live Hermes state are gitignored.
2026-10-02 08:34:48 -05:00

795 B

Hermes tool gotcha: very large write_file/execute_code payloads truncate silently

Date: 2026-09-28 Symptom: A single large write_file / execute_code payload is cut off mid-generation — reproducibly at the same token — with no error; the file/script is silently incomplete. Diagnosis path: Byte-count the written file against the expected size; syntax-check (node --check, python -m py_compile) rather than trusting the tool's success result. Fix / workaround: Build big files by appending small ~30-line chunks, verifying byte count + syntax after each append.

Related second gotcha: pkill -f <pattern> can match and kill the agent's own tool shell. Kill by explicit PID parsed from ss -tlnp instead.

Related: Troubleshooting Index · RESTORE-HERMES