ClaudeMods
☰
KO
● — 명 접속 중 · 조회 — 회
후원프로젝트 제출
GitHub 저장소 · 작성자 berd_is_the_word

프롬프트를 보내기 전에 어떤 모델이 필요한지 알려주는 Claude Code 모드

model-hint는 프롬프트를 입력할 때 haiku, sonnet 또는 opus를 제안하고 입력란 위에 한 줄 이유를 표시하는 오픈 소스 Claude Code 모드입니다. prompt.edit, ui.render, $.model.complete와 같은 mods(함수 훅) API를 사용하며, 단어 규칙으로 즉각적인 피드백을 제공하고 짧은 일시 정지 후 haiku 기반 판단을 수행합니다.

번역 완료

이 mod 소개

이 글은 model-hint를 구축하는 과정을 설명합니다. 이는 오픈 소스 Claude Code 모드로, 작성 중인 프롬프트를 읽고 보내기 전에 제안된 모델(haiku, sonnet 또는 opus)과 한 줄 이유를 표시합니다. mods/함수 훅 API를 사용합니다: prompt.edit로 초안을 읽고, ui.render로 밴드를 그리고, $.model.complete로 haiku가 초안을 판단하게 합니다. 단어 규칙은 즉각적인 답변을 제공하며, 300ms 일시 정지가 haiku 판단을 트리거하여 테스트 프롬프트에서 약 1.5초 만에 10/10점을 기록했습니다. Switch, Hide, Off 버튼이 포함되어 있고, VS Code 채팅 패널 동작을 언급하며, API 키처럼 보이는 초안이 절대 전송되지 않도록 하는 보안 감사 수정에 대해서도 언급합니다. 저장소: https://github.com/hashswingingslasher/model-hint

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add hashswingingslasher/model-hint
claude plugin install model-hint@model-hint
원문 / README

TLDR: Dynamic model suggestions as you are typing a task I typed "build a AAA game like GTA 5" and my first version said sonnet. So I rebuilt it to read the prompt properly. What I built model-hint is an open-source Claude Code mod. As you type, a band above the prompt says haiku, sonnet or opus with a one-line reason, before you hit Enter. Buttons: Switch, Hide, Off. How Claude Code was used I'm not a developer. I built all of it in Claude Code sessions, using the mods (function hooks) API: prompt.edit to read the draft, ui.render to draw the band, and $.model.complete to have haiku judge the draft. Claude Code also wrote the 63 tests and drove live terminal sessions to check the band actually draws before calling anything done. What I learned Word rules are fast and miss intent. Nothing in "GTA 5" says huge. Now the rules answer instantly, and after a 300 ms pause haiku reads the draft. It got 10 out of 10 on my test prompts, in about 1.5 s. Speed is the network, not the model. Haiku 4.5 and 5.5 measured the same. The VS Code chat panel sends mods no keystrokes. From extension 2.1.301 it draws the band, so the mod reads the draft on a timer there. Switch, like /model , saves your default model, not just the session's. Found by testing, and now the toast says it. An independent security audit caught that "off" only hid the band while drafts were still being sent. Fixed, and drafts that look like API keys are never sent. https://github.com/hashswingingslasher/model-hint submitted by /u/berd_is_the_word to r/ClaudeCode [link] [comments]

비슷한 프로젝트