Skip to content

RFC stage 3: AGENTS.md and agent steering#143

Open
itrujnara wants to merge 6 commits into
nf-core:mainfrom
itrujnara:141-agent-steering
Open

RFC stage 3: AGENTS.md and agent steering#143
itrujnara wants to merge 6 commits into
nf-core:mainfrom
itrujnara:141-agent-steering

Conversation

@itrujnara
Copy link
Copy Markdown

@itrujnara itrujnara commented Jun 1, 2026

Summary

This is the stage 3 PR for the AGENTS.md and steering RFC (approved on 2026-05-28 at #141).

This RFC adds a minimal AGENTS.md to the pipeline template and a comprehensive remote AGENTS.md hosted in a new repository.

Companion implementation PRs

None yet, will be added in due course

This RFC should only be merged after the implementation plan is completed and all companion PRs are closed.

Review plan

  • Reviewers confirm that the list of files to be created, as well as their names, are correct
  • Reviewers confirm that the implementation steps are complete and correct

The content of the files will be discussed in the companion PRs.

Copy link
Copy Markdown
Member

@ewels ewels left a comment

Choose a reason for hiding this comment

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

Nice! Made a few minor suggested changes but all small potatoes.

I wonder if a simpler repo name would be nf-core/agents, but maybe it's just because I'm allergic to hyphens in repository names 🤧 😆

Comment thread proposals/0141-agent-steering.md Outdated
Comment thread proposals/0141-agent-steering.md Outdated
Comment thread proposals/0141-agent-steering.md Outdated

The pipeline-specific section contains any standards and practices specific to a given pipeline. Developing it and keeping it up to date is the resposibility of the maintainers of the pipeline. This section should not recapitulate any general nf-core standards.

`nf-core/modules` may utilize this section to explain the specifics of the repository.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this confuses things a bit, as nf-core/modules doesn't use the pipeline template.

Instead, better to have a separate section of the RFC specifically for non-pipeline nf-core repositories. Modules is one of them, see also website, tools, even proposals 😅 All could / perhap should have a comparable AGENTS.md but it'll have to be created one by one.

Comment thread proposals/0141-agent-steering.md Outdated
Comment thread proposals/0141-agent-steering.md Outdated
- commit and PR discipline (scopes, message format),
- pre-commit routine (linting, tests, prek),
- self-disclosure rules for fully autonomous agents,
- references to nf-core documentation as required.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It might be nice for the file to be fairly minimal and have separate skill files for all of these things, revealed with progressive disclosure. Some may be better as dedicated skills.

Not sure that the RFC really has to go into this detail, but thought I'd mention it here whilst thinking about it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Skills are deliberately out of scope for this RFC, but I expect them to be considered in some fashion soon

Comment thread proposals/0141-agent-steering.md Outdated
Comment thread proposals/0141-agent-steering.md Outdated
Comment thread proposals/0141-agent-steering.md Outdated
Comment thread proposals/0141-agent-steering.md Outdated
- a description of nf-core tools, list of commands, and examples for the most common operations in pipeline development,
- a description of nf-test and basic testing concepts,
- commit and PR discipline (scopes, message format),
- pre-commit routine (linting, tests, prek),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

both nf-core and nextflow strict sntax lints

itrujnara and others added 2 commits June 2, 2026 10:19
@itrujnara
Copy link
Copy Markdown
Author

I have addressed the first batch of comments. I like the ring of nf-core/agents, so I provisionally changed the name in the file. I have merged the nf-core/agents and remote AGENTS.md sections for clarity. I have added a section on non-template repos (thanks Phil, I missed that).

Copy link
Copy Markdown
Member

@JoseEspinosa JoseEspinosa left a comment

Choose a reason for hiding this comment

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

Very nice! I just made a few minor suggestions but really anything important.

Comment thread proposals/0141-agent-steering.md Outdated

Some community members have argued that `CONTRIBUTING.md` is a sufficient file to guide agents as well as human programmers. While this file is valuable, it is not automatically introduced into agent context, and thus should be explicitly included by reference. Furthermore, it is optimized for humans, so agent guidance should extend beyond this file.

There was previously an RFC on this topic, but it has gone stale months ago.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might be nice to reference it

Suggested change
There was previously an RFC on this topic, but it has gone stale months ago.
There was previously an [RFC](https://github.com/nf-core/proposals/issues/61) on this topic, but it has gone stale months ago and thus "closed as not planned".

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I saw now that is referenced at the end, but maybe still we can keep it the link here


This RFC does not specify a rigid structure or contents, but the following elements will tentatively be included (in some order):

- a treemap of the template with explanations of directories and files,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have a couple of suggestions here, but not sure whether they are already superficially covered by this point for the two first items (treemap):

  • How the different configs relate to each other.
  • How nf-core uses workflows, subworkflows and modules.
  • Common Nextflow pitfalls to avoid (this actually could be a different file linked to it).
  • Meta map convention (as it is very nf-core specific.

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.

4 participants