Beginner bites

First Bite

One beginner idea per Snack Pack, in plain English.

The small idea behind that week’s snacks, with a Try this you can do in a minute.

First Bite · Snack Pack #1 · Oct 16, 2026 · 🌶️Mild: nice to know

What’s a hook?

Hooks are house rules your agent can’t skip. A hook is a small command that Copilot cloud agent and Copilot CLI run at set moments: when a session starts, when you enter a prompt, or right before it uses a tool.

The before-a-tool one (preToolUse) can approve or deny that step (GitHub Docs: About hooks). Try this: peek in your repo for a .github/hooks/ folder, then read our Copilot CLI hooks Daily to see why an “ask” no longer freezes Autopilot. New here? Start here.

Source: GitHub Docs: About hooks