claude-code - 💡(How to fix) Fix [FEATURE] Sensitive data redaction in transcripts shared for debugging [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#57772Fetched 2026-05-11 03:25:48
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Root Cause

  1. I'm using Claude Code.
  2. Claude Code behaves unexpectedly (e.g. fails to use built-in functionality for PDF reading, does unnecessary work like try to run homebrew to install packages it doesn't need, tells me it can't do something I've had the same model has do in other sessions, hallucinates content, ignores instructions, makes a wrong decision).
  3. I want to report it. The feedback popup appears and asks if I want to share the session transcript.
  4. Instead of declining (because the raw transcript is sensitive), I choose "Share redacted version."
  5. Claude Code redacts named entities, file contents, and credentials locally and shows me a preview.
  6. I confirm the redacted version looks safe and it's sent to Anthropic with the bug report.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

I often run into unexpected model behavior / issues with Claude Code that I want to report. But my session transcripts almost always contain sensitive data eg. file paths, company names, personal information, document content that I can't share as-is.

Problem: Currently there is no way to redact sensitive content before sharing, so usually I just don't share the transcript. Not having access to the transcript of a Claude Code session where an issue arose likely makes it much harder for Anthropic to reproduce the issue, diagnose, resolve, and track the impact across the user base.

<img width="618" height="150" alt="Image" src="https://github.com/user-attachments/assets/f7fc112c-5aea-4089-abdb-7a5d4542b85a" />

Proposed Solution

When Claude Code prompts the user to share a session with Anthropic, there should be an option to share a redacted version instead. This could also be exposed as an /export-redacted command (or --redact flag on /export) for manual use.

Redaction should happen locally, and the user should be able to review the redacted transcript before anything is sent to Anthropic.

Alternative Solutions

This issue is blocking me from sharing transcripts. As a result, I almost never share transcripts.

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

Context: I'm using Claude Code to build automation tools to help people with their job search. In order to test the custom skills I built, my sessions include info like: list of companies applied to and status, location and salary preferences, and personal documents.

  1. I'm using Claude Code.
  2. Claude Code behaves unexpectedly (e.g. fails to use built-in functionality for PDF reading, does unnecessary work like try to run homebrew to install packages it doesn't need, tells me it can't do something I've had the same model has do in other sessions, hallucinates content, ignores instructions, makes a wrong decision).
  3. I want to report it. The feedback popup appears and asks if I want to share the session transcript.
  4. Instead of declining (because the raw transcript is sensitive), I choose "Share redacted version."
  5. Claude Code redacts named entities, file contents, and credentials locally and shows me a preview.
  6. I confirm the redacted version looks safe and it's sent to Anthropic with the bug report.

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Sensitive data redaction in transcripts shared for debugging [1 participants]