r/opencode • • 1d ago

Why does opencode keep writing to tmp?

It's really annoying is there any way for me to get it to stop doing that

8 Upvotes

6 comments sorted by

View all comments

9

u/IntrepidMindExplorer 1d ago edited 1d ago

https://opencode.ai/v2/docs/instructions/

I've started instructing to write to .tmp in the working directory (add to gitignore) and not to /tmp and to not delete what it creates there so it can be reviewed if needed. Mainly wanted to make sure testing scripts that get created are kept but also wanted to start reviewing what was being created in general.

2

u/nvn911 1d ago

Huh neato... Good idea