ModsCode / Claude Code Mods / Ranking / jot
jot
A notes pane: jot text during a session, keep it across sessions, arrow to a note and press Enter to paste it into the prompt.
What it does
- Draws a pane
- Adds /notes, /note
- Hooks prompt.submit, session.start, ui.focus
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Handles errors
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 jot by Danny (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/danh295-jot/
// 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: "Notes" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Input } = $.ui.resolve(e)
const key = '…'
const help = '…'
const key2 = '…'
const help2 = '…'
const key3 = '…'
const help3 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text color="claude">
●
</Text>
{" keys here"}
</Text>
<Text dimColor wrap="truncate">
↑↓ move ⏎ paste
</Text>
</Box>
<Input placeholder="Edit the note (empty cancels)" value="" submitLabel="update" autoFocus />
<Text wrap="truncate">
<Text color="claude">
{key}
</Text>
{help}
</Text>
<Text wrap="truncate">
<Text color="claude">
{key2}
</Text>
{help2}
</Text>
<Text wrap="truncate">
<Text color="claude">
{key3}
</Text>
{help3}
</Text>
<Box flexDirection="row" gap={2} />
<Box flexDirection="row" gap={2} />
<Box flexDirection="row" gap={2} />
</Box>
)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
plugins/jot/hooks/register.tsx lines 387–437 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const list = await read($, notes)
const editId = await read($, editingId)
const model: PaneModel = {
list,
focused: await read($, focusedId),
editing: list.find(note => note.id === editId),
gen: await read($, draftGen),
listGen: await read($, listGen),
ring: await read($, ringOn),
cols: e.props.bodyColumns,
bodyRows: e.props.scroll.bodyRows,
isFocused: e.props.isFocused,
showKeys: await read($, showKeys),
now: await $.clock.now(),
surface: e.surface,
}
const kit = $.ui.resolve(e)
lastModel = model
return drawPane(kit, model, {
press: key => {
void (async () => {
// A key pressed from the key list does its job and closes the list.
if (key !== 'keys') await update($, showKeys, () => false)
const note = await target($)
await apply($, await runAction($, key, { note, list: await read($, notes), surface: e.surface }))
})()
},
submit: value => {
void submitDraft($, value).then(outcome => apply($, outcome))
},
paste: note => {
void paste($, note.text, 'insert').then(outcome => apply($, outcome))
},
order: (keys, start) => {
reachable = keys
const scrolled = windowStart !== null && start !== windowStart
windowStart = start
const selected = keys.find(key => idOfRowKey(key) === model.focused)
if (scrolled && e.props.isFocused && selected !== undefined && model.ring?.startsWith('note-')) {
$.clock.after(0, () => {
void (async () => {
await update($, ringOn, () => selected)
await focusKey($, selected)
})()
})
}
},
})
})plugins/jot/hooks/view.tsx lines 61–215 · Pane
export function drawPane(kit: Kit, model: PaneModel, on: PaneHandlers) {
const { Box, Text, Button, Markdown, Input } = kit
const { list, focused, editing, gen, ring, cols, isFocused } = model
// With no notes the ring starts on the draft field, so treat that as typing too.
const isTyping = ring === null ? list.length === 0 : ring.startsWith('draft-')
const armed = isFocused && !isTyping && model.surface !== 'mobile'
const hot = (key: string) => (armed ? key : undefined)
const focusedNote = list.find(note => note.id === focused) ?? list[0]
// The engine's ring keeps a place in the drawing, not a key, so everything it
// can reach sits where a change of selection or focus never moves it: the
// field, then the notes, then the key rows. Nothing focusable above the notes.
const reachable: string[] = []
const button = (spec: KeySpec) => (
<Button
key={spec.key}
label={labelOf(spec, focusedNote)}
plain
dimColor
hotkey={hot(spec.hotkey)}
onPress={() => on.press(spec.key)}
/>
)
// Where the keys are, said first: the one thing v0.1 never showed.
const status = isFocused ? (
<Box key="status" flexDirection="row" justifyContent="space-between">
<Text>
<Text color="claude">●</Text> keys here
</Text>
<Text dimColor wrap="truncate">↑↓ move ⏎ paste</Text>
</Box>
) : (
<Text key="status" dimColor wrap="truncate">
○ ctrl+x tab or /notes to use
</Text>
)
// Mobile draws no Input: its pane lists and pastes, and /note adds.
const draft =
Input === undefined || !hasDraft(model) ? null : (
<Input
key={`draft-${gen}`}
placeholder={editing ? 'Edit the note (empty cancels)' : 'New note… Enter saves'}
value={editing?.text ?? ''}
submitLabel={editing ? 'update' : 'save'}
autoFocus={list.length === 0 ? true : undefined}
onSubmit={(value: string) => on.submit(value)}
/>
)
if (draft !== null) reachable.push(`draft-${gen}`)
const { keyRows, room } = frame(model)
const keyRowsDrawn = keyRows.map((row, i) => (
<Box key={`keys-${i}`} flexDirection="row" gap={2}>
{row.map(button)}
</Box>
))
const keyRowKeys = keyRows.flat().map(spec => spec.key)
if (model.showKeys || list.length === 0) {
on.order([...reachable, ...keyRowKeys], 0)
const lines = [
['↑ ↓', 'Move between notes'],
['Enter', 'Paste the note at the cursor'],
['1–9', 'Paste note 1 to 9'],
...KEYS.map(spec => [spec.hotkey, spec.help]),
]
return (
<Box flexDirection="column">
{status}
{draft}
{list.length === 0 && !model.showKeys ? (
<Text dimColor wrap="wrap">
No notes yet. Type one above and press Enter, or run /note <text>.
</Text>
) : (
lines.slice(0, Math.max(0, room - 1)).map(([key, help]) => (
<Text key={`help-${key}`} wrap="truncate">
<Text color="claude">{(key ?? '').padEnd(6)}</Text>
{help}
</Text>
))
)}
{keyRowsDrawn}
</Box>
)
}
const layout = layoutRows(list, focusedNote?.id ?? null, room, previewBudget(model, focusedNote?.id ?? null))
const window = windowTag(model, layout.start)
const rows: RenderChildren[] = []
if (layout.above > 0) rows.push(<Text key="above" dimColor>{' '}↑ {layout.above} more</Text>)
for (let i = layout.start; i < layout.end; i++) {
const note = list[i]!
const prev = i > layout.start ? list[i - 1] : undefined
if (layout.rules && note.isPinned && prev?.isPinned !== true) rows.push(rule(Text, 'pinned', cols, 'rule-pinned'))
if (layout.rules && !note.isPinned && prev?.isPinned === true) rows.push(rule(Text, '', cols, 'rule-rest'))
const isSelected = note.id === focusedNote?.id
const age = ageLabel(model.now, note.createdAt)
const digit = i < 9 ? 3 : 0
const key = rowKey(note.id, window)
reachable.push(key)
rows.push(
<Box key={`row-${note.id}`} flexDirection="row">
<Box width={GUTTER} flexShrink={0}>
{isSelected ? <Text color={isFocused ? 'claude' : 'inactive'}>{isFocused ? '▌' : '▏'}</Text> : <Text> </Text>}
</Box>
<Box flexGrow={1}>
<Button
key={key}
label={labelFor(note, cols - GUTTER - digit - age.length - 2)}
plain
hotkey={i < 9 ? hot(String(i + 1)) : undefined}
autoFocus={isSelected ? true : undefined}
onPress={() => on.paste(note)}
/>
</Box>
<Text color="subtle"> {age}</Text>
</Box>,
)
// The lifted card: the rest of the note, clipped to its budget. Not
// focusable, so it moves nothing the ring keeps a place on.
const body = isSelected && isFocused ? previewText(note.text) : ''
if (body !== '' && layout.preview > 0) {
rows.push(
<Box
key="preview"
height={layout.preview}
overflow="hidden"
marginLeft={GUTTER}
borderStyle="quote"
borderColor="claude"
paddingLeft={1}
>
<Markdown text={body} />
</Box>,
)
}
}
if (layout.below > 0) rows.push(<Text key="below" dimColor>{' '}↓ {layout.below} more</Text>)
on.order([...reachable, ...keyRowKeys], layout.start)
return (
<Box flexDirection="column">
{status}
{draft}
{rows}
{keyRowsDrawn}
</Box>
)
}Licence text (MIT)
MIT License Copyright (c) 2026 Danny 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), Rewrite the prompt
What its code calls
remembers
What its code shows
Read from the source at commit 4f5c36acee80 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.plugins/jot/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.4 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.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| 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).reads the mouse selection, but 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.adds command notes, adds command note |
| 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 (notes, note), prompt.submit · also: session.start, ui.focus (Pane), ui.render (Pane) · timers: 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.the mouse selection |
| 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.the prompt box; the clipboard |
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 Danh295/dannys-claude-mods/plugin install jot@dannys-claude-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (4f5c36acee80). 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/Danh295/dannys-claude-modsgit -C dannys-claude-mods checkout 4f5c36acee80591b371f5102da899b6b6dbb1511claude plugin validate dannys-claude-mods/plugins/jotclaude --plugin-dir dannys-claude-mods/plugins/jotThe 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 "danh295-jot" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- lcu-approveLCU★ 894
- ai-maestro-secrets23blocks-OS★ 817
- filetreeKurt Buhler★ 131
- great-ctoAlexander Velikiy★ 103
- hopeSaad Shahd★ 35
More from this repository
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/danh295-jot/)