Hermes Agent can fail on read-only files
may fail when its `patch` and `write_file` tools try to change an existing file with tight . The failure happens during an , where the tool first creates a in the same folder and later replaces the original file. If the original file is set to mode 400, meaning read-only, copies that permission to the before writing the new content.
The then becomes read-only too, so the write step is blocked and the final replace step never happens. Common signs include repeated s on `.hermes-tmp` s and warnings from the file-mutation verifier that the target file did not change. The error details can appear in `~/.hermes/logs/errors.log`.
This can affect restricted files such as 400 journal files and 600 , and the likely problem area is `_atomic_write_same_fs` in `/tools/file_operations.py`.
Key points
- `patch` and `write_file` can fail on files with restricted .
- Mode 400 can make the read-only before writes into it.
- Repeated `.hermes-tmp` s are a useful warning sign.
- `~/.hermes/logs/errors.log` can show the failed write details.
- Be careful when editing 400 journal files or 600 with .