Collaboration policy template for programming courses
Most disputes over copied code are really disputes over a vague rule. "Do your own work" does not tell a student whether they may debug a friend's program, ask ChatGPT what an error means, or push their solution to GitHub. Below is a policy you can copy into your syllabus, with the choices you need to make marked.
Free to copy and adapt. No account needed to use the template.
Why "do your own work" fails
Programming is collaborative in practice, and students know it. They are told to use Stack Overflow, read documentation and work in pairs in the lab, and then told the assignment is individual. Without specifics they draw the line wherever it is convenient, and when a match turns up they can say, honestly, that nobody told them.
A policy that works does three things. It names concrete actions on each side of the line. It covers the cases that did not exist a few years ago, which means AI assistants and public repositories. And it says in advance how work is checked and what happens next, so the process is not a surprise.
The template
Highlighted text is for you to fill in or choose. Everything else can be used as it is.
The rule in one sentence
You may discuss ideas with anyone, but the code you submit must be written by you, and you must be able to explain every line of it.
What you may do
- Discuss the assignment, the concepts behind it and general approaches with classmates.
- Ask course staff for help with anything, including your own code.
- Use the course materials, the official language documentation and [list any other permitted references].
- Help a classmate understand an error message or a concept, without looking at or editing their solution.
What you may not do
- Look at, copy or adapt another student's code for the assignment, from this term or an earlier one.
- Show, send or give your code to another student, including after the deadline.
- Submit code taken from a website, a repository or a paid service as your own.
- Write code together, or take notes, screenshots or photos away from a discussion with a classmate.
- Have anyone else write or fix code for you.
Using code you did not write
Short snippets from documentation or a public reference are allowed if you cite the source in a comment directly above the code. Cited code is not plagiarism, but it earns no credit for the part of the assignment it solves.
Keeping your work private
Do not post your solutions where others can find them, during or after the course. Public repositories containing course solutions must be made private. You are responsible for copies of your work that others obtain because you left it accessible.
How submissions are checked
All submissions in this course are compared with each other, with submissions from earlier terms and with publicly available code, and are checked for AI-generated code, using automated similarity detection software. A match is not a finding of misconduct. It is reviewed by course staff before anything else happens.
If your work is flagged
You will be told what matched and shown the evidence, and asked to explain your code and how you wrote it, [in person / in writing]. If the explanation does not account for the match, the case is referred under [name of your institution's academic conduct policy], which sets the outcome.
If you are unsure
Ask before you act. A question to course staff is never held against you.
Choosing an AI rule
There is no single right answer here, only a right answer for what your course teaches. Pick one of the three, and add it to the policy above. Whichever you choose, name the tools: students do not always count editor autocomplete as "AI".
You may not use AI tools to produce any part of your submission. This includes chat assistants such as ChatGPT, Claude and Gemini, and coding assistants such as GitHub Copilot and Cursor, including their autocomplete features. Turn these off in your editor for this course.
Fits: introductory courses, where writing the code is the skill being assessed.
You may use AI tools to explain a concept, an error message or code you have already written. You may not ask them to write, complete or rewrite code for the assignment, and you may not submit code they produced. If you used an AI tool in a permitted way, say so in a comment at the top of your submission.
Fits: most courses. It matches how students are allowed to use a tutor.
You may use AI tools to help write your code. You must state at the top of your submission which tools you used and for which parts. You remain responsible for everything you submit: you must be able to explain and modify any line, and code you cannot explain will be treated as not your own work.
Fits: upper-level and project courses, where the assessment is the design and the result. Pair it with an oral check or a live modification task.
Detection matters for A and B, since a rule nobody can check is a rule only honest students follow. AI detection gives a likelihood with reasons, not a match to a source, so the policy should treat a flag as a prompt for the conversation described above. See how AI code detection works and its limits.
Check that the policy is being followed
Classmates, past terms, the web and AI in one check, with the evidence for each match.
The grey areas students ask about
These are the questions that come up every term. Decide your answer now and add a line for any that apply.
| Situation | A common position |
|---|---|
| Debugging a friend's program | Explaining the error is fine. Reading their solution and fixing it is not. |
| Pair programming in the lab | Allowed only where the assignment says so, with both names on the submission. |
| Reusing your own code from an earlier course | Allowed with a comment saying where it came from. Expect it to match. |
| A tutor or study centre | They may explain. They may not write or dictate code. |
| Stack Overflow answers | Short snippets with a citation. Not a solution to the assignment itself. |
| Group projects | Sharing within the group is the point. Sharing between groups follows the individual rules. |
| Starter code and libraries you provide | Free to use, and it should be excluded from similarity results. |
When a match is found
A policy is only as good as the process behind it. The one in the template is deliberately short.
- Read the match yourself first. Discount starter code, short programs and textbook algorithms. See what a similarity score does and does not mean.
- Show the student the evidence. The matched lines side by side, not just a number.
- Ask them to explain and modify the code. This is the fairest test there is, and it clears honest students quickly.
- Refer it if the explanation does not hold. Keep the exported report. The outcome belongs to your institution's process, not to the checker.
When two students match each other, talk to both, separately. The comparison cannot tell you who wrote the code first, and the student who shared it may not know it was submitted.
Frequently asked questions
What should a collaboration policy for a programming course include?
Five things: what students may share and what they may not, the rule on AI tools, the rule on publishing solutions, a statement that submissions are checked, and what happens when a match is found. Each one should be specific enough that a student can tell which side of the line an action falls on.
Should I ban AI tools like ChatGPT and Copilot?
That depends on what the course is teaching. An introductory course that exists to build the skill of writing code has a good reason to ban them. An upper-level course may reasonably allow them with disclosure. What matters most is that the rule is written down and says which tools and which uses it covers.
Do I have to tell students their code is checked for plagiarism?
Check your institution's rules, but it is good practice either way. Saying so in the syllabus is fair to students, and it deters more copying than detection catches.
Can students discuss assignments at all?
Most policies allow discussing ideas and forbid sharing code. A common working rule: talk about the problem as much as you like, but do not take away anything written, and write your code alone afterwards.
What about students who post their solutions on GitHub?
Say so explicitly. Many students post coursework as a portfolio without realising it becomes next term's source. A clause asking them to keep course repositories private avoids the argument later.
Is this template legal advice?
No. It is a starting point written by people who build a code checker. Adapt it to your course and have it agree with your institution's academic conduct policy, which takes precedence.
A policy needs a way to check it
Every submission against classmates, past terms, the web and AI, with the lines side by side.
Get started Every plan includes Deep Scans.