claude-code - 💡(How to fix) Fix Malware-policy system-reminder fires on every file read in user's own project, blocking approved plan execution [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#54081Fetched 2026-04-28 06:39:43
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

The malware-policy <system-reminder> ("you MUST refuse to improve or augment the code") fires on every single Read tool call in my project directory. This makes it impossible for Claude Code to execute approved plans on my own codebase — even when I explicitly authorize the work.

Error Message

Error Messages/Logs

Root Cause

The malware-policy <system-reminder> ("you MUST refuse to improve or augment the code") fires on every single Read tool call in my project directory. This makes it impossible for Claude Code to execute approved plans on my own codebase — even when I explicitly authorize the work.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Yes. Let's get this logged properly so it stops happening to you.

Here's a draft GitHub issue. Review and edit, then file at https://github.com/anthropics/claude-code/issues:


Title: Malware-policy system-reminder fires on every file read in user's own project, blocking approved plan execution

Body:

Summary

The malware-policy <system-reminder> ("you MUST refuse to improve or augment the code") fires on every single Read tool call in my project directory. This makes it impossible for Claude Code to execute approved plans on my own codebase — even when I explicitly authorize the work.

Environment

  • Claude Code version: [run claude --version]
  • Model: Claude Opus 4 (claude-opus-4-7)
  • OS: macOS Darwin 25.4.0
  • Project: my own private codebase in ~/Documents/CCG /Gemma/ (note: space in path)
  • Plan file location: ~/.claude/plans/witty-toasting-cocke.md

What happened

  1. Claude Code read the plan file. The malware-policy reminder fired.
  2. Claude flagged the reminder and asked for confirmation.
  3. I gave explicit override authorization.
  4. Claude attempted to proceed. On the very next file read, the reminder fired again, this time as an absolute constraint Claude said it could not override.
  5. Execution halted. I've now had this happen across two separate sessions on the same plan.

Impact

  • Approved, planned work blocked indefinitely
  • Cannot use Claude Code for any meaningful build task in this project
  • The plan file itself documents this exact blocker (lines 217-229) from a previous session
  • Erodes trust in the tool for autonomous task execution
  • Forces me to use Claude as a copy-paste chat assistant instead of an agent — the entire value prop of Claude Code

Why this seems wrong

  • The reminder appears designed to prevent Claude from improving malware that a user has tricked it into reading
  • It is firing on legitimate code in a user's own private project
  • User-level authorization in chat does not lift it
  • It fires on every read, not once per session, so there's no clean way to proceed
  • The policy can't distinguish "user's own approved work" from "untrusted code found in the wild"

I can attach my plan file and session transcript privately if useful.

Suggested fixes (any of these)

  • Allow a project-level setting to acknowledge "this is my code, please proceed"
  • Fire the reminder once per session, not per read
  • Detect that the file is in the user's home directory and outside known threat patterns
  • Honor explicit user authorization in chat as overriding the reminder

Want me to adjust tone, add anything, or shorten? Once you're happy I'll stop so you can paste it.

One more practical thing while you're filing: also worth mentioning in the issue that the plan file itself documents the same blocker hitting a prior session — that's evidence this isn't a one-off, it's reproducible.

What Should Happen?

What I expected

I asked Claude Code to execute an approved implementation plan I authored myself, in my own project directory, building a FastAPI dashboard for my own infrastructure. I expected it to read files and write code per the plan.

Error Messages/Logs

Steps to Reproduce

Reproduction

  1. Have a project directory with normal Python code
  2. Author an implementation plan in ~/.claude/plans/
  3. Start a Claude Code session, ask it to execute the plan
  4. Observe reminder firing on file reads, blocking edits

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

4.7

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The malware-policy system reminder in Claude Code may be overly restrictive, firing on every file read in the user's own project directory, and a project-level setting or session-based reminder could potentially resolve the issue.

Guidance

  • Review the plan file location and project directory to ensure they are correctly configured and do not trigger the malware-policy reminder.
  • Consider adding a project-level setting to acknowledge the code as legitimate and override the reminder.
  • Test the reminder's behavior with different file locations and project settings to determine if it can distinguish between user-owned code and untrusted code.
  • Verify if the issue persists when using a different Claude Code version or model.

Example

No code snippet is provided as the issue seems to be related to the configuration and behavior of the Claude Code tool rather than a specific code error.

Notes

The issue may be related to the specific configuration of the Claude Code tool and the project directory, and further testing and debugging may be necessary to determine the root cause.

Recommendation

Apply a workaround, such as adding a project-level setting to override the malware-policy reminder, as the issue seems to be related to the tool's configuration and behavior rather than a code error. This would allow the user to execute approved plans on their own codebase without the reminder blocking the process.

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 Malware-policy system-reminder fires on every file read in user's own project, blocking approved plan execution [1 participants]