ModsCode / Claude Code Mods / Ranking / collaborative-notes
collaborative-notes
A shared notes pane beside the conversation: capture, quote, and come back to what matters.
What it does
- Draws a band above the prompt, a pane
- Adds /notes
- Watches tool calls and can refuse them
- Hooks classic.SessionStart, prompt.submit, session.start, ui.close and 1 more
- Keeps its own state between turns
Good points
- No network calls
- 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 collaborative-notes by aprilxuMLC (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/aprilxumlc-collaborative-notes/
// 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, Button, Text } = $.ui.resolve(e)
const quoteCopied = '…'
const bandTicked = '…'
const clearTicks = '…'
return (
<Box flexDirection="column">
<Box gap={2} flexWrap="wrap">
<Button plain label={`${quoteCopied}`} />
<Box gap={1}>
<Text color="magenta">
{`${bandTicked}`}
</Text>
<Button plain dimColor label={`${clearTicks}`} />
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "‹t›" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const t = '…'
const changeLocation = '…'
const langSwitch = '…'
const text = '…'
const conflictEdit = '…'
const body = '…'
const loadLatest = '…'
const searchPlaceholder = '…'
const closeSearch = '…'
const searchResults = '…'
const laneLabel = '…'
const t2 = '…'
const noteLabel = '…'
const tickOn = '…'
const body2 = '…'
const syncApp = '…'
const finishEditing = '…'
const discardUnsavedChanges = '…'
const editInEditor = '…'
const returnToSource = '…'
const confirmDelete = '…'
const laneLabel2 = '…'
const t3 = '…'
const body3 = '…'
const laneLabel3 = '…'
const t4 = '…'
const body4 = '…'
const laneLabel4 = '…'
const t5 = '…'
const body5 = '…'
const laneLabel5 = '…'
const t6 = '…'
const body6 = '…'
const laneLabel6 = '…'
const t7 = '…'
const body7 = '…'
const laneLabel7 = '…'
const t8 = '…'
const body8 = '…'
const laneLabel8 = '…'
const t9 = '…'
const body9 = '…'
const laneLabel9 = '…'
const t10 = '…'
const body10 = '…'
return (
<Box flexDirection="column" gap={1}>
<Box justifyContent="space-between">
<Text bold>
{t}
</Text>
<Box gap={1}>
<Button plain label={`⌕ ${t}`} />
<Button plain label={`↻ ${t}`} />
<Button plain label={`⚙ ${changeLocation}`} />
<Button plain label={`${langSwitch}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Box paddingX={1} borderStyle="round" borderColor="red">
<Text color="red">
{text}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="yellow" paddingX={1}>
<Text>
{`${conflictEdit}`}
</Text>
<Text dimColor>
{body}
</Text>
<Box gap={1}>
<Button label={`${loadLatest}`} />
<Button variant="primary" label={`${t}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Box gap={1}>
<Input placeholder={`${searchPlaceholder}`} autoFocus submitLabel={`${t}`} />
<Button plain label={`${closeSearch}`} />
</Box>
<Text bold>
{`${searchResults}`}
</Text>
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Text dimColor>
{laneLabel}
</Text>
<Text dimColor>
{t2}
</Text>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text bold color="blue">
{`📌 ${noteLabel}`}
</Text>
<Button variant="primary" label={`${tickOn}`} />
</Box>
<Text>
{body2}
</Text>
</Box>
<Text dimColor>
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
</Text>
<Box flexDirection="column">
<Text dimColor>
{`${syncApp}`}
</Text>
<Button variant="primary" label={`${finishEditing}`} />
<Button plain label={`${discardUnsavedChanges}`} />
</Box>
<Box gap={1} flexWrap="wrap">
<Button plain label={`${t}`} />
<Button plain label={`${t}`} />
<Button plain label={`${editInEditor}`} />
<Button plain label={`${returnToSource}`} />
<Box gap={1}>
<Button variant="primary" label={`${confirmDelete}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Button plain label={`${t}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Text dimColor>
{laneLabel2}
</Text>
<Text dimColor>
{t3}
</Text>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text bold color="blue">
{`📌 ${noteLabel}`}
</Text>
<Button variant="primary" label={`${tickOn}`} />
</Box>
<Text>
{body3}
</Text>
</Box>
<Text dimColor>
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
</Text>
<Box flexDirection="column">
<Text dimColor>
{`${syncApp}`}
</Text>
<Button variant="primary" label={`${finishEditing}`} />
<Button plain label={`${discardUnsavedChanges}`} />
</Box>
<Box gap={1} flexWrap="wrap">
<Button plain label={`${t}`} />
<Button plain label={`${t}`} />
<Button plain label={`${editInEditor}`} />
<Button plain label={`${returnToSource}`} />
<Box gap={1}>
<Button variant="primary" label={`${confirmDelete}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Button plain label={`${t}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Text dimColor>
{laneLabel3}
</Text>
<Text dimColor>
{t4}
</Text>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text bold color="blue">
{`📌 ${noteLabel}`}
</Text>
<Button variant="primary" label={`${tickOn}`} />
</Box>
<Text>
{body4}
</Text>
</Box>
<Text dimColor>
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
</Text>
<Box flexDirection="column">
<Text dimColor>
{`${syncApp}`}
</Text>
<Button variant="primary" label={`${finishEditing}`} />
<Button plain label={`${discardUnsavedChanges}`} />
</Box>
<Box gap={1} flexWrap="wrap">
<Button plain label={`${t}`} />
<Button plain label={`${t}`} />
<Button plain label={`${editInEditor}`} />
<Button plain label={`${returnToSource}`} />
<Box gap={1}>
<Button variant="primary" label={`${confirmDelete}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Button plain label={`${t}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Text dimColor>
{laneLabel4}
</Text>
<Text dimColor>
{t5}
</Text>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text bold color="blue">
{`📌 ${noteLabel}`}
</Text>
<Button variant="primary" label={`${tickOn}`} />
</Box>
<Text>
{body5}
</Text>
</Box>
<Text dimColor>
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
</Text>
<Box flexDirection="column">
<Text dimColor>
{`${syncApp}`}
</Text>
<Button variant="primary" label={`${finishEditing}`} />
<Button plain label={`${discardUnsavedChanges}`} />
</Box>
<Box gap={1} flexWrap="wrap">
<Button plain label={`${t}`} />
<Button plain label={`${t}`} />
<Button plain label={`${editInEditor}`} />
<Button plain label={`${returnToSource}`} />
<Box gap={1}>
<Button variant="primary" label={`${confirmDelete}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Button plain label={`${t}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Text dimColor>
{laneLabel5}
</Text>
<Text dimColor>
{t6}
</Text>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text bold color="blue">
{`📌 ${noteLabel}`}
</Text>
<Button variant="primary" label={`${tickOn}`} />
</Box>
<Text>
{body6}
</Text>
</Box>
<Text dimColor>
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
</Text>
<Box flexDirection="column">
<Text dimColor>
{`${syncApp}`}
</Text>
<Button variant="primary" label={`${finishEditing}`} />
<Button plain label={`${discardUnsavedChanges}`} />
</Box>
<Box gap={1} flexWrap="wrap">
<Button plain label={`${t}`} />
<Button plain label={`${t}`} />
<Button plain label={`${editInEditor}`} />
<Button plain label={`${returnToSource}`} />
<Box gap={1}>
<Button variant="primary" label={`${confirmDelete}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Button plain label={`${t}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Text dimColor>
{laneLabel6}
</Text>
<Text dimColor>
{t7}
</Text>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text bold color="blue">
{`📌 ${noteLabel}`}
</Text>
<Button variant="primary" label={`${tickOn}`} />
</Box>
<Text>
{body7}
</Text>
</Box>
<Text dimColor>
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
</Text>
<Box flexDirection="column">
<Text dimColor>
{`${syncApp}`}
</Text>
<Button variant="primary" label={`${finishEditing}`} />
<Button plain label={`${discardUnsavedChanges}`} />
</Box>
<Box gap={1} flexWrap="wrap">
<Button plain label={`${t}`} />
<Button plain label={`${t}`} />
<Button plain label={`${editInEditor}`} />
<Button plain label={`${returnToSource}`} />
<Box gap={1}>
<Button variant="primary" label={`${confirmDelete}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Button plain label={`${t}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Text dimColor>
{laneLabel7}
</Text>
<Text dimColor>
{t8}
</Text>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text bold color="blue">
{`📌 ${noteLabel}`}
</Text>
<Button variant="primary" label={`${tickOn}`} />
</Box>
<Text>
{body8}
</Text>
</Box>
<Text dimColor>
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
</Text>
<Box flexDirection="column">
<Text dimColor>
{`${syncApp}`}
</Text>
<Button variant="primary" label={`${finishEditing}`} />
<Button plain label={`${discardUnsavedChanges}`} />
</Box>
<Box gap={1} flexWrap="wrap">
<Button plain label={`${t}`} />
<Button plain label={`${t}`} />
<Button plain label={`${editInEditor}`} />
<Button plain label={`${returnToSource}`} />
<Box gap={1}>
<Button variant="primary" label={`${confirmDelete}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Button plain label={`${t}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Text dimColor>
{laneLabel8}
</Text>
<Text dimColor>
{t9}
</Text>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text bold color="blue">
{`📌 ${noteLabel}`}
</Text>
<Button variant="primary" label={`${tickOn}`} />
</Box>
<Text>
{body9}
</Text>
</Box>
<Text dimColor>
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
</Text>
<Box flexDirection="column">
<Text dimColor>
{`${syncApp}`}
</Text>
<Button variant="primary" label={`${finishEditing}`} />
<Button plain label={`${discardUnsavedChanges}`} />
</Box>
<Box gap={1} flexWrap="wrap">
<Button plain label={`${t}`} />
<Button plain label={`${t}`} />
<Button plain label={`${editInEditor}`} />
<Button plain label={`${returnToSource}`} />
<Box gap={1}>
<Button variant="primary" label={`${confirmDelete}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Button plain label={`${t}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Text dimColor>
{laneLabel9}
</Text>
<Text dimColor>
{t10}
</Text>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text bold color="blue">
{`📌 ${noteLabel}`}
</Text>
<Button variant="primary" label={`${tickOn}`} />
</Box>
<Text>
{body10}
</Text>
</Box>
<Text dimColor>
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
</Text>
<Box flexDirection="column">
<Text dimColor>
{`${syncApp}`}
</Text>
<Button variant="primary" label={`${finishEditing}`} />
<Button plain label={`${discardUnsavedChanges}`} />
</Box>
<Box gap={1} flexWrap="wrap">
<Button plain label={`${t}`} />
<Button plain label={`${t}`} />
<Button plain label={`${editInEditor}`} />
<Button plain label={`${returnToSource}`} />
<Box gap={1}>
<Button variant="primary" label={`${confirmDelete}`} />
<Button plain label={`${t}`} />
</Box>
</Box>
<Button plain label={`${t}`} />
</Box>
</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/collaborative-notes/hooks/register.tsx lines 790–810 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const v = await read($, view)
if (!v?.root) return next(e)
const held = await read($, ticks)
await read($, lang)
const { Box, Button, Text } = $.ui.resolve(e) as any
return (
<Box gap={2} flexWrap="wrap">
<Button key="band-quote" plain label={t('quoteCopied')} onPress={async () => {
await $.ui.open({ id: PANE, title: t('title') })
await quoteClipboard($)
}} />
{held.length > 0
? <Box gap={1}>
<Text color="magenta">{t('bandTicked', { n: held.length })}</Text>
<Button key="band-clear" plain dimColor label={t('clearTicks')} onPress={() => setTicks($, v, () => [])} />
</Box>
: null}
</Box>
)
})plugins/collaborative-notes/hooks/register.tsx lines 892–912 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
try {
return await renderPane($, e)
} catch (err) {
// Never leave the pane blank: say what failed and offer a way back.
const { Box, Text, Button } = $.ui.resolve(e) as any
return (
<Box flexDirection="column" gap={1}>
<Text color="red">{t('renderFailed')}</Text>
<Text dimColor>{String(err).slice(0, 300)}</Text>
<Button key="reset-view" variant="primary" label={t('backToNotes')} onPress={async () => {
await update($, mirror, () => null)
await update($, reentry, () => null)
await update($, spotlight, () => null)
await update($, search, () => null)
await update($, candidates, () => null)
}} />
</Box>
)
}
})plugins/collaborative-notes/hooks/register.tsx lines 915–1074 · Pane
const renderPane = async ($: any, e: any) => {
const { Box, Text, Button, Input, Select, Markdown } = $.ui.resolve(e) as any
const v = await read($, view)
const note = await read($, toast)
if (!v) return <Text dimColor>…</Text>
const banner = note
? <Box paddingX={1} borderStyle="round" borderColor={note.error ? 'red' : 'green'}><Text color={note.error ? 'red' : undefined}>{note.text}</Text></Box>
: null
// ---- setup gate ------------------------------------------------------
if (!v.root && v.setup) {
// A setup kept from an older version may lack the newer fields.
const s = { ...v.setup, browsePath: v.setup.browsePath ?? v.project, folders: v.setup.folders ?? [], laneNames: v.setup.laneNames ?? lanes.map((entry: any) => entry.descriptive) }
const bind = async () => {
if (s.notDir) return
const stored = await $.store.get('laneConfig')
const existing = sanitizeLaneConfig(stored ?? {})
if (!existing.ok) { await say($, t('laneNamesInvalid'), true); return }
const source = existing.config
const overrides = source.laneOverrides
const merged: any = {
...source,
displayOrder: source.displayOrder ?? [],
laneOverrides: { ...overrides },
}
const defaults = defaultLabels(language)
lanes.forEach((entry: any, index: number) => {
const name = String(s.laneNames[index] ?? '').trim() || entry.descriptive
const override = { ...(merged.laneOverrides[entry.key] ?? {}) }
if (name === defaults[entry.key]) delete override.label
else override.label = name
merged.laneOverrides[entry.key] = override
})
const checked = sanitizeLaneConfig(merged)
if (!checked.ok) { await say($, t('laneNamesInvalid'), true); return }
if (!s.exists && !(await createRoot(io($), s.candidate))) { await say($, t('setupFailed'), true); return }
await $.store.set('laneConfig', checked.config)
laneConfig = checked.config
lanes = resolveLanes(laneConfig, language)
await setBinding(io($), v.project, s.candidate)
await showBound($, { ...v, root: s.candidate, setup: null })
watchDisk($)
}
// The system's own folder dialog (Finder / Windows), as in the Codex
// release; typing a path stays as a fallback.
const chooseFolder = async () => {
const picked = await pickFolderWithDialog($, t('pickFolderTitle'), s.candidate)
if (picked.path) { await startSetup($, v, normalizePath(picked.path), true); return }
if (picked.error) await say($, t('pickFolderFailed', { detail: picked.error }), true)
await update($, view, (cur: NotesView | null) => cur?.setup ? { ...cur, setup: { ...cur.setup, other: true } } : cur)
}
return (
<Box flexDirection="column" gap={1}>
<Text bold>{t('setupTitle')}</Text>
{banner}
<Text>{t('setupIntro')}</Text>
<Text dimColor>{t('setupProposed')}</Text>
<Text bold>{s.candidate}</Text>
{s.lanes.length > 0 ? <Text>{t('setupExisting', { lanes: s.lanes.length })}</Text> : null}
{s.nested
? <Box flexDirection="column">
<Text color="yellow">{t('setupNested', { path: s.nested })}</Text>
<Button key="setup-nested" variant="primary" label={t('setupUseNested')} onPress={() => startSetup($, v, s.nested as string, s.other)} />
</Box>
: null}
{s.notDir ? <Text color="red">{t('setupNotDir')}</Text> : null}
{s.other
? <Input key="setup-path" placeholder={t('setupOtherPlaceholder')} submitLabel={t('setupOtherSubmit')} onSubmit={async (value: string) => {
const candidate = resolveLocation(v.project, value)
if (!candidate) { await say($, t('setupInvalid'), true); return }
await startSetup($, v, candidate, true)
}} />
: null}
<Text bold>{t('laneNamesTitle')}</Text>
<Text dimColor>{t('laneNamesHint')}</Text>
{lanes.map((entry: any, index: number) => <Input
key={`setup-lane-${entry.key}`}
label={`${entry.displayId}`}
value={s.laneNames[index]}
onInput={(value: string) => update($, view, (cur: NotesView | null) => cur?.setup ? {
...cur, setup: { ...cur.setup, laneNames: (cur.setup.laneNames ?? s.laneNames).map((name: string, at: number) => at === index ? value : name) },
} : cur)}
onSubmit={(value: string) => update($, view, (cur: NotesView | null) => cur?.setup ? {
...cur, setup: { ...cur.setup, laneNames: (cur.setup.laneNames ?? s.laneNames).map((name: string, at: number) => at === index ? value : name) },
} : cur)} />)}
<Box gap={1}>
{s.notDir ? null : <Button key="setup-use" variant="primary" label={t('setupUse')} onPress={bind} />}
<Button key="setup-other" plain label={t('setupOther')} onPress={chooseFolder} />
{s.other ? <Button key="setup-back" plain label={t('setupBack')} onPress={() => startSetup($, v, proposedRoot(v.project))} /> : null}
{s.previous
? <Button key="setup-cancel" plain label={t('cancel')} onPress={async () => { await showBound($, { ...v, root: s.previous as string, setup: null }) }} />
: null}
</Box>
</Box>
)
}
// ---- notes ------------------------------------------------------------
const current = await read($, lane)
const order = await read($, sort)
const all = await read($, cards)
const n = await read($, composer)
const vers = await read($, versions)
const pinned = await read($, pins)
const ed = await read($, editing)
const confirming = await read($, confirm)
const query = await read($, search)
const clash = await read($, conflict)
const q = await read($, quote)
const cands = await read($, candidates)
const mir = await read($, mirror)
const held = await read($, ticks)
const langNow = await read($, lang)
const showHelp = await read($, help)
const fork = await read($, carry)
const again = await read($, reuse)
const back = await read($, reentry)
const opened = await read($, openSources)
await read($, tick)
const root = v.root as string
const base = { root, sessionId: v.sessionId }
const save = async (value: string, laneKey = current, afterPersist?: () => Promise<void>) => {
const body = value.replace(/^\s*\n|\s+$/g, '')
if (!body.trim() && !q) { await say($, t('emptyBody'), true); return false }
const written = await addPlainNote(io($), { ...base, lane: laneKey, body, quote: q ? { snapshot: q.snapshot, source: q.source } : undefined })
if (!written.ok) { await say($, failureText(written.code, v, written.detail), true); return false }
try {
if (afterPersist) await afterPersist()
await update($, quote, () => null)
await update($, composer, k => k + 1)
await say($, t('saved'))
await loadCards($, v)
} catch {
try { await say($, t('saveRefreshFailed'), true) } catch { /* persistence already succeeded */ }
}
return true
}
const applyEdit = async (laneKey: string, key: string, body: string, expected: string, overwrite = false) => {
const written = await editNote(io($), { ...base, lane: laneKey, key, expected, body, overwrite })
if (written.ok) {
await setEditorState($, null)
await update($, conflict, () => null)
await loadCards($, v)
await say($, t('edited'))
} else if (written.code === 'STALE') {
await update($, conflict, () => ({ lane: laneKey, key, action: 'edit', body }))
} else {
if (written.code === 'ITEM_UNRESOLVED') { await setEditorState($, null); await loadCards($, v) }
await say($, failureText(written.code, v, written.detail), true)
}
}
const remove = async (laneKey: string, key: string) => {
const written = await deleteNote(io($), { ...base, lane: laneKey, key, expected: vers[laneKey] })
await update($, confirm, () => '')
if (written.ok) {
await loadCards($, v)Licence text (MIT)
MIT License Copyright (c) 2026 April Xu (aprilxuMLC) 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
runs programswrites filesenv varstool callsrememberscalls tools
What its code shows
Read from the source at commit c39bef454838 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/collaborative-notes/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.11 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.plugins/collaborative-notes/hooks/register.tsx:48 a program named at run time; plugins/collaborative-notes/hooks/register.tsx:173 a program named at run time; plugins/collaborative-notes/hooks/register.tsx:323 a program named at run time |
| 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 environment variables, files and reaches an MCP server |
| 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.1 skill: text only |
| 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).mcp.call: ccd_view/close_pane; mcp.call: ccd_session_mgmt/get_session; mcp.call: ccd_view/show_pane |
| 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 tool ? |
| 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: tool.call, prompt.submit, command.run (notes) · reads: classic.SessionStart · also: session.start, ui.render (AssistantMessage, AbovePrompt, UserMessage (+1)), ui.close, ui.focus · timers: clock.after, clock.every |
| 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.env: OS, USERPROFILE, HOME; files: a path computed at run time |
| 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.files: a path computed at run time, …/.….….tmp |
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 aprilxuMLC/claude-collaborative-notes/plugin install collaborative-notes@collaborative-notes/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (c39bef454838). 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/aprilxuMLC/claude-collaborative-notesgit -C claude-collaborative-notes checkout c39bef45483851008599998fbf106958a65f44f4claude plugin validate claude-collaborative-notes/plugins/collaborative-notesclaude --plugin-dir claude-collaborative-notes/plugins/collaborative-notesThe 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 "aprilxumlc-collaborative-notes" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- ai-maestro-secrets23blocks-OS★ 817
- hopeSaad Shahd★ 35
- agent-discoverkeshrath★ 7
- fanyijax★ 5
- glossary-browserFabrizio Duroni★ 5
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/aprilxumlc-collaborative-notes/)