[BUG] Claude Code fails with a content filtering policy error when attempting to add a Mozilla license to a GitHub repository

Resolved 💬 11 comments Opened Jul 23, 2025 by rweijnen Closed Jan 16, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.58 (Claude Code)
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: <!-- e.g. iTerm2, Terminal App -->

Bug Description

Claude Code fails with a content filtering policy error when attempting to add a Mozilla license to a GitHub repository. The request is blocked despite being a legitimate software licensing task.

Steps to Reproduce

  1. Open Claude Code in terminal
  2. Navigate to a GitHub repository directory
  3. Execute the command: "Add Mozilla license to my github repo"
  4. Observe the API error response

Expected Behavior

Claude Code should successfully add the Mozilla Public License file to the repository, creating an appropriate LICENSE file with the correct license text.

Actual Behavior

The request fails with the following error:

``API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Output blocked by content filtering policy"}}``

Additional Context

This appears to be a false positive in the content filtering system, as adding open source licenses to repositories is a standard and legitimate software development practice. The Mozilla Public License is a widely-used, OSI-approved open source license.

View original on GitHub ↗

This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗