ModsCode / Claude Code Mods / Ranking / lingo-pane
lingo-pane
Learn a language live in your terminal: a lesson split that opens while Claude works, conversation, role-play and reading with a tutor.
What it does
- Draws a band above the prompt, a pane, toasts
- Adds /lingo
- Watches tool calls and can refuse them
- Hooks classic.SessionStart, prompt.submit, session.start, turn.complete and 2 more
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
Code to start from
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like lingo-pane by Asdrúbal Iván Suárez Rivera (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/asdrubalivan-lingo-pane/
// Written by ModsCode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text, Button } = $.ui.resolve(e)
return (
<Box flexDirection="column">
<Box columnGap={1}>
<Text dimColor>
{"lingo-pane: setup pending. "}
</Text>
<Button label="Start setup" hotkey="2" plain />
<Button label="Later" hotkey="3" plain />
</Box>
<Box columnGap={1}>
<Text dimColor>
lingo-pane
</Text>
<Button label="open lesson" hotkey="1" plain />
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "lingo-pane" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Input, Button } = $.ui.resolve(e)
const claudeStateLine = '…'
const setupStep = '…'
const nativeLanguage = '…'
const targetLanguage = '…'
const setupLevelAsk = '…'
const level = '…'
const index = '…'
const interests = '…'
const title = '…'
const setupComingLater = '…'
const title2 = '…'
const title3 = '…'
const label = '…'
const setupSummaryLanguages = '…'
const setupSummaryInterests = '…'
const setupSummaryLook = '…'
const setupSummaryContext = '…'
const title4 = '…'
const strategies = '…'
const title5 = '…'
const strategies2 = '…'
const title6 = '…'
const strategies3 = '…'
const problem = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column" marginBottom={1}>
<Text>
● keys here · Esc back to the prompt
</Text>
<Text dimColor>
{claudeStateLine}
</Text>
</Box>
<Box flexDirection="column">
<Text bold>
lingo-pane setup
</Text>
<Text dimColor>
{`${setupStep}`}
</Text>
<Text dimColor>
Type, Enter keeps the text, Tab moves to the next field or button.
</Text>
<Box flexDirection="column">
<Text>
Which languages? The explanations are in your native language.
</Text>
<Input label="Native language: " value={`${nativeLanguage}`} placeholder="e.g. Spanish" autoFocus />
<Input label="Target language: " value={`${targetLanguage}`} placeholder="e.g. English" />
</Box>
<Box flexDirection="column">
<Text>
{`${setupLevelAsk}`}
</Text>
<Box flexWrap="wrap" columnGap={1}>
<Button label={`${level}`} hotkey={`${index}`} plain variant="primary" />
<Button label={`${level}`} hotkey={`${index}`} plain variant="primary" />
<Button label={`${level}`} hotkey={`${index}`} plain variant="primary" />
</Box>
<Text dimColor>
None picked yet.
</Text>
</Box>
<Box flexDirection="column">
<Text>
What do you like to talk about? Role-play scenarios are made from it.
</Text>
<Text dimColor>
Optional, comma-separated, up to 5.
</Text>
<Input label="Interests: " value={`${interests}`} placeholder="e.g. chess, cooking, startups" autoFocus />
</Box>
<Box flexDirection="column">
<Text>
Placement test (optional)
</Text>
<Text dimColor>
placement test: coming later
</Text>
</Box>
<Box flexDirection="column">
<Text>
How should it work? Defaults are fine; "coming later" ones are not built yet.
</Text>
<Box flexDirection="column">
<Text bold>
{title}
</Text>
<Box flexWrap="wrap" columnGap={1}>
<Text dimColor>
{`${setupComingLater}`}
</Text>
<Text dimColor>
{`${setupComingLater}`}
</Text>
<Text dimColor>
{`${setupComingLater}`}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
{title2}
</Text>
<Box flexWrap="wrap" columnGap={1}>
<Text dimColor>
{`${setupComingLater}`}
</Text>
<Text dimColor>
{`${setupComingLater}`}
</Text>
<Text dimColor>
{`${setupComingLater}`}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
{title3}
</Text>
<Box flexWrap="wrap" columnGap={1}>
<Text dimColor>
{`${setupComingLater}`}
</Text>
<Text dimColor>
{`${setupComingLater}`}
</Text>
<Text dimColor>
{`${setupComingLater}`}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text>
How the lesson looks and who teaches. Defaults are fine.
</Text>
<Text bold>
Split width while Claude works (share of the terminal)
</Text>
<Box flexWrap="wrap" columnGap={1}>
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
</Box>
<Text bold>
Tutor model
</Text>
<Box flexWrap="wrap" columnGap={1}>
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
</Box>
<Text dimColor>
Every tutor reply uses your Claude plan.
</Text>
<Text bold>
Theme
</Text>
<Box flexWrap="wrap" columnGap={1}>
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
</Box>
<Box columnGap={1} flexWrap="wrap">
<Text>
conversation
</Text>
<Text>
role-play
</Text>
<Text>
reading
</Text>
<Text>
tutor
</Text>
<Text>
you
</Text>
</Box>
<Text bold>
Material from your own session (optional)
</Text>
<Box flexWrap="wrap" columnGap={1}>
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
</Box>
<Text dimColor>
On: short excerpts of your last prompt and of Claude's last reply (secrets and emails redacted) go to the tutor, on you…
</Text>
</Box>
<Box flexDirection="column">
<Text>
Summary
</Text>
<Text>
{`${setupSummaryLanguages}`}
</Text>
<Text dimColor>
{`${setupSummaryInterests}`}
</Text>
<Text dimColor>
{`${setupSummaryLook}`}
</Text>
<Text dimColor>
{`${setupSummaryContext}`}
</Text>
<Text dimColor>
{title4}
{": "}
{strategies}
</Text>
<Text dimColor>
{title5}
{": "}
{strategies2}
</Text>
<Text dimColor>
{title6}
{": "}
{strategies3}
</Text>
</Box>
<Box marginTop={1} columnGap={1} flexWrap="wrap">
<Button label="Back" plain />
<Button label="Next" plain />
<Button label="Skip" plain />
<Button label="Confirm" variant="primary" autoFocus />
</Box>
<Text dimColor>
{problem}
</Text>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const summaryText = '…'
await $.ui.toast(`lingo-pane: ${summaryText}`)
await $.ui.toast(`lingo-pane: setup pending. Run /lingo setup (or press 2 in the band above the prompt).`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
hooks/register.tsx lines 693–752 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
noteViewport(e)
if (e.props.hasSurvey) return next(e)
const state = await read($, wait)
const setup = await currentSetup($)
const band = await read($, setupBand)
const isSetupShown = setup === null && !band.isHidden
const isOfferShown = setup !== null && isOfferVisible(state)
if (!isSetupShown && !isOfferShown) return next(e)
const { Box, Button, Text } = $.ui.resolve(e)
return (
<Box flexDirection="column">
{isSetupShown && (
<Box columnGap={1}>
<Text dimColor>{LABELS.bandSetupPending}</Text>
<Button
key="setup-start"
label={LABELS.bandStartSetup}
hotkey="2"
plain
onPress={async () => {
await update($, setupWizard, s => wizardTransition(s, { type: 'open' }, draftFromConfig(native, target)))
// Opened by a press, so it is placed at any width.
const opened = await $.ui.open(openArgs(setup))
if (opened.isPlaced) await dispatchWait($, { type: 'pane-placed', opener: 'person' })
}}
/>
<Button
key="setup-later"
label={LABELS.bandLater}
hotkey="3"
plain
onPress={() => update($, setupBand, () => ({ isHidden: true }))}
/>
</Box>
)}
{isOfferShown && (
<Box columnGap={1}>
<Text dimColor>{LABELS.modName}</Text>
<Button
key="open-lingo"
label={LABELS.bandOpenLesson}
hotkey="1"
plain
onPress={async () => {
await dispatchWait($, { type: 'offer-taken' })
// Opened by a press: placed at any width, inline when it cannot dock.
const opened = await $.ui.open(openArgs(setup))
if (opened.isPlaced) await dispatchWait($, { type: 'pane-placed', opener: 'person' })
if (setup !== null) await ensureLesson($, setup)
}}
/>
</Box>
)}
</Box>
)
})hooks/register.tsx lines 754–913 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
noteViewport(e)
const setup = await currentSetup($)
const wizard = await read($, setupWizard)
const state = await read($, wait)
if (e.surface === 'mobile') {
// The mobile app draws no Input yet, so the wizard cannot run there.
const { Box, Text } = $.ui.resolve(e)
return (
<Box flexDirection="column">
<Text bold>{LABELS.modName}</Text>
<Text dimColor>
{setup === null ? LABELS.setupNeedsInput : LABELS.learning(setup.targetLanguage, setup.nativeLanguage)}
</Text>
</Box>
)
}
const { Box, Button, Input, Link, Text } = $.ui.resolve(e)
// On top of the split: whether the keys are here (Esc hands them back and the
// split stays), and what Claude is doing.
const isFocused = e.props.isFocused
const top = (
<Box flexDirection="column" marginBottom={1}>
<Text bold={isFocused} dimColor={!isFocused}>
{isFocused ? LABELS.keysHere : LABELS.keysAway}
</Text>
<Text dimColor>{claudeStateLine(state, state.startedAt === null ? 0 : await $.clock.now())}</Text>
</Box>
)
// A permission ask or a question: the split waits, dimmed and with no field,
// so a key meant for the dialog never lands in it.
if (state.phase === 'paused') {
return (
<Box flexDirection="column">
{top}
<Text dimColor>{LABELS.waitingForYou}</Text>
</Box>
)
}
// Setup pending, or being redone: the wizard.
const drawWizard = () => {
// What an untouched draft stands for: what is saved, else the userConfig.
const defaults = setup === null ? draftFromConfig(native, target) : draftFromSetup(setup)
const draft = wizard.draft ?? defaults
const step = wizard.step
const number = STEPS.indexOf(step) + 1
const problem = stepProblem(step, draft)
const dispatch = async (event: WizardEvent) => {
await touch($)
await update($, setupWizard, s => wizardTransition(s, event, defaults))
}
// Enter empties a field on screen; a new key redraws it with the draft.
const keepText = () => {
inputRev += 1
$.ui.invalidate('ui.render')
}
const confirm = async () => {
const latest = await read($, setupWizard)
const built = buildSetup(latest.draft ?? defaults, new Date(await $.clock.now()).toISOString())
if (built === null) return
await $.store.set(SETUP_STORE_KEY, built)
await update($, setupCache, () => ({ isLoaded: true, setup: built }))
await update($, setupWizard, () => CLOSED_WIZARD)
$.ui.toast(LABELS.setupSaved)
// Straight into the lesson, zero clicks.
await ensureLesson($, built)
}
// One row of choice buttons; the picked one is primary. No hotkeys: Tab and Enter.
const choices = <T extends string | number>(
prefix: string,
options: readonly { id: T; label: string }[],
picked: T,
pick: (id: T) => unknown,
) => (
<Box flexWrap="wrap" columnGap={1}>
{options.map(option => (
<Button
key={`${prefix}-${option.id}`}
label={option.label}
variant={picked === option.id ? 'primary' : 'secondary'}
onPress={() => pick(option.id)}
/>
))}
</Box>
)
const preview = themeByName(draft.theme).colors
return (
<Box flexDirection="column">
<Text bold>{LABELS.setupTitle}</Text>
<Text dimColor>{LABELS.setupStep(number, STEPS.length)}</Text>
<Text dimColor>
{step === 'languages' || step === 'interests'
? LABELS.setupHintTyping
: step === 'level'
? LABELS.setupHintLevel
: LABELS.setupHintButtons}
</Text>
{step === 'languages' && (
<Box flexDirection="column">
<Text>{LABELS.setupLanguagesAsk}</Text>
<Input
key={`native-${inputRev}`}
label={LABELS.setupNative}
value={draft.nativeLanguage}
placeholder={LABELS.setupNativePlaceholder}
autoFocus
onInput={value => dispatch({ type: 'set-field', field: 'nativeLanguage', value })}
onSubmit={value => {
dispatch({ type: 'set-field', field: 'nativeLanguage', value: value === '' ? draft.nativeLanguage : value })
keepText()
}}
/>
<Input
key={`target-${inputRev}`}
label={LABELS.setupTarget}
value={draft.targetLanguage}
placeholder={LABELS.setupTargetPlaceholder}
onInput={value => dispatch({ type: 'set-field', field: 'targetLanguage', value })}
onSubmit={value => {
dispatch({ type: 'set-field', field: 'targetLanguage', value: value === '' ? draft.targetLanguage : value })
keepText()
}}
/>
</Box>
)}
{step === 'level' && (
<Box flexDirection="column">
<Text>{LABELS.setupLevelAsk(draft.targetLanguage.trim())}</Text>
<Box flexWrap="wrap" columnGap={1}>
{LEVELS.map((level, index) => (
<Button
key={`level-${level}`}
label={level}
hotkey={String(index + 1)}
plain
variant={draft.level === level ? 'primary' : 'secondary'}
onPress={() => dispatch({ type: 'set-level', level })}
/>
))}
</Box>
<Text dimColor>{draft.level === null ? LABELS.setupLevelNone : LABELS.setupLevelPicked(draft.level)}</Text>
</Box>
)}
{step === 'interests' && (
<Box flexDirection="column">
<Text>{LABELS.setupInterestsAsk}</Text>
<Text dimColor>{LABELS.setupInterestsNote}</Text>
<Input
key={`interests-${inputRev}`}Licence text (MIT)
MIT License Copyright (c) 2026 Asdrúbal Iván Suárez Rivera Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
How to build this: Pane (panel), Deny a tool call
What its code calls
drives Claudetool callsremembers
What its code shows
Read from the source at commit fb1fa3502f49 on 2026-10-11. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.22 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.its repository's .claude-plugin/marketplace.json does not list it: no marketplace line to give; the page shows how to try the commit read |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reaches nothing outside |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets ModsCode show its code; otherwise the code is linked.MIT |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.model.complete, adds command lingo |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run (lingo), prompt.submit, tool.check, tool.call · reads: classic.SessionStart · also: session.start, turn.start, turn.complete, ui.close (+1) · timers: clock.every, clock.after |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.reads no files, environment variables, settings or transcript |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.writes no files, environment variables, settings or conversation rows |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and ModsCode does not vouch for what this code does. Read its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository's .claude-plugin/marketplace.json does not list it, so there is no marketplace line to give.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/asdrubalivan/lingo-panegit -C lingo-pane checkout fb1fa3502f49c0ebea8aca07f5f78be3062c6bd7claude plugin validate lingo-paneclaude --plugin-dir lingo-paneThe validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude about it
With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:
Read the ModsCode mod "asdrubalivan-lingo-pane" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- mod-storehellosverre★ 2
- pr-commentsaguiddir★ 2
- source-controlmanuel-will★ 2
- gh-inboxmako-code★ 1
- issue-boardastrosteveo★ 0
- tidemarkVizzleTF★ 0
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/asdrubalivan-lingo-pane/)