Uploaded April 2026 | Updated September 2026, 2 weeks ago
Hooks are one of the most powerful tools in the GitHub Copilot CLI, but they can be confusing at first. In this video, we break down the entire agent lifecycle to show you exactly how and when hooks fire. You will learn about events like session start, pre tool use, and user prompt submitted. Watch to see how you can use these events to control tool calls and customize your workflow.
#GitHubCopilot #CopilotCLI #GitHub
Using Hooks with GitHub Copilot CLI: docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/use-hooks?utm_source=youtube-burke-cli-hooks-demo-cta&utm_medium=social&utm_campaign=dev-pod-copilot-cli-2026
— CHAPTERS —
00:00 Why hooks can be confusing
00:23 Understanding the agent lifecycle
01:19 How the agent loop works
02:04 Exploring session start and prompt events
03:18 Pre and post tool use hooks
04:15 Blocking versus non-blocking hooks
Stay up-to-date on all things GitHub by connecting with us:
YouTube: gh.io/subgithub
Blog: https://github.blog
X: twitter.com/github
LinkedIn: linkedin.com/company/github
Insider newsletter: resources.github.com/newsletter
Instagram: instagram.com/github
TikTok: tiktok.com/@github
About GitHub
It’s where over 180 million developers create, share, and ship the best code possible. It’s a place for anyone, from anywhere, to build anything—it’s where the world builds software. github.com
Hooks are one of the most powerful tools in the GitHub Copilot CLI, but they can be confusing at first. In this video, we break down the entire agent lifecycle to show you exactly how and when hooks fire. You will learn about events like session start, pre tool use, and user prompt submitted. Watch to see how you can use these events to control tool calls and customize your workflow.
#GitHubCopilot #CopilotCLI #GitHub
Using Hooks with GitHub Copilot CLI: docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/use-hooks?utm_source=youtube-burke-cli-hooks-demo-cta&utm_medium=social&utm_campaign=dev-pod-copilot-cli-2026
— CHAPTERS —
00:00 Why hooks can be confusing
00:23 Understanding the agent lifecycle
01:19 How the agent loop works
02:04 Exploring session start and prompt events
03:18 Pre and post tool use hooks
04:15 Blocking versus non-blocking hooks
Stay up-to-date on all things GitHub by connecting with us:
YouTube: gh.io/subgithub
Blog: https://github.blog
X: twitter.com/github
LinkedIn: linkedin.com/company/github
Insider newsletter: resources.github.com/newsletter
Instagram: instagram.com/github
TikTok: tiktok.com/@github
About GitHub
It’s where over 180 million developers create, share, and ship the best code possible. It’s a place for anyone, from anywhere, to build anything—it’s where the world builds software. github.com










