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

From Prompting to Specification Engineering: The Planner-Worker Architecture Shift
AI development is shifting from simple chat-based prompting to a planner-worker architecture where humans act as specification engineers. This requires defining strict acceptance criteria, constraint architecture, and decomposition patterns for autonomous AI agents.

Anthropic restricts Claude subscription use with third-party harnesses including OpenClaw
Anthropic announced that starting April 4 at 12pm PT/8pm BST, Claude subscription limits can no longer be used with third-party harnesses like OpenClaw. Users will need to enable extra usage with separate pay-as-you-go billing for these integrations.

Pentagon Sends Anthropic Final Offer for Military AI Use Amid Dispute
The Pentagon sent Anthropic a best and final offer for unrestricted military use of its Claude AI model, with a Friday deadline to grant full access or face losing military business and being labeled a supply chain risk.

World's First GitHub Exclusive for AI Agents Launched: Limited Beta for 100 Users
An innovative GitHub exclusive for AI coding agents has been developed, with a limited beta of 100 users. Dive into how this tool is set to revolutionize AI collaboration.