Skip to content

Add AGENTS.md to the context filename list by default #12345

Closed as not planned
Closed as not planned

Description

@bbiggs

What would you like to be added?

See https://agents.md - seems like it would be convenient to add AGENTS.md to the context filename list by default.

Why is this needed?

Since some codebases have AGENTS.md files, would be nice to support reading these as memory files by default. A risk would be that users might not expect it, so seems important to have a way to remove it in the local config. Need to make sure there's a natural way to drop it from the list for a user if it's causing problems.

Additional context

No response

Activity

  1. added
    status/need-triage
    on Oct 31, 2025
  2. allenhutchison commented on Oct 31, 2025

    @allenhutchison
    Contributor

    One thought here is we could make discovery of AGENTS.md a part of our init, and then ask the user if they want to use it. A further question is whether we should parse the AGENTS.md with our GEMINI.md parser or if we should write an AGENTS.md parser. The two file formats have different features.

    The big difference between the two is @ style references and there is an issue tracking this in the agents repo: agentsmd/agents.md#11

  3. marabian commented on Oct 31, 2025

    @marabian

    I work a lot with Gemini CLI/Claude Code. I usually create symlinks for AGENTS.md that point to GEMINI.md/CLAUDE.md. Not ideal but it works pretty well.

  4. intellectronica commented on Nov 5, 2025

    @intellectronica

    https://github.com/intellectronica/ruler automatically injects the necessary config - it defaults to AGENTS.md, but gives every agent (including Gemini) whatever it needs to discover the rules.

  5. added
    priority/p2
    area/core
    and removed
    status/need-triage
    on Nov 21, 2025
  6. Wolfe-Jam commented on Dec 30, 2025

    @Wolfe-Jam

    @allenhutchison - Related to the @Style reference issue you mentioned above: just contributed to agentsmd/agents.md#11 on that import/reference discussion.

    FAF (IANA-registered application/vnd.faf+yaml) approaches this differently - structured YAML with convention-based architecture. No @import syntax debate because the file structure is the contract.

    Could work as the context layer that AGENTS.md references. Also touched on this in gemini-cli-extensions/conductor#13 re: visibility.

    Happy to collaborate on interop.

  7. added
    status/need-triage
    on Jan 14, 2026
  8. cocosheng-g commented on Apr 7, 2026

    @cocosheng-g
    Contributor

    Triage Summary

    Categorization: Help-wanted

    This is a well-defined feature request to expand the default context discovery by adding AGENTS.md to the filename list. The implementation is straightforward (modifying DEFAULT_CONTEXT_FILENAME or its initialization in memoryTool.ts) and provides immediate value to users following the agents.md standard. While there are open discussions regarding specialized parsing for AGENTS.md, adding basic discovery using the existing parser is an excellent first step for community contribution.

  9. added
    help wanted
    and removed
    status/need-triage
    on Apr 7, 2026
  10. Wolfe-Jam commented on Apr 7, 2026

    @Wolfe-Jam

    Happy to help implement this!

    A few implementation considerations from working with similar context discovery systems:

    Quick Win - Add to Default List

    The straightforward implementation would add AGENTS.md to DEFAULT_CONTEXT_FILENAME in memoryTool.ts, as the triage noted.

    User Control

    For the "way to remove it" concern - the existing local config override mechanism should handle this. Users can already customize the context filename list, so they can drop AGENTS.md if it causes issues.

    Foundation Layer Compatibility

    If you're interested in structured context underneath AGENTS.md (like many teams are adopting), the .faf format provides YAML-based project definitions that complement prose instruction files like AGENTS.md. The gemini-faf-mcp integration shows this working in practice.

    Next Steps

    I can submit a PR for the basic filename addition if helpful, or collaborate on the broader context architecture if you're interested in the foundation layer approach.

    What's the preferred path forward?

  11. harshpujari commented on Apr 7, 2026

    @harshpujari
    Contributor

    /assign

  12. gemini-cli commented on Apr 7, 2026

    @gemini-cli
    Contributor

    👋 @harshpujari, you've been assigned to this issue! Thank you for taking the time to contribute. Make sure to check out our contributing guidelines.

  13. harshpujari commented on Apr 9, 2026

    @harshpujari
    Contributor

    I have comitted the changes in my fork. can you please take a look ?

  14. added
    area/agent
    on Sep 24, 2026
  15. gemini-cli commented on Sep 24, 2026

    @gemini-cli
    Contributor

    The reported issue with read_file and read_many_files on Windows appears to be a bug. However, the CLI version (0.1.7) is significantly outdated compared to the current version (0.62.0). Please verify if this issue persists in the latest version.

  16. removed
    area/core
    on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/agenthelp wantedkind/bugpriority/p2status/bot-triagedstatus/need-information

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions