Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / maxlearn

maxlearn

Study companion: lessons and flashcards from your chats and interests, scheduled with FSRS or SM-2 spaced repetition

Code you can checkTerminal + desktopPaneStatus lineToastBoxButtonClientText
drives Claude, draws

What it does

  • Draws a pane, the status line, toasts
  • Adds /study
  • Hooks session.start, turn.complete, ui.focus, ui.message
  • 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)

register.tsx
import type { Register } from 'claude-code'

// Drawn like maxlearn by Yash Verma (pane, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/yashverma2110-maxlearn/
// 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 pane: open it with $.ui.open({ id: 'my-pane', title: "maxlearn" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Button, Text } = $.ui.resolve(e)
    const TAB_LABELS = '…'
    const TAB_KEYS = '…'
    const FROM_LABELS = '…'
    const counts = '…'
    const status = '…'
    const keyHint = '…'
    const keys = '…'
    const what = '…'
    const keys2 = '…'
    const what2 = '…'
    const keys3 = '…'
    const what3 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" flexShrink={0} gap={1}>
          <Box gap={1} flexWrap="wrap">
            <Button label={`${TAB_LABELS}`} hotkey={`${TAB_KEYS}`} plain />
            <Button label={`${TAB_LABELS}`} hotkey={`${TAB_KEYS}`} plain />
            <Button label={`${TAB_LABELS}`} hotkey={`${TAB_KEYS}`} plain />
          </Box>
          <Box gap={2} flexWrap="wrap" alignItems="center">
            <Text dimColor>
              Show
            </Text>
            <Button label={`${FROM_LABELS} · ${counts}`} plain />
            <Button label={`${FROM_LABELS} · ${counts}`} plain />
            <Button label={`${FROM_LABELS} · ${counts}`} plain />
          </Box>
        </Box>
        <Box flexGrow={1} />
        <Box flexDirection="column" gap={1} flexShrink={0} />
        <Box flexGrow={1} />
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={2} paddingY={1} gap={1} marginTop={1}>
          <Box justifyContent="space-between">
            <Text dimColor bold>
              Shortcuts
            </Text>
            <Text dimColor>
              {status}
            </Text>
          </Box>
          <Text dimColor wrap="truncate-end">
            {keyHint}
          </Text>
          <Box gap={3} flexWrap="wrap" rowGap={1}>
            <Box gap={2} flexWrap="wrap" />
          </Box>
          <Box flexDirection="column" marginTop={1}>
            <Text dimColor wrap="truncate-end">
              {keys}
              {what}
            </Text>
            <Text dimColor wrap="truncate-end">
              {keys2}
              {what2}
            </Text>
            <Text dimColor wrap="truncate-end">
              {keys3}
              {what3}
            </Text>
          </Box>
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const frame = '…'
    const noun = '…'
    const writingWhat = '…'
    const elapsed = '…'
    const n = '…'
    const auto = '…'
    await $.ui.status(`${frame} Writing ${noun}s ${writingWhat} · ${elapsed}s`)
    await $.ui.toast(`📚 Queued: ${noun}s ${writingWhat}`)
    await $.ui.toast(`📚 ${n} new ${noun} ${writingWhat}${auto}`)
    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 2721–2794 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const columns = e.props.bodyColumns ?? 40
    const d: Draw = {
      ui: $.ui.resolve(e),
      surface: e.surface,
      density: density(columns),
      width: Math.max(20, columns - 2),
    }
    const { Box } = d.ui
    const v = await read($, view)
    const i = await readInsights($)
    const { card, ctx } = await activeCard($)

    const cards = await read($, deck)
    let body
    if (v.mode === 'welcome') {
      body = WelcomeTab($, d, v, await read($, settings))
    } else if (v.mode === 'learn') {
      const id = await read($, lessonNow)
      const lesson = id === null || id === PENDING ? undefined : findLesson(id, cards, await read($, lessons))
      if (lesson !== undefined) markShown(lesson.id, await $.clock.now())
      body = LearnTab($, d, id, lesson, (await read($, lessonQueue)).length, await read($, generating), v.from ?? 'all', i)
    } else if (v.mode === 'progress') {
      body = InsightsTab($, d, v, i)
    } else if (v.mode === 'settings') {
      body = SettingsTab($, d, await read($, settings), v)
    } else if (v.mode === 'add') {
      body = MoreTab($, d, v, i)
    } else {
      if (card !== undefined) markShown(card.id, await $.clock.now())
      body = StudyTab($, d, v, card, i, cards, await read($, session))
    }

    // Where i j k l walk the highlight: other tabs, and a study tab with nothing due.
    ringOrder =
      v.mode === 'review' && v.isRevealed && card !== undefined
        ? GRADE_KEYS
        : (v.mode === 'review' || v.mode === 'quiz') && card !== undefined
          ? []
          : focusOrder(body)

    // Content on top, the grey footer pinned to the bottom of the pane: the box is
    // at least as tall as the rows the pane shows, and space-between pushes the
    // footer down. Taller content grows the box and the pane scrolls as before.
    // On the study tabs the card sits in the middle: two empty boxes above and
    // below share the free rows, and shrink to nothing when the content is taller.
    const rows = e.props.scroll?.bodyRows ?? 0
    const isCentered = v.mode === 'welcome' || v.mode === 'learn' || v.mode === 'review' || v.mode === 'quiz'
    const hasFilter = v.mode === 'learn' || v.mode === 'review' || v.mode === 'quiz'
    let counts: Record<LearnFrom, number> = { all: 0, interests: 0, chats: 0 }
    if (v.mode === 'learn') counts = await learnCounts($)
    else if (hasFilter) {
      const due = dueCards(cards, i.now).filter(c => v.mode !== 'quiz' || c.choices.length > 0)
      counts = {
        all: due.length,
        interests: due.filter(c => c.source === 'interest').length,
        chats: due.filter(c => c.source === 'chat').length,
      }
    }
    return (
      <Box flexDirection="column" minHeight={rows} width={d.width}>
        <Box key="top" flexDirection="column" flexShrink={0} gap={1}>
          {TopBar($, d, v)}
          {hasFilter && FilterRow($, d, v, counts)}
        </Box>
        {isCentered && <Box key="space-above" flexGrow={1} />}
        <Box flexDirection="column" gap={1} flexShrink={0}>
          {body}
        </Box>
        <Box key="space-below" flexGrow={1} />
        {Footer($, d, v, ctx, card, i.overview.dueNow, await read($, generating), cards.filter(isToLearn).length)}
      </Box>
    )
  })
hooks/register.tsx lines 1420–1448 · Pane
function TopBar($: $, d: Draw, v: View) {
  const { Box, Button } = d.ui
  const isTerminal = d.surface === 'terminal'
  return (
    <Box key="top-bar" gap={1} flexWrap="wrap">
      {TAB_ORDER.map((mode: Mode) =>
        isTerminal ? (
          <Button
            key={`tab-${mode}`}
            label={TAB_LABELS[d.density][mode]}
            hotkey={TAB_KEYS[mode]}
            plain
            dimColor={mode !== v.mode}
            onPress={() => setMode($, mode)}
          />
        ) : (
          <Button
            key={`tab-${mode}`}
            label={TAB_LABELS[d.density][mode]}
            hotkey={TAB_KEYS[mode]}
            variant={mode === v.mode ? 'primary' : 'secondary'}
            dimColor={mode !== v.mode}
            onPress={() => setMode($, mode)}
          />
        ),
      )}
    </Box>
  )
}
hooks/register.tsx lines 1453–1470 · Pane
function FilterRow($: $, d: Draw, v: View, counts: Record<LearnFrom, number>) {
  const { Box, Button, Text } = d.ui
  const current = v.from ?? 'all'
  return (
    <Box key="from-row" gap={2} flexWrap="wrap" alignItems="center">
      <Text dimColor>Show</Text>
      {(['all', 'interests', 'chats'] as const).map(from => (
        <Button
          key={`from-${from}`}
          label={counts[from] > 0 ? `${FROM_LABELS[from]} · ${counts[from]}` : FROM_LABELS[from]}
          plain
          dimColor={from !== current}
          onPress={() => setFrom($, from)}
        />
      ))}
    </Box>
  )
}
hooks/register.tsx lines 1502–1648 · Pane
function Footer($: $, d: Draw, v: View, ctx: KeyContext, card: Card | undefined, due: number, busy: Generating | null, toLearn = 0) {
  const { Box, Text, Button } = d.ui
  const Client = d.surface === 'terminal' || d.surface === 'desktop' ? d.ui.Client : undefined
  const roomy = isRoomy(d)
  const isTerminal = d.surface === 'terminal'
  const key = (k: string, label: string, onPress: () => unknown, extra: Record<string, unknown> = {}) => (
    <Button key={k} label={label} plain dimColor onPress={onPress} {...extra} />
  )
  const isStudy = v.mode === 'review' || v.mode === 'quiz'
  const cursor = Math.min((card?.choices.length ?? 1) - 1, v.cursor ?? 0)

  const actions = []
  if (isStudy && card !== undefined) {
    if (!v.isRevealed) actions.push(key('skip', 'skip', () => runKey($, { type: 'skip' }, card), { hotkey: 'n' }))
    else actions.push(key('drop', 'drop', () => dropCard($, card), { hotkey: 'd' }))
  }
  actions.push(
    key('undo', 'undo', () => undoLast($), { hotkey: 'u' }),
    key('help', 'keys', () => runKey($, { type: 'help' }, card), { hotkey: 'h' }),
    key('close', 'close', () => closePane($), { hotkey: 'x', role: 'dismiss' }),
  )

  // The i j k l map, shaped like the keys. Where the keys only move or pick (other
  // tabs, the quiz) the map's cells are the Buttons that carry them; on a revealed
  // card the grade buttons above own those hotkeys, so the map is text.
  const map = arrowMap(ctx)
  let arrows
  {
    const isQuizPick = v.mode === 'quiz' && !v.isRevealed && card !== undefined
    const isFaceDown = v.mode === 'review' && !v.isRevealed && card !== undefined
    const isGrading = v.mode === 'review' && v.isRevealed && card !== undefined
    const press: Partial<Record<'i' | 'j' | 'k' | 'l', () => unknown>> = !isStudy || card === undefined || isGrading
      ? { i: () => moveRing($, -1), j: () => moveRing($, -1), k: () => moveRing($, 1), l: () => moveRing($, 1) }
      : isFaceDown
        ? { l: () => runKey($, { type: 'reveal' }, card) }
        : isQuizPick
        ? {
            i: () => moveCursor($, card, -1),
            k: () => moveCursor($, card, 1),
            l: () => runKey($, { type: 'choose', index: cursor }, card),
          }
        : {}
    const cell = (k: 'i' | 'j' | 'k' | 'l') => {
      const word = map[k]
      if (word === undefined) return null
      const onPress = press[k]
      const navKey = isFaceDown ? 'show-key' : isStudy && card !== undefined && !isGrading ? `quiz-${{ i: 'up', j: 'left', k: 'down', l: 'choose' }[k]}` : `nav-${{ i: 'up', j: 'left', k: 'down', l: 'right' }[k]}`
      // A plain Button draws `k: label`, so its label is the cell without the key.
      return onPress
        ? key(navKey, arrowCell(k, word).slice(3), onPress, { hotkey: k })
        : <Text key={`map-${k}`} dimColor>{arrowCell(k, word)}</Text>
    }
    const [top] = arrowLines(map)
    const indent = top.length - top.trimStart().length
    arrows = isTerminal ? (
      <Box flexDirection="column">
        <Box marginLeft={indent}>{cell('i')}</Box>
        <Box gap={2}>
          {cell('j')}
          {cell('k')}
          {cell('l')}
        </Box>
      </Box>
    ) : (
      // A proportional font cannot line `i` up over `k`: one row, in arrow order.
      <Box gap={2}>
        {cell('j')}
        {cell('i')}
        {cell('k')}
        {cell('l')}
      </Box>
    )
  }

  const status = `${due} due${toLearn > 0 ? ` · ${toLearn} to learn` : ''}${busy === null ? '' : ` · ⟳ ${busy.label}`}`
  const hint =
    isStudy && Client ? (
      <Client key={KEYS} module="./keys.tsx" props={{ hint: keyHint(ctx) }} />
    ) : (
      <Text dimColor wrap="truncate-end">
        {keyHint(ctx)}
      </Text>
    )
  const help = v.isHelp && (
    <Box flexDirection="column" marginTop={1}>
      {HELP_LINES.map(([keys, what]) => (
        <Text key={`help-${keys}`} dimColor wrap="truncate-end">
          {keys.padEnd(roomy ? 15 : 10)}
          {what}
        </Text>
      ))}
    </Box>
  )

  if (!isTerminal) {
    // Desktop, VS Code, mobile: draw keycaps for hotkeys in a proportional font, so a
    // drawn rule wraps and spaces do not align. One framed block, four short rows.
    return (
      <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={2} paddingY={1} gap={1} marginTop={1}>
        <Box justifyContent="space-between">
          <Text dimColor bold>
            Shortcuts
          </Text>
          <Text dimColor>{status}</Text>
        </Box>
        {hint}
        <Box gap={3} flexWrap="wrap" rowGap={1}>
          {arrows}
          <Box gap={2} flexWrap="wrap">
            {actions}
          </Box>
        </Box>
        {help}
      </Box>
    )
  }

  return (
    <Box flexDirection="column">
      <Text dimColor>{`── Shortcuts ${'─'.repeat(Math.max(0, d.width - 13))}`}</Text>
      {arrows}
      {isStudy && Client ? (
        <Client key={KEYS} module="./keys.tsx" props={{ hint: keyHint(ctx) }} />
      ) : (
        <Text dimColor wrap="truncate-end">
          {keyHint(ctx)}
        </Text>
      )}
      <Box gap={1} flexWrap="wrap">
        {actions}
      </Box>
      <Text dimColor>
        {due} due{toLearn > 0 ? ` · ${toLearn} to learn` : ''}{busy === null ? '' : ` · ⟳ ${busy.label}`}
      </Text>
      {v.isHelp && (
        <Box flexDirection="column" marginTop={1}>
          {HELP_LINES.map(([keys, what]) => (
            <Text key={`help-${keys}`} dimColor wrap="truncate-end">
              {keys.padEnd(roomy ? 15 : 10)}
              {what}
            </Text>
          ))}
        </Box>
      )}
    </Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Yash Verma

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), Add a slash command

What its code calls

drives Clauderemembers

What its code shows

Read from the source at commit ea8a24cacf55 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 readEvery module hooks/hooks.json names was read.hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.15 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo 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 openNetwork 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 drawsThe 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, with its own branch for the desktop
Install lineWhether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there
Programs on WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks
NetworkWhether every fetch names its https host in the code.no network
ProgramsWhether 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 sendsWhether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads the transcript, the mouse selection, but reaches nothing outside
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn 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 hooksHooks 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 shipsMCP 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, agentsWhat 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 MCPWhether 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 modelCompletions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.model.complete, model.fork (sends its own transcript), adds command study
Events it hooksBy 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 (study) · reads: ui.message · also: session.start, ui.focus, turn.complete, ui.render (CommandOutput, Pane) · timers: clock.every, clock.after
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.the transcript; the mouse selection
Writes, by nameThe 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.

From its marketplace

Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:

/plugin marketplace add yashverma2110/maxlearn
/plugin install maxlearn@maxlearn
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (ea8a24cacf55). Compare them before you install. /reload-plugins loads it into a session that is already open.

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/yashverma2110/maxlearn
git -C maxlearn checkout ea8a24cacf551cd31387770ec7d18daa35d35a4b
claude plugin validate maxlearn
claude --plugin-dir maxlearn

The 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 "yashverma2110-maxlearn" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/yashverma2110-maxlearn.svg)](https://modscode.com/claude-mods/mods/yashverma2110-maxlearn/)