# Using a Coding Assistant on a Programming Assignment: What to Disclose

Coding assistants are now easy to turn on: a tab in the editor, a chat that will "just write the function," a tool that explains an error and offers a patch. Some courses treat them as a permitted aid, like a more powerful autocomplete, if you document the help and can explain the program. Some treat them as unauthorized collaboration. The first job is to know which rule you are under. The second is to avoid submitting code you cannot defend.

This is a different problem from copying starter code or a snippet from a forum. Those are existing sources, and they still need the credit your course requires. A coding assistant is a tool that produces new text in response to your prompt, often in a mix of your work and its suggestions.

**Read the course rule before you accept a suggestion**

Look at the syllabus, the assignment page, and any department policy on AI or collaboration. You are looking for specific answers: whether assistants are banned, allowed, or allowed only for certain tasks; whether a comment, a README, or a log is required; and whether you may use them to debug, to generate tests, or to write the core solution.

If the policy is unclear, ask the instructor in writing before you rely on the tool. Do not assume that because the editor offers the feature, the course has approved it. Do not assume that a rule from a software-engineering elective applies to an introductory exam.

**If the tool is forbidden, turn it off**

Disable the assistant for that assignment, including in the IDE, in the browser, and in any plugin that comments or completes code. Using it "only for comments" or "only for one helper function" is still using it, unless the instructor has drawn that line. If you used it by habit before you saw the rule, stop and ask how to proceed rather than pasting the generated code into a new file by hand.

**If the tool is allowed, you still have to understand the program**

Accepting a block you cannot explain is the most common failure. If you were asked, in office hours or in an oral check, to change an input, identify a bug, or rewrite a function, could you? If the answer is no, the assignment is not done, even if the tests pass.

A practical workflow is to use the assistant in small steps, if you use it at all: ask about an error, read the suggestion, then write the change yourself. Keep a short log of prompts and accepted blocks, because that is often exactly what a disclosure statement needs. Do not paste a complete solution from a chat and then add comments as a disguise.

**Disclose the way the course asks**

If you are required to include a comment, a README section, or a form, be specific. Name the tool, say which files or functions it helped with, and say what you changed afterward. "I used AI a little" is not a useful disclosure. "I used [tool] to suggest the regex in `parse.py` and to explain an off-by-one error in `main.py`; I rewrote both after reviewing them" is.

If the course does not ask for a written disclosure but does require that all help be acknowledged, a short note is still a good idea.

**Tests, comments, and generated data are part of the work**

A hidden test file, a set of made-up comments, or a data loader you did not write can hide the same problem as a generated solution. If those files are submitted, they are part of what you are signing. Check them with the same standard.

ZeroTell's [academic-integrity guidance](https://zerotell.com/academic-integrity) is a short public reference for the habit that programming courses are after here as well: follow the stated rule, and be able to stand behind the work that carries your name.

A passing test suite is not the same thing as a program you understand. Aim for both, and say how the assistant was involved if it was involved at all.

*Published by the ZeroTell team. This article was drafted with AI assistance and reviewed by the author for accuracy against ZeroTell's public academic-integrity guidance.*
