Unverified50% confidenceSolutionExact time
Defensive prompting uses redundant, repeatedly emphasized language to explicitly tell the model what it should not do, compensating for the model's limitations in tracking state across shots.
1
Sources
50%
Confidence
Long-term
Relevance
9/17/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedRelying on prompt constraints to prevent dangerous operations is inherently unreliable, because the model may be jailbroken, make misjudgments, or forget constraints during long conversations.72% similarUnverifiedThe core idea of defensive programming is to never assume that external inputs or dependent objects are in their expected state; implementations include null pointer checks, optional chaining operators, and default value assignments.71% similarUnverifiedPrompt-level guardrails (constraining agent behavior solely through system prompts) are inherently fragile, and a more reliable direction is to enforce controls at the tool-call level.70% similarUnverifiedPrompt级约束是建议性而非强制性的,大模型可能因上下文压力、目标导向或幻觉跳过确认步骤70% similarUnverifiedIn prompt engineering, positive framing is preferable to negative prohibition, because the model's attention is easily skewed by repeatedly mentioned concepts, making it more reliable to describe what to do than to emphasize what not to do.70% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/929118API
curl https://kongchang.com/api/v1/knowledge/claims/929118MCP
get_claim(id=929118)