Skip to content

Opencode using my 20 GB storage #10532

Closed
ariane-emory/opencode
#157

Description

@wowiwowe

Question

Image

why is my opencode using a lot of storage?

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Jan 25, 2026
  2. github-actions commented on Jan 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. ariane-emory commented on Jan 26, 2026

    @ariane-emory
    Contributor

    This is the intended behavior when the snapshot feature is enabled.

    You may disable the snapshot feature if you would like to by putting the following in your opencode.json configuration file: "snapshot": false,, but doing so means that the /undo and /redo commands will no longer reverse changes to files as a consequence.

  4. rekram1-node commented on Jan 26, 2026

    @rekram1-node
    Contributor

    We auto cleanup snapshots every 7 days, we could make it more frequently

  5. ariane-emory commented on Jan 26, 2026

    @ariane-emory
    Contributor

    @rekram1-node Neat! I disabled snapshots locally in my own configuration months ago and had not realized that this cleanup feature had been added, I'm going to try re-enabling It immediately and see how much space it ends up taking now. It would be even cooler if the duration for which they were kept could be configured in days.

  6. cravenceiling commented on Jan 26, 2026

    @cravenceiling
    Contributor

    We auto cleanup snapshots every 7 days, we could make it more frequently

    Maybe add a config for this?

  7. rekram1-node commented on Jan 26, 2026

    @rekram1-node
    Contributor

    Yeah

  8. jsrcode commented on Jan 26, 2026

    @jsrcode

    Yeah

    Can you check if #10248 bug no one seems to reply to him

  9. jsrcode commented on Jan 26, 2026

    @jsrcode

    @rekram1-node* Neat! I disabled snapshots locally in my own configuration months ago and had not realized that this cleanup feature had been added, I'm going to try re-enabling It immediately and see how much space it ends up taking now. It would be even cooler if the duration for which they were kept could be configured in days.

    Can you check if #10248 bug no one seems to reply to him

  10. ariane-emory commented on Jan 26, 2026

    @ariane-emory
    Contributor

    @jsrcode Sadly I do not have access to Windows, sorry.

  11. allanchan339 commented on Feb 4, 2026

    @allanchan339

    This "Git" process snapshot take 30MB/s READ & WRITE respectively, no matter what he is doing it is a performance killer when i am bulk loading data to database

    While /redo and /undo take the important role in opencode UX. It is highly recommended to online history cleanup module by session as mentioned in https://github.com/anomalyco/opencode/issues/4980. Not all history deserves redo and undo protection.

  12. IM-001 commented on Feb 8, 2026

    @IM-001

    Ok, the snapshot feature is a must, I cannot work without this. Not sure why specifically today with opus 4.6 it's getting out of control (need to cache 60gb every 10 minutes...).

    Also, what's weird is that I had the feeling the cache was growing when agents were simply making search queries in files and codebase, not because of code changes, but I am probably wrong.

    However, with swarm agents coming probably eventually, I think it's a must to be able to specify a cache folder on another drive, this can compromise system for users not putting opencode in a sandbox environment. Thank

  13. IM-001 commented on Feb 9, 2026

    @IM-001
  14. github-actions commented on Apr 10, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

perfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions