# Dart: AI-friendly

> Dart permits AI-assisted contributions, but contributors must review all generated code, ensure it meets standards and compiles and passes at least their added tests, and understand and be able to discuss it. AI-generated text in change descriptions and review discussions must be verified for accuracy; reviewers are advised to consider closing changes with listed AI-related red flags.

- What it is: Client-optimized language for apps on any platform. (Programming language)
- Homepage: https://dart.dev/
- Repository: https://github.com/dart-lang/sdk
- Overall stance: AI-friendly (Friendly). AI-assisted contributions are welcome under the same rules as any other contribution.
- Last classified: 2026-10-25 (AI, high confidence)
- Policy last changed: 2026-10-25
- Web page: https://areweaifriendly.com/projects/dart/

## Policy by area

- **Code contributions**: AI-friendly (Contributor takes full responsibility; A human must review the output)
- **Issues & bug reports**: No AI policy
- **AI-written text**: AI-friendly (Contributor takes full responsibility; A human must review the output)

## What is allowed and what is not

### Code contributions

- **Autocomplete**: Allowed with conditions. Code inserted through AI completion is subject to the same requirements as other AI-generated code: personal review, standards and compile/test checks, and sufficient understanding to discuss it. Conditions: Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.; Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback..
  > "PRs prepared using AI tools must follow these requirements:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must review all AI-generated code before uploading it for review, and before requesting
 re-review of any updates to the uploaded change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You are responsible for ensuring that code you submit meets coding standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Unmodified AI output generally does _not_ meet those standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must ensure that uploaded code compiles and passes at least the tests you have yourself
 added as part of the change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must understand and be able to discuss the code you are uploading for review." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Non-trivial changes require discussion and iteration during review. If you do not understand the
 code, you cannot meaningfully respond to review feedback." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Small fixes**: Allowed with conditions. Small AI-written changes may be submitted only after full review and the required checks, and the contributor must understand and be able to discuss the code. Conditions: Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.; Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback..
  > "PRs prepared using AI tools must follow these requirements:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must review all AI-generated code before uploading it for review, and before requesting
 re-review of any updates to the uploaded change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You are responsible for ensuring that code you submit meets coding standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Unmodified AI output generally does _not_ meet those standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must ensure that uploaded code compiles and passes at least the tests you have yourself
 added as part of the change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must understand and be able to discuss the code you are uploading for review." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Non-trivial changes require discussion and iteration during review. If you do not understand the
 code, you cannot meaningfully respond to review feedback." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Large or generated changes**: Allowed with conditions. Substantial AI-written code is subject to the same review, verification and understanding requirements, and submitting hundreds of lines the contributor does not understand is explicitly identified as a problem. Conditions: Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.; Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback..
  > "PRs prepared using AI tools must follow these requirements:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must review all AI-generated code before uploading it for review, and before requesting
 re-review of any updates to the uploaded change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You are responsible for ensuring that code you submit meets coding standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Unmodified AI output generally does _not_ meet those standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must ensure that uploaded code compiles and passes at least the tests you have yourself
 added as part of the change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must understand and be able to discuss the code you are uploading for review." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Non-trivial changes require discussion and iteration during review. If you do not understand the
 code, you cannot meaningfully respond to review feedback." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Submitting a change containing hundreds of lines of code that the contributor doesn't understand is
 always a problem." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Mechanical changes**: Allowed with conditions. AI-generated mechanical or repetitive code edits must be reviewed and verified before upload and re-review, and the contributor must understand and be able to discuss them. Conditions: Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.; Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback..
  > "PRs prepared using AI tools must follow these requirements:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must review all AI-generated code before uploading it for review, and before requesting
 re-review of any updates to the uploaded change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You are responsible for ensuring that code you submit meets coding standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Unmodified AI output generally does _not_ meet those standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must ensure that uploaded code compiles and passes at least the tests you have yourself
 added as part of the change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must understand and be able to discuss the code you are uploading for review." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Non-trivial changes require discussion and iteration during review. If you do not understand the
 code, you cannot meaningfully respond to review feedback." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Tests**: Allowed with conditions. AI-written tests must be personally reviewed, the uploaded code must compile and pass at least the contributor's added tests, and the contributor must understand and be able to discuss the change. Conditions: Review AI output first: Review AI-written test code like all other AI-generated code, and ensure the uploaded code compiles and passes at least the tests added in the change.; Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback..
  > "PRs prepared using AI tools must follow these requirements:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must review all AI-generated code before uploading it for review, and before requesting
 re-review of any updates to the uploaded change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You are responsible for ensuring that code you submit meets coding standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Unmodified AI output generally does _not_ meet those standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must ensure that uploaded code compiles and passes at least the tests you have yourself
 added as part of the change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must understand and be able to discuss the code you are uploading for review." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Non-trivial changes require discussion and iteration during review. If you do not understand the
 code, you cannot meaningfully respond to review feedback." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Build and CI**: Allowed with conditions. The blanket rules for all AI-generated code also cover AI-written build, CI and other infrastructure code, requiring review, verification and personal understanding before submission. Conditions: Review AI output first: Review all AI-generated code before upload and before requesting re-review; ensure coding standards, compilation, and passage of at least the tests you added.; Take full responsibility: Understand and be able to discuss the uploaded code well enough to respond meaningfully to review feedback..
  > "PRs prepared using AI tools must follow these requirements:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must review all AI-generated code before uploading it for review, and before requesting
 re-review of any updates to the uploaded change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You are responsible for ensuring that code you submit meets coding standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Unmodified AI output generally does _not_ meet those standards." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must ensure that uploaded code compiles and passes at least the tests you have yourself
 added as part of the change." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must understand and be able to discuss the code you are uploading for review." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Non-trivial changes require discussion and iteration during review. If you do not understand the
 code, you cannot meaningfully respond to review feedback." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Other**: Discouraged. Reviewers are advised to be selective and consider immediately closing changes with these red flags: a description wholly replacing the template with AI output, a description that does not match the change, or irrelevant AI-generated files such as agent planning .md files.
  > "Because the Dart team’s time is limited, and the capacity for people outside the team to generate
plausible-looking code is unlimited, be mindful as a reviewer about what code you choose to review." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Consider immediately closing changes that have any of the following red flags:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "The change description has entirely replaced our template with AI-generated output." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "The change description does not match the changes." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "The change contains irrelevant AI-generated files, such as agent planning .md files." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Other**: Not allowed. Failing to review the change and description enough to catch a mismatch, or to notice and remove irrelevant AI-generated files, is explicitly treated as not following the AI contribution policy.
  > "The change description does not match the changes." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "If the contributor did not review both the changes and the description enough to notice this,
 they have not followed the AI contribution policy." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "The change contains irrelevant AI-generated files, such as agent planning .md files." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "If the contributor did not review the changes enough to notice and remove these files, they
 have not followed the AI contribution policy." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Other**: Allowed with conditions. Whenever reviewers close a change, they must explain why and provide next steps.
  > "As always when closing a change, explain why and provide next steps." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)

### Issues & bug reports

Not covered by the policy.

### AI-written text

- **Pull request descriptions**: Allowed with conditions. AI-generated change-description text must be verified for accuracy and match the changes, while entirely replacing the project template with AI output is a red flag that reviewers are advised to consider closing. Conditions: Review AI output first: Verify the accuracy of AI-generated text in the change description and review the description against the actual changes..
  > "PRs prepared using AI tools must follow these requirements:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must verify the accuracy of any AI-generated text you include in the change description or
 review discussion comments." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "If an AI provides you incorrect information, it is just hallucinating; if you choose to paste
 that text into GitHub, you are misrepresenting your change to your reviewer." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Consider immediately closing changes that have any of the following red flags:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "The change description has entirely replaced our template with AI-generated output." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "The change description does not match the changes." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "If the contributor did not review both the changes and the description enough to notice this,
 they have not followed the AI contribution policy." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Comments**: Allowed with conditions. AI-generated text in review discussion comments must be checked for accuracy, and pasting incorrect AI output is treated as misrepresenting the change to its reviewer. Conditions: Review AI output first: Verify the accuracy of any AI-generated text included in review discussion comments..
  > "PRs prepared using AI tools must follow these requirements:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must verify the accuracy of any AI-generated text you include in the change description or
 review discussion comments." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "If an AI provides you incorrect information, it is just hallucinating; if you choose to paste
 that text into GitHub, you are misrepresenting your change to your reviewer." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
- **Answering reviewers**: Allowed with conditions. AI assistance with review responses requires accuracy verification and personal understanding; uncritically reposting an agent's output is discouraged, and claiming feedback is addressed merely because AI says so is prohibited. Conditions: Review AI output first: Verify the accuracy of AI-generated text used in review discussion comments.; Take full responsibility: Understand and discuss the code, and personally ensure review feedback has actually been addressed rather than trusting an AI statement that it has..
  > "PRs prepared using AI tools must follow these requirements:" (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must understand and be able to discuss the code you are uploading for review." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "Non-trivial changes require discussion and iteration during review. If you do not understand the
 code, you cannot meaningfully respond to review feedback." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "In our experience, simply feeding review feedback into an AI agent and uncritically reposting
 its output will not lead to a constructive review." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "You must verify the accuracy of any AI-generated text you include in the change description or
 review discussion comments." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "If an AI provides you incorrect information, it is just hallucinating; if you choose to paste
 that text into GitHub, you are misrepresenting your change to your reviewer." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)
  > "In particular, do not tell a reviewer that you have addressed their feedback just because
 AI output says so. It is your responsibility to make sure that review feedback has actually
 been addressed." (https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md)

### General

- Discouraged: Reviewers are told that reviewing apparent unfiltered or minimally filtered AI code or comment responses is not a good use of time unless they would both fix the issue themselves and use such a high-latency agent, even after multiple review rounds.

## Sources

- [Contributing feedback](https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md), fetched 2026-10-25
