|
| 1 | +# Policy on usage of Artifical Intelligence and other tools |
| 2 | + |
| 3 | +## Background |
| 4 | + |
| 5 | +From time to time I do get pull requests where the author has done |
| 6 | +little else than running some tool on the code and submitting it as a |
| 7 | +pull request. Those pull requests may have value to the project, but |
| 8 | +it's dishonest to not be transparent about it; teaching me how to run |
| 9 | +the tool and integrating it into the CI workflow may have a bigger |
| 10 | +value than the changes provided by the tool. Recently I've also |
| 11 | +started receiving pull requests with code changes generated by AI (and |
| 12 | +I've seen people posting screenshots of simple questions and answers |
| 13 | +from ChatGPT in forum discussions, without contributing anything else). |
| 14 | + |
| 15 | +As of 2025-11, I've spent some time testing Claude. I'm actually |
| 16 | +positively surprised, it's doing a much better job than what I had |
| 17 | +expected. The AI may do things faster, smarter and better than a good |
| 18 | +coder. Sometimes. Other times it may spend a lot of "tokens" and a |
| 19 | +long time coming up with sub-optimal solutions, or even solutions that |
| 20 | +doesn't work at all. Perhaps at some time in the near future the AI |
| 21 | +will do the developer profession obsoleted - but as of 2025-11, my |
| 22 | +experiences is that the AI performs best when being "supervised" and |
| 23 | +"guided" by a good coder knowing the project. |
| 24 | + |
| 25 | +## The rules |
| 26 | + |
| 27 | +* Do **respect the maintainers time**. If/when the maintainer gets |
| 28 | + overwhelmed by pull requests of questionable quality or pull |
| 29 | + requests that do not pull the project in the right direction, then |
| 30 | + it will be needed to add more requirements to the Contributors |
| 31 | + Guidelines. |
| 32 | + |
| 33 | +* **YOU should add value to the project**. If your contribution |
| 34 | + consists of nothing else than using a tool on the code and |
| 35 | + submitting the resulting code, then the value is coming from the |
| 36 | + tool and not from you. I could probably have used the tool myself. |
| 37 | + Ok, so you may have done some research, found the tool, installed it |
| 38 | + locally, maybe paid money for a subscription, for sure there is some |
| 39 | + value in that - but if you end up as a messenger copying my comments |
| 40 | + to some AI tools and copying the answer back again - then you're not |
| 41 | + delivering value anymore, then it would be better if the AI tool |
| 42 | + itself would be delivering the pull request and responding to my |
| 43 | + comments. |
| 44 | + |
| 45 | +* **YOU should look through and understand the changes**. The change |
| 46 | + goes into the project attributed to your name (or at least github |
| 47 | + handle), so I do expect you to at least understand the change you're |
| 48 | + proposing. |
| 49 | + |
| 50 | +* **Transparency** is important. Ok, so a lot of tools may have been |
| 51 | + used while writing the pull request, I don't need to know all the |
| 52 | + details, but if a significant part of the changes was generated by |
| 53 | + some tool or by some AI, then that should be informed about. |
| 54 | + I.e. if your job was to run `ruff` on the code and found some |
| 55 | + imporant things that should be changed, then don't write "I found |
| 56 | + this issue and here is a fix", but rather "I ran the ruff tool on |
| 57 | + the code, found this issue, and here is the fix". If some AI was |
| 58 | + used for generating significant parts of the code changs, then it |
| 59 | + should be informed about both in the pull request itself and in the |
| 60 | + git commit message. The most common way to do this is to add |
| 61 | + "Assisted-by: (name of AI-tool)" at the end of the message. Claude |
| 62 | + seems to sign off with "Co-Authored-By: Claude |
| 63 | + <noreply@anthropic.com>" when it's doing commits, that's also OK. |
| 64 | + |
| 65 | +* **YOU** should be ready to follow up and respond to feedback and |
| 66 | + questions on the contribution. If all you do is to relay it to the |
| 67 | + AI and relaying the AI thoughts back to the pull request, then |
| 68 | + you're not adding value to the project and you're not transparent |
| 69 | + and honest. You should at least do a quick QA on the AI-answer and |
| 70 | + acknowledge that it was generated by the AI. |
| 71 | + |
| 72 | +* The Contributors Guidelines aren't strongly enforced on this project |
| 73 | + as of 2025-12, and I can hardly see cases where the AI would break |
| 74 | + the Code of Conduct, but at the end of the day **YOU** should take |
| 75 | + care to ensure the contribution follows those guidelines. |
0 commit comments