Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.247 ·

Hook helper that collects memory files from every parent directory

Function hooks can call $.fs.ancestors to gather memory files from every parent directory.

Use it now Notable No documentation found New Features
JSON All of v2.1.247
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HooksArea: what it touches
New FeaturesKind: in v2.1.247,
What probably matters to youSection of the release
What

Function hooks can call $.fs.ancestors, which walks from the project directory up to the filesystem root and gathers named memory files along the way. It returns an empty list when project memory is turned off.

Details
  • Skips the walk entirely when project memory is disabled, so the result is [] rather than an error.
  • Honours the approval flag for including files from outside the project.
  • Logs how many of the walked directories actually contained a match.
Evidence

$.fs.ancestors

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

Read from
Names in the bundle$.fs.ancestors

See this entry in the whole of v2.1.247 →

Feedback