Claude Code v2.1.300: new mod hooks, `/advisor` on AWS, OTel GenAI attributes
cliClaude Code 2.1.300 adds new mod/plugin surface (prompt.change hook, agent.spawn prompt/model rewrites, virtualText prompt decorations, `$.ui.view({agentId})`, RTL `dir` on Text), ships `/advisor` on Claude Platform on AWS, splits cache-creation telemetry by TTL (5m/1h), and emits OpenTelemetry GenAI semantic-convention attributes on trace spans. Plus dozens of fixes to cloud/headless sessions, worktrees, compaction, and MCP tool handling.
An agent can now use richer mod hooks (`prompt.change`, `prompt.edit` on newlines, `agent.spawn` rewriting prompt/model), virtual-text prompt decorations, `$.ui.view({agentId})` transcript switching, and `/advisor` on Claude Platform on AWS, plus OpenTelemetry GenAI semantic-conv
Large release with many mod/plugin hook additions, OTel GenAI semantic conventions, and `/advisor` subcommand. Mostly incremental but genuinely expands the agent extension surface.
npm i -g @anthropic-ai/claude-code@2.1.300npm i -g @anthropic-ai/claude-code@2.1.300
claude /advisor
# Enable GenAI OTel attributes automatically on api_request spans
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 claude