Reference
This page documents a Claude Code hook that runs automatically during sessions.
auto-generated from kli/hooks/task-complete-reflect.lisp

Task Complete Reflect

PostToolUse hook for auto-reflection nudge

Event: PostToolUse
Matches: mcp__task__task_complete

Fires after mcp__task__task_complete. When the completed task has sufficient observations and no prior reflection, injects a system reminder nudging the agent to run /kli:reflect. This breaks the cold-start spiral where playbooks stay sparse because reflection requires explicit human invocation.

Handler

task-complete-reflect-handler — PostToolUse handler for task_complete: nudge reflection when warranted. Returns post-tool-context with nudge, or empty-response when silent.