<!-- AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY -->
<!-- Edit source frontmatter, then run 'erk docs sync' to regenerate. -->

# Hooks Documentation

- **[erk.md](erk.md)** — working with erk-specific hooks, understanding context-aware reminders, modifying project hooks, creating project-scoped hooks, using logged_hook or hook_command decorators, creating hooks that only fire in managed projects
- **[hooks.md](hooks.md)** — creating hooks, modifying hooks, understanding hook lifecycle
- **[pretooluse-implementation.md](pretooluse-implementation.md)** — creating or modifying a PreToolUse hook, choosing between blocking (exit 2) and informational (exit 0) hooks, understanding capability-gated context injection
- **[prompt-hooks.md](prompt-hooks.md)** — creating prompt hooks, customizing post-init setup, customizing CI workflow, understanding prompt hooks vs claude hooks
- **[reminder-consolidation.md](reminder-consolidation.md)** — adding a new coding standards reminder to any hook, skill, or AGENTS.md section, debugging why a reminder appears multiple times in agent context, deciding which tier (ambient, per-prompt, just-in-time) a new reminder belongs in, removing or reducing reminder duplication across tiers
- **[replan-context-reminders.md](replan-context-reminders.md)** — writing hook output that becomes a system reminder, composing reminder text for workflow checkpoints, debugging why agents ignore or partially follow a reminder
