ModsCode / Claude Code Mods / Ranking / turbo-mod
turbo-mod
A side pane for Claude Code with collapsible widgets: files Claude wrote, terminal splits and the state of your git repos, in retro colors.
What it does
- Draws a pane, toasts
- Watches tool calls
- Hooks session.measure, session.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
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 turbo-mod by Michael Blaess (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/michaelblaess-turbo-mod/
// 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: "Turbo-MOD" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Link, Button } = $.ui.resolve(e)
const heading = '…'
const colors = '…'
const themeName = '…'
const noticeTitle = '…'
const notice = '…'
const files = '…'
const fileCount = '…'
const formatSize = '…'
const sheet = '…'
const nothingWritten = '…'
const number = '…'
const fileHref = '…'
const name = '…'
const shortenDir = '…'
const gone = '…'
const writes = '…'
const number2 = '…'
const name2 = '…'
const shortenDir2 = '…'
const gone2 = '…'
const number3 = '…'
const name3 = '…'
const shortenDir3 = '…'
const gone3 = '…'
const range = '…'
const terminal = '…'
const sheet2 = '…'
const noTerminal = '…'
const repos = '…'
const reposCount = '…'
const sheet3 = '…'
const noFolder = '…'
const note = '…'
const shortenDir4 = '…'
const name4 = '…'
const repoCounts = '…'
const branch = '…'
const ticketHref = '…'
const ticket = '…'
const branch2 = '…'
const name5 = '…'
const branch3 = '…'
const ticket2 = '…'
const branch4 = '…'
const name6 = '…'
const branch5 = '…'
const ticket3 = '…'
const branch6 = '…'
const shortenDir5 = '…'
const name7 = '…'
const branch7 = '…'
const ticket4 = '…'
const branch8 = '…'
const name8 = '…'
const branch9 = '…'
const ticket5 = '…'
const branch10 = '…'
const name9 = '…'
const branch11 = '…'
const ticket6 = '…'
const branch12 = '…'
const shortenDir6 = '…'
const name10 = '…'
const branch13 = '…'
const ticket7 = '…'
const branch14 = '…'
const name11 = '…'
const branch15 = '…'
const ticket8 = '…'
const branch16 = '…'
const name12 = '…'
const branch17 = '…'
const ticket9 = '…'
const branch18 = '…'
const more = '…'
const allClean = '…'
const shortenDir7 = '…'
const shortenDir8 = '…'
const shortenDir9 = '…'
const formatClock = '…'
const feed = '…'
const feedCount = '…'
const sheet4 = '…'
const feedNote = '…'
const feedEmpty = '…'
const url = '…'
const key = '…'
const summary = '…'
const key2 = '…'
const key3 = '…'
const more2 = '…'
const formatClock2 = '…'
const session = '…'
const sheet5 = '…'
const noReading = '…'
const limits = '…'
const suffix = '…'
const formatReset = '…'
const limits2 = '…'
const suffix2 = '…'
const formatReset2 = '…'
const limits3 = '…'
return (
<Box flexDirection="column" flexGrow={1}>
<Text wrap="truncate-end">
<Text bold>
{heading}
</Text>
<Text dimColor>
{" v0.14.0 · "}
<Link href="https://www.michaelblaess.de">
(c) 2026 Michael Blaess
</Link>
{" · Open Source @ 16 MHz"}
</Text>
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Text bold>
{colors}
</Text>
<Box>
<Button plain dimColor />
</Box>
<Text>
{themeName}
</Text>
<Box>
<Button plain dimColor />
</Box>
<Text dimColor>
·
</Text>
<Box>
<Button plain dimColor />
</Box>
<Text dimColor>
·
</Text>
<Text>
<Link href="https://github.com/michaelblaess/turbo-mod">
GitHub
</Link>
</Text>
</Box>
<Box flexDirection="column">
<Text>
{" "}
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold>
{noticeTitle}
</Text>
<Text wrap="wrap">
{notice}
</Text>
<Box flexDirection="row">
<Box>
<Button plain dimColor />
</Box>
</Box>
</Box>
</Box>
<Text dimColor wrap="truncate-end">
────────
</Text>
<Box flexDirection="row" gap={1}>
<Box>
<Button plain dimColor />
</Box>
<Text bold>
{files}
</Text>
<Text dimColor wrap="truncate-end">
{`${fileCount} · ${formatSize}`}
{" · "}
<Link href={`${sheet}`}>
{sheet}
</Link>
</Text>
</Box>
<Box marginLeft={2}>
<Text dimColor wrap="wrap">
{nothingWritten}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-middle">
<Text dimColor>
{number}
</Text>
<Text>
{"- "}
</Text>
<Link href={`${fileHref}`}>
<Text bold>
{name}
</Text>
</Link>
</Text>
<Text dimColor wrap="truncate-start">
{" "}
<Link href={`${fileHref}`}>
{shortenDir}
</Link>
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{gone}
{` · ${writes}x`}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-middle">
<Text dimColor>
{number2}
</Text>
<Text>
{"- "}
</Text>
<Link href={`${fileHref}`}>
<Text bold>
{name2}
</Text>
</Link>
</Text>
<Text dimColor wrap="truncate-start">
{" "}
<Link href={`${fileHref}`}>
{shortenDir2}
</Link>
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{gone2}
{` · ${writes}x`}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-middle">
<Text dimColor>
{number3}
</Text>
<Text>
{"- "}
</Text>
<Link href={`${fileHref}`}>
<Text bold>
{name3}
</Text>
</Link>
</Text>
<Text dimColor wrap="truncate-start">
{" "}
<Link href={`${fileHref}`}>
{shortenDir3}
</Link>
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{gone3}
{` · ${writes}x`}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
</Box>
</Box>
<Box flexDirection="row" columnGap={1} marginLeft={2}>
<Box>
<Button plain dimColor />
</Box>
<Text dimColor>
{range}
</Text>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexDirection="row" marginLeft={2}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Text dimColor wrap="truncate-end">
────────
</Text>
<Box flexDirection="row" gap={1}>
<Box>
<Button plain dimColor />
</Box>
<Text bold>
{terminal}
</Text>
<Text dimColor wrap="truncate-end">
Windows Terminal
{" · "}
<Link href="https://www.michaelblaess.de/helfer/windows-terminal.html">
{sheet2}
</Link>
</Text>
</Box>
<Box marginLeft={2}>
<Text dimColor wrap="wrap">
{noTerminal}
</Text>
</Box>
<Box flexDirection="column" alignItems="flex-start" marginLeft={2}>
<Box flexDirection="row" gap={1}>
<Text>
Split
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} />
</Box>
<Text dimColor wrap="truncate-end">
────────
</Text>
<Box flexDirection="row" gap={1}>
<Box>
<Button plain dimColor />
</Box>
<Text bold>
{repos}
</Text>
<Text dimColor wrap="truncate-end">
{reposCount}
{" · "}
<Link href={`${sheet}`}>
{sheet3}
</Link>
</Text>
</Box>
<Box flexDirection="column" alignItems="flex-start" marginLeft={2}>
<Text dimColor wrap="wrap">
{noFolder}
</Text>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Text wrap="wrap">
{" "}
{note}
</Text>
<Box flexDirection="column">
<Text dimColor wrap="truncate-start">
{" "}
{shortenDir4}
</Text>
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text>
<Text>
{" ● "}
</Text>
<Text bold>
{name4}
</Text>
<Text>
{` ${repoCounts}`}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{branch}
<Link href={`${ticketHref}`}>
{ticket}
</Link>
{branch2}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text>
<Text>
{" ● "}
</Text>
<Text bold>
{name5}
</Text>
<Text>
{` ${repoCounts}`}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{branch3}
<Link href={`${ticketHref}`}>
{ticket2}
</Link>
{branch4}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text>
<Text>
{" ● "}
</Text>
<Text bold>
{name6}
</Text>
<Text>
{` ${repoCounts}`}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{branch5}
<Link href={`${ticketHref}`}>
{ticket3}
</Link>
{branch6}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor wrap="truncate-start">
{" "}
{shortenDir5}
</Text>
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text>
<Text>
{" ● "}
</Text>
<Text bold>
{name7}
</Text>
<Text>
{` ${repoCounts}`}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{branch7}
<Link href={`${ticketHref}`}>
{ticket4}
</Link>
{branch8}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text>
<Text>
{" ● "}
</Text>
<Text bold>
{name8}
</Text>
<Text>
{` ${repoCounts}`}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{branch9}
<Link href={`${ticketHref}`}>
{ticket5}
</Link>
{branch10}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text>
<Text>
{" ● "}
</Text>
<Text bold>
{name9}
</Text>
<Text>
{` ${repoCounts}`}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{branch11}
<Link href={`${ticketHref}`}>
{ticket6}
</Link>
{branch12}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor wrap="truncate-start">
{" "}
{shortenDir6}
</Text>
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text>
<Text>
{" ● "}
</Text>
<Text bold>
{name10}
</Text>
<Text>
{` ${repoCounts}`}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{branch13}
<Link href={`${ticketHref}`}>
{ticket7}
</Link>
{branch14}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text>
<Text>
{" ● "}
</Text>
<Text bold>
{name11}
</Text>
<Text>
{` ${repoCounts}`}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{branch15}
<Link href={`${ticketHref}`}>
{ticket8}
</Link>
{branch16}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text>
<Text>
{" ● "}
</Text>
<Text bold>
{name12}
</Text>
<Text>
{` ${repoCounts}`}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={0}>
<Box>
<Button plain dimColor />
</Box>
</Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{branch17}
<Link href={`${ticketHref}`}>
{ticket9}
</Link>
{branch18}
</Text>
</Box>
</Box>
</Box>
<Text dimColor>
{" "}
{more}
</Text>
<Text>
{" "}
{allClean}
</Text>
<Box flexDirection="column" marginLeft={2}>
<Box flexDirection="row" gap={1}>
<Box>
<Button plain dimColor />
</Box>
<Text dimColor wrap="truncate-start">
{shortenDir7}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Box>
<Button plain dimColor />
</Box>
<Text dimColor wrap="truncate-start">
{shortenDir8}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Box>
<Button plain dimColor />
</Box>
<Text dimColor wrap="truncate-start">
{shortenDir9}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
<Box>
<Button plain dimColor />
</Box>
<Text dimColor>
{formatClock}
</Text>
</Box>
</Box>
<Text dimColor wrap="truncate-end">
────────
</Text>
<Box flexDirection="row" gap={1}>
<Box>
<Button plain dimColor />
</Box>
<Text bold>
{feed}
</Text>
<Text dimColor wrap="truncate-end">
{feedCount}
{" · "}
<Link href={`${sheet}`}>
{sheet4}
</Link>
</Text>
</Box>
<Box flexDirection="column" marginLeft={2}>
<Text wrap="wrap">
{feedNote}
</Text>
<Text>
{feedEmpty}
</Text>
<Text wrap="truncate-end">
<Link href={`${url}`}>
{key}
</Link>
<Text dimColor>
{` ${summary}`}
</Text>
</Text>
<Text wrap="truncate-end">
<Link href={`${url}`}>
{key2}
</Link>
<Text dimColor>
{` ${summary}`}
</Text>
</Text>
<Text wrap="truncate-end">
<Link href={`${url}`}>
{key3}
</Link>
<Text dimColor>
{` ${summary}`}
</Text>
</Text>
<Text dimColor>
{more2}
</Text>
<Box flexDirection="row" gap={2}>
<Box>
<Button plain dimColor />
</Box>
<Text dimColor>
{formatClock2}
</Text>
</Box>
</Box>
<Text dimColor wrap="truncate-end">
────────
</Text>
<Box flexDirection="row" gap={1}>
<Box>
<Button plain dimColor />
</Box>
<Text bold>
{session}
</Text>
<Text dimColor wrap="truncate-end">
{" · "}
<Link href="https://www.michaelblaess.de/helfer/claude-code.html">
{sheet5}
</Link>
</Text>
</Box>
<Box flexDirection="column" marginLeft={2}>
<Text dimColor wrap="wrap">
{noReading}
</Text>
<Box flexDirection="column">
<Text bold wrap="truncate-end">
{limits}
</Text>
<Text wrap="truncate-end">
<Text>
████████
</Text>
<Text dimColor>
████████
</Text>
{suffix}
</Text>
<Text dimColor wrap="truncate-end">
{formatReset}
</Text>
</Box>
<Box flexDirection="column">
<Text bold wrap="truncate-end">
{limits2}
</Text>
<Text wrap="truncate-end">
<Text>
████████
</Text>
<Text dimColor>
████████
</Text>
{suffix2}
</Text>
<Text dimColor wrap="truncate-end">
{formatReset2}
</Text>
</Box>
<Box flexDirection="column">
<Text bold wrap="truncate-end">
{limits3}
</Text>
<Text wrap="truncate-end" />
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const skip = '…'
const what = '…'
const complaint = '…'
await $.ui.toast(`/compact: ${skip}`)
await $.ui.toast(`${what}: ${complaint}`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (Apache-2.0); its text is below. Keep the notice if you copy these lines.
hooks/register.tsx lines 945–1104 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
// Nothing may be written while rendering, so the start runs right after
if (!isStarted || (await read($, ready)) !== true) {
$.clock.after(1, () => {
void start($, options).catch(() => undefined)
})
}
const { Box, Text, Link, Button } = $.ui.resolve(e)
const list = await read($, files)
const folded = await read($, collapsed)
const repoState = await read($, repos)
const hostInfo = await read($, host)
const themeName = await read($, theme)
const look = lookFor(themeName)
const heading = await read($, title)
const armedKey = await read($, armed)
const isConfirmed = (await read($, accepted)) === true
const language = await languageNow($)
const t = textsFor(language)
const editor = await read($, editorPath)
const usageState = (await read($, usage)) ?? NO_USAGE
const feedState = (await read($, feed)) ?? NO_FEED
const ticketPattern = (await read($, ticketUrl)) ?? ''
const contextPercent = usageState.window > 0 ? Math.round((usageState.tokens / usageState.window) * 100) : 0
const columns = Math.max(16, e.props.bodyColumns)
// The height of the pane body, in tests and on other surfaces the value is missing
const bodyRows = e.props.scroll?.bodyRows
const rows = bodyRows ?? e.viewport?.rows ?? 30
// A prop with the value undefined counts as invalid, so it is left out entirely then
const ink = look.text === undefined ? {} : { color: look.text }
const ground = look.background === undefined ? {} : { backgroundColor: look.background }
// Without a minimum height the area of the color scheme ends below the last line
const tall = look.background === undefined || bodyRows === undefined ? {} : { minHeight: bodyRows }
const chip = look.chip === undefined ? {} : { backgroundColor: look.chip }
const isFolded = (id: string): boolean => folded[id] ?? false
const foldedNow = (id: string): boolean => folded[id] ?? id === 'feed'
const actions = terminalActions(hostInfo, '')
const dirty = repoState.list.filter(one => !isClean(one))
const total = list.reduce((sum, one) => sum + (one.isGone === true ? 0 : one.size), 0)
const note = t.notes[repoState.note] ?? ''
// How many rows the other widgets need, the rest belongs to the files (four rows per file)
const terminalRows = isFolded('terminal') ? 1 : 3
const repoRoom = Math.max(3, Math.floor(rows / 4))
const roots = rootsOf(repoState)
const pulling = repoState.pulling ?? ''
// One to three dots in a fixed width, so the button does not change its size
const step = (await read($, pulse)) ?? 0
const dots = dotsFor(step)
const working = (label: string): string => workingLabel(label, step)
const repoRows = isFolded('repos') ? 1 : 2 + 2 * roots.length + Math.min(dirty.length, repoRoom)
const sessionRows = isFolded('session') ? 1 : 5 + 3 * usageState.limits.length
// The feed widget exists only with a command and starts collapsed
const isFeedOn = feedState.command.length > 0
const isFeedFolded = folded.feed ?? true
const shownTickets = feedState.list.slice(0, MAX_FEED_ROWS)
const feedNote = t.feedNotes[feedState.note] ?? feedState.note
const feedRows = !isFeedOn ? 0 : isFeedFolded ? 2 : 4 + shownTickets.length
const fileRoom = Math.max(1, Math.floor((rows - 4 - terminalRows - repoRows - sessionRows - feedRows - 7) / 4))
// The list is paged instead of scrolled, so the other widgets stay where they are
const pageCount = Math.max(1, Math.ceil(list.length / fileRoom))
const page = Math.min(Math.max(0, await read($, filePage)), pageCount - 1)
const shownFiles = list.slice(page * fileRoom, (page + 1) * fileRoom)
const numberWidth = String(list.reduce((highest, one) => Math.max(highest, one.no), 1)).length
const shownRepos = dirty.slice(0, repoRoom)
// A button takes no color. On light schemes it therefore sits on a dark ground.
// Square brackets mark what can be clicked. A single glyph (an arrow, the cross) stays bare.
const press = (key: string, label: string, onPress: () => unknown, isQuiet = false) => {
const shown = label.length > 1 && !label.startsWith('[') ? `[${label}]` : label
return (
<Box {...chip}>
{isQuiet ? (
<Button key={key} plain dimColor onPress={onPress}>
{shown}
</Button>
) : (
<Button key={key} plain onPress={onPress}>
{shown}
</Button>
)}
</Box>
)
}
const splits = actions.filter(action => action.key in SPLIT_SYMBOLS)
const others = actions.filter(action => !(action.key in SPLIT_SYMBOLS))
const termButton = (action: (typeof actions)[number]) =>
press(
`term:${action.key}`,
armedKey === action.key && action.needsConfirm === true
? t.confirmClose
: (SPLIT_SYMBOLS[action.key] ?? t.actions[action.key] ?? action.key),
async () => {
// A command that closes something needs two presses within a few seconds
if (action.needsConfirm === true && (await read($, armed)) !== action.key) {
await update($, armed, () => action.key)
$.clock.after(ARMED_MS, () => {
void update($, armed, now => (now === action.key ? '' : now))
})
return
}
await update($, armed, () => '')
const cwd = await $.session.cwd()
const now = terminalActions(hostInfo, cwd).find(one => one.key === action.key)
if (now !== undefined) await run($, now.argv, t.actions[now.key] ?? now.key)
},
)
// Green while there is room, then the warning and the error color of the scheme
const gauge = (percent: number) => (percent >= 95 ? look.bad : percent >= 80 ? look.warn : look.ok)
// A ticket key in the branch name becomes a link once a ticket address is set
const branchText = (branch: string) => {
const ticket = ticketPattern.length > 0 ? ticketOf(branch) : undefined
if (ticket === undefined) {
return (
<Text dimColor wrap="truncate-end" {...ink}>
{branch}
</Text>
)
}
const at = branch.indexOf(ticket)
return (
<Text dimColor wrap="truncate-end" {...ink}>
{branch.slice(0, at)}
<Link href={ticketHref(ticketPattern, ticket)}>{ticket}</Link>
{branch.slice(at + ticket.length)}
</Text>
)
}
const head = (id: string, label: string, count: string, sheet = '') => (
<Box flexDirection="row" gap={1}>
{press(`fold:${id}`, foldedNow(id) ? '▸' : '▾', async () => {
const wasFolded = (await read($, collapsed))[id] ?? id === 'feed'
await update($, collapsed, now => ({ ...now, [id]: !wasFolded }))
// Read right away when the repos are expanded for the first time
if (id === 'repos' && wasFolded && (await read($, repos)).checkedAt === 0) await refreshRepos($)
if (id === 'feed' && wasFolded && ((await read($, feed)) ?? NO_FEED).checkedAt === 0) await refreshFeed($)
})}
<Text bold color={look.accent}>
{label}
</Text>
<Text dimColor wrap="truncate-end" {...ink}>
{count}
{sheet.length > 0 ? `${count.length > 0 ? ' ' : ''}· ` : ''}
{sheet.length > 0 && <Link href={sheet}>{t.sheet}</Link>}
</Text>
</Box>
)
// A bar as /usage draws it: the used share in color, the rest dimmed, the figure behind itLicence text (Apache-2.0)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to the Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by the Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding any notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
Copyright 2026 Michael Blaess
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
How to build this: Pane (panel), Deny a tool call
What its code calls
runs programsreads filesenv varstool callsrememberscalls tools
What its code shows
Read from the source at commit b6561af85471. 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.10 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.hooks/register.tsx:216 a program named at run time; hooks/register.tsx:316 a program named at run time; hooks/register.tsx:345 a program named at run time; hooks/register.tsx:360 a program named at run time; hooks/register.tsx:397 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, 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.Apache-2.0 |
| 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).command.run: /clear |
| 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.asks nothing of the model |
| 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, tool.call · also: session.start, session.measure, ui.render (Pane) · 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, WT_SESSION, TMUX, TURBO_MOD_REPOS; 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.writes no files, environment variables, settings or conversation rows |
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 michaelblaess/turbo-mod/plugin install turbo-mod@turbo-mod/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (b6561af85471). 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/michaelblaess/turbo-modgit -C turbo-mod checkout b6561af85471d98d08b8e6b42c664a5e30ae7b15claude plugin validate turbo-modclaude --plugin-dir turbo-modThe 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 "michaelblaess-turbo-mod" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- session-inboxpetekp★ 47
- show-your-workUmer Ansari★ 24
- explain-asSumit Paul★ 20
- uploadsBuild Internet★ 18
- breadcrumbsKOZMOS★ 9
- batonAshish S Kumar★ 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/michaelblaess-turbo-mod/)