Claude System Prompt Compliance Degrades in Long Conversations

A Reddit user reports that Claude's system prompt compliance degrades significantly in long conversations, particularly affecting AI coding agents with specific formatting rules and constraints.
Problem Details
The user runs multiple Claude-based agents for internal tooling, each with system prompts containing specific rules about output format, topics to avoid, and edge case handling. While these work perfectly for the first 20-30 exchanges, compliance begins slipping around message 40-50.
Specific issues observed:
- Agents stop following formatting rules
- They become "helpful" in ways the system prompt explicitly prohibits
- They forget constraints that were clear at the start
The user notes this isn't a bug but rather how context windows work under pressure, with system prompts competing with 40+ messages of conversation history for attention weight.
Workarounds and Solutions
The user shares several practical approaches that have worked:
- Restate critical rules: Every 15-20 messages, restate the top 3 rules you can't afford to lose in condensed form (not the full system prompt)
- Keep conversations shorter: If a task requires more than 30 exchanges, start a new session with a summary of what happened
- Strategic prompt placement: Put your most important constraints at both the beginning AND end of the system prompt, as models pay more attention to both positions
- Test at scale: Test your agents at message 50, not just message 5, since happy path demos don't reveal this issue
The user emphasizes that this problem isn't discussed enough and invites others to share reliable patterns for maintaining instruction adherence in long-running sessions.
📖 Read the full source: r/ClaudeAI
👀 See Also

Harmonic-9B: Two-stage Qwen3.5-9B fine-tune for AI agents
Developer DJLougen has released Harmonic-9B, a Qwen3.5-9B fine-tune optimized for agent use with a two-stage training approach. Stage 1 (heavy reasoning) is complete, while Stage 2 (light tool-calling) is still training. GGUF quantized versions are already available.

Claude AI introduces Cowork plugin updates with enterprise customization and new connectors
Claude AI has released Cowork plugin updates that enable enterprise admins to create private plugin marketplaces and add connectors for Google Workspace, Docusign, Apollo, and other tools. A new research preview allows Claude to work across Excel and PowerPoint for end-to-end analysis and presentation building.

Claude Daily Digest: /dream Feature Launch, Usage Limits Backlash, and Accessibility Tool
Anthropic shipped the /dream feature for Claude's Auto Memory system, while the community faces usage limit complaints and a deaf developer built a terminal flash notification plugin for Claude Code.

Weekly Multimodal AI Roundup: Holotron-12B, Nemotron Omni, GlyphPrinter, and More
This week's multimodal AI highlights include Holotron-12B for computer-use tasks, NVIDIA's Nemotron Omni models integrating language+vision+voice, GlyphPrinter for accurate text rendering in image generation, and several open-source projects for video enhancement, 3D segmentation, and multi-agent systems.