Skip to content

exclude node_modules #4733

Closed
Closed

Description

@pumpa0

Question

Is there a way to prevent the AI from reading node_modules or other unnecessary files? It has read node_modules several times, and since the folder is huge and unimportant, it ends up wasting a lot of time.

Activity

  1. github-actions commented on Nov 25, 2025

    @github-actions
    Contributor

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

    These issues discuss the same core feature request: preventing OpenCode from reading unnecessary large folders like node_modules to reduce token usage and improve performance.

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions