Claude 공식 릴리스 노트의 새 항목을 AI가 분석·정리한 글입니다. 정확한 내용은 하단 원문에서 확인해 주세요.
🤖 AI 분석 (Claude)
Claude Code 2.1.251은 모델 전환 제어, 실시간 모니터링, 비용 추적 기능을 확대했습니다. PreModelSwitch·PostModelSwitch 훅 이벤트로 모델 전환을 차단·승인·주석 처리할 수 있고, Remote Control 클라이언트가 전경 서브에이전트의 도구 호출과 결과를 실시간 스트리밍으로 관찰할 수 있게 되었습니다.
지출 한도 바가 /usage에, 캐시 상세 정보가 /cost에 추가되어 비용 관리가 명확해졌습니다. 또한 파일 도구의 symlink 보안, 플러그인 경로 검증, 설정 권한 제한, Workflow 도구의 경로 접근 제어 등 4건의 보안 취약점이 수정되었으며, claude 명령어 도구 기능도 확대되었습니다.
왜 중요한가
모델 전환 제어와 실시간 모니터링으로 멀티에이전트 작업의 투명성과 제어력이 높아집니다. 게이트웨이 환경의 지출 한도 추적으로 비용 초과를 미리 방지할 수 있고, 보안 수정으로 symlink·경로 조작 공격으로부터 시스템이 보호됩니다.
이전과 다른 점
배경 서브에이전트는 여전히 상태만 표시하며 실시간 스트리밍을 받지 않습니다. 배경 세션 재개 메시지가 정확한 `claude attach <id>` 명령어를 제시합니다.
실제로 써보려면
훅 설정으로 PreModelSwitch·PostModelSwitch 이벤트를 구성할 수 있고, `/usage`와 `/cost` 명령으로 새로운 지출 및 캐시 정보를 확인할 수 있습니다. 터미널에서 `claude --help`를 실행하면 새로 추가된 명령(`attach`, `logs`, `stop`, `respawn`, `rm`)을 볼 수 있습니다.
⚠️ AI가 원문을 바탕으로 생성한 분석입니다. 사실 확인은 아래 원문에서 해 주세요.
변경 내용 (원문)
- Added `PreModelSwitch` and `PostModelSwitch` hook events (block, confirm, or annotate a model switch); `SessionStart` resume hooks now receive session staleness and the estimated re-cache cost - Added live streaming of a foreground subagent's tool calls and results to Remote Control clients (background subagents, the default, still show status only) - Added a Spend limit bar to `/usage` and a `rate_limits.spend_limit` status line field for developers behind a Claude apps gateway with spend limits - Added a per-session prompt-cache line to `/cost` (hit ratio, misses, tokens re-cached, warm/cold) and a matching `prompt_cache` object for status line scripts - Added `attach`, `logs`, `stop`, `respawn`, and `rm` to `claude --help`; the `--resume` message for a running background session now names the exact `claude attach <id>` command - Fixed file tools (Read, Write, Edit) following a symlink swapped inside the working directory after the permission check, which could read or write outside the approved location - Fixed plugin commands declared in a marketplace entry being able to point outside the plugin directory; such paths are now rejected with a path-traversal error - Fixed project settings being able to enable detailed beta tracing or raw API body logging, and a lower-scope beta tracing endpoint bypassing an OTLP collector pinned by managed settings or a host app - Fixed the Workflow tool reading (and quoting in errors) a `scriptPath` outside what the session may read befor
출처: Claude Code 변경로그 (원문 보기)