Research IT

lines of code

Free Access to GitHub Co-Pilot

We have had a number of people ask us about access to GitHub Co-Pilot in recent months and now staff and students at the University can get free access to the tool through GitHub Education. If you aren’t sure what it is, how it can help you or what the risks of using it are, read on.


What is GitHub Co-Pilot?

GitHub Co-Pilot is an AI-driven tool that can help you write code faster by monitoring what you are writing and drawing on source code from across GitHub to predict what you might want to type next. It can be used directly from within Integrated Development Environments (IDE) such as Visual Studio, Eclipse, PyCharm and Visual Studio Code to provide real-time suggestions. You can also ask GitHub Co-Pilot directly to write code for you based on a prompt for what you need e.g. “Write me a unit test for this function”.

screenshot of code from Co-pilot
Co-Pilot code
Source: https://github.com/features/copilot

Word of Warning

It is vitally important, not least for code quality assurance and security, that when using code written by GitHub Co-Pilot that it is checked for accuracy and suitability. There is a lot of bad code on GitHub and quality of Co-Pilot output is only as good as what the model has been trained on. Suggesting code that violates best practices or just seems overly complicated is entirely possible, so be careful!

Overly complicated code from Co-Pilot
Overly complicated code from Co=Pilot
Source: https://www.reddit.com/r/ProgrammerHumor/comments/qzespv/thanks_github_copilot/

GitHub Enterprise and Co-Pilot for Business

The University has access to the “Enterprise” tier of GitHub through the GitHub Campus Program. However, we do not currently offer GitHub Co-Pilot through the UoM Enterprise. Co-Pilot for Business (the enterprise version) is not free at any tier. To enable it, we would need to follow the appropriate IT Services software acquisition process. The decision to not offer the feature at present will be regularly reviewed. In the meantime, a free tier of GitHub Co-Pilot can be accessed for free through personal accounts as detailed in this blog post.

Help with Co-Pilot

For help accessing co-pilot via GitHub Education or for help integrating it with your IDE, contact our Application Support Service via the Support Portal, their drop-in sessions or through the RSE Department mailbox.