ModsCode / Claude Code Mods / Ranking / subagents-panel
subagents-panel
A side panel listing this session's subagents, what each is doing now, and each one's step-by-step progress.
What it does
- Draws a pane, a band above the prompt, toasts
- Adds /subagents
- Watches tool calls and can refuse them
- Hooks agent.spawn, classic.SessionStart, session.end, session.start and 5 more
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
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 subagents-panel by Berk Akkaya (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/berkakkaya-subagents-panel/
// 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: "Subagents" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Button, Text, Svg, Markdown, Client, Input } = $.ui.resolve(e)
const glyph = '…'
const description = '…'
const meta = '…'
const DIVIDER = '…'
const duration = '…'
const toolCount = '…'
const prompt = '…'
const note = '…'
const current = '…'
const label = '…'
const KIND_GLYPH = '…'
const KIND_GLYPH2 = '…'
const KIND_GLYPH3 = '…'
const failed = '…'
const KIND_GLYPH4 = '…'
const text = '…'
const KIND_GLYPH5 = '…'
const text2 = '…'
const KIND_GLYPH6 = '…'
const text3 = '…'
const KIND_GLYPH7 = '…'
const KIND_GLYPH8 = '…'
const KIND_GLYPH9 = '…'
const failed2 = '…'
const KIND_GLYPH10 = '…'
const text4 = '…'
const KIND_GLYPH11 = '…'
const text5 = '…'
const KIND_GLYPH12 = '…'
const text6 = '…'
const KIND_GLYPH13 = '…'
const KIND_GLYPH14 = '…'
const KIND_GLYPH15 = '…'
const failed3 = '…'
const KIND_GLYPH16 = '…'
const text7 = '…'
const KIND_GLYPH17 = '…'
const text8 = '…'
const KIND_GLYPH18 = '…'
const text9 = '…'
const answer = '…'
return (
<Box flexDirection="column" paddingX={1}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Button plain hotkey="b" label="←" />
<Text>
{glyph}
</Text>
<Text bold wrap="truncate-end">
{description}
</Text>
<Box flexGrow={1} />
<Text dimColor wrap="truncate-end">
{meta}
</Text>
</Box>
<Box marginTop={1}>
<Svg source={`${DIVIDER}`} alt="Divider" height={1} />
</Box>
<Box flexDirection="row" alignItems="center" marginTop={1}>
<Text color="claude">
●
</Text>
<Text>
{" Waiting for "}
{duration}
</Text>
<Text dimColor>
{" · "}
{toolCount}
{" tool calls"}
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Button plain dimColor label="▾ Task" />
<Box paddingLeft={2} marginTop={1}>
<Markdown text={`${prompt}`} dimColor />
</Box>
</Box>
<Box marginTop={1}>
<Text dimColor italic>
{"Steps unavailable after resume: "}
{note}
</Text>
</Box>
<Box marginTop={1}>
<Text dimColor italic>
{current}
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" flexWrap="wrap" alignItems="center" columnGap={1}>
<Box flexShrink={0}>
<Button plain dimColor label={`${label}`} />
</Box>
<Box flexDirection="row" flexShrink={0} alignItems="center" gap={1}>
<Text>
{KIND_GLYPH}
</Text>
<Text>
{KIND_GLYPH2}
</Text>
<Text>
{KIND_GLYPH3}
</Text>
<Text color="error">
{failed}
{" failed"}
</Text>
<Text color="claude">
●
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2} marginTop={1} gap={1}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text>
{KIND_GLYPH4}
</Text>
<Text color="error" wrap="truncate-end">
{text}
</Text>
<Box flexGrow={1} />
<Text color="claude">
●
</Text>
<Text color="error">
✗
</Text>
</Box>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text>
{KIND_GLYPH5}
</Text>
<Text color="error" wrap="truncate-end">
{text2}
</Text>
<Box flexGrow={1} />
<Text color="claude">
●
</Text>
<Text color="error">
✗
</Text>
</Box>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text>
{KIND_GLYPH6}
</Text>
<Text color="error" wrap="truncate-end">
{text3}
</Text>
<Box flexGrow={1} />
<Text color="claude">
●
</Text>
<Text color="error">
✗
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" flexWrap="wrap" alignItems="center" columnGap={1}>
<Box flexShrink={0}>
<Button plain dimColor label={`${label}`} />
</Box>
<Box flexDirection="row" flexShrink={0} alignItems="center" gap={1}>
<Text>
{KIND_GLYPH7}
</Text>
<Text>
{KIND_GLYPH8}
</Text>
<Text>
{KIND_GLYPH9}
</Text>
<Text color="error">
{failed2}
{" failed"}
</Text>
<Text color="claude">
●
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2} marginTop={1} gap={1}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text>
{KIND_GLYPH10}
</Text>
<Text color="error" wrap="truncate-end">
{text4}
</Text>
<Box flexGrow={1} />
<Text color="claude">
●
</Text>
<Text color="error">
✗
</Text>
</Box>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text>
{KIND_GLYPH11}
</Text>
<Text color="error" wrap="truncate-end">
{text5}
</Text>
<Box flexGrow={1} />
<Text color="claude">
●
</Text>
<Text color="error">
✗
</Text>
</Box>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text>
{KIND_GLYPH12}
</Text>
<Text color="error" wrap="truncate-end">
{text6}
</Text>
<Box flexGrow={1} />
<Text color="claude">
●
</Text>
<Text color="error">
✗
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" flexWrap="wrap" alignItems="center" columnGap={1}>
<Box flexShrink={0}>
<Button plain dimColor label={`${label}`} />
</Box>
<Box flexDirection="row" flexShrink={0} alignItems="center" gap={1}>
<Text>
{KIND_GLYPH13}
</Text>
<Text>
{KIND_GLYPH14}
</Text>
<Text>
{KIND_GLYPH15}
</Text>
<Text color="error">
{failed3}
{" failed"}
</Text>
<Text color="claude">
●
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2} marginTop={1} gap={1}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text>
{KIND_GLYPH16}
</Text>
<Text color="error" wrap="truncate-end">
{text7}
</Text>
<Box flexGrow={1} />
<Text color="claude">
●
</Text>
<Text color="error">
✗
</Text>
</Box>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text>
{KIND_GLYPH17}
</Text>
<Text color="error" wrap="truncate-end">
{text8}
</Text>
<Box flexGrow={1} />
<Text color="claude">
●
</Text>
<Text color="error">
✗
</Text>
</Box>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text>
{KIND_GLYPH18}
</Text>
<Text color="error" wrap="truncate-end">
{text9}
</Text>
<Box flexGrow={1} />
<Text color="claude">
●
</Text>
<Text color="error">
✗
</Text>
</Box>
</Box>
</Box>
<Box marginTop={1} flexDirection="column">
<Markdown text={`${answer}`} />
</Box>
<Box flexGrow={1} />
<Box marginTop={1} width="100%">
<Client module="./composer.tsx" width="100%" />
</Box>
<Box marginTop={1} width="100%">
<Input placeholder="Message this subagent" submitLabel="send" />
</Box>
</Box>
)
})
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text, Button } = $.ui.resolve(e)
const moreText = '…'
const headline = '…'
const tailText = '…'
const openLabel = '…'
return (
<Box flexDirection="column">
<Text dimColor wrap="truncate-end">
────────
</Text>
<Box flexDirection="row" flexWrap="nowrap" alignItems="center" gap={1} paddingX={1}>
<Text color="success">
✓
</Text>
<Box flexShrink={0} flexDirection="row" gap={1}>
<Text dimColor bold>
{moreText}
</Text>
<Text dimColor>
·
</Text>
</Box>
<Box flexShrink={0}>
<Text wrap="truncate-end">
{headline}
</Text>
</Box>
<Box flexShrink={0}>
<Text dimColor wrap="truncate-end">
{tailText}
</Text>
</Box>
<Box flexGrow={1} />
<Button label={`${openLabel}`} />
<Box position="relative" flexDirection="row" alignItems="center">
<Box position="absolute" top={0} right={3} display="none" backgroundColor="#2B2D31" paddingX={1}>
<Text color="#F2F2F2" wrap="truncate-end">
Type /subagents to bring it back
</Text>
</Box>
<Button role="dismiss" plain dimColor label="×" />
</Box>
</Box>
{await next(e)}
</Box>
)
})
on('session.start', async ($, e, next) => {
const reason = '…'
await $.ui.toast(`Message not delivered: ${reason}`)
await $.ui.toast(`Message not delivered: ${reason}`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
hooks/register.tsx lines 895–1054 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
void traceEvent($, `render ${e.surface} focused=${e.props.isFocused} placement=${e.props.placement}`)
const els = $.ui.resolve(e)
const { Box, Text, Button, Markdown } = els
// Graphical surfaces (desktop, VS Code, mobile) draw SVG; the terminal draws glyphs. Decide by
// surface, not by the table: at run time the terminal's table answers `Svg` too, and draws nothing.
const isTerminal = e.surface === 'terminal'
const Svg = !isTerminal && 'Svg' in els ? els.Svg : undefined
// The terminal and a desktop run a `Client` module on the surface itself: elapsed times tick
// there, on the surface's clock, whether or not the engine raises anything meanwhile.
const Client = (isTerminal || e.surface === 'desktop') && 'Client' in els ? els.Client : undefined
const liveElapsed = (key: string, baseMs: number, prefix = '', dim = true) =>
Client ? (
<Client key={key} module="./elapsed.tsx" props={{ baseMs, prefix, dim }} />
) : (
<Text dimColor={dim}>
{prefix}
{duration(baseMs)}
</Text>
)
const list = await read($, agents)
const chosen = await read($, selected)
const open = await read($, toggled)
await read($, tick) // redraw as elapsed times move
if (list.some(r => isActive(r.phase))) armRefresh($)
const now = await $.clock.now()
const width = Math.max(20, e.props.bodyColumns)
const flip = (key: string) => update($, toggled, keys => (keys.includes(key) ? keys.filter(k => k !== key) : [...keys, key]))
const face = (row: AgentRow) => {
// A desktop draws no Svg whose alt is empty, so every Svg here names itself.
if (Svg) return <Svg source={avatarIcon(row.id)} alt="Agent avatar" width={18} height={18} />
const a = avatar(row.id)
return <Text color={a.color}>{a.glyph}</Text>
}
const kindChip = (kind: Kind, size = 20) => {
if (Svg) return <Svg source={kindIcon(kind)} alt={kind} width={size} height={size} />
// The terminal draws the same colors: blue files, green commands, purple the rest.
return <Text color={KIND_COLOR[kind]}>{KIND_GLYPH[kind]}</Text>
}
const statusMark = (row: AgentRow) => {
if (row.phase === 'running') return <Text color="claude">{RUNNING}</Text>
if (row.phase === 'waiting') return <Text color="warning">◌</Text>
if (row.phase === 'failed') return <Text color="error">✗</Text>
if (row.phase === 'killed') return <Text color="inactive">■</Text>
return <Text color="success">✓</Text>
}
const divider = () =>
Svg ? (
<Box marginTop={1}>
<Svg source={DIVIDER} alt="Divider" height={1} />
</Box>
) : (
<Text dimColor>{'─'.repeat(Math.max(1, width - 2))}</Text>
)
const agent = chosen ? list.find(r => r.id === chosen) : undefined
// The mobile app draws no text field yet.
const Input = e.surface !== 'mobile' && 'Input' in els ? els.Input : undefined
// Switching views removes the element that held the focus, and the surface then lets go of
// the pane: the next click only took the focus back (a "double click" on desktop). Hand the
// ring to an element the new view draws; `$.ui.focus` waits for that drawing.
const handFocus = async (key: string) => {
const moved = await $.ui.focus({ requestId: PANE, key }).catch((err: unknown) => ({ deny: err instanceof Error ? err.message : String(err) }))
await traceEvent($, `hand focus -> ${key}: ${moved.deny ? `refused (${moved.deny})` : 'ok'}`)
}
const openAgent = async (id: string) => {
await update($, selected, () => id)
await handFocus('back')
}
const goBack = async (from: string) => {
await update($, selected, () => null)
await handFocus(`open-${from}`)
}
// ── Detail: one agent's progress ──────────────────────────────────────────
if (agent) {
// The default agent type says nothing; the header shows a type only when it is a chosen one.
const meta = [agent.model, agent.type === 'general-purpose' ? '' : agent.type].filter(Boolean).join(' · ')
const nameRoom = Math.max(8, width - meta.length - 10)
// Kept start and end times first; else the duration the Agent call's record states.
const hasTimes = agent.startedAt > 0 && (isActive(agent.phase) || agent.endedAt !== undefined)
const ran = hasTimes ? (agent.endedAt ?? now) - agent.startedAt : (agent.durationMs ?? 0)
const ranLabel = isActive(agent.phase)
? `${agent.phase === 'waiting' ? 'Waiting' : 'Running'}${hasTimes ? ` for ${duration(ran)}` : ''}`
: !hasTimes && agent.durationMs === undefined
? agent.phase === 'completed'
? 'Completed'
: agent.phase === 'failed'
? 'Failed'
: 'Stopped'
: agent.phase === 'completed'
? `Ran for ${duration(ran)}`
: `${agent.phase === 'failed' ? 'Failed' : 'Stopped'} after ${duration(ran)}`
// Runs of consecutive tool calls fold into one group, as Codex shows them.
type Block = { kind: 'say'; step: AgentStep } | { kind: 'you'; step: AgentStep } | { kind: 'tools'; key: string; steps: AgentStep[] }
const blocks: Block[] = []
agent.steps.forEach((step, i) => {
const last = blocks[blocks.length - 1]
if (step.kind === 'say') blocks.push({ kind: 'say', step })
else if (step.kind === 'you') blocks.push({ kind: 'you', step })
else if (last?.kind === 'tools') last.steps.push(step)
else blocks.push({ kind: 'tools', key: `${agent.id}:g${i}`, steps: [step] })
})
const lastTools = [...blocks].reverse().find(b => b.kind === 'tools')
const taskKey = `${agent.id}:task`
return (
<Box flexDirection="column" paddingX={1} minHeight={isActive(agent.phase) && Client ? e.props.scroll.bodyRows : undefined}>
<Box flexDirection="row" alignItems="center" gap={1}>
{isTerminal ? (
<Button key="back" plain hotkey="b" label="←" onPress={() => goBack(agent.id)} />
) : (
<Button key="back" plain label="←" onPress={() => goBack(agent.id)} />
)}
{face(agent)}
<Text bold wrap="truncate-end">
{clip(agent.description, nameRoom)}
</Text>
<Box flexGrow={1} />
<Text dimColor wrap="truncate-end">
{meta}
</Text>
</Box>
{divider()}
<Box flexDirection="row" alignItems="center" marginTop={1}>
{statusMark(agent)}
{isActive(agent.phase) && hasTimes ? (
liveElapsed('elapsed-detail', ran, ` ${agent.phase === 'waiting' ? 'Waiting' : 'Running'} for `)
) : (
<Text dimColor> {ranLabel}</Text>
)}
{agent.toolCount > 0 && <Text dimColor> · {agent.toolCount} tool calls</Text>}
</Box>
{agent.prompt !== '' && (
<Box flexDirection="column" marginTop={1}>
<Button
key="task"
plain
dimColor
label={`${open.includes(taskKey) ? '▾' : '▸'} Task`}
onPress={() => flip(taskKey)}
/>
{open.includes(taskKey) && (
<Box paddingLeft={2} marginTop={1}>
<Markdown text={agent.prompt.slice(0, MAX_TEXT)} dimColor />
</Box>
)}
</Box>
)}
{blocks.length === 0 && !isActive(agent.phase) && agent.note && (hooks/register.tsx lines 1351–1355 · Pane
const face = (r: AgentRow) => {
if (Svg) return <Svg source={avatarIcon(r.id)} alt="Agent avatar" width={16} height={16} />
const a = avatar(r.id)
return <Text color={a.color}>{a.glyph}</Text>
}hooks/register.tsx lines 1313–1444 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey) return next(e)
if (await read($, bandHidden)) return next(e)
const list = await read($, agents)
if (list.length === 0) return next(e)
const els = $.ui.resolve(e)
const { Box, Text, Button } = els
const isTerminal = e.surface === 'terminal'
const Svg = !isTerminal && 'Svg' in els ? els.Svg : undefined
await read($, tick) // redraw as elapsed times move
if (list.some(r => isActive(r.phase))) armRefresh($)
const running = list.filter(r => isActive(r.phase)).sort((a, b) => b.startedAt - a.startedAt)
const done = list.length - running.length
const failed = list.filter(r => r.phase === 'failed').length
const plural = (n: number, word: string) => `${n} ${word}${n === 1 ? '' : 's'}`
const headline = running.length > 0 ? `${plural(running.length, 'subagent')} running` : `${plural(done, 'subagent')} finished`
const tail = [running.length > 0 && done > 0 ? `${done} done` : '', failed > 0 ? `${failed} failed` : ''].filter(Boolean)
// One line, never wrapped: what does not fit gives way, the done count first, then the
// button's words. What each agent is doing belongs to the panel, not here.
const cols = e.props.bodyColumns
// How many heads the band shows: five when wide, fewer as it narrows; past that, the first
// few as a stack and "+N" for the rest, so a crowd never pushes the line over.
const cap = cols >= 90 ? 5 : cols >= 60 ? 3 : 2
const crowded = running.length > cap
const shownHeads = running.slice(0, crowded ? cap - 1 : cap)
const moreText = crowded ? `+${running.length - shownHeads.length}` : ''
const stacked = Svg !== undefined && shownHeads.length >= 3
const avatarsWidth =
running.length === 0 ? 2 : (stacked ? Math.ceil((24 + 14 * (shownHeads.length - 1)) / 8) : shownHeads.length * 2) + (moreText ? moreText.length + 3 : 0)
const buttonWidth = (label: string) => label.length + (isTerminal ? 4 : 2)
const room = (tailText: string, label: string) => 2 + avatarsWidth + headline.length + (tailText ? tailText.length + 1 : 0) + buttonWidth(label) + 3 <= cols
const fullTail = tail.length > 0 ? `· ${tail.join(' · ')}` : ''
const tailText = room(fullTail, 'Open subagents') || room(fullTail, 'Open') ? fullTail : ''
const openLabel = room(tailText, 'Open subagents') ? 'Open subagents' : 'Open'
const face = (r: AgentRow) => {
if (Svg) return <Svg source={avatarIcon(r.id)} alt="Agent avatar" width={16} height={16} />
const a = avatar(r.id)
return <Text color={a.color}>{a.glyph}</Text>
}
const band = (
<Box key="subagents-band" flexDirection="row" flexWrap="nowrap" alignItems="center" gap={1} paddingX={1}>
{running.length === 0 ? (
<Text color="success">✓</Text>
) : stacked && Svg ? (
<Svg
source={avatarStack(shownHeads.map(r => r.id))}
alt="Agent avatars"
width={24 + 14 * (shownHeads.length - 1)}
height={18}
/>
) : (
// The terminal packs its glyphs tight: a character cell cannot overlap another.
<Box flexDirection="row" flexShrink={0}>
{shownHeads.map(face)}
</Box>
)}
{moreText !== '' && (
// "+3 · 7 subagents running": the dot keeps the two numbers from reading as one.
<Box flexShrink={0} flexDirection="row" gap={1}>
<Text dimColor bold>
{moreText}
</Text>
<Text dimColor>·</Text>
</Box>
)}
<Box flexShrink={0}>
<Text bold={running.length > 0} wrap="truncate-end">
{headline}
</Text>
</Box>
{tailText !== '' && (
<Box flexShrink={0}>
<Text dimColor wrap="truncate-end">
{tailText}
</Text>
</Box>
)}
<Box flexGrow={1} />
<Button
key="open-subagents"
label={openLabel}
onPress={() => void $.ui.open({ id: PANE, title: TITLE, focus: true }).catch(() => undefined)}
/>
{/* The close mark at the far right. Hovering it floats a small card over the band, left of
the mark, saying how to bring the band back: it covers rather than pushes the line, as
a tooltip would (a mod's Button carries no native tooltip). A click hides the band and
says so in a toast. */}
<Box key="band-close" position="relative" flexDirection="row" alignItems="center">
<Box
position="absolute"
top={0}
right={3}
display="none"
hover={{ display: 'flex' }}
backgroundColor="#2B2D31"
paddingX={1}
>
{/* Fixed colors, not theme names: a tooltip reads light on dark in either theme. */}
<Text color="#F2F2F2" wrap="truncate-end">
Type /subagents to bring it back
</Text>
</Box>
<Button
key="dismiss-band"
role="dismiss"
plain
dimColor
label="×"
onPress={() => {
void update($, bandHidden, () => true)
$.ui.toast('Subagents band hidden. Type /subagents to bring back the band and the panel.')
}}
/>
</Box>
</Box>
)
// The terminal sets the band off from the conversation above with a rule across its top.
if (!isTerminal) return band
return (
<Box flexDirection="column">
<Text dimColor wrap="truncate-end">
{'─'.repeat(Math.max(1, cols))}
</Text>
{band}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Berk Akkaya 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
drives Claudetool callsremembers
What its code shows
Read from the source at commit 3542d7bce281. 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.3 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.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs |
| 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 the transcript and reaches another session |
| 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 subagents |
| 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 (subagents), tool.call · shapes: turn.step · reads: classic.SessionStart, ui.message, ui.press · also: session.start, session.end, ui.focus, agent.spawn (+2) · 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.the transcript |
| 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.another session |
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 berkakkaya/subagents-panel/plugin install subagents-panel@subagents-panel/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (3542d7bce281). 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/berkakkaya/subagents-panelgit -C subagents-panel checkout 3542d7bce28130e1ef787df64f5548ba814126beclaude plugin validate subagents-panelclaude --plugin-dir subagents-panelThe 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 "berkakkaya-subagents-panel" with its code and make me one like itAdd the ModsCode MCP to Claude or ChatGPT
Similar mods
- fishstackPatrick Lai★ 0
- workflow-conductorArtur Turdiev★ 4
- claudelingoKeisuke Yoda★ 2
- a2a-modAliasgar Khimani★ 1
- aitoolsMichael Shepanski★ 1
- cockpitAndré Servaes★ 0
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/berkakkaya-subagents-panel/)