Answer: The userPromptTransformed hook runs after the runtime adds generated context to a submitted prompt, but before the resulting content is persisted to session history or sent to the model. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/user-prompt-transformed-hook Revision: 1 Digest: sha256:45cdb8e95d72e196 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:28Z Last changed: 2026-11-13T03:28:28Z Last verified: 2026-11-20T13:08:53Z Next check: 2026-11-21T13:08:53Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of hook name | userPromptTransformed | [1] | 2026-11-20 timing | after the runtime adds generated context to a submitted prompt, but before the resulting content is persisted to session history or sent to the model | [1] | 2026-11-20 Sources: [1] GitHub. "Use hooks - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/hooks Role: primary. Accessed: 2026-11-20T13:08:53Z Quote: "The userPromptTransformed hook runs after the runtime adds generated context to a submitted prompt" (Supports: hook name) Quote: "runs after the runtime adds generated context to a submitted prompt, but before the resulting content is persisted to session history or sent to the model" (Supports: timing) Snapshot SHA-256: 131dd66560e7d332ef9117d742e8ee0360c7ad986710f2f3a3f5ba1369511806 (captured 2026-11-18T13:04:00Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:04:04Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:08:53Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:08:53Z Last attempt: 2026-11-20T13:08:53Z Notes and limitations: Extracted automatically from a single official source (section "User prompt transformed hook"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook-example How do I implement the GitHub Copilot user prompt transformed hook? https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook-io What input and output does the GitHub Copilot user prompt transformed hook receive and return? https://latestn.com/tool/github-copilot/agents-and-automation/what-are-agent-skills What are agent skills in GitHub Copilot and what can they do? https://latestn.com/tool/github-copilot/agents-and-automation/use-skills-cli How do I use skills in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-hook-best-practices What are the best practices for using the GitHub Copilot SDK user prompt submitted hook? https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-hook-signature What input and output does the GitHub Copilot SDK user prompt submitted hook receive and return? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:28:28Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I transform a user prompt with a hook in the GitHub Copilot SDK? Revision 1, last verified 2026-11-20T13:08:53Z. https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook (accessed 2026-11-21T10:02:39Z). @misc{LatestN_tool_github_copilot_agents_and_automation_user_prompt_transformed_hook_r1, title = {How do I transform a user prompt with a hook in the GitHub Copilot SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook}}, note = {Revision 1; digest sha256:45cdb8e95d72e196; last verified 2026-11-20T13:08:53Z; accessed 2026-11-21T10:02:39Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook