By Jake Levirne and Antaripa Saha
AI coding tools are now part of everyday development. They help you explore new codebases, draft solutions quickly, and learn unfamiliar patterns. For maintainers, that same convenience can mean more review work, especially when AI-assisted pull requests arrive without context.
This guide offers practical norms for contributors and maintainers so AI assistance raises project quality instead of increasing review burden. You will learn when and how to disclose AI use, how to review your own AI-assisted code, and how maintainers can set clear expectations in project docs.
This guide is for contributors and maintainers with basic familiarity with GitHub pull requests and review workflows.
Put this near the top of your pull request description. Be specific about scope.
Tip: If you used AI for comments or docs, say that too. Clarity builds trust and speeds review.
Export your chat from Cursor, Claude Code, or your IDE assistant and link it in the pull request. SpecStory can capture session context so reviewers see how you arrived at the solution. That context shortens review cycles because maintainers can follow your reasoning.
AI is not a substitute for your judgment.
### AI Assistance Disclosure
- Tools: <Cursor (Claude), ChatGPT, Copilot>
- Scope: <generated initial algorithm; I rewrote IO layer; wrote all tests manually>
- Context: <link to exported chat from SpecStory or your IDE>
- Review: I validated logic, added edge-case tests, and confirmed style conventions.
Add an AI Assistance section: require disclosure, explain why it matters, and include examples of good PR blurbs (from Minimal → Best). Consider linking to a PR template checkbox: “Have you disclosed AI assistance and provided links to your process if applicable?”
Mitchell Hashimoto’s Ghostty project is a useful reference for normalizing disclosure as a courtesy to reviewers and for calibrating review depth based on the contributor’s explanation.
Suggested snippet:
## AI Assistance
If you used AI tools for this contribution, disclose them in your pull request and briefly describe scope
(docs only, debugging, partial code generation, or similar). Link process notes or chat exports when available.
Trivial autocomplete does not require disclosure.
Treat disclosure as routine, not shameful. Encourage contributors to share how they used AI, highlight great examples in release notes, and maintain a short “Responsible AI in this repo” page with preferred prompting tips and domain context links (so assistants perform better).
Disclosure should be required when AI meaningfully shaped the pull request, including:
Disclosure is not required for:
Note: When in doubt, disclose. It costs little and prevents back and forth later.
Treat AI like a junior developer. Let it propose ideas, but you supervise, simplify, and verify. Remember there is a human maintainer on the other side of your pull request with limited time. Projects can harness AI-assisted contributions by sharing prompting tips that work well, offering short project overviews, and highlighting great pull requests as models for others.
AI is not replacing open source contributors. It is giving them new ways to participate. Sustainable collaboration depends on transparency, respect, and careful review. Tools like SpecStory preserve not only code, but also the reasoning behind it, which makes reviews faster and more instructive for everyone.
Use AI as an assistant, not a shortcut. Be clear about when and how you used it, check the quality yourself, and remember there are people on the other side of your pull request. That is how you help projects thrive.
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
Product-obsessed founder who’s built products and teams at Docker, DigitalOcean, IBM, and multiple high-growth startups. Led zero-to-one bets, scaled products to millions of developers, and now on a mission to reinvent how software gets built.
Machine Learning Engineer with 4 years of experience. Passionate about retrieval, search, and memory. Now building the intent layer at Specstory to reinvent how teams capture, reuse, and evolve knowledge alongside code.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.