A beginner's guide to Copilot CLI slash commands
GitHub walks beginners through GitHub Copilot CLI slash commands for controlling a terminal AI agent, including switching models (/model), checking token usage (/context), and resuming previous sessions (/resume).
A beginner's guide to Copilot CLI slash commands
GitHub Copilot CLI includes slash commands that help you control how the terminal AI agent behaves during a session.
What this episode covers
This episode focuses on three slash commands you can use while working with Copilot CLI:
- Switch models with
/model- Change which model the terminal agent uses.
- Check token usage with
/context- Inspect context/token usage for the current session.
- Resume past sessions with
/resume- Continue a previous Copilot CLI session.
Related links
- GitHub Copilot CLI for Beginners repo: https://github.com/github/copilot-cli-for-beginners?utm_source=youtube-cli-beginners-series-episode3-repo-cta&utm_medium=social&utm_campaign=copilot-cli-ga-phase-two-2026
GitHub channels (from the description)
- YouTube: https://gh.io/subgithub
- Blog: https://github.blog
- X: https://twitter.com/github
- LinkedIn: https://linkedin.com/company/github
- Insider newsletter: https://resources.github.com/newsletter/
- Instagram: https://www.instagram.com/github
- TikTok: https://www.tiktok.com/@github
About GitHub (from the description)
GitHub describes itself as a platform where developers create, share, and ship code: https://github.com