Repository navigation
Update AGENTS.md on selecting issues - #33066
Conversation
|
For me it is fine to try this out. I think there are no great ways of validating this other than trying it out :-/ A question: did you add the One thing to start thinking about, but not needed for this PR, is that there is a limit to how much we can put into And in |
|
As a side comment: is there a guide or something about using copilot to work on an issue? It sounds like there is some UI that lets me click "Copilot please start working on this issue with me"? My way of using AI agents must be out of date already because I check out a new branch and then tell it about what I want to work on, ask it to make a plan, iterate on the plan, etc. So the idea of asking an agent to suggest what to work on is a new idea to me, and I'm interested to learn how people do that |
It looks like this was already there in your version (#32584) and Claude added it consistently. I'm not sure if it makes a difference. |
To be honest, this is based solely on a hunch that people might be using it for that. Sometimes we get comments or PRs so fast after an issue was opened that this suggests some form of automation, but I'm not sure if this is actually done with agents. |
StefanieSenger
left a comment
There was a problem hiding this comment.
I think it is worth a try and our best shot at the moment.
Thanks for taking care of this, @AnneBeyer!
I only have a little comment on distinguishing between linked issues and linked issues that are either "open" or "closed as completed". I think it is fine to allow an agent to suggest a PR on an issue with PRs closed unfinished. If you think that complicates the matter too much or would not be easily understood by an LLM, feel free to ignore my comment.
|
|
||
| - **Issues labeled "Needs Triage"** — These issues require initial review and categorization by maintainers before ANY work should begin. Working on them without approval will result in rejected work. See [Needs Triage guidance](https://scikit-learn.org/dev/developers/contributing.html#issues-tagged-needs-triage). | ||
|
|
||
| - **Issues with linked PRs** — If an issue already has one or more PRs linked to it, someone is actively working on it. Duplicating effort on the same issue is wasteful and unprofessional. **Always check for linked PRs first.** |
There was a problem hiding this comment.
| - **Issues with linked PRs** — If an issue already has one or more PRs linked to it, someone is actively working on it. Duplicating effort on the same issue is wasteful and unprofessional. **Always check for linked PRs first.** | |
| - **Issues with linked PRs** — If an issue already has one or more PRs linked to it that are "open" or "closed as completed", someone has actively been working on it. Duplicating effort on the same issue is wasteful and unprofessional. **Always check for linked PRs first.** |
There was a problem hiding this comment.
I don't have a strong opinion on this. It might be too complex, because if there is a linked PR that is "closed as completed" (or should it rather be "merged" for PRs?), but the issue is not closed, that means there is still work left to do, right?
So maybe we could just change it to "open PRs" instead?
This is indeed more a deduction, but I also share it. Often automated PRs don't even reference the issue in the PR description and rather repeat the problem stated there as if they had come up with it. They ignore any discussion that had happened on the issue, including the fact that other people started to work on it and have opened PRs (see for instance #32946.) I can only deduce that the human who operated the agent didn't interact at all with the issue and didn't read it themselves. Edit: also I think this contributor who has opened 16 PR within 6 hours yesterday would probably have asked their LLM what to work on. |
|
Should we add a short version of this also to the HUMAN.md (aka CONTRIBUTING.md)? |
|
I think that's what we have Issues tagged “Needs Triage” for. |
|
Agreed, but unfortunately that section is quite hard to find if you don't have the link to it, unless I'm overlooking something? If you search for "Needs Triage" using the search in the docs, you don't get that section directly, but have to click on any but the first or last match, and then click on another reference link (or search and scroll) again. I agree that ideally new contributors should start by reading the required docs, but since they obviously don't, and it is annoying us, shouldn't we make the information easier to find? |
|
It is also linked quite prominently in New Contributors. |
Just wondering, we've floated the idea of adding a workflow to prevent new contributors from opening a PR that e.g., does not link an issue/issue that has 'needs triage' label - I think stdlib may do something similar. I feel like this would be a more 'sure' approach. But I am not sure if there is resistance to the idea? What do we think? (I know such a workflow would be a bigger undertaking, but I think it would be more impactful, but there has to be agreement) |
I think a more rule-based approach could indeed make sense in this case, but this is probably best discussed in a separate issue? |
|
Just in case you didn't see the message on the GHA migration on Discord (you probably did): In order to have the checks complete, you need to pull from main, @AnneBeyer. |
|
https://jacobtomlinson.dev/posts/2026/guiding-your-contributors-agents-to-better-behaviours/ is an interesting take on the topic of this issue. The main take away is to move "how to choose an issue to work on" Into a skill instead of having it in the I don't know if we want to restructure this PR to make a "select an issue" skill or not. Maybe this is something to do in the future. I came here to link Jacob's blog post because of #33708 |
|
+1 for following Jacob's suggestion and converting this into a separate skill. |
|
Based on this line from @ogrisel's PR
creating a skill for exactly that is probably not what we actually want. Jacob created a separate skill for resolving issues in NVIDIA's |
|
Side note: Relating back to previous discussions, maybe using a positive label like "ready" (like
but then, this would also require us to re-label all existing issues that are worth fixing. |
|
Honestly, at this point I'm like, if it's ready for AI, we can ask our copilot-(like) AI to solve it ourselves. Don't need a third party to do that 🤔 |
|
Fair enough. Do we want to spend more effort in reducing the slop by
The new warning does not seem to have any impact. |
It does give a very easy basis to block folks though 😅 |
I'm less sure. I agree that in the end a human needs to decide what they want to work on, but that doesn't mean that having a guide (in the form of a skill) that helps me pick something is useless. I think a skill that is like a "workflow" or interactive version of documentation that walks the user through a process (picking an issue, debugging a failure, choosing an estimator) is a useful thing to have. As a maintainer I would enjoy a skill/app that helps me answer the question "where should I start reviewing PRs today?". Many of us have even built little apps to help with that. It doesn't mean that I blindly start reviewing what ever the app/skill/agent tells me, but it is still useful to have. A skill for picking an issue could check automatically "has this user contributed before?" and use that information to pick an issue (in this case maybe "good first issue"). Or ask the user some questions to help figure out what issues could be a good match. Having a human that gets presented with an issue, uses AI to solve it (or not), reviews the work and then makes a PR is a useful thing. So I'd push back on the "if the issue is ready we might as well just use our own AI agent to do it". The equation changes if the human user doesn't engage their brain while using AI, but hopefully they do. I am not sure we want to change our labelling strategy yet again. We have done a lot there already and the cynic in me feels like we are just rearranging the labels on the deckchairs of the Titanic. The reason I'm thinking of this as "a skill that picks an issue" and not "a skill that resolves an issue" is that I think the latter encourages "set it to auto and forget about it". The resolve skill includes instructions on how to go about coding the solution and such. I'm not sure yet if I am ready for having something like that. It could be a good idea because it lets us harness other people's Claude/Cursor subscription by guiding their agent, but it also feels like it encourages people to not use their brain. |
🤣
This may be nice if we get it working |
|
I just came across this: |
|
This might become redundant with #34252, but after seeing more and more of these issue radars mentioning issues labelled "Needs Triage", I thought it couldn't hurt to add at least a short note on this in our I undid the changes from before and just added a short paragraph including the specific command to run to check the label (which was a suggestion from Claude) before working on an issue. |
Reference Issues/PRs
#31679 (comment)
What does this implement/fix? Explain your changes.
First I added a section on how (not) to select issues. Then I asked
Claude Haiku 4.5to reformulate the file so that AI agents will follow it. (It did generate the requested AI disclosure line at the end 🥳 )I playes around with it by asking all available Copilot models to suggest issues to work on or to create a solution for an issue that is currently labelled "Needs Triage".
GPT-5 minidid not follow the instructions, and when asked why responded that the text was optimized for humans and that it should include model parsable instructions in the beginning, so I added its suggestions as well.I don't think there is a single way to address all agents, but it might help at least with some. If anyone want's to play around with it further, feel free. I exceeded my free quota for now. 😅
@betatim @StefanieSenger
AI usage disclosure
I used AI assistance for:
Any other comments?