ModsCode / Claude Code Mods / Ranking / 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
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 mod-manager by mako-code (pane, band, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/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.
How to build this: Pane (panel), Add a slash command
What its code calls
runs programswrites filesenv varsremembers
What its code shows
Read from the source at commit ec6ea2383749 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.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 something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).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 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 mako-code/gobworks/plugin install mod-manager@gobworks/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (ec6ea2383749). 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/mako-code/gobworksgit -C gobworks checkout ec6ea23837494b5b13124caa186450be8b42bf2dclaude plugin validate gobworks/mods/core/mod-managerclaude --plugin-dir gobworks/mods/core/mod-managerThe 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 "mako-code-mod-manager" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- lean-ctxThinkery / Yves Gugger★ 3,872
- crit-tuiTomasz Tomczyk★ 1,196
- remctlFederico Viticci★ 595
- task-orchestrator-modJeff Picklyk★ 208
- localvoxtral-modlocalvoxtral★ 59
More from this repository
- achievementsmako-code★ 1
- agent-routermako-code★ 1
- arcademako-code★ 1
- attributionmako-code★ 1
- auto-contextmako-code★ 1
- auto-continuemako-code★ 1
See all 117 mods in 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/mako-code-mod-manager/)