anki
Review your AnkiWeb decks above the Claude Code prompt while Claude works. Syncs straight with AnkiWeb through Anki's own Rust core; no Anki desktop or AnkiConnect needed.
What it does
- Draws a band above the prompt, toasts
- Adds /anki
- Hooks session.end, session.start, turn.complete, turn.start
- Keeps its own state between turns
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Handles errors
- Writes no files
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 anki by hbkse (band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/hbkse-anki/
// 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)
const title = '…'
const tally = '…'
const lead = '…'
const chunk = '…'
const chunk2 = '…'
const chunk3 = '…'
const chunk4 = '…'
const chunk5 = '…'
const chunk6 = '…'
const chunk7 = '…'
const chunk8 = '…'
const chunk9 = '…'
const lead2 = '…'
const chunk10 = '…'
const chunk11 = '…'
const chunk12 = '…'
const chunk13 = '…'
const chunk14 = '…'
const chunk15 = '…'
const chunk16 = '…'
const chunk17 = '…'
const chunk18 = '…'
const lead3 = '…'
const chunk19 = '…'
const chunk20 = '…'
const chunk21 = '…'
const chunk22 = '…'
const chunk23 = '…'
const chunk24 = '…'
const chunk25 = '…'
const chunk26 = '…'
const chunk27 = '…'
const lead4 = '…'
const chunk28 = '…'
const chunk29 = '…'
const chunk30 = '…'
const chunk31 = '…'
const chunk32 = '…'
const chunk33 = '…'
const chunk34 = '…'
const chunk35 = '…'
const chunk36 = '…'
const lead5 = '…'
const chunk37 = '…'
const chunk38 = '…'
const chunk39 = '…'
const chunk40 = '…'
const chunk41 = '…'
const chunk42 = '…'
const chunk43 = '…'
const chunk44 = '…'
const chunk45 = '…'
const lead6 = '…'
const chunk46 = '…'
const chunk47 = '…'
const chunk48 = '…'
const chunk49 = '…'
const chunk50 = '…'
const chunk51 = '…'
const chunk52 = '…'
const chunk53 = '…'
const chunk54 = '…'
const key = '…'
const name = '…'
return (
<Box flexDirection="column" borderStyle="round" borderColor="cyan" paddingX={1}>
<Box justifyContent="space-between">
<Text color="cyan" bold>
{title}
</Text>
<Text dimColor>
{tally}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap">
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{lead}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk2}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk3}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk4}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk5}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk6}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk7}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk8}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk9}
</Text>
</Box>
</Box>
<Box flexDirection="row" flexWrap="wrap">
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{lead2}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk10}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk11}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk12}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk13}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk14}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk15}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk16}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk17}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk18}
</Text>
</Box>
</Box>
<Box flexDirection="row" flexWrap="wrap">
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{lead3}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk19}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk20}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk21}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk22}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk23}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk24}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk25}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk26}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk27}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap">
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{lead4}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk28}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk29}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk30}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk31}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk32}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk33}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk34}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk35}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk36}
</Text>
</Box>
</Box>
<Box flexDirection="row" flexWrap="wrap">
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{lead5}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk37}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk38}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk39}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk40}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk41}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk42}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk43}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk44}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk45}
</Text>
</Box>
</Box>
<Box flexDirection="row" flexWrap="wrap">
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{lead6}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk46}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk47}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk48}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk49}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk50}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk51}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk52}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk53}
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Text>
{chunk54}
</Text>
</Box>
</Box>
</Box>
<Box gap={2}>
<Button hotkey={`${key}`} plain label={`${name}`} />
<Button hotkey={`${key}`} plain label={`${name}`} />
<Button hotkey={`${key}`} plain label={`${name}`} />
<Button hotkey="5" plain label="undo" />
<Button hotkey="0" plain label="decks" />
</Box>
{await next(e)}
</Box>
)
})
on('session.start', async ($, e, next) => {
const ankiwebSays = '…'
await $.ui.toast(`Logged in to AnkiWeb and synced.${ankiwebSays}`)
await $.ui.toast(`AnkiWeb needs a one-way sync: /anki download (take AnkiWeb's copy) or /anki upload (replace it with this one).`)
return next(e)
})
}
The mod's own code
Its licence text was not found at the commit read, so only the places in the source are linked.
What its code calls
runs programsenv varsremembers
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 8d78425ffb8c 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.1 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).hooks/register.tsx:414 uname (not on Windows) |
| 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.hooks/register.tsx:112 a program named at run time; hooks/register.tsx:441 a program named at run time; hooks/register.tsx:451 a program named at run time |
| 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.AGPL-3.0 (not an open licence) |
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 "hbkse-anki" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
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
-
could not fill the prompt boxcould not fill:Ask Claude…
-
▴Token OptimizerCheckpointCheckpointCheckpointbuildStart freshbuildStart freshbuildStart freshbuildCheckpointCheckpointCheckpointCheckpointCheckpointCheckpointCheckpointCheckpointCheckpointbuildbuildbuildTokens savedSaved Clean up tokens in 30 days (chat 2 this session)Ask Claude…
-
reflect · "Skip" ×3Save to ./CLAUDE.mdGlobal insteadEditSkipreflect · "Skip" ×3Save to ./CLAUDE.mdGlobal insteadEditSkipreflect · "Skip" ×3reflect · +3 more · /reflect-queueSave to ./CLAUDE.mdGlobal insteadEditSkipAsk Claude…
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claude…
-
✉ 3 unread AMP message ReadHideAsk Claude…