claude-code - 💡(How to fix) Fix [Bug] Claude ignores profanity restrictions in system prompts and memory [1 comments, 2 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#54283Fetched 2026-04-29 06:31:29
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3closed ×1commented ×1

Error Message

[{"error":"Error: File does not exist. Note: your current working directory is /home/vfulco/margin-levers-world/marginlevers-application.\n at call (/$bunfs/root/src/entrypoints/cli.js:4865:7658)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T09:56:18.684Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/vfulco/margin-levers-world/marginlevers-application'\n at azH (/$bunfs/root/src/entrypoints/cli.js:1711:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T09:56:41.748Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/vfulco/margin-levers-world/marginlevers-application/lib/hooks'\n at azH (/$bunfs/root/src/entrypoints/cli.js:1711:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T09:57:01.253Z"}]

Code Example

[{"error":"Error: File does not exist. Note: your current working directory is /home/vfulco/margin-levers-world/marginlevers-application.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4865:7658)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T09:56:18.684Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/vfulco/margin-levers-world/marginlevers-application'\n    at azH (/$bunfs/root/src/entrypoints/cli.js:1711:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T09:56:41.748Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/vfulco/margin-levers-world/marginlevers-application/lib/hooks'\n    at azH (/$bunfs/root/src/entrypoints/cli.js:1711:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T09:57:01.253Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description I am building a B2B SaaS Profit Expansion tool (marginlevers.com) and trying to create "wow" moments during the analytical workflows for prospects I want to turn into clients. Claude keeps mentioning "holy sh*t" moments even though I forbid it from using curse words in the CLAUDE.md and memory due to unprofessional nature and concerns it slips into client deliverables. Please fix asap!

Environment Info

  • Platform: linux
  • Terminal: zed
  • Version: 2.1.121
  • Feedback ID: ca0c13b6-befc-4056-8167-4fd02f5a1ab8

Errors

[{"error":"Error: File does not exist. Note: your current working directory is /home/vfulco/margin-levers-world/marginlevers-application.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4865:7658)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T09:56:18.684Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/vfulco/margin-levers-world/marginlevers-application'\n    at azH (/$bunfs/root/src/entrypoints/cli.js:1711:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T09:56:41.748Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/vfulco/margin-levers-world/marginlevers-application/lib/hooks'\n    at azH (/$bunfs/root/src/entrypoints/cli.js:1711:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T09:57:01.253Z"}]

extent analysis

TL;DR

Review and adjust the file paths and directory operations in the cli.js file to ensure correct handling of directories and files.

Guidance

  • Verify the current working directory and file paths used in the cli.js file to ensure they are correct and exist.
  • Check the CLAUDE.md and memory configurations to confirm that the restrictions on curse words are properly implemented and enforced.
  • Investigate the azH function in cli.js to understand why it's attempting to read directories as files, and adjust the code accordingly.
  • Consider adding error handling and logging to provide more informative error messages and facilitate debugging.

Example

No code snippet is provided as the issue lacks specific details about the cli.js file and its functions.

Notes

The provided error messages suggest issues with file and directory handling, but without more information about the code and its intended behavior, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Review and adjust the file paths and directory operations in the cli.js file to ensure correct handling of directories and files, as this seems to be the most pressing issue based on the provided error messages.

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 [Bug] Claude ignores profanity restrictions in system prompts and memory [1 comments, 2 participants]