Agent support · Hooks & Lifecycle

Validate prompts before submission

Intercept user prompts before they reach the model — block, rewrite, redact, annotate, or inject context

Baseline Limited availability Partial in OpenCode. Based on web.dev's Baseline
Tool-Specific Hooks Hooks & Lifecycle
Supported
Partial
No
Unknown
Not released
Claude Code Current · Oct 2026
Codex Current · Oct 2026
GitHub Copilot Current · Oct 2026
Cursor Current · Oct 2026
OpenCode Current · Oct 2026
1.0.54 - 2.1.311
0.116.0 - 0.164.0
0.0.374 - 1.0.103
2.4 - 3.27
0.3.114 - 1.19.4
0.2.31 - 1.0.53
0.2.0 - 0.115.0
—
0.45 - 2.0
0.1.30 - 0.3.102

Supported by all 5 agents.

HoverTap any cell for version details.

Agent event mapping

  • claude-code UserPromptSubmit
  • codex UserPromptSubmit
  • copilot userPromptSubmitted
  • cursor beforeSubmitPrompt
  • opencode chat.message

Sub-capabilities

  • Block prompts that violate policies (PII, secrets, off-topic)
  • Rewrite or augment prompts with additional context
  • Claude Code: receives CWD, transcript ID, prompt text; return value can mutate or block
  • Cursor: returns continue boolean + modified user_message