Modifying the project cache #1189

Closed
opened 2026-02-16 17:29:56 -05:00 by yindo · 4 comments
Owner

Originally created by @ampcpmgp on GitHub (Aug 8, 2025).

Originally assigned to: @thdxr on GitHub.

Thank you for the wonderful tool.
I have one question.

I'd like to move the opencode cache to a repository root. ( e.g. .opencode-cache )

Is this possible?

Also, is there a command to delete the project cache?

Originally created by @ampcpmgp on GitHub (Aug 8, 2025). Originally assigned to: @thdxr on GitHub. Thank you for the wonderful tool. I have one question. I'd like to move the opencode cache to a repository root. ( e.g. `.opencode-cache` ) Is this possible? Also, is there a command to delete the project cache?
yindo closed this issue 2026-02-16 17:29:56 -05:00
Author
Owner

@thdxr commented on GitHub (Aug 11, 2025):

the cache is meant to be global - is there a reason you want it per project?

@thdxr commented on GitHub (Aug 11, 2025): the cache is meant to be global - is there a reason you want it per project?
Author
Owner

@ampcpmgp commented on GitHub (Aug 11, 2025):

Thanks for your reply!

I'm using opencode for AIDevOps.

In our environment, we generate a git working directory named YYYYMMDD-HHmm for each trigger event.

If I could put the cache in the working directory, it would be easier to delete it.

@ampcpmgp commented on GitHub (Aug 11, 2025): Thanks for your reply! I'm using opencode for AIDevOps. In our environment, we generate a git working directory named `YYYYMMDD-HHmm` for each trigger event. If I could put the cache in the working directory, it would be easier to delete it.
Author
Owner

@thdxr commented on GitHub (Aug 11, 2025):

we follow XDG defaults so try XDG_CACHE_HOME?

@thdxr commented on GitHub (Aug 11, 2025): we follow XDG defaults so try XDG_CACHE_HOME?
Author
Owner

@ampcpmgp commented on GitHub (Aug 12, 2025):

It worked! Thank you!

@ampcpmgp commented on GitHub (Aug 12, 2025): It worked! Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1189