Skip to content

Add an AGENTS.md file #4677

Open
Open

Description

@seisman

As AI coding agents such as GitHub Copilot, Claude Code, Codex, and Cursor become more widely used, it may be helpful for PyGMT to provide an AGENTS.md file with repository-specific instructions.

The file could briefly describe:

  • The purpose and structure of PyGMT
  • How to set up a development environment
  • Testing requirements
  • Coding and documentation conventions
  • Useful links to contributor and developer documentation
  • More

Many projects are starting to adopt AGENTS.md files to help AI agents understand project workflows and produce contributions that better follow project standards.

References:

Activity

  1. added
    discussions
    on Jun 14, 2026
  2. weiji14 commented on Aug 28, 2026

    @weiji14
    Member

    Is the intention to just provide an AGENTS.md for developing/contributing/maintaining the PyGMT repository?

    • The purpose and structure of PyGMT
    • Coding and documentation conventions

    These should be general enough to go in the AGENTS.md file, since they apply to every situation.

    I'm still a little hesitant in adding this now, because some agent harnesses might use different file-naming conventions (e.g. CLAUDE.md, SOUL.md, etc), and you need to symlink the file to the correct name to have it work by default... But also maybe things will standardize to AGENTS.md soon?

    • How to set up a development environment
    • Testing requirements
    • Useful links to contributor and developer documentation

    These feel more like SKILLS, that only apply in specific situations (e.g. tests don't need to run all the time). We might need to separate these out?

    Side note: if we ever think about distributing more user-facing skills, we should think about packaging them properly - https://pavel.pink/blog/pixi-skills

  3. seisman commented on Aug 28, 2026

    @seisman
    MemberAuthor

    I don't have much experience with AGENTS.md yet. When leveraging AI tools for repetitive tasks, I’ve occasionally seen the AI lack project context and use incorrect ways to test. As an example, in #4582 (review), Codex validated the changes with py_compile, though I expected pytest. That led me to wonder how we can teach the AI to adhere to our specific instructions and read a little more about AGENTS.md.

    I'm still a little hesitant in adding this now, because some agent harnesses might use different file-naming conventions (e.g. CLAUDE.md, SOUL.md, etc), and you need to symlink the file to the correct name to have it work by default... But also maybe things will standardize to AGENTS.md soon?

    As far as I know, Claude still doesn't support AGENTS.md yet, but it's on the way (xref: https://x.com/trq212/status/2092302273099796842" We are working on making Claude Code more hackable, which will include being able to easily use Agents.MD or make other system prompt modifications.")

    These feel more like SKILLS, that only apply in specific situations (e.g. tests don't need to run all the time). We might need to separate these out?

    Not 100% related, but it reminds me this repository (https://github.com/rookieplayerjr/pygmt-plotting-skill) someone sent me a few days ago.

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

    discussions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions