You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that opencode added some random stuff to the global config folder $HOME/.config/opencode
.config/opencode via 🥟
❯ ll
total 12K
drwxr-xr-x. 1 einar 22 Oct 14 18:33 agent
drwxr-xr-x. 1 einar 30 Oct 15 15:24 node_modules
-rw-r--r--. 1 einar 689 Oct 15 15:24 bun.lock
-rw-r--r--. 1 einar 45 Oct 15 15:24 .gitignore
-rw-r--r--. 1 einar 63 Oct 15 15:24 package.json
Why? These aren't config files (expect my agent folder), but rather lookes like some internal concerns that should be somewhere else, eg $XDG_CACHE_HOME or something. I like to keep my dotfiles folder nice and clean and only have stuff there which I control.
If i delete node_modules, bun.lock, package.json and .gitignore and start opencode everything works still. The files are recreated.
Second this as a very annoying bug. I like my ~/.config to be for config files only, so I don't have to write custom .gitignore rules just to exclude them. Runtime artifacts like lock files have no place in such directory.
Also installing ~100M npm packages and binaries under ~/.opencode/ is an odd choice. they are for dot files.
Amazing project BTW, but if we can make LLM to do years worth software development in a week, we can find a way to respect XDG conventions.
Reacted by Chung-Chiang Cheng, Bastien Limbour Pruvost, Ivan Uhalin, Drew Gingerich, sergentbne and Matthias Maiterth
Activity
github-actions commentedon Oct 15, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 15, 2025
opencode automatically adds those so you can take advantage of the plugins and custom tools easily since the dependency will already be installed
xiaotian commentedon Jan 17, 2026
Second this as a very annoying bug. I like my ~/.config to be for config files only, so I don't have to write custom .gitignore rules just to exclude them. Runtime artifacts like lock files have no place in such directory.
Also installing ~100M npm packages and binaries under ~/.opencode/ is an odd choice. they are for dot files.
Amazing project BTW, but if we can make LLM to do years worth software development in a week, we can find a way to respect XDG conventions.
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
vanyauhalin commentedon Mar 27, 2026
https://nostalebots.xyz