Skip to content

gains default AGENTS.md#7

Open
jdhoffa wants to merge 3 commits into
mainfrom
add-agents
Open

gains default AGENTS.md#7
jdhoffa wants to merge 3 commits into
mainfrom
add-agents

Conversation

@jdhoffa

@jdhoffa jdhoffa commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@jdhoffa
jdhoffa requested a review from john as a code owner July 10, 2026 13:35
@jdhoffa
jdhoffa requested review from a team, AlexAxthelm, HughRunyan, andre-scheinwald, atecza-rmi, cjyetman, jacobvjk, mbarlow12 and rosewangrmi and removed request for a team July 10, 2026 13:36
@AlexAxthelm

Copy link
Copy Markdown

@jdhoffa Does this actually affect RMI's copilot instances?

@jdhoffa

jdhoffa commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

@jdhoffa Does this actually affect RMI's copilot instances?

As I understand it:

  • This AGENTS.md will act as a fallback in any repository that doesn't already have a file sitting at .github/AGENTS.md
  • So in case a repository doesn't have any AGENTS.md, this one would appear
  • If a repository does already have a .github/AGENTS.md then that would take precedence

Based on Copilot's documentation, Copilot will look for an AGENTS.md anywhere in the repo (including under .github.

So I believe it should get recognized yeah?

@jdhoffa

jdhoffa commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

At least that's what I understand, but I could be wrong :-)

cjyetman
cjyetman previously approved these changes Jul 10, 2026
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated

@mbarlow12 mbarlow12 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only hesitation here is that the content here fits in line with user-level settings (i.e. ~/.codex/AGENTS.md or ~/.claude/CLAUDE.md). Both Codex and Claude Code (CC) have ways to quickly generate the project-level context files.

  • Codex appears to do it automatically
  • CC has /init

Especially if we're mainly leveraging this in CI/CD right now, there's not much guidance for reviewing PRs or other specifics to check.

I'll follow up with draft "Review Guidance" section in a comment.

@jdhoffa Does this actually affect RMI's copilot instances?

As I understand it:

  • This AGENTS.md will act as a fallback in any repository that doesn't already have a file sitting at .github/AGENTS.md
  • So in case a repository doesn't have any AGENTS.md, this one would appear
  • If a repository does already have a .github/AGENTS.md then that would take precedence

Based on Copilot's documentation, Copilot will look for an AGENTS.md anywhere in the repo (including under .github.

So I believe it should get recognized yeah?

@jdhoffa do you know if GH Copilot has a similar project < user pattern where both RMI/.github/AGENTS.md and <project repo>/AGENTS.md are loaded into context? That would be excellent and IMO fit better with the content here.

Comment thread AGENTS.md
@jdhoffa

jdhoffa commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@jdhoffa do you know if GH Copilot has a similar project < user pattern where both RMI/.github/AGENTS.md and <project repo>/AGENTS.md are loaded into context? That would be excellent and IMO fit better with the content here.

Ah maybe I miscommunicated this, Copilot does not ever look at RMI/.github/AGENTS.md, it only ever looks for context within the repository that triggered it. BUT, in practice, if that repository doesn't have a {REPO}/.github/AGENTS.md, it would infer that from the content in RMI/.github/AGENTS.md

Does that make sense?

So, to answer your question, yes I believe if a project had both a project specific {REPO}/AGENTS.md AND a {REPO}/.github/AGENTS.md, both would be used

Comment thread AGENTS.md Outdated

@andre-scheinwald andre-scheinwald left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable. I haven't looked into using an agents.md file so I have no strong opinion. As long as it doesn't break the things :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants