modscode / Gallery / mod-manager
mod-manager
The Gobworks manager: browse every mod by category, see what each does and costs, turn mods and presets on or off, and check them. Best standalone in any terminal (gobworks); inside a running Claude Code session too (/mods).
What it does
- Draws a band above the prompt, a pane
- Adds /mods
- Hooks config.set, session.start, state.set, ui.close and 3 more
- Keeps its own state between turns
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Has a desktop-specific branch
- Handles errors
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 mod-manager by mako-code (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/mako-code-mod-manager/
// 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 } = $.ui.resolve(e)
const separatorOf = '…'
const separatorOf2 = '…'
const separatorOf3 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column">
<Box flexDirection="row">
<Text wrap="wrap">
<Text dimColor>
{separatorOf}
</Text>
<Text>
<Box flexShrink={1} flexGrow={1}>
<Text wrap="wrap" />
</Box>
</Text>
<Text dimColor>
{separatorOf2}
</Text>
<Text>
<Box flexShrink={1} flexGrow={1}>
<Text wrap="wrap" />
</Box>
</Text>
<Text dimColor>
{separatorOf3}
</Text>
<Text>
<Box flexShrink={1} flexGrow={1}>
<Text wrap="wrap" />
</Box>
</Text>
</Text>
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Mods" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box } = $.ui.resolve(e)
return (
<Box flexDirection="column" />
)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
mods/core/mod-manager/hooks/host.ts lines 226–239 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
// the band redraws on every look change: the pinned notice follows it from here
if (pinnedVersion !== lookVersion) {
pinnedVersion = lookVersion
$.clock.after(0, () => void pin($).catch(err => hostDebug($, 'pin', err)))
}
const pieces = piecesAt(await readTexts($), 'top')
if (e.props.hasSurvey || pieces.length === 0) return next(e)
const { Box, Text } = $.ui.resolve(e)
const band = bandOf({ Box: Box as Make['Box'], Text: Text as Make['Text'] }, pieces, shared, e.props.isWorking, e.surface === 'terminal' ? glyphs : 'full')
if (band === null) return next(e)
const below = await next(e)
return isEmpty(below) ? band : Box({ flexDirection: 'column', children: [band, below] })
})mods/core/mod-manager/hooks/readout.ts lines 422–446 · Band
export function bandOf(make: Make, pieces: readonly Piece[], look: Look, isWorking = false, glyphs: IconGlyphs = 'full'): RenderElement | null {
if (pieces.length === 0 || (isWorking && look.whileWorking === 'hide')) return null
const isDimmed = isWorking && look.whileWorking === 'dim'
const justify = justifyOf(look.align)
const sep = () => make.Text({ dimColor: true, children: [separatorOf(look)] })
const rows =
look.layout === 'merged'
? [
make.Box({
key: ROW_KEY,
flexDirection: 'row',
justifyContent: justify,
children: [make.Text({ wrap: 'wrap', children: pieces.flatMap((p, i) => (i === 0 ? [pieceElement(make, p, look, isDimmed, glyphs)] : [sep(), pieceElement(make, p, look, isDimmed, glyphs)])) })],
}),
]
: pieces.map(p => make.Box({ key: `${ROW_KEY}:${p.name}`, flexDirection: 'row', justifyContent: justify, children: [make.Text({ wrap: 'wrap', children: [pieceElement(make, p, look, isDimmed, glyphs)] })] }))
const padding = Number(look.padding)
return make.Box({
key: BAND_KEY,
flexDirection: 'column',
...(padding > 0 ? { paddingX: padding } : {}),
...(look.box === 'none' ? {} : { borderStyle: look.box, ...borderColorProps(look.boxColor) }),
children: rows,
})
}mods/core/mod-manager/hooks/readout.ts lines 412–415 · Band
function pieceElement(make: Make, p: Piece, look: Look, isDimmed: boolean, glyphs: IconGlyphs = 'full'): RenderElement {
const text = pieceText(p.name, p.text, look, glyphs)
return make.Text({ ...pieceProps(p.color, look, isDimmed), children: [look.style === 'pills' ? ` ${text} ` : text] })
}mods/core/mod-manager/hooks/register.tsx lines 1492–1651 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const t = $.ui.resolve(e)
const { Box, Text, Button } = t
const v = await read($, view)
const now = await $.clock.now()
const width = Math.max(30, e.props.bodyColumns - 1)
const bodyRows = e.props.scroll.bodyRows > 0 ? e.props.scroll.bodyRows : 40
const isTerminal = e.surface === 'terminal'
lastSurface = e.surface
drawn = []
const isOn = (n: string) => v.enabled.includes(n)
const statusFor = (n: string) => statusOf(isOn(n), v.loaded.includes(n))
const onCount = v.enabled.length
const nextCount = v.enabled.filter(n => !v.loaded.includes(n)).length
const goneCount = v.loaded.filter(n => !v.enabled.includes(n)).length
const frames = SPINNERS[v.busy && isTerminal ? await glyphModeNow($).catch(() => 'full' as const) : 'full']
const spinner = frames[Math.floor(now / 100) % frames.length] ?? '·'
const quip = v.says && now < v.saysUntil ? v.says : null
// Gob's line never carries the spinner: a new line every tick would restart his typing
const says = gobSays({ on: onCount, total: ALL.length, changed: v.changes.length, busy: v.busy, tab: v.tab, isFocused: e.props.isFocused, quip, tour: v.tour ? tourLine(v.tour, TOUR) : null, cursor: cursorLineFor(v) })
const mood: GobMood = v.busy ? 'think' : now < v.cheerUntil ? 'cheer' : 'idle'
const cursorMod = modUnderCursor(v)
// -------------------------------------------------------- rows budget
const confirm = v.confirm && now - v.confirm.at < CONFIRM_MS ? v.confirm : null
const hasNotice = confirm !== null || v.message !== null || v.changes.length > 0
// header, tabs, (find, rule + strip), notice, help, one spare row
const fixed = (header: number, detail: number) => header + 1 + (v.tab === 'mods' ? (v.isFinding || v.query ? 1 : 0) + detail + 1 : 0) + (hasNotice ? 1 : 0) + 1 + 1
const fullHeader = isReducedMotion ? GOB_ROWS + 1 : STAGE_ROWS + 1
let headerKind: 'full' | 'compact' = !isTerminal || bodyRows - fixed(fullHeader, 4) >= 8 ? 'full' : 'compact'
let detailRows = 4
if (isTerminal && headerKind === 'compact' && bodyRows - fixed(1, detailRows) < 4) detailRows = 2
const listRows = isTerminal ? Math.max(3, bodyRows - fixed(headerKind === 'full' ? fullHeader : 1, detailRows)) : 10_000
if (!isTerminal) headerKind = 'full'
const parts: JSX.Element[] = []
// ------------------------------------------------------------- header
const stats = (
<Text wrap="truncate-end">
<Text color={C.green}>● {onCount} on</Text>
{nextCount > 0 && <Text color={C.amber}>{` ● ${nextCount} next session`}</Text>}
{goneCount > 0 && <Text color={C.violet}>{` ○ ${goneCount} still loaded`}</Text>}
<Text dimColor>{` ○ ${ALL.length - onCount} off · ${v.mode === 'link' ? 'linked folders' : 'marketplace'}`}</Text>
</Text>
)
const title = (
<Box flexDirection="row" columnGap={1}>
{/* the name and the dance key keep their width; the stats beside them give way (truncate) */}
<Box flexShrink={0} flexDirection="row" columnGap={1}>
{headerKind === 'compact' && <Text color={C.gob}>▐█▌</Text>}
{Gradient(t, 'Gobworks')}
<Button key="dance" plain hotkey="d" label="♪" dimColor onPress={() => void dance($)} />
</Box>
{v.busy && <Text color={C.amber} wrap="truncate-end">{`${spinner} ${v.busy}`}</Text>}
<Box flexShrink={1}>{stats}</Box>
</Box>
)
if (e.surface === 'terminal') {
const { Client, Raster } = $.ui.resolve(e)
if (headerKind === 'compact') {
parts.push(title)
} else if (isReducedMotion) {
parts.push(
<Box flexDirection="row" columnGap={2}>
<Raster key="gob" columns={GOB_COLUMNS} rows={GOB_ROWS} cells={gobCells(mood === 'idle' ? 'idle' : mood)} />
<Box flexDirection="column" justifyContent="center" flexGrow={1}>
<Box flexDirection="row" columnGap={1}>
<Text color={C.gob}>◄</Text>
<Box borderStyle="round" borderColor={C.gob} paddingX={1}>
<Text wrap="truncate-end">{says}</Text>
</Box>
</Box>
</Box>
</Box>,
title,
)
} else {
const stage: StageProps = { says, mood, event: v.event, seq: v.seq, columns: width, rows: STAGE_ROWS, isReducedMotion, hat: hatFor(v), cursorSeq: v.cursorSeq, chip: v.chip }
parts.push(<Client key="stage" module="./stage.tsx" props={stage} width={width} height={STAGE_ROWS} />, title)
}
} else {
const { Svg } = $.ui.resolve(e)
// the spinner stays out of the scene: a new frame each tick would restart its animations
// the sky by the quarter hour, so the markup (and what it plays) changes only every 15 minutes
const local = new Date(now)
const hour = Math.floor((local.getHours() + local.getMinutes() / 60) * 4) / 4
const scene = sceneSvg({ says, mood, event: v.event, isFresh: now - v.eventAt < 3200, seq: v.seq, isAnimated: !isReducedMotion, hat: hatFor(v), chip: v.chip, ...(isReducedMotion ? {} : { hour }) })
const sceneWidth = Math.min(640, Math.max(280, e.props.bodyColumns * 7))
parts.push(<Svg source={scene} alt={`Gob, the Gobworks goblin, says: ${says}`} width={sceneWidth} height={Math.round((sceneWidth * SCENE_H) / SCENE_W)} isInteractive />, title)
}
// ---------------------------------------------------------- the intro
if (v.tour) {
standaloneHint = await standaloneCommand($, v.repo)
parts.push(...tourView(t, $, v, isTerminal, width))
return <Box flexDirection="column">{parts}</Box>
}
// --------------------------------------------------------------- tabs
parts.push(
<Box flexDirection="row" columnGap={2}>
{TABS.map(x =>
v.tab === x.tab ? (
<Text backgroundColor={C.brass} color="#1B1B1F" bold>{` ${x.label} `}</Text>
) : (
<Button key={`tab:${x.tab}`} plain hotkey={x.hotkey} label={x.label} dimColor={!(v.tab === 'detail' && v.back === x.tab)} onPress={() => void setTab($, x.tab)} />
),
)}
{v.tab === 'detail' && <Text color={C.gob} bold>{`› ${v.selected ?? ''}`}</Text>}
</Box>,
)
// -------------------------------------------------------------- mods
if (v.tab === 'mods') {
const lines = listOf(v)
const isOpenAll = isFiltering(v)
const win = isTerminal ? windowOf(lines, v.focus, tops.mods ?? 0, listRows) : { top: 0, end: lines.length, up: null, down: null }
if (win.top !== (tops.mods ?? 0)) holdRing($, v.focus)
tops.mods = win.top
const planned = [
...(v.isFinding || v.query ? ['find'] : []),
...(win.up ? [win.up.key] : []),
...itemsOf(lines.slice(win.top + (win.up ? 1 : 0), win.end - (win.down ? 1 : 0))),
...(win.down ? [win.down.key] : []),
]
const autoKey = v.focus && planned.includes(v.focus) ? v.focus : (planned.find(k => k !== 'find') ?? null)
if (v.isFinding || v.query) {
drawn.push('find')
parts.push(
'Input' in t ? (
<t.Input
key="find"
label="find "
placeholder="type to filter, enter to jump in"
value={v.query}
submitLabel="jump in"
onInput={q => void update($, view, (x): ManagerView => ({ ...x, query: q }))}
onSubmit={q => void submitFind($, q)}
/>
) : (
<Text>{`find: ${v.query}`}</Text>
),
)
}
const nameWidth = Math.min(22, Math.max(8, ...lines.map(l => (l.kind === 'item' ? l.key.length - 4 : 0))))
const rows: JSX.Element[] = []
if (lines.length === 0) rows.push(<Text dimColor>{` Nothing matches${v.query ? ` "${v.query}"` : ''}${v.only !== 'all' ? ` among the mods that are ${v.only}` : ''}. f edits the search, n shows ${v.only === 'on' ? 'the off ones' : 'all'}.`}</Text>)
for (let i = win.top; i < win.end; i++) {
const line: Line | undefined = lines[i]
if (!line) continue
if (i === win.top && win.up) {
rows.push(<Box flexDirection="row">{Gutter(t, false)}{item(t, win.up.key, ` ↑ ${win.up.hidden} more`, autoKey, () => undefined, { plain: true, dimColor: true })}</Box>)
continue
}
if (i === win.end - 1 && win.down) {
rows.push(<Box flexDirection="row">{Gutter(t, false)}{item(t, win.down.key, ` ↓ ${win.down.hidden} more`, autoKey, () => undefined, { plain: true, dimColor: true })}</Box>)Licence text (MIT)
MIT License Copyright (c) 2026 mako-code 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
runs programswrites filesenv varsremembers
What its code shows
Read from the source at commit ec6ea2383749 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.mods/core/mod-manager/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.16 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.mods/core/mod-manager/hooks/register.tsx:576 a program named at run time |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reads environment variables and files and reaches the 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 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 mako-code/gobworks/plugin install mod-manager@gobworksThis installs the marketplace's latest commit, which may not be the one read here (ec6ea2383749). Compare them before you install.
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 "mako-code-mod-manager" 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
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claude…
-
Ask Claude…TodayOct 63 left · Mar overdueRemCTL: Sep✓ All done for today.● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓Updated 14:32UndoRefresh
-
Ask Claude…TO graph› Fix login › Fix login › Fix loginScopeThis featureWhole projectHide done stepsReconnect
-
Ask Claude…InboxUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtral
-
Ask Claude…InboxUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtral