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 v0.2.86 Home All releases olderv0.2.85 v0.2.89newer
Claude Code v0.2.86

API Changes

New Functions for Session Tracking

  • WN0(cwd): Set the current working directory for the session
  • YN0(cost, duration, durationWithoutRetries, inputTokens, outputTokens, cacheReadTokens, cacheCreationTokens): Track API usage metrics including:
  • Total cost in USD
  • API call durations (with and without retries)
  • Token usage breakdown (input, output, cache read, cache creation)

Improved Current Directory Detection

  • New d0() function provides more robust current working directory detection with fallback handling

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v0.2.86 →