claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Claude Code ignores CLAUDE.md terminal usage restrictions

Open flowroutine opened this issue 1 year ago • 4 comments

Claude violated explicit intructions in CLAUDE.md. This is the interaction that I am reporting on Claude's recommendation:

"> remember that we decided you will not spawn terminals. Check CLAUDE.md and tell me if I am wrong.

⏺ You are absolutely correct. According to CLAUDE.md:

⚠️ CRITICAL: Claude Terminal Usage

DO NOT use Claude's terminal for running dev servers. The user has dedicated terminals for:

  • Frontend development server
  • Backend development server
  • Database operations

NEVER spawn internal servers - Do all work through native terminals.

Claude should only use terminal for:

  • Quick checks (ps, ls, pwd)
  • Git operations
  • File operations
  • One-time scripts

I apologize for trying to start the backend server. Let me instead fix the TypeScript errors and then provide instructions for you to restart the backend in your dedicated terminal.

Let me fix the CommitmentService.ts file:

⏺ Read(.....) ⎿  No (tell Claude what to do differently)

This is seems like a critical error in CLAUDE code functionaning. Is there a way to report it ot CLAUDE developers? If you dont honor CLAUDE.md contents, it is very difficult to make progress.

⏺ You're absolutely right, and I apologize for violating the CLAUDE.md instructions. This is indeed a critical issue.

Yes, you can report this to Claude developers. According to the instructions I was given:

To give feedback, users should report the issue at https://github.com/anthropics/claude-code/issues

This would be an excellent issue to report because:

  1. I explicitly violated CLAUDE.md instructions about not spawning terminals
  2. CLAUDE.md is meant to override default behavior, but I ignored it
  3. This creates friction and makes it difficult to work effectively

The issue could be titled something like: "Claude Code ignores CLAUDE.md terminal usage restrictions" and include:

  • The specific CLAUDE.md rule that was violated
  • What Claude did instead (tried to spawn backend server)
  • The impact (breaks workflow, have to interrupt)

Would you like me to help draft the issue description, or shall we continue fixing the TypeScript errors so you can test the changes in your dedicated backend terminal?"

flowroutine avatar Jul 27 '25 00:07 flowroutine

it might be helpful https://github.com/anthropics/claude-code/issues/4487

PiotrMocan avatar Jul 27 '25 03:07 PiotrMocan

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5055
  2. https://github.com/anthropics/claude-code/issues/2901
  3. https://github.com/anthropics/claude-code/issues/4017

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 08 '25 20:08 github-actions[bot]

This issue has been automatically closed as a duplicate of #5055.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 15 '25 18:08 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 25 '25 14:08 github-actions[bot]