[BUG] Claude doesn't respect hard rules to not NEVER use python for its script

Resolved 💬 5 comments Opened Mar 24, 2026 by bric3 Closed May 21, 2026

Preflight Checklist

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

What's Wrong?

I have this in my home ~/.claude/CLAUDE.md, this was added by claude itself. Yet, claude doesn't even respect those and choose to use python or python3 !

This is bad because I can't audit a python script before claude runs it.

## Hard Rules

- **Scripting**: ALWAYS use Java or Kotlin (with jbang) for any non-trivial script. Simple one-liners or low-complexity shell commands (e.g., `grep`, `sed`, `find`, `curl`) are acceptable, but anything with logic, loops, or data processing must be Java or Kotlin.

## Tools & Workflows

### Preferred Tools
- **Scripting** details:
  - Use a Java 25 distribution (likely already available via `mise`)
  - For Kotlin:
    - use libraries as needed (e.g., kotlin dataframe)
    - `jbang` can run `.kt` files directly, do not mix with Kotlin scripting, e.g. `.main.kts` files
  - Prefer the use of `mise` to select an installed JDK

What Should Happen?

It should respect my enforced rules !

Error Messages/Logs

None

Steps to Reproduce

  1. Tell claude to not use python at all
  2. restart claude, and see it use python on some of his tasks.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗