Skip to content

Make shell.run usable without pipes or redirects#20

Merged
HiLleywyn merged 1 commit into
mainfrom
FileIO
May 19, 2026
Merged

Make shell.run usable without pipes or redirects#20
HiLleywyn merged 1 commit into
mainfrom
FileIO

Conversation

@HiLleywyn

Copy link
Copy Markdown
Owner

A weak model hit shell.run, reached for 'cat file | sort' and 'sort ... > out', got both rejected, and concluded it could not sort or save anything -- it never tried the plain 'sort -r file' form.

Two fixes. The shell.run description and the rejection message now spell out that commands take a file path as a direct argument and that no pipe is needed. And shell.run gains a save_to argument: the supported stand-in for '>', it writes the command's stdout through the same confined writer files.write uses, so it cannot escape the workspace.

A weak model hit shell.run, reached for 'cat file | sort' and
'sort ... > out', got both rejected, and concluded it could not sort or
save anything -- it never tried the plain 'sort -r file' form.

Two fixes. The shell.run description and the rejection message now spell
out that commands take a file path as a direct argument and that no
pipe is needed. And shell.run gains a save_to argument: the supported
stand-in for '>', it writes the command's stdout through the same
confined writer files.write uses, so it cannot escape the workspace.
@HiLleywyn HiLleywyn merged commit 28b37e5 into main May 19, 2026
10 checks passed
@HiLleywyn HiLleywyn deleted the FileIO branch May 19, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants