ClaudeCodeMod

All shelves / Mods / Review

fanyi

By JrCx7scC

fanyi is a Claude Code review mod by JrCx7scC.

By default translates a prompt that is not already English into English before Claude reads it, and draws a translation under each reply.

Draws

Install

The marketplace name is claude-code-fanyi.

In your shell
claude plugin marketplace add JrCx7scC/claude-code-fanyi
claude plugin install fanyi@claude-code-fanyi
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.13.0
License
MIT
Repo stars
9
Last change
2026-10-03

What it can reach

  • Draws in the session
  • Reaches the network or an outside service
  • Sees tool calls
  • Calls another program on this machine

Needs Claude Code 2.1.287 or newer, and Node.js 18 or newer. Restart, then /fanyi settings. A line above the prompt shows when translation is on. /fanyi toggles it. A prompt that is not already English is translated to English before Claude reads it, and the row shows what you typed with the English under it. A prompt that is already English is sent as typed. Prompts that start with / or ! are never translated. Each text block of a reply gets a translation under it, and a block already in your language gets no box. Subagent replies are not translated. The reply's translation is display only, and the prompt Claude reads is the English. A question dialog and a tool row's title are drawn with a translation. An option's label stays English. Text you type as an answer is translated to English before Claude reads it. The API engine needs a key for an OpenAI-compatible Chat Completions host, and the text to translate goes to that host. The Apple engine keeps it on the Mac. The host defaults to https://opencode.ai/zen/go/v1 and the model defaults to deepseek-v4.1-flash. Every API request sends a User-Agent of claude-code-fanyi and the version, and an x-opencode-session header set to the session id. OpenCode Go requires both. The README reports that leaving reasoning off, which is the default, cuts time to first token on DeepSeek from 6 to 15 seconds to about 1.5 seconds. The API key is kept in the macOS Keychain, or in a file only you can read. An empty key removes it. The README does not name that file. The settings are api_key, base_url, model, and disable_thinking. The Apple on-device engine needs macOS 15 or newer and the Xcode command line tools. Its helper is compiled on the Mac the first time it is needed, and that path sends nothing off the Mac. On this Mac language detection makes no API call. Ask the model uses the API. If Claude Code asks you to approve the translator tool, allow it. Translation adds about 1.5 to 5 seconds on the API, or under a second on the Apple engine, before a prompt in your language is sent. Finished translations are kept in the plugin's own store, about 3 MB of the newest. The README does not name a file for the store.

translate-view translates each prompt before sending it and draws the reply's translation in a side pane, sending the text to a Chat Completions service you set. parrot-translate by default rewrites each prompt into English and draws the translation under the reply, and its default provider is Microsoft's Edge translate service. This one shows what you typed with the English under it, and the reply's translation under the English. The default API host is OpenCode Go. The README says the mod itself makes no network requests and that the API traffic goes through the plugin's translator server. That server is this plugin, so the API path is the network access. The Apple engine is the local program, and it is not the default. The mod refuses its own translator tools when Claude calls them. That refusal is on the translator's own request, so this page does not list a hold. The English prompt is what gets sent.

Demo

The fanyi README on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/fanyi
  • ui.renderDraws into the sessionAbovePromptPaneAssistantMessageUserMessageAskUserQuestionToolUseToolResult
  • prompt.submitWhen you send a prompt
  • session.appendWhen an entry is written to the transcript
  • tool.callAround a tool call, where it can hold oneAskUserQuestion

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /fanyiTranslation: /fanyi toggles it, /fanyi on|off sets it, /fanyi settings opens the settings

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
JrCx7scC
Category
Review
Marketplace
claude-code-fanyi
Repo
JrCx7scC/claude-code-fanyi
Version
0.13.0
License
MIT
Repo stars
9
Last change
2026-10-03
Language
JavaScript
Files
11

Other mods in Review

serpiffserpiffFor serpiff, a local code-review app, draws how far this worktree's review has come and opens that review in the app.coa-deskdavebreamFor Claude of Alexandria, biblical study skills, draws a grounding line under each answer. Passage text comes from coa.davebream.com.receipthoobnnDraws a one-line receipt of the files, lines, and commands from the turn that just ended.figuresnatsukiumDraws diagrams and LaTeX math from Claude's replies, and images from tool results, as pictures in the transcript, in kitty or Ghostty.screen-guarddanyuchnDraws black bars over names, organisations, secrets, and contact details in the transcript while you share your screen.md-renderdeepskyblue86Redraws each finished assistant message as colored markdown: headings, bold, italic, code, lists, and quotes.readable-layoutGarvitNangruDraws your messages and Claude's answers in labeled boxes, short notes as quiet lines, and a rule after every turn.asd-ste100JAICHANGPARKAfter each answer, draws that answer as a Simplified Technical English page in a side pane. The same install includes the STE skill.glossary-browserchicioHolds a commandRefuses a Markdown edit that uses a glossary Avoid word, and draws that repo's terms in a band above the prompt.hide-diffsgixxy22Swaps a long diff for a one-line summary of the file and the lines changed, and folds each finished shell command to one line.mods-image-previewhahmjuntaeDraws thumbnails of the images you paste, above the prompt, in any terminal. A terminal without pictures uses colored quadrant blocks.dash-guardmutlumehmetHolds a commandRefuses a write that adds an em dash, an en dash, or a double hyphen in prose, and names the lines to rewrite.
All 145 in Review