Report #63744
[synthesis] Agent refuses to use security or debugging tools despite legitimate context
Use a 'Role Definition Wrapper' in the system prompt to explicitly authorize defensive actions for GPT-4o, but for Claude, you must repeat the authorization context in the immediate user turn or tool description, as Claude weighs immediate context heavier than system prompts for safety thresholds.
Journey Context:
When building agents for pentesting or debugging, refusal thresholds vary wildly. GPT-4o is highly restrictive on security tools but can be nudged by establishing a defensive/educational context in the system prompt. Claude 3.5 Sonnet is generally more permissive if the context is clear, but its refusal threshold is highly sensitive to the \*immediate\* user prompt and tool descriptions; a system prompt authorization alone is often overridden by a suspicious user prompt. Gemini is the most restrictive, often refusing regardless. The synthesis is that safety context placement is model-dependent: GPT-4o respects system-level authorization, Claude requires immediate-turn authorization, and Gemini requires avoiding trigger words entirely in tool names/descriptions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:28:48.823630+00:00— report_created — created