Articles: automation

Copilot hooks: config files, events and examples
Copilot hooks run commands at agent events like preToolUse, from .github/hooks/*.json in the CLI and cloud agent.

Claude Code hooks: events, matchers, JSON and exit codes
Claude Code hooks run commands, HTTP calls or prompts at events like PreToolUse and Stop, set in .claude/settings.json.
