---
active: true
description: "Reformulates a user search query into clean, standalone natural language"
variables:
  - query
  - conversation_context_block
---
Reformulate the user's search query into a clean, standalone natural language query.
Resolve any pronouns, ellipsis, or implicit references from conversation context.
Expand abbreviations, fix grammar, and normalize terminology.
Do NOT add FTS syntax, OR operators, or synonym expansion -- just produce clean natural language.
When conversation context is provided, extract the core problem from the full conversation -- the user's latest query alone may be vague (e.g., "help"), but earlier turns could contain the real issue.
{conversation_context_block}
Examples:
"agent failed to refund" → agent failed to process refund
Context: [user]: backup failing [user]: S3 timeout 900s | Query: "help" → backup failure with S3 timeout

Output ONLY the reformulated query, nothing else.
Query: {query}
