modscode / Gallery / 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
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
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/gallery/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.
What its code calls
drives Claudetool callsremembers
The design, read from code
Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit fb1fa3502f49 on 2026-10-06. 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 install line to give |
| 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 files or environment variables and reaches the network.reaches no network |
| 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 |
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 the code below (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 install line to give. Read it as code, or follow its author's README.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "asdrubalivan-lingo-pane" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
What it does
- Draws a band above the prompt, a pane
- Watches tool calls and can refuse them
- Hooks config.describe, session.start, turn.complete, ui.close
- Keeps its own state between turns
-
Ask Claude…GitHub inboxGitHubloading…Refresh rbuildbuildbuildClose xStealth IssuesNo open issues in this view.#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopenPull requestsNo open pull requests.#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopenChecks for #3Plain
-
Ask Claude…ReviewPR #3 Fix loginbranche couranteà traiter ▸3 ▸3 ▸3 · en relecture ▸3 ▸3 ▸3▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review────────fil 31/3 Review ↗ GitHub
Review@alexReview@alexReview@alexReviewRéponse : Review publierEntrée publie · Esc annule la réponse · les touches n, p… tapent dans le champ… ReviewLe panneau n'a pas le clavier : ctrl+x tab ou un clic, et les touches marchent.p préc. n suiv. t PR suiv. x démarquer a tout démarquer f corriger (3) r répondre v résoudre o web q fermer -
Ask Claude…◉ Subcommands◆ acme/app● Backlog build▲ Backlog build⇄ Backlog build✗ Backlog buildPriorityBacklog 3%◌ syncing… r⚙ Set up build for the board◌ Reading the repo, its project and its issues…Couldn't read what setup needs: Item closed/issues check says what is missing and how to fix it.Projectnone is linked to buildFix login (#3)buildApply will:● Fix login Item closed● Fix login Item closed● Fix login Item closedarea labels to create: Off track updateWhich Status is whichInbox (folds)Inbox (folds)Inbox (folds)In the project's Workflows settings, by hand: · turn on Off track · turn off Inactive: it marks every closed issue Done, even an abandoned one; the board moves issues closed as comp… · new issues arrive with Status Todo, GitHub's default, so they skip the Inbox: open Item added to project and set it…↗ WorkflowsNo issue template has an Acceptance list.◌ Applying…build █████░░░ Off trackbuild █████░░░ Off tracklast 12 weeks✗ Setup needed⋯Fix loginSubcommandsSubcommands↗ example.comFix loginSubcommandsSubcommands↗ example.comFix loginSubcommandsSubcommands↗ example.com
-
Ask Claude…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
Ask Claude…Session inboxK build 3K build 3K build 3Nothing is waiting on you.Running 3● build example.com● build example.com● build example.com▸ Fix login 3✓ Done✓ Done✓ Done▸ Fix login 3OpportunityOpportunityOpportunityokupdate failed, retries after the next reply