{"version":"2.1.311","anchor":"hook-event-flag-for-userpromptsubmit-start-and-end","canonical_anchor":"hook-event-flag-for-userpromptsubmit-start-and-end","heading":"Setting for separate start and end prompt-submission hooks, off by default","tier":"use","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311\/e\/hook-event-flag-for-userpromptsubmit-start-and-end","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311","markdown":"### Setting for separate start and end prompt-submission hooks, off by default\n\nA hook setting, `userPromptSubmitStartAndEndEnabled`, now exists and defaults to false\n\n**Unclear.** Nothing shows how this setting is switched on or what events it produces.\n\n**What**\n\nHooks are your own scripts that Claude Code runs at set moments. `UserPromptSubmit` is the hook that runs when a prompt is submitted. Claude Code's hook settings gained a field, `userPromptSubmitStartAndEndEnabled`, which defaults to false. Its name suggests separate start and end events for `UserPromptSubmit`.\n\n**Why**\n\nIt points to prompt-submission hooks that could run at the start and the end of handling a prompt.\n\n- Area: Hooks\n- Names: `userPromptSubmitStartAndEndEnabled`, `UserPromptSubmit`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}