Variable READ_ONLY_FILE_TOOL_GUIDANCEConst
READ_ONLY_FILE_TOOL_GUIDANCE: "Read files with your file tools; if you have none, read them with read-only shell commands (such as rg, git show or Get-Content) and run nothing that writes, builds or uses the network. With file tools, run no shell command: a sandbox may deny it and end the turn." = 'Read files with your file tools; if you have none, read them with read-only shell commands (such as rg, git show or Get-Content) and run nothing that writes, builds or uses the network. With file tools, run no shell command: a sandbox may deny it and end the turn.'
Read-only tool guidance shared by
reviewand structuredconsultprompts (task_typeorcontext_files). Claude and agy read with file tools, and agy ends its turn when its sandbox denies a command; Codex has no file tool and reads only with commands in its read-only sandbox.