Repository navigation
Conversation
Ask for a maintainer's agreement, on Slack or in an issue, before a pull request is opened, and add a section on using AI tools. Add AGENTS.md so coding agents working for outside contributors follow the same policy, and a CLAUDE.md that imports it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
philrz
force-pushed
the
contributing-tweaks
branch
from
November 4, 2026 20:29
f32a78a to
8e33ffa
Compare
mattnibs
reviewed
Nov 4, 2026
| @@ -0,0 +1 @@ | |||
| @AGENTS.md | |||
Collaborator
There was a problem hiding this comment.
Idk maybe don't include this file so we are not ai vendor specific in this repo?
Contributor
Author
There was a problem hiding this comment.
@mattnibs: Good call. I did a little digging and confirmed this was indeed a bit "belt & suspenders", so I just pushed a commit to drop the CLAUDE.md.
Per the Claude Code changelog I've confirmed that in recent versions, in absence of CLAUDE.md, a well-behaved agent should react to the AGENTS.md just the same. Having it in there would have covered corner cases like users on old Claude releases but that seems an unlikely exposure, so happy to spare us one more file in the repo.
Claude Code reads AGENTS.md on its own when a project has no CLAUDE.md, so the import isn't needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's changing
CONTRIBUTING.md: asks contributors to start with a conversation on Slack, and to get a maintainer's agreement, on Slack or in an issue, before opening a pull request. It says why, and that pull requests that skip this step may be closed without review. A new section on AI tools asks contributors to disclose their use, understand their change, approve every post themselves, and not point an agent at our issue list. It also drops the paragraph inviting people to pick missing functionality and add an operator inruntime/sam, which invites the kind of pull request this discourages.AGENTS.md(new): instructions for AI coding agents. An agent whose user can't push to this repo (gh api repos/superdb/super --jq .permissions.push) is told not to open a pull request without a maintainer's prior agreement, not to pick issues from our list that don't affect its user, and not to post anything without the user's approval. A short "Working on the code" section applies to everyone's agents, ours included, e.g., no comments that restate the code, and short commit messages.Why
We keep getting unsolicited pull requests that look like an agent picked a recent issue from our list, often from accounts opening similar pull requests across many unrelated projects at once. Some are reasonable fixes, but writing the code is now the cheap part. The expensive part is review, and deciding whether a change fits the design, and an undiscussed pull request adds to that work. A written policy gives well-behaved agents a chance to steer their users away before opening a pull request. It also gives us something to link when we close one, instead of closing without comment.
Other projects have recently taken similar approaches, especially Sourcify (issues before pull requests, and an
AGENTS.mdthat checks push access), LLVM (a human in the loop, and "extractive" contributions), and Kubernetes (disclosure in the PR description).Closing comment
Once this merges, here's a comment we could use when closing a pull request under this policy (it could also be a GitHub saved reply):
Notes
This was drafted with Claude Code. I edited and reviewed it.