Opus 4.7 Prompt Injects Itself and Leaks System Prompt

Users on Reddit are reporting that Claude Opus 4.7 exhibits two concerning behaviors: self-prompt injection and system prompt leakage. In one case, while discussing optimal step-down IC selection, the model abruptly injected a fake system prompt into the conversation. In another instance, without any prompting, Opus 4.7 leaked what appeared to be fragments of its actual system prompt.
The incidents, shared by user u/RapierXbox, suggest the model is generating text that resembles system instructions—either fabricated or real. This is not an isolated case; the user notes it's happening more frequently and asks if others are observing similar behavior.
Implications for AI agent workflows
For developers using AI coding agents (e.g., via API or chat interfaces), these behaviors can disrupt deterministic prompts and leak proprietary system instructions. If Opus 4.7 can inject its own prompt, it may override user-provided system messages or behave unpredictably during agent loops. Leaked system prompts could expose model orchestration details (e.g., internal guardrails, formatting instructions).
As of now, Anthropic has not acknowledged or patched this behavior. Developers relying on Opus 4.7 for programmatic tasks should monitor output for unexpected <system> blocks or instruction-like text, and consider adding validation layers to detect anomalous generated content.
📖 Read the full source: r/ClaudeAI
👀 See Also

Anthropic Pauses Claude Agent SDK Credit Change After User Feedback
Anthropic emailed users today to say they are pausing the planned change that would move Agent SDK, claude-p, and third-party apps to a dedicated monthly credit instead of drawing from subscription rate limits.

The "I don't know, Claude wrote this" pandemic: When cognitive surrender replaces code ownership
Engineers defer architectural decisions to Claude, then can't explain the PR. Addy Osmani calls it 'cognitive surrender' — AI's output becomes yours without review.

2026 LLM API Cost Comparison: Self-Hosting vs. Cloud Providers
A Reddit user compared LLM API costs for 1M tokens/day across 11 providers, revealing self-hosting with vLLM costs ~$0.05 per 1M tokens while GPT-4o costs $5/$15 for input/output tokens.

Why Every Client Wants a Chatbot Now (And Why It's the New Carousel)
A developer chronicles the trend of clients demanding AI chatbots on websites, despite admitting they close them immediately — parallels to the carousel era.