Skip to content

Plugin breaks AGENTS.md rules loading in OpenCode 1.1.25 #280

@Matroskin86

Description

@Matroskin86

Hello,

I am using OpenCode version 1.1.25.

When your plugin is enabled, the agent completely stops seeing and applying rules from AGENTS.md.

Important clarification:

  • The AGENTS.md file still exists.
  • There are no syntax errors in AGENTS.md.
  • OpenCode itself works correctly without the plugin.
  • The problem is not rendering or markdown parsing.
  • The problem is that the agent ignores AGENTS.md entirely when the plugin is active.

Behavior comparison:

  1. Plugin disabled:
    • Agent correctly loads and follows rules from AGENTS.md.
  2. Plugin enabled:
    • Agent behaves as if AGENTS.md does not exist.

This looks like the plugin overrides, filters, or replaces the context-loading mechanism used by OpenCode for AGENTS.md.

Environment:

  • OpenCode: 1.1.25
  • Plugin: opencode-dynamic-context-pruning
  • OS: MacOS Tahoe

Please confirm:

  • Does the plugin intentionally replace or prune AGENTS.md context?
  • If yes, is there a way to whitelist AGENTS.md so agent rules are always preserved?
  • If not, this is a critical compatibility bug.

I can provide minimal reproduction steps if required.

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