# 🚀 CodeBuddy Code v2.45.0 Release

## ✨ New Features

### Tool Search and Lazy Loading

Added the ToolSearch tool, supporting natural language search for available tools. MCP servers now support `defer_loading` configuration, deferring tool loading until needed, effectively reducing context consumption and improving tool selection accuracy.

### Environment Variable Model Configuration

Support flexible model configuration through environment variables, convenient for use in CI/CD environments and scripts:

- `CODEBUDDY_MODEL`: Override default agent model
- `CODEBUDDY_SMALL_FAST_MODEL`: Configure lite variant model
- `CODEBUDDY_BIG_SLOW_MODEL`: Configure reasoning variant model
- `CODEBUDDY_CODE_SUBAGENT_MODEL`: Configure sub-agent model
- `MAX_THINKING_TOKENS`: Enable extended thinking and set token budget

### SDK Commands Subscription

SDK adds `getAvailableCommands()` and `subscribeToCommands()` methods, supporting retrieval and real-time subscription to CLI available command list changes.

## 🔧 Improvements

- **Skill Fork Context**: Support `context: fork` configuration, allowing Skills to execute in an independent sub-agent context
- **Agent Type Specification**: Added `agent` field to specify the sub-agent type for executing Skills
- **Image Paste Optimization**: Added clipboard read retry mechanism, expanded macOS image format detection, supporting more screenshot tools
- **Error Recovery Enhancement**: When the model returns an invalid tool name, the system will prompt the model to check and retry
- **Interface Simplification**: Simplified "Plan Mode" to "Plan" for a cleaner interface

## 🐛 Bug Fixes

- **ACP Multi-turn Conversation**: Fixed issue where second-round prompts returned results directly, missing sessionUpdate events
- **Plugin Loading Deduplication**: Fixed issue where plugin skills, agents, and commands were duplicated in menus
