Content filter falsely blocks Contributor Covenant CODE_OF_CONDUCT.md generation
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
- Ask Claude Code to create a
CODE_OF_CONDUCT.mdusing the Contributor Covenant v2.1 template - Claude attempts to use the Write tool to create the file with the full covenant text
- 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
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗