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.233 Home All releases olderv2.1.232 v2.1.234newer
Claude Code v2.1.233

Process-wide caches scoped per host

Under the hood
Useful1 Signal2
Internals

More process-wide caches are scoped per host, which matters only for embedded multi-session hosts.

What

A batch of module-level singletons became per-host state looked up through a WeakMap on the current host object, which matters only for embedded hosts running several sessions in one process.

Details
  • Moved: the temp-directory cache (Claude temp dir, child-process temp dir, bundled skills root, per-session scratchpad dirs, trusted symlink equivalences, with a reset), concurrent-session registration state, and the cached CHANGELOG contents.
  • The MCP client's memoized tool, resource, resource-template and command list caches moved off a fixed max-size argument into the shared MCP state object.
  • The background Bash task-output registry moved from static class fields to a module-level registry with register, unregister, startPolling and reset.
Evidence

scratchpadDirBySessionId

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.233 →