ModsCode / Claude Code Mods / Ranking / sc-toolbox
sc-toolbox
A toolbox pane for Claude Code: run, stop and watch the project's build tasks, scripts, Claude commands and prompts from one list
What it does
- Draws a pane
- Hooks session.end, session.start, ui.close, ui.focus and 1 more
- Keeps its own state between turns
- Calls the network
- Starts processes
Good points
- 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 sc-toolbox by SimpleCORE (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/simplecore-inc-sc-toolbox/
// 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: "Toolbox" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const brand = '…'
const release = '…'
const label = '…'
const printable = '…'
const printable2 = '…'
const printable3 = '…'
const printable4 = '…'
const printable5 = '…'
const printable6 = '…'
const printable7 = '…'
const printable8 = '…'
const printable9 = '…'
const printable10 = '…'
const printable11 = '…'
return (
<Box flexDirection="column">
<Box justifyContent="space-between" marginTop={1}>
<Text bold wrap="truncate-end">
{brand}
</Text>
<Box gap={2} flexShrink={0}>
<Text color="yellow">
{release}
</Text>
<Box paddingX={1} flexShrink={0} backgroundColor="#2a2f38">
<Button label={`${label}`} plain role="dismiss" />
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="cyan" paddingX={1}>
<Text bold>
{printable}
</Text>
<Box flexDirection="column" marginTop={1} gap={1}>
<Text>
{printable2}
</Text>
<Text>
{printable3}
</Text>
<Text>
{printable4}
</Text>
<Text>
{printable5}
</Text>
<Box flexDirection="column">
<Text dimColor>
{printable6}
</Text>
<Box borderStyle="round" borderColor="cyan" paddingX={1} gap={1} flexGrow={1}>
<Text color="cyan">
{printable7}
</Text>
<Input value={`${printable}`} />
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Button label={`${printable}`} plain />
<Button label={`${printable}`} plain />
<Button label={`${printable}`} plain />
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor>
{printable8}
</Text>
<Box borderStyle="round" borderColor="cyan" paddingX={1} gap={1} flexGrow={1}>
<Text color="cyan">
{printable9}
</Text>
<Input value={`${printable}`} />
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Button label={`${printable}`} plain />
<Button label={`${printable}`} plain />
<Button label={`${printable}`} plain />
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor>
{printable10}
</Text>
<Box borderStyle="round" borderColor="cyan" paddingX={1} gap={1} flexGrow={1}>
<Text color="cyan">
{printable11}
</Text>
<Input value={`${printable}`} />
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Button label={`${printable}`} plain />
<Button label={`${printable}`} plain />
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1} rowGap={1}>
<Box gap={1}>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
</Box>
<Box gap={1}>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
</Box>
<Box gap={1}>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
</Box>
</Box>
</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.
mods/toolbox/hooks/register.tsx lines 665–824 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const ui = surfaceTable($.ui.resolve(e), e.surface)
const { Box } = ui
const bodyColumns = e.props.bodyColumns ?? 60
const header = {
brand: paneTitle(MOD_NAME),
...releaseHeader(release, m.release, m.updateRequired),
isUnderTabs: isBesideOtherPanes('sc-toolbox', {
'sc-accounts': (await $.state.get({ plugin: 'sc-accounts', key: 'paneOpen' })).value === true,
'sc-workspace': (await $.state.get({ plugin: 'sc-workspace', key: 'paneOpen' })).value === true,
'sc-toolbox': (await $.state.get({ plugin: 'sc-toolbox', key: 'paneOpen' })).value === true,
}),
columns: bodyColumns,
exit: { label: `✕ ${m.closeButton}`, onPress: () => void closePane($).catch((error: unknown) => $.ui.toast(message(error))) },
backLabel: m.backButton,
}
const hasField = e.surface !== 'mobile'
const act = (work: () => Promise<string | void>) => () => {
void work()
.then(text => text && $.ui.toast(text))
.catch((error: unknown) => $.ui.toast(message(error)))
}
const dismiss = async () => {
await update($, dialog, () => null)
await update($, suggest, () => null)
await update($, focused, () => null)
// Back from a dialog, the quick view takes its own height again.
if (quick) await $.ui.open({ id: PANE, title: TAB_LABEL, rows: quickRows((await read($, tools)).length) })
}
const openDialog = async (next: Asked, values: Record<string, string> = {}) => {
await update($, draft, () => values)
await update($, suggest, () => null)
await update($, dialog, () => next)
await $.ui.open({ id: PANE, title: TAB_LABEL, rows: SETTINGS_ROWS, focus: true, closeOnEscape: true })
}
const list = await read($, tools)
const byId = (id: string) => list.find(tool => tool.id === id)
// Running a tool: one that asks for values asks first, one already running asks to restart.
const start = async (tool: Tool) => {
if (tool.kind === 'shell' && running.has(tool.id)) return openDialog({ kind: 'restart', id: tool.id })
const values = startingValues(tool, (await rememberedValues($))[tool.id] ?? {})
// The values dialog is itself the question; a tool with none asks to confirm when set to.
if (askedParams(tool).length > 0) return openDialog({ kind: 'ask', id: tool.id }, values)
if (tool.confirm) return openDialog({ kind: 'confirm', id: tool.id }, values)
return runTool($, tool, values)
}
const asked = await read($, dialog)
const values = await read($, draft)
// Settles once the value is kept, so Enter in a field submits what was typed.
const setDraft = (key: string, value: string): Promise<void> =>
update($, draft, current => ({ ...current, [key]: value }))
.then(() => undefined)
.catch((error: unknown) => debug($, error))
if (asked?.kind === 'ask' && byId(asked.id)) {
const tool = byId(asked.id) as Tool
const offered = await read($, suggest)
const fields: FormField[] = askedParams(tool).map(name => {
const param = tool.params?.[name]
const onInput = (value: string): Promise<void> => {
const kept = setDraft(name, value)
// A path is offered as it is typed: the folder typed into is listed.
if (param?.type !== 'path') return kept
void (async () => {
const { folder } = splitTyped(value)
const path = folder === '' ? root : `${root}/${folder}`
const entries = (await $.fs.exists(path)) ? await $.fs.list(path) : []
await update($, suggest, () => ({ field: name, items: pathSuggestions(value, entries, { pathKind: param.pathKind, glob: param.glob }) }))
})().catch((error: unknown) => debug($, error))
return kept
}
return {
key: name,
label: name,
value: values[name] ?? '',
...(param?.type === 'choice' && param.choices ? { options: param.choices.map(choice => ({ value: choice, label: choice })) } : {}),
...(offered?.field === name ? { suggestions: offered.items } : {}),
onInput,
onPick: onInput,
}
})
return FormDialog(
ui,
bodyColumns,
header,
m.askTitle(tool.name),
// The command as it will run, filled with what is typed so far.
[{ text: m.askPreview(fill(tool, { ...startingValues(tool), ...values })), tone: 'muted' }],
fields,
{
submit: {
label: m.runButton,
onPress: act(async () => {
const current = await read($, draft)
const wrong = valuesProblem(tool, current)
if (wrong) return m.notChoice(wrong)
await dismiss()
return runTool($, tool, current)
}),
},
cancel: { label: m.cancel, onPress: act(dismiss) },
},
{ hasField, noInput: m.noInput },
await read($, focused),
)
}
if (asked?.kind === 'log' && byId(asked.id)) {
const tool = byId(asked.id) as Tool
// Reading the tick redraws the dialog as output arrives.
await read($, logTick)
const run = (await read($, runs))[tool.id]
const isFollowing = await read($, follow)
const buffer = buffers.get(tool.id) ?? new LogBuffer()
const window = buffer.window(LOG_WINDOW_CHARS, isFollowing ? undefined : logLast, LOG_WINDOW_LINES)
const now = await $.clock.now()
const tone = run?.state === 'failed' ? 'danger' : run?.state === 'running' ? 'ok' : undefined
const tile = (key: string, label: string, onPress: () => void): Tile => ({ key, label, onPress })
return LogDialog(
ui,
bodyColumns,
header,
m.logTitle(tool.name),
{ text: run ? m.logStatus(runText(run, now, m), run.command) : buffer.lines.length > 0 ? m.logFromFile : m.logNoRun, ...(tone ? { tone } : {}) },
{ text: window.text, firstLine: window.first + 1, empty: m.logEmpty },
{
...(window.first > 0
? { older: tile('log-older', m.logOlder, () => void (async () => {
logLast = window.first
await update($, follow, () => false)
})()) }
: {}),
...(!isFollowing && window.last < buffer.lines.length
? { newer: tile('log-newer', m.logNewer, () => void (async () => {
logLast = Math.min(buffer.lines.length, window.last + (window.last - window.first))
await update($, logTick, n => n + 1)
})()) }
: {}),
follow: { key: 'log-follow', label: isFollowing ? m.logFollowing : m.logFollow, isMain: isFollowing, onPress: () => void update($, follow, isOn => !isOn) },
...(run?.state === 'running'
? { stop: tile('log-stop', m.stopButton, act(() => stopTool($, tool))) }
: {
again: tile('log-again', m.againButton, act(async () => {
await dismiss()
return start(tool)
})),
}),
close: { key: 'dialog-cancel', label: m.closeButton, isDismiss: true, onPress: act(dismiss) },
},
await read($, focused),
)
}
mods/toolbox/hooks/shared/kit.tsx lines 1008–1079 · Pane
export function FormDialog(
ui: ElementTable,
bodyColumns: number,
header: HeaderInfo,
title: string,
lines: DialogLine[],
fields: FormField[],
actions: { submit: { label: string; onPress: () => void }; cancel: { label: string; onPress: () => void } },
form: { hasField: boolean; noInput: string },
focused: string | null = null,
) {
const { Box, Text } = ui
const Input = form.hasField && 'Input' in ui ? ui.Input : undefined
const Select = form.hasField && 'Select' in ui ? ui.Select : undefined
return DialogFrame(
ui,
dialogHeader(header, actions.cancel.onPress),
theme.accent,
title,
<Box key="form-body" flexDirection="column" marginTop={1} gap={1}>
{lines.map((line, index) => Toned(ui, `form-line-${index}`, line.text, line.tone === 'danger' ? 'danger' : line.tone === 'ok' ? 'ok' : undefined, { isDim: line.tone === 'muted', wrap: 'wrap' }))}
{!Input && Toned(ui, 'form-no-input', form.noInput, undefined, { isDim: true, wrap: 'wrap' })}
{Input &&
fields.map((field, index) => (
<Box key={`form-field-${field.key}`} flexDirection="column">
<Text dimColor>{printable(field.label)}</Text>
{field.options && Select ? (
<Select
key={`field-${field.key}`}
options={field.options.map(option => ({ ...option, label: printable(option.label) }))}
value={field.value}
{...(index === 0 ? { autoFocus: true as const } : {})}
onSelect={value => void field.onInput(value)}
/>
) : (
InputFrame(
ui,
`form-frame-${field.key}`,
true,
<Input
key={`field-${field.key}`}
value={printable(field.value)}
{...(field.placeholder ? { placeholder: printable(field.placeholder) } : {})}
{...(index === 0 ? { autoFocus: true as const } : {})}
onInput={value => void field.onInput(value)}
// Enter submits once the field's value is kept, so the submit reads what was typed.
onSubmit={value => void Promise.resolve(field.onInput(value)).then(actions.submit.onPress, actions.submit.onPress)}
/>,
)
)}
{(field.suggestions ?? []).length > 0 && (
<Box key={`form-suggest-${field.key}`} flexDirection="column" paddingLeft={2}>
{(field.suggestions ?? []).map((suggestion, row) =>
LinkButton(ui, `suggest-${field.key}-${row}`, suggestion, () => void (field.onPick ?? field.onInput)(suggestion)),
)}
</Box>
)}
</Box>
))}
</Box>,
Tiles(
ui,
Math.max(20, bodyColumns - CARD_CHROME),
[
...(Input ? [{ key: 'form-submit', label: actions.submit.label, isMain: true, onPress: actions.submit.onPress }] : []),
{ key: 'dialog-cancel', label: actions.cancel.label, isDismiss: true, onPress: actions.cancel.onPress },
],
{ focused },
),
)
}mods/toolbox/hooks/shared/kit.tsx lines 815–835 · Pane
export function DialogFrame(
ui: ElementTable,
header: HeaderInfo,
borderColor: string,
title: string,
body: ReturnType<typeof Header>,
tiles: ReturnType<typeof Tiles>,
) {
const { Box, Text } = ui
return (
<Box key="dialog-pane" flexDirection="column">
{Header(ui, header)}
<Box key="dialog" flexDirection="column" borderStyle="round" borderColor={borderColor} paddingX={1}>
<Text bold>{printable(title)}</Text>
{body}
{tiles}
</Box>
</Box>
)
}mods/toolbox/hooks/shared/kit.tsx lines 253–267 · Pane
export function Toned(
ui: ElementTable,
key: string,
text: string,
tone?: Tone,
style: { isDim?: boolean; isBold?: boolean; wrap?: 'wrap' | 'truncate-end' } = {},
) {
const { Text } = ui
return (
<Text key={key} color={tone ? theme[tone] : undefined} dimColor={style.isDim === true} bold={style.isBold === true} {...(style.wrap ? { wrap: style.wrap } : {})}>
{printable(text)}
</Text>
)
}mods/toolbox/hooks/shared/kit.tsx lines 303–320 · Pane
export function InputFrame(ui: ElementTable, key: string, isAccent: boolean, input: unknown, glyph?: string) {
const { Box, Text } = ui
return (
<Box
key={key}
borderStyle="round"
borderColor={isAccent ? theme.accent : 'gray'}
borderDimColor={!isAccent}
paddingX={1}
gap={1}
flexGrow={1}
>
{glyph && <Text color={isAccent ? theme.accent : undefined}>{printable(glyph)}</Text>}
{input as never}
</Box>
)
}mods/toolbox/hooks/shared/kit.tsx lines 323–327 · Pane
export function LinkButton(ui: ElementTable, key: string, label: string, onPress: () => void, extra: { autoFocus?: boolean } = {}) {
const { Button } = ui
return <Button key={key} label={printable(label)} plain hover={{ color: theme.accent, bold: true }} {...(extra.autoFocus ? { autoFocus: true as const } : {})} onPress={onPress} />
}Licence text (MIT)
MIT License Copyright (c) 2026 SimpleCORE Inc. 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), Keep state with $.store
What its code calls
networkruns programswrites filesenv varsdrives Clauderemembers
What its code shows
Read from the source at commit 722763cc54c3 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/toolbox/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.15 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).mods/toolbox/hooks/register.tsx:385 kill (not on Windows) |
| Network | Whether every fetch names its https host in the code.mods/toolbox/hooks/register.tsx:153 fetch(target) |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.mods/toolbox/hooks/register.tsx:255 a program named at run time; mods/toolbox/hooks/register.tsx:330 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, settings.json 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 |
| 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).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.prompt.submit (as the person) |
| 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 · reads: ui.press · also: session.start, session.end, ui.close, ui.focus (+1) · 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: LC_ALL, LC_MESSAGES, LANG, OS; files: its own folder/.claude-plugin/plugin.js…, its own folder/CHANGELOG.md, a path computed at run time, …/…, …/gradlew; settings.json |
| 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; the prompt box |
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 simplecore-inc/claude-mods/plugin install sc-toolbox@simplecore-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (722763cc54c3). 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/simplecore-inc/claude-modsgit -C claude-mods checkout 722763cc54c3e9db566e59e3720213133bb3650bclaude plugin validate claude-mods/mods/toolboxclaude --plugin-dir claude-mods/mods/toolboxThe 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 "simplecore-inc-sc-toolbox" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- agent-discoverkeshrath★ 7
- devtoolsNMenzel★ 1
- prdeckVishal K Setti★ 1
- hopeSaad Shahd★ 35
- fanyijax★ 5
- mod-storehellosverre★ 2
More from this repository
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/simplecore-inc-sc-toolbox/)