
Tested on Windows 10 with Claude Code 2.1.296, a deny rule written as Edit(../shared/partner/**) did not stop any write attempts, and startup gave no warning. The same folder protected by an absolute path (//c/...) blocked the Write tool, Edit tool and Bash echo >.
Summaries like this, in your inbox every morning.
The test grew out of a practical setup: the author runs Claude Code in two working folders and wanted to keep one from modifying the other, so he wrote Edit(../shared/partner/**) into company/.claude/settings.json and assumed it was protected. He only noticed the rule was not holding when he was trying something else and saw the file change anyway. Against the official Configure permissions document, which lists //path, ~/path, /path and path or ./path as the supported forms, the ../ style simply is not among them, and in his run it failed without warning. Writing the rule as a Write(...) rule instead produced a startup warning telling him that Write(path) is not used for file permission checks and that Edit(path) should be used. Across his runs, the absolute-path rule did block the Write tool, Edit tool and Bash echo >, but not a node script run through an auto-allowed Bash. In a separate check, denying .env with Read(./.env) stopped the Read tool and cat .env, yet a node -e script could still read it under auto-allowed Bash. The author notes Claude Code's documentation already states that Read and Edit deny rules do not cover files opened by Python or Node scripts, and that sandboxing is the way to enforce this at the OS level. He suggests running Claude Code under a separate Windows user without file permissions, or in a virtual machine or container, and keeping production keys off the same machine.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
In a SiliconANGLE essay, Imagine Art's M
Hitachi started a service last month using AI models from OpenAI and Anthropic to monitor attacks and restore…

ルールベース株研 started 投資可否チェッカー on 2026年9月25日 and 急騰株チェッカー on 2026年10月8日, reaching over 300 commits and more than 8…

The author has been running Claude Code since October 2026 with a Root session directing planning, marketing…

A developer working solo on weekends built Claude Code skills, including /coderabbit-queue, which lines up pul…

yukimemi released magi, a Rust CLI that runs subscription agent CLIs such as claude and codex so one Chat requ…
