Learn GitHub Copilot as a Coding Agent: CLI and Cloud Agent
Learn GitHub Copilot as a coding agent in six days: Copilot CLI in your terminal, then the cloud agent on GitHub.
- GitHub Copilot
- 6 days
- beginner
- 6 lessons
- about 3 hours
Free and self-paced. Every lesson is open to everyone.
Start with lesson 1What you will do
For developers who use a terminal and GitHub but are new to agents. You install the CLI, write custom instructions, run Copilot from a script with fixed permissions, assign an issue to the cloud agent, review its pull request and add a hook that blocks a risky command. You build a small site for a made-up cheese shop. Copilot CLI is in every plan, including Copilot Free; the cloud agent and code review are not in Free.
How this course works
The course is free and you go at your own pace. Each lesson is short: a bit of reading and a few small tasks you do in the tool itself, so you learn by using it. Every lesson is open to everyone, no account needed. A free account saves your progress, so you can pick up where you left off on any device. What the account stores and how to get it removed is on the privacy page.
Syllabus
- Day 1, 30 minutes How to install GitHub Copilot CLI and build a first page Install Copilot CLI, sign in and let Copilot plan and build a small practice website in a new git repository.
- Day 2, 25 minutes How to write custom instructions GitHub Copilot follows Create a short .github/copilot-instructions.md with /init, check that Copilot loads it and test it with a real change.
- Day 3, 30 minutes How to run GitHub Copilot CLI from a script with fixed permissions Run Copilot CLI with one prompt and fixed tool permissions, see a denied command, and save the run as a weekly notes script.
- Day 4, 30 minutes How to assign an issue to the Copilot cloud agent and steer it Push the site to GitHub, write a well-scoped issue, assign it to Copilot and steer its session until it asks for your review.
- Day 5, 30 minutes How to review a Copilot pull request like a colleague's Review Copilot's pull request yourself, add Copilot code review as a second reader, have Copilot fix your comments and merge it.
- Day 6, 30 minutes How to add a GitHub Copilot hook that blocks a risky command Add a preToolUse hook that blocks recursive deletes, test it in Copilot CLI and commit it with a short team checklist.