---
title: "UserPromptSubmit"
description: "Hooks triggered on UserPromptSubmit events (3 hooks)."
canonical: "https://orchestkit.dev/docs/reference/hooks/user-prompt-submit"
---

# UserPromptSubmit

Hooks triggered on UserPromptSubmit events (3 hooks).

# UserPromptSubmit Hooks

**3 hooks** registered for the `UserPromptSubmit` lifecycle event.

| Hook | Matcher | Behavior | Description |
|------|---------|----------|-------------|
| <span id="hook--prompt-unified-dispatcher"></span>`unified-dispatcher` | `*` | Injects | Routes UserPromptSubmit through one dispatcher: a once-per-session handoff injector plus every-turn silent analytics, with a single additionalContext output. |
| <span id="hook--prompt-thrash-detector"></span>`thrash-detector` | `*` | Fire-and-forget | Source: usage analytics, recurring edit→format→revert→re-edit and edit→test-fail→undo→re-edit loops that burn 10+ turns on the same file. Catches the "same-file repeatedly" signal early and suggests a different approach. |
| <span id="hook--lifecycle-webhook-forwarder"></span>`webhook-forwarder` | `*` | Fire-and-forget | Registered for every CC event type in hooks.json (async: true). Delegates to telemetry.emit() which fans out to pluggable sinks (JSONL local + HTTP remote). No-op when no sinks are active. |
