Unverified50% confidenceSolutionExact time
Defend against prompt injection with a sandwich structure: wrap user input in `<userMessage>` tags, and repeat the core rules at both the beginning and the end.
1
Sources
50%
Confidence
Long-term
Relevance
10/17/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedStructured prompt isolation involves wrapping system instructions, user inputs, and externally retrieved content in separate marker blocks or role fields, and explicitly informing the model in the system prompt that only content within specific blocks carries instruction authority.62% similarVerifiedThe general principle for achieving cache hits is to keep the prefix of the request context as stable as possible, placing fixed content such as system prompts and tool definitions at the very front, with per-turn user input appended at the end.61% similarUnverifiedThe core design of prompt management tools is to separate prompt versions (immutable content snapshots) from environment labels (such as production, a pointer controlling which version an application loads).57% similarUnverifiedHook event types include PreToolUse, PostToolUse, and Notification; if a PreToolUse script returns exit code 2, the tool call is blocked.57% similarUnverifiedNotion通过提供一键导入、格式兼容、快捷键映射等功能争夺Evernote用户57% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1051773API
curl https://kongchang.com/api/v1/knowledge/claims/1051773MCP
get_claim(id=1051773)