ModsCode / Claude Code Mods / Ranking / workbench
workbench
A side pane with Git review, real PowerShell terminals and a live monitor of the servers running on localhost. Nothing else to install.
What it does
- Draws a pane
- Adds /workbench
- Watches mcp__workbench__dev_reload calls
- Hooks session.compact, session.end, session.start, turn.complete and 6 more
- Keeps its own state between turns
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 workbench by hymle (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/hymleong-workbench/
// 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: "workbench" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const glyph = '…'
const name = '…'
const branch = '…'
const ahead = '…'
const behind = '…'
const text = '…'
const hotkey = '…'
const label = '…'
const hint = '…'
return (
<Box>
<Box flexDirection="row" alignItems="center" columnGap={1}>
<Text>
{glyph}
</Text>
<Box flexDirection="column" flexShrink={1} minWidth={0}>
<Text bold>
Workbench
</Text>
<Box flexDirection="row" alignItems="center" columnGap={1}>
<Text dimColor>
{name}
</Text>
⎇
<Text>
{branch}
</Text>
<Text>
{`↑${ahead}`}
</Text>
<Text>
{`↓${behind}`}
</Text>
</Box>
<Box flexDirection="row" marginTop={0.5} />
</Box>
<Box flexGrow={1} />
<Text>
{`● ${text}`}
</Text>
<Text>
{`● ${text}`}
</Text>
</Box>
<Box marginTop={1} />
<Text color="subtle" wrap="truncate">
────────
</Text>
<Box flexGrow={1} minHeight={1} />
<Box flexDirection="column" flexShrink={0}>
<Text color="subtle" wrap="truncate">
────────
</Text>
<Box flexDirection="row" columnGap={2}>
<Button plain dimColor hotkey={`${hotkey}`} label={`${label}`} />
<Button plain dimColor hotkey={`${hotkey}`} label={`${label}`} />
<Button plain dimColor hotkey={`${hotkey}`} label={`${label}`} />
<Box flexGrow={1} />
<Text dimColor>
{hint}
</Text>
</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.
plugins/workbench/hooks/register.tsx lines 1935–1966 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const rows = e.props.placement === 'dock' ? e.props.scroll.bodyRows : 0
const isGrid = e.surface === 'terminal'
if (isGrid) hasGrid = true
if (e.surface === 'desktop') isDesktopFocused = e.props.isFocused
// As wide as the pane's terminal screen, so PowerShell's tables fit it.
termColumns = Math.max(40, e.props.bodyColumns - 6)
const { Box, Text, Button, Code, Input, Svg } = $.ui.resolve(e) as Kit
const { Client } = $.ui.resolve(e) as Partial<Elements['terminal']>
const kit: Kit = {
Box,
Text,
Button,
Code,
...(Input === undefined ? {} : { Input }),
...(Svg === undefined || isGrid ? {} : { Svg }),
// Surface modules, named here because the engine reads their paths off this file's own source.
...(Client === undefined
? {}
: {
termInput: (props: InputProps) => {
inputDrawn.set(props.termId, props)
// The whole screen, as wide as the window and down to its foot, so a click anywhere there takes the keys.
return <Client key={`${INPUT}${props.termId}`} module="./terminal-input.tsx" props={props} width="100%" flexGrow={1} />
},
editor: (props: EditorProps) => <Client key={EDITOR} module="./editor.tsx" props={props} />,
}),
}
return pane(remembering(kit, e.surface), await model($, e.props.bodyColumns - 2, rows, e.props.isFocused, isGrid, 'pane'), actions($))
})plugins/workbench/hooks/views/pane.tsx lines 21–58 · Pane
export function pane(kit: Kit, m: Model, act: Actions): RenderElement {
const { Box } = kit
const frame = {
flexDirection: 'column' as const,
paddingX: 1,
...(m.isGrid && m.rows > 0 ? { minHeight: m.rows } : {}),
...(m.isGrid ? {} : { paddingTop: 0.5, paddingBottom: 1 }),
}
// A file being edited has the pane to itself; `done` gives the rest back.
if (m.tab === 'git' && m.gitSection === 'files' && m.file !== null && m.file.isEditing) {
return <Box {...frame}>{fileView(kit, m, m.file, act)}</Box>
}
const body = [m.tab === 'git' && gitTab(kit, m, act), m.tab === 'term' && termTab(kit, m, act), m.tab === 'ports' && portsTab(kit, m, act)]
if (m.isGrid) {
return (
<Box {...frame}>
{header(kit, m)}
<Box marginTop={1}>{tabs(kit, m, act)}</Box>
{rule(kit, m)}
{body}
<Box flexGrow={1} minHeight={1} />
{footer(kit, m, act)}
</Box>
)
}
// As a browser: the tabs, and under them the open tab's page, one sheet with it.
return (
<Box {...frame}>
{header(kit, m)}
<Box flexDirection="column" marginTop={1}>
{tabs(kit, m, act)}
{tabPage(kit, m, body)}
</Box>
</Box>
)
}plugins/workbench/hooks/views/files.tsx lines 160–205 · Pane
export function fileView(kit: Kit, m: Model, file: OpenFile, act: Actions): RenderElement {
const { Box, Text, Code } = kit
const lines = file.text.split('\n')
const canEdit = kit.editor !== undefined && file.note === ''
const top = Math.max(0, Math.min(file.top, Math.max(0, lines.length - 1)))
const end = Math.min(lines.length, top + VIEW_LINES)
const where = rel(dir(file.path), filesRoot(m))
return (
<Box flexDirection="column">
{card(kit, m, [
row(kit, m, {
key: 'file-head',
lead: tile(kit, m, file.isEditing ? 'pencil' : 'doc', file.isEditing ? 'orange' : 'blue', 26),
title: base(file.path),
isBold: true,
sub: `${where === '' ? '' : `${where} · `}${file.isEditing ? 'Editing' : file.note === '' ? `Lines ${top + 1}–${end} of ${lines.length}` : 'Not shown'}`,
}),
toolbar(kit, [
file.isEditing
? action(kit, m, 'file-back', 'check', 'Done', () => act.toggleEdit(), 'blue', true)
: action(kit, m, 'file-back', 'back', 'Back', () => act.closeFile(), 'blue'),
canEdit && !file.isEditing && action(kit, m, 'file-edit', 'pencil', 'Edit', () => act.toggleEdit(), 'orange'),
action(kit, m, 'file-at', 'at', 'Mention', () => act.mention(file.path), 'gray'),
!file.isEditing && file.note === '' && top > 0 && action(kit, m, 'file-prev', 'up', 'Previous', () => act.pageFile(-1), 'gray'),
!file.isEditing && file.note === '' && end < lines.length && action(kit, m, 'file-next', 'down', 'Next', () => act.pageFile(1), 'gray'),
]),
])}
<Box flexDirection="column" marginTop={0.5}>
{file.note !== '' && card(kit, m, [<Text color={tone(m, 'orange')}>{file.note}</Text>])}
{file.note === '' && file.isEditing && kit.editor !== undefined &&
card(kit, m, [
kit.editor({
path: file.path,
text: file.text,
rev: file.mtimeMs,
rows: m.rows > 0 ? m.rows - 6 : 30,
isProportional: !m.isGrid,
accent: tone(m, 'blue'),
}),
])}
{file.note === '' && !file.isEditing && <Code source={lines.slice(top, end).join('\n') || ' '} startLine={top + 1} path={file.path} />}
</Box>
</Box>
)
}plugins/workbench/hooks/views/ui.tsx lines 162–187 · Pane
export function card(
kit: Kit,
m: Look,
children: (RenderElement | false | undefined | null)[],
options: { isPicked?: boolean; gap?: number; dense?: boolean } = {},
): RenderElement {
const { Box } = kit
const shown = children.filter((one): one is RenderElement => one !== false && one !== undefined && one !== null)
if (m.isGrid) return <Box flexDirection="column">{shown}</Box>
const look = surface(m)
return (
<Box
flexDirection="column"
backgroundColor={options.isPicked === true ? look.picked : look.fill}
borderStyle="round"
borderColor={look.edge}
paddingX={1}
paddingY={options.dense === true ? 0.3 : 0}
rowGap={options.dense === true ? 0 : (options.gap ?? 0.5)}
marginTop={0.5}
>
{shown}
</Box>
)
}plugins/workbench/hooks/views/pane.tsx lines 69–95 · Pane
export function header(kit: Kit, m: Model): RenderElement {
const { Box, Text } = kit
const at = place(m)
const room = Math.max(8, m.width - 40)
return (
<Box flexDirection="row" alignItems="center" columnGap={1}>
{mascot(kit, m, m.mood, 128)}
<Box flexDirection="column" flexShrink={1} minWidth={0}>
<Text bold>Workbench</Text>
<Box flexDirection="row" alignItems="center" columnGap={1}>
{at.name !== '' && m.width >= NARROW && <Text dimColor>{fit(at.name, Math.max(12, room - at.branch.length))}</Text>}
{at.branch !== '' && icon(kit, m, 'branch', 'gray', 12)}
{at.branch !== '' && <Text color={tone(m, 'blue')}>{fit(at.branch, Math.floor(room / 2))}</Text>}
{at.ahead > 0 && <Text color={tone(m, 'orange')}>{`${G.up}${at.ahead}`}</Text>}
{at.behind > 0 && <Text color={tone(m, 'orange')}>{`${G.down}${at.behind}`}</Text>}
</Box>
<Box flexDirection="row" marginTop={0.5}>
{moodPill(kit, m, m.mood)}
</Box>
</Box>
<Box flexGrow={1} />
{m.counts.running > 0 && pill(kit, m, `${m.counts.running} running`, 'green', true)}
{m.counts.ports > 0 && pill(kit, m, `${m.counts.ports} port${m.counts.ports === 1 ? '' : 's'}`, 'blue', true)}
</Box>
)
}plugins/workbench/hooks/views/ui.tsx lines 114–123 · Pane
export function mascot(kit: Kit, m: Look, mood: Mood, size = 30): RenderElement {
if (pictures(kit, m) && kit.Svg !== undefined) {
// Keyed by mood so a new mood starts its animation afresh.
return <kit.Svg key={`mascot-${mood}`} source={mascotSvg(mood, size)} alt={MOOD_WORDS[mood]} width={size} height={size} />
}
const [glyph, hue] = MOOD_GLYPHS[mood]
return <kit.Text color={tone(m, hue)}>{glyph}</kit.Text>
}Licence text (MIT)
MIT License Copyright (c) 2026 hymleong Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
How to build this: Pane (panel), Deny a tool call
What its code calls
networkruns programswrites filesenv varstool callsremembers
What its code shows
Read from the source at commit e3fb8c31dc64. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.plugins/workbench/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.24 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, with its own branch for the desktop |
| 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.plugins/workbench/hooks/register.tsx:347 fetch(`http://127.0.0.1:${live.port}${path}`); plugins/workbench/hooks/register.tsx:862 fetch(`http://${probeHost(row.addresses)}:${row.port}/`) |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.plugins/workbench/hooks/register.tsx:241 a program named at run time; plugins/workbench/hooks/register.tsx:373 a program named at run time |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, files and reaches 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.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).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.adds command workbench, adds tool dev_reload |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: tool.call (mcp__workbench__dev_rel…), tool.check, command.run (workbench) · shapes: turn.step · reads: ui.press, ui.message · also: session.start, turn.start, session.compact, turn.complete (+4) · 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: WAYLAND_DISPLAY, WSL_DISTRO_NAME, OS, USERPROFILE, HOME; files: a path computed at run time |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.files: a path computed at run time; the prompt box; the clipboard |
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 hymleong/claude-mods/plugin install workbench@claude-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (e3fb8c31dc64). 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/hymleong/claude-modsgit -C claude-mods checkout e3fb8c31dc640d34df567f6a76fe0863abfad7e9claude plugin validate claude-mods/plugins/workbenchclaude --plugin-dir claude-mods/plugins/workbenchThe 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 or ChatGPT about it
With ModsCode added as a connector, Claude or ChatGPT can read this mod's code, what it reaches and how its controls are wired, and build on them. Ask it like this:
Read the ModsCode mod "hymleong-workbench" with its code and make me one like itAdd the ModsCode MCP to Claude or ChatGPT
Similar mods
- agent-crewjduerrmann★ 1
- barYasser Altamimi★ 0
- time-machinexzwache★ 0
- hopeSaad Shahd★ 37
- explain-asSumit Paul★ 20
- uploadsBuild Internet★ 18
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/hymleong-workbench/)