Skip to content

[FEATURE][DOCUMENTATION]: Add rules for AGENTS.md inheritance in documentation + Disable option #36699

Closed as not planned

Description

@m21-cerutti

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Hello,
I didn't found in documentation rules about AGENTS.md inheritance, where it seems every project will inherit the AGENTS.md from the home directory. Would be great at least to add it to documentation, and to precise order (could have an impact for mandatory instruction, prompt injection, etc).

https://opencode.ai/docs/rules/#project

Linked to :
#6479
#4483

Would be great also to have an option in opencode to disable this behavior.
Use case could be :

  • make a "blank" project for reproducing a bug without interferences (my case).
  • Use only verified AGENTS.md and files on an untrusted environment (Ci maybe).
Image

Activity

  1. m21-cerutti commented on Jul 13, 2026

    @m21-cerutti
    Author

    After verification, linked to
    #33908
    #33971

  2. changed the title [-][DOCUMENTATION]: Add rules for AGENTS.md inheritance in documentation[/-] [+][DOCUMENTATION]: Add rules for AGENTS.md inheritance in documentation + Disable option[/+] on Jul 13, 2026
  3. changed the title [-][DOCUMENTATION]: Add rules for AGENTS.md inheritance in documentation + Disable option[/-] [+][FEATURE][DOCUMENTATION]: Add rules for AGENTS.md inheritance in documentation + Disable option[/+] on Jul 13, 2026
  4. github-actions commented on Sep 12, 2026

    @github-actions
    Contributor

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

  5. m21-cerutti commented on Sep 12, 2026

    @m21-cerutti
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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