You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
File ReadingArea: what it touches
ImprovementsKind: in v2.1.301,
ImprovementsSection of the release
What
A hard link is a second name for the same file on disk, so one file can appear at two paths. Claude Code's file reader has a check that refuses such files with the message "has more than one hard link".
That check used to apply only when the CLAUDE_CODE_EVAL_CONFINED environment variable was set. It now also applies when the code reading a file passes an option with refuseHardLinks set to true.
Why
Refusing hard-linked files helps stop a file from being reached through an unexpected path. This protection can now be turned on for an individual file read, without setting the environment-wide CLAUDE_CODE_EVAL_CONFINED switch.