Content filter falsely blocks Contributor Covenant CODE_OF_CONDUCT.md generation

Resolved 💬 4 comments Opened Mar 18, 2026 by darksheer Closed Apr 16, 2026

Bug Description

When using the Write tool to generate the standard Contributor Covenant v2.1 text for a CODE_OF_CONDUCT.md file, the API returns a 400 error:

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

This is a false positive. The Contributor Covenant is the most widely adopted code of conduct in open source (used by Linux, Kubernetes, Rails, Swift, and thousands of other projects). Generating this text is a routine part of setting up an OSS project.

Steps to Reproduce

  1. Ask Claude Code to create a CODE_OF_CONDUCT.md using the Contributor Covenant v2.1 template
  2. Claude attempts to use the Write tool to create the file with the full covenant text
  3. The API blocks the output with a content filtering policy error

Workaround

Link to the Contributor Covenant URL instead of reproducing the full text inline. This works but is a degraded experience — contributors expect the full text in the repo, and many compliance/governance tools check for it.

Expected Behavior

Claude Code should be able to generate standard open-source governance documents without triggering content filters. The Contributor Covenant is a professional document about community standards, not harmful content.

Environment

  • Claude Code CLI
  • Model: claude-opus-4-6 (1M context)
  • Request ID: req_011CZBKtj3h2NPXo34TwsJVU
  • Date: 2025-03-18

View original on GitHub ↗

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