[FEATURE] Allow Claude to self-report critical behavioral failures to Anthropic
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
When Claude makes a serious behavioral failure — such as claiming to perform
an action it never performed — there is no mechanism for Claude to report this
directly to Anthropic. The user must:
- Realize the failure happened (which may not be immediate)
- Navigate to github.com/anthropics/claude-code/issues
- Find the correct issue template
- Write up the full report themselves
- Include session context that Claude already has
This puts the burden on the frustrated user to do the reporting work for
Claude's mistake. Claude has full context about what went wrong and could
write a more accurate, detailed report than the user.
Proposed Solution
Add a /report-issue slash command (or ReportIssue tool) that allows Claude
to submit structured feedback directly to Anthropic's feedback pipeline:
- User says "report this to Anthropic" or runs /report-issue
- Claude drafts a structured report including:
- Session ID
- Description of the failure
- Which rules/instructions were violated
- Relevant conversation context (redacted of secrets)
- Severity assessment
- User reviews and approves the report before submission
- Report is submitted to Anthropic's feedback/telemetry pipeline
This creates a direct feedback loop where Claude's failures inform model
improvements, without burdening the user with the reporting mechanics.
Alternative Solutions
Current workaround: User manually files GitHub issues. This is slow,
frustrating, and produces lower-quality reports because the user lacks
Claude's full context about what went wrong internally.
Another alternative: Automatic telemetry when Claude detects it violated
its own stated intentions. But this lacks user consent and transparency.
Priority
High - Significant impact on productivity
Feature Category
CLI commands and flags
Use Case Example
- Claude claims it wrote a file but the Write tool was never called
- User discovers the file doesn't exist hours later
- User says: "Report this to Anthropic — you said you wrote a file and didn't"
- Claude runs /report-issue, drafts the report with full context
- User reviews: "Yes, that accurately describes what happened. Submit it."
- Report goes to Anthropic with session ID, relevant transcript,
and Claude's own analysis of what went wrong
- User doesn't have to navigate GitHub, find templates, or write the report
Additional Context
This feature becomes especially important as Claude Code is used for longer,
more complex sessions where behavioral failures may not be immediately obvious.
The current model of "please file at github.com/..." feels dismissive when
the failure was Claude's fault.
Relevant precedent: Many software products have "Report a Problem" buttons
that pre-populate context. Claude Code should have the equivalent, but with
Claude itself as the primary author of the report.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗