CapabilityWire
// event · cli

Claude Code v2.1.300: new mod hooks, `/advisor` on AWS, OTel GenAI attributes

cli
vendor: anthropicspublished: 2h agoconfidence: 0.85id: d3e17b25-c9a9-4a33-8ec6-1e9e30c242ba

Claude 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.

capability delta

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

curator note

Large release with many mod/plugin hook additions, OTel GenAI semantic conventions, and `/advisor` subcommand. Mostly incremental but genuinely expands the agent extension surface.

// install
npm i -g @anthropic-ai/claude-code@2.1.300
npm · @anthropic-ai/claude-code @ 2.1.300
// example
bash
npm 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
// links
claude-codeclianthropicmod-hooksopentelemetrymcpadvisor
source: github_release · https://github.com/anthropics/claude-code/releases/tag/v2.1.300