[PR #13180] feat: Add .agentignore to supported ignore files #14548

Open
opened 2026-02-16 18:19:20 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13180

State: open
Merged: No


What does this PR do?

The .ignore file is used by a number of other libraries like Tailwind. If we want to filter out certain folders for the agent to read, that means it's filtered out for Tailwind as well. This PR adds a new ignore file that is less likely to be used by other libraries outside of an agent context.

I'm also open to naming this anything else such as .opencodeignore

How did you verify your code works?

Add a .agentignore file to your project and test if the agent can/can't read or write what is added there

Fixes https://github.com/anomalyco/opencode/issues/13235

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13180 **State:** open **Merged:** No --- ### What does this PR do? The .ignore file is used by a number of other libraries like Tailwind. If we want to filter out certain folders for the agent to read, that means it's filtered out for Tailwind as well. This PR adds a new ignore file that is less likely to be used by other libraries outside of an agent context. I'm also open to naming this anything else such as `.opencodeignore` ### How did you verify your code works? Add a .agentignore file to your project and test if the agent can/can't read or write what is added there Fixes https://github.com/anomalyco/opencode/issues/13235
yindo added the pull-request label 2026-02-16 18:19:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14548