npx claudepluginhub esc5221/cc-gemini-rewriteRe-explain hard Claude Code answers inline via the official MessageDisplay hook. The transcript and Claude's context keep the original.
English · 한국어
Claude Code's technical answers are often hard to read — the conclusion buried, no clear next step.

cc-gemini-rewrite adds a clearer rewrite right below the answer, on screen. It's a Claude Code plugin on the MessageDisplay hook, which only changes how a message is drawn — it can't alter the message, so it can't change what Claude does.
/rewrite rewrites the previous answer on demand; an optional policy rewrites long answers automatically.verbose and the transcript still show the original.Requires macOS/Linux, Node ≥ 18, and a Claude Code build with MessageDisplay (2.1.x+).
git clone https://github.com/esc5221/cc-gemini-rewrite
cd cc-gemini-rewrite
./install.sh # app + hook + commands
Or as a plugin:
/plugin marketplace add esc5221/cc-gemini-rewrite
/plugin install cc-gemini-rewrite@cc-gemini-rewrite
Then set your provider (below), start a new claude session, and run /rewrite-doctor. Remove any time with ./uninstall.sh.
Any OpenAI-compatible endpoint, in ~/.claude/cc-gemini-rewrite/config.json:
{
"provider": {
"baseUrl": "https://generativelanguage.googleapis.com/v1beta/openai",
"model": "gemini-3.5-flash-lite",
"apiKeyEnv": "GEMINI_API_KEY"
}
}
Key order: apiKey (inline) → apiKeyEnv (env var) → apiKeyKeychain (macOS keychain). Per-shell override: CCR_BASE / CCR_MODEL / CCR_KEY.
Default policy is off — nothing fires until you ask.
/rewrite re-explain the previous answer, inline
/rewrite shorter steer it (any hint: "in English", "like I'm five")
Turn on automatic re-explaining (optional):
/rewrite-config policy lines auto-rewrite answers of 8+ lines
/rewrite-config policy judge let an LLM decide when to auto-rewrite
/rewrite-config policy off no auto-rewrite; /rewrite only (default)
/rewrite-config off turn the whole plugin off
/rewrite-config show current settings
/rewrite-doctor version · hook · provider key · reachability
Claude finishes a message
│ MessageDisplay hook fires (per chunk; the final one carries the whole message)
▼
buffer the deltas → on final: policy decides → LLM rewrites the same content
▼
displayContent = original + a re-explained block (the transcript keeps the original)
For /rewrite, the rewrite is computed while the command's Bash step runs (it precomputes and caches it), so the block appears as soon as the answer prints. It comes all at once rather than streaming in, because the hook returns its output once.
provider.baseUrl / model / apiKey / apiKeyEnv / apiKeyKeychain / headers / reasoningEffort
policy.name off | always | lines | judge | hybrid
policy.alwaysLines (lines/hybrid threshold, default 8) policy.judgeMinLines (default 5)
mode append (original + block, default) | replace (block only)
.claude-plugin/ plugin.json · marketplace.json
hooks/hooks.json registers the MessageDisplay hook
commands/ /rewrite · /rewrite-config · /rewrite-doctor
scripts/message-display.mjs the hook (buffer → decide → rewrite → display)
scripts/{rewrite,config-cli,doctor}.mjs
core/ provider · policy · transcript · rewriter · display · buffer · state · requests · config · paths
prompts/rewrite-ko.json · defaults/config.json
install.sh · uninstall.sh
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.