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.246 Home All releases olderv2.1.245 v2.1.247newer
Claude Code v2.1.246

Plugins can ask which surface they are running on, and read flags

Use it now
Useful3 Signal4
Plugins Notable

Plugins can ask whether they run in the desktop app or terminal, and read feature flags.

What

Two operations are new to the plugin host: one reports whether the request came from the desktop app or a terminal, and one reads a feature flag value. Separately, a plugin asking for the session's working directory or repository now gets the directory of the call that invoked it rather than the directory the process started in.

Details
  • Neither of the two new operations exists in v2.1.245.
  • The cwd change matters for sessions that have moved directory mid-run, where the process cwd and the live session cwd differ.
Evidence

"session.surface": { run: (t, n) => op.sessionSurface(n.plugin) }

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