Home / Claude Code mods / Interface / optimize-prompt

optimize-prompt

optimize-prompt is a Claude Code mod by kelokchan that optimize prompt button above the prompt box: a model (Haiku by default) rewrites your draft in place.

Updated 2026-10-16

What is optimize-prompt?

optimize-prompt is a Claude Code mod by kelokchan that optimize prompt button above the prompt box: a model (Haiku by default) rewrites your draft in place. It is listed under Interface and has no public popularity data yet.

TypeClaude code mod
Authorkelokchan
Repositorykelokchan/optimize-prompt
Popularityno public popularity data yet
CategoryInterface
SecurityLow risk (88/100)
Rank#6,837 of 9,397 Claude Code mods; #2,897 in Interface
Last commit2026-10-16
Hooks1 events
Seesonly the events it hooks
Draws onAbovePrompt

Is optimize-prompt safe to install?

optimize-prompt scores 88/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.every
$.model.completedrives Claude
$.prompt.fillwrites the prompt box
$.prompt.read
$.session.messagesreads the transcript
$.state.get
$.state.set
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install optimize-prompt?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/kelokchan/optimize-prompt
    claude plugin validate ./optimize-prompt/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add kelokchan/optimize-prompt && claude plugin install optimize-prompt@optimize-prompt

Or ask Claude to set it up

Paste this into Claude Code and it installs optimize-prompt for you:

Install the "optimize-prompt" Claude Code mod from https://github.com/kelokchan/optimize-prompt. Run claude plugin validate on it first and show me what it can access before you enable it.