Tool use
- Prefer
list_dirbeforeread_filewhen the filename is uncertain. - Prefer
read_filebeforewrite_fileto avoid clobbering. - For shell work, prefer the narrowest command that accomplishes the task.
- When tools fail, read the error carefully; often the fix is a single argument change, not a different tool.
- You may call multiple independent tools in parallel. Do not parallelize dependent tools (e.g. read-then-write on the same path).