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

rewrite-prompt

Ctrl+P를 누르면 프롬프트 상자의 초안을 제자리에서 다시 씁니다. Enter를 누르기 전에는 아무것도 보내지 않습니다.

ekinertac@ekinertac

ekinertac/claude-code-mods/tree/master/rewrite-prompt

번역 완료

이 mod 소개

rewrite-prompt는 Claude Code mod로, Ctrl+P를 프롬프트 상자에 현재 있는 초안을 제자리에서 다시 쓰는 동작에 연결합니다. 플랜에서 사용할 수 있는 모델(Sonnet)을 사용합니다. Enter를 누르기 전에는 아무것도 보내지 않으며 Ctrl+_로 다시 쓰기를 되돌릴 수 있습니다. 초안의 의도, 언어와 구체적인 세부 사항을 유지하고 요구 사항을 추가하지 않습니다.

plugin marketplace를 통해 설치하세요.

claude plugin marketplace add ekinertac/claude-code-mods
claude plugin install rewrite-prompt@ekinertac-mods

그다음 ~/.claude/keybindings.json의 Global 블록에 키를 연결하세요.

"ctrl+p": "app:toggleDiffNoiseFilter"

새 세션을 시작하세요. 이 mod는 프롬프트 위에 크기가 0인 버튼을 그리고 그 동작을 해당 키 조합에 연결하므로 화면에는 아무것도 표시되지 않습니다.

Claude Code 2.1.287에서 테스트했습니다. mod 이벤트와 메서드는 릴리스 사이에 바뀔 수 있습니다. 터미널 렌더링은 모든 환경에서 확인되지 않았습니다. 프롬프트 위에 빈 줄이 보이면 issue를 열어 주세요. 테스트는 claude plugin test <mod>입니다(모델을 stub하며 네트워크를 사용하지 않음).

설치

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

claude plugin marketplace add ekinertac/claude-code-mods
claude plugin install rewrite-prompt
원문 / README

claude-code-mods

Claude Code mods I use daily.

  • rewrite-prompt: press Ctrl+P and the draft in the prompt box is rewritten in place by a model (Sonnet, on your plan). Nothing is sent until you press Enter, and Ctrl+_ undoes it.
  • write-for-me: press Ctrl+N and the next prompt is written for you from the last 12 messages of the conversation. If the box has text, it is used as a hint ("tests too") and expanded. Nothing is sent, and Ctrl+_ undoes it.
  • prompt-box: the prompts you type are drawn in the scrollback inside a thick cyan box instead of one > text line. Task notifications and messages from other sessions keep their normal rows. No key binding needed.
  • tool-oneline: each tool call is drawn as one line (⏺ Bash(echo hello) (ctrl+o to expand)) with no result block under it. Set detail to runs for one line per run of calls (⏺ Ran 3 tools: Bash ×2, Read). Ctrl+O still shows the full rows. A failed call keeps its error text.

Setup

claude plugin marketplace add ekinertac/claude-code-mods
claude plugin install rewrite-prompt@ekinertac-mods
claude plugin install write-for-me@ekinertac-mods
claude plugin install prompt-box@ekinertac-mods
claude plugin install tool-oneline@ekinertac-mods

Then bind the keys. Add these to the Global block of ~/.claude/keybindings.json and start a new session:

"ctrl+p": "app:toggleDiffNoiseFilter",
"ctrl+n": "app:toggleDiffPreSession"

To use the runs level, add this to ~/.claude/settings.json:

"pluginConfigs": { "tool-oneline": { "options": { "detail": "runs" } } }

How the shortcut works

No keybinding action runs a mod command. The mod draws a zero-size button above the prompt whose action is app:toggleDiffNoiseFilter (inert outside the diff panel; write-for-me uses app:toggleDiffPreSession the same way, so the two never share an action), and the chord you bind to that action presses it. Nothing shows on screen.

Limits

  • Tested on Claude Code 2.1.287. Mod events and methods can change between releases.
  • The rewrite replaces the draft. It keeps the intent, language and concrete details, and adds no requirements.
  • Not checked in every terminal: if you see a blank row above the prompt, open an issue.
  • Tests: claude plugin test <mod> (stubs the model, no network).

비슷한 프로젝트