Repository navigation
Add ai usage policy - #585
Merged
Merged
Conversation
Adopt mlx's AI usage policy (ml-explore/mlx#4331) with one change: AI-drafted prose is allowed as long as the contributor has read every word of it and stands by it. The PR template asks the author to confirm that for the description; commit messages and smaller summaries are on the honor system. Add AGENTS.md with the agent-facing rules, plus CLAUDE.md as a symlink to it. Disable blank issues so every issue path carries the acknowledgment.
Clarified policies to govern submitted code/prose rather than working processes. Added some practical tips for agents. Moved violation penalties to CONTRIBUTING.md
ctymoszek
force-pushed
the
add-ai-usage-policy
branch
from
August 27, 2026 16:56
f5f8723 to
a931aaa
Compare
davidkoski
approved these changes
Aug 27, 2026
davidkoski
left a comment
Member
There was a problem hiding this comment.
I think this looks good: we want to make sure that people filing issues and PRs understand what they are filing. We haven't had much issue with AI slop here and hopefully it stays that way.
djandrewgibbons
pushed a commit
to djandrewgibbons/mlx-swift-lm
that referenced
this pull request
Sep 1, 2026
AI-generated code is allowed, and so is AI-drafted prose. What is not allowed is submitting either one without the human contributor understanding it. You must be able to explain the code you submit, you must disclose how you used AI, and you must read and approve any prose you submit. Agents may not autonomously create PRs or other reviewer-facing text without a human in the loop. Do not make reviewers read prose that you, the human, did not bother to read. The policy itself has been added to CONTRIBUTING.md, addressed to human contributors, including possible penalties if it is not followed. AGENTS.md is intended to help agents produce a submission with a better chance of being accepted. It contains the same rules, plus helpful local conventions and CI mechanics such as where CI's swift-format pin lives, the DocC check, and the fact that `swift test` does not work here. CLAUDE.md is a symlink to it. The pull request template asks the author to confirm they read the description and that it matches the code, and adds an AI usage disclosure that all submitters are expected to fill in. The issue templates now include the same acknowledgment.
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.
This adds an AI usage policy, with three components: an updated contributing guide, agent instructions, and issue and PR templates.
This policy states that AI-generated code is allowed, and AI-drafted prose is allowed. What is disallowed is submitting either one without the human contributor understanding it.
You must be able to explain the code you submit, you must disclose how you used AI, and you must read (and ensure that you approve) any prose you submit. AI agents may not autonomously create PRs or other reviewer-facing text (bug reports, replies to reviewers) without a human in the loop.
Do not make reviewers read prose (PR descriptions, issue descriptions, PR comments) that you, the human, didn't bother to read.
AGENTS.mdis intended to help agents create a PR that has a better chance of being accepted, and includes some helpful information about running tests and formatting commands.Updates
CONTRIBUTING.mdgains an AI Usage Policy section — the policy itself,addressed to human contributors, including what can happen when it is not followed.
AGENTS.md, withCLAUDE.mdas a symlink to it, gives coding agents the samerules plus the local conventions and CI mechanics they need to produce
a complete submission: where CI's swift-format pin lives, the DocC check, the
fact that
swift testdoes not work here, and where the API documentationlives.
and that it matches the code, and leaves a line for an AI usage disclosure. All submitters are expected to fill in this disclosure.
every path to create an issue will include this acknowledgement (this required the creation of an Other
template to allow feature requests, questions, etc.).
Checklist
Put an
xin the boxes that apply.pre-commit run --all-filesto format my code / installed pre-commit prior to committing changesAI usage
accurately describes the code changes.