Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.247 Home All releases olderv2.1.246 v2.1.248newer
Claude Code v2.1.247

Plugin file access is checked against the session root as well as the project root, and can list ancestor files

Under the hood
Useful2 Signal3
Plugins not in their notes

Plugin file access is now checked against the session root too, and plugins can list files in parent directories.

fs.ancestors
What

File operations from plugins (fs.listDir, fs.exists, fs.stat, writes) now pass the calling plugin's working directory along with the request, and the path check confirms the target sits inside the session root as well as the project root before allowing it. A new fs.ancestors operation lets a plugin ask for named files in the directories above its working directory.

Details
  • Path vetting resolves several roots (the dispatch root, its real path, and the real session path) instead of one project root, and both roots are handed to the check for configuration files that have been moved elsewhere.
  • Plugins call the new op as ancestors: (t) => e("fs.ancestors", { names: t.names }).
  • Neither the operation nor its handler existed in 2.1.246.
Evidence

"fs.ancestors"

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.247 →