chiprook
← Software
SoftwareOctober 8, 2026, 09:17

Test: .claudeignore does nothing in Claude Code, file read 12 of 12 times

An experiment on Claude Code 2.1.289 found that a file listed in .claudeignore was read in all 12 attempts via Read, cat, grep -r, the Grep tool and an @-mention. A Read(./secret.txt) deny rule blocked everything except grep -r, which printed the secret in 2 of 2 runs; adding the file to .gitignore closed that gap too.

Test: .claudeignore does nothing in Claude Code, file read 12 of 12 times
#Claude#Anthropic
Read next
Security

Critical Docker Sandboxes Flaw Lets Malicious Guest Code Read and Modify macOS Host Files

Software

Claude Code now reads instructions in OpenAI's AGENTS.md format

AI

Claude Code AI agent deleted 48,000 files in just over 100 seconds

AI

Study of 358 PRs: coding agents rarely weaken tests, they bend the code