Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

model-switcher

bởi puaservice

Coding Agents & IDEs
516Lượt tải do clawskills.sh công bố
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Automatically switch between fast (haiku) and powerful (sonnet) models based on task complexity.

Mô tả

Kỹ năng này làm gì

Detects task complexity from message content and switches between a fast model (haiku) and a powerful model (sonnet) automatically. Keyword detection covers Chinese-language terms for analysis, refactoring, architecture, optimization, and debugging. The switch is communicated to the user only when it actually occurs.

Avoids manual model selection by inferring complexity from message content, keeping fast responses for simple tasks and stronger reasoning for complex ones.

Khi nào nên dùng

  • Switching to sonnet when asking for a system architecture review
  • Staying on haiku for quick single-line code questions
  • Batching complex refactoring work on sonnet before switching back
  • Auto-detecting Chinese-language analysis requests
  • Resetting to the default model after completing a complex session

Quy trình ví dụ

ĐẦU VÀO

User asks: "帮我分析一下这个系统的架构"

AGENT
  1. 1

    Check current model using session_status

  2. 2

    Detect keywords in the message: 分析, 架构

  3. 3

    Determine that a complex task is detected and current model is haiku

  4. 4

    Switch to sonnet using session_status({ model: "kiro-cli" })

  5. 5

    Inform user: "切换到 sonnet 模型来处理这个复杂任务..."

ĐẦU RA

Model switched to sonnet; response generated using the more powerful model

Cài đặt

clawhub install puaservice/model-switcher

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết