ModsCode / Claude Code Mods / Ranking / agent-crew
agent-crew
A live pane of your subagents as a little pixel crew: who is working, on what, and how far along
What it does
- Draws a pane, toasts
- Adds /crew
- Watches tool calls
- Hooks agent.spawn, session.send, session.start, turn.complete
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- 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 agent-crew by xinhuagu (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/xinhuagu-agent-crew/
// 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: "Agent Crew" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const char = '…'
const char2 = '…'
const char3 = '…'
const SPINNER = '…'
const working = '…'
const finished = '…'
const sum = '…'
const tokens = '…'
const clock = '…'
const messages = '…'
const char4 = '…'
const char5 = '…'
const char6 = '…'
const text = '…'
const text2 = '…'
const text3 = '…'
const text4 = '…'
const text5 = '…'
const text6 = '…'
const text7 = '…'
const text8 = '…'
const text9 = '…'
const task = '…'
const name = '…'
const shortModel = '…'
const doing = '…'
const filled = '…'
const empty = '…'
const stats = '…'
const char7 = '…'
const char8 = '…'
const char9 = '…'
const text10 = '…'
const text11 = '…'
const text12 = '…'
const text13 = '…'
const text14 = '…'
const text15 = '…'
const text16 = '…'
const text17 = '…'
const text18 = '…'
const task2 = '…'
const shortModel2 = '…'
const doing2 = '…'
const filled2 = '…'
const empty2 = '…'
const stats2 = '…'
const char10 = '…'
const char11 = '…'
const char12 = '…'
const text19 = '…'
const text20 = '…'
const text21 = '…'
const text22 = '…'
const text23 = '…'
const text24 = '…'
const text25 = '…'
const text26 = '…'
const text27 = '…'
const task3 = '…'
const shortModel3 = '…'
const doing3 = '…'
const filled3 = '…'
const empty3 = '…'
const stats3 = '…'
return (
<Box flexDirection="column">
<Box>
<Text>
<Text>
{char}
</Text>
<Text>
{char2}
</Text>
<Text>
{char3}
</Text>
</Text>
<Text bold>
{`${SPINNER} `}
</Text>
<Text bold>
{working}
{" working"}
</Text>
<Text dimColor>
{" · "}
{finished}
{" done · "}
{`${sum}${tokens}`}
{" tok · "}
{clock}
{` · 💌 ${messages}`}
</Text>
</Box>
<Box flexDirection="row">
<Box flexDirection="column">
<Text>
<Text>
{char4}
</Text>
<Text>
{char5}
</Text>
<Text>
{char6}
</Text>
</Text>
</Box>
<Box flexDirection="row" marginTop={1} flexGrow={1}>
<Box flexDirection="column" width={8}>
<Text>
<Text>
{text}
</Text>
<Text>
{text2}
</Text>
<Text>
{text3}
</Text>
</Text>
<Text>
<Text>
{text4}
</Text>
<Text>
{text5}
</Text>
<Text>
{text6}
</Text>
</Text>
<Text>
<Text>
{text7}
</Text>
<Text>
{text8}
</Text>
<Text>
{text9}
</Text>
</Text>
</Box>
<Box flexDirection="column" flexGrow={1}>
<Text wrap="truncate-end">
<Text bold>
{task}
</Text>
<Text>
{" "}
</Text>
<Text>
specialist
</Text>
<Text dimColor>
{" "}
{`${name} · `}
{shortModel}
</Text>
</Text>
<Text wrap="truncate-end">
{doing}
</Text>
<Text wrap="truncate-end">
<Text>
{filled}
</Text>
<Text dimColor>
{empty}
</Text>
<Text dimColor>
{stats}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Box flexDirection="column">
<Text>
<Text>
{char7}
</Text>
<Text>
{char8}
</Text>
<Text>
{char9}
</Text>
</Text>
</Box>
<Box flexDirection="row" marginTop={1} flexGrow={1}>
<Box flexDirection="column" width={8}>
<Text>
<Text>
{text10}
</Text>
<Text>
{text11}
</Text>
<Text>
{text12}
</Text>
</Text>
<Text>
<Text>
{text13}
</Text>
<Text>
{text14}
</Text>
<Text>
{text15}
</Text>
</Text>
<Text>
<Text>
{text16}
</Text>
<Text>
{text17}
</Text>
<Text>
{text18}
</Text>
</Text>
</Box>
<Box flexDirection="column" flexGrow={1}>
<Text wrap="truncate-end">
<Text bold>
{task2}
</Text>
<Text>
{" "}
</Text>
<Text>
specialist
</Text>
<Text dimColor>
{" "}
{`${name} · `}
{shortModel2}
</Text>
</Text>
<Text wrap="truncate-end">
{doing2}
</Text>
<Text wrap="truncate-end">
<Text>
{filled2}
</Text>
<Text dimColor>
{empty2}
</Text>
<Text dimColor>
{stats2}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Box flexDirection="column">
<Text>
<Text>
{char10}
</Text>
<Text>
{char11}
</Text>
<Text>
{char12}
</Text>
</Text>
</Box>
<Box flexDirection="row" marginTop={1} flexGrow={1}>
<Box flexDirection="column" width={8}>
<Text>
<Text>
{text19}
</Text>
<Text>
{text20}
</Text>
<Text>
{text21}
</Text>
</Text>
<Text>
<Text>
{text22}
</Text>
<Text>
{text23}
</Text>
<Text>
{text24}
</Text>
</Text>
<Text>
<Text>
{text25}
</Text>
<Text>
{text26}
</Text>
<Text>
{text27}
</Text>
</Text>
</Box>
<Box flexDirection="column" flexGrow={1}>
<Text wrap="truncate-end">
<Text bold>
{task3}
</Text>
<Text>
{" "}
</Text>
<Text>
specialist
</Text>
<Text dimColor>
{" "}
{`${name} · `}
{shortModel3}
</Text>
</Text>
<Text wrap="truncate-end">
{doing3}
</Text>
<Text wrap="truncate-end">
<Text>
{filled3}
</Text>
<Text dimColor>
{empty3}
</Text>
<Text dimColor>
{stats3}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box marginTop={1}>
<Button label="Clear finished" hotkey="c" />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const done = '…'
const length = '…'
await $.ui.toast(`🎉 Crew's done: ${done}/${length} agents clocked out`)
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.
plugins/agent-crew/hooks/register.tsx lines 479–597 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const list = await read($, crew)
const tick = await read($, frame)
const now = await $.clock.now()
const width = Math.max(30, e.props.bodyColumns)
const drawn = (rows: Span[][], id: string) => (
<Box flexDirection="column" width={SPRITE_WIDTH}>
{rows.map((spans, row) => (
<Text key={`${id}-${row}`}>
{spans.map(([text, fg, bg], k) => (
<Text key={`${id}-${row}-${k}`} color={fg} backgroundColor={bg}>
{text}
</Text>
))}
</Text>
))}
</Box>
)
if (list.length === 0) {
return (
<Box flexDirection="column">
{drawn(NAPPING, 'napping')}
<Text dimColor>The crew is napping. Ask for something big and they'll get to work.</Text>
</Box>
)
}
const working = list.filter(m => m.status === 'working').length
const finished = list.length - working
const total = list.reduce((sum, m) => sum + m.tokens, 0)
const firstStart = Math.min(...list.map(m => m.startedAt))
const lastEnd = working > 0 ? now : Math.max(...list.map(m => m.endedAt ?? now))
const letters = await read($, mail)
const messages = await read($, posted)
const hasMail = list.some(m => m.sent + m.received > 0) || letters.length > 0
const cells = hasMail ? lane(list, letters, now) : []
const gutter = (row: number) =>
hasMail ? (
<Text key={`lane-${row}`}>
{(cells[row] ?? []).map((cell, col) => (
<Text key={`${row}-${col}`} color={cell.color} dimColor={cell.isFaded === true}>
{cell.char}
</Text>
))}
</Text>
) : null
return (
<Box flexDirection="column">
<Box>
{gutter(0)}
<Text bold>{working > 0 ? `${SPINNER[tick % SPINNER.length]} ` : '✓ '}</Text>
<Text bold>{working} working</Text>
<Text dimColor>
{' · '}
{finished} done · {tokens(total)} tok · {clock(lastEnd - firstStart)}
{messages > 0 ? ` · 💌 ${messages}` : ''}
</Text>
</Box>
{list.map((m, i) => {
const mood = moodAt(m, now)
const body = BODY_COLORS[m.look % BODY_COLORS.length]!
const r = role(m.type)
const elapsed = clock((m.endedAt ?? now) - m.startedAt)
const post = m.sent + m.received > 0 ? ` · ✉${m.sent}↑${m.received}↓` : ''
const stats = ` ${m.steps} steps · ${tokens(m.tokens)} · ${elapsed}${post}`
const { filled, empty } = bar(progress(m), width - SPRITE_WIDTH - (hasMail ? LANE_WIDTH : 0) - stats.length - 1)
const isLive = m.status === 'working'
const barColor = m.status === 'failed' ? 'error' : m.status === 'stopped' ? 'warning' : isLive ? body : 'success'
const doing =
mood?.kind === 'talk'
? `💬 → ${mood.peer}: "${mood.text}"`
: mood?.kind === 'listen'
? `📬 from ${mood.peer}: "${mood.text}"`
: isLive
? `${SPINNER[(tick + m.look) % SPINNER.length]} ${activity(m.lastTool)}…`
: quip(m)
const top = 1 + i * CARD_ROWS
return (
<Box key={m.id} flexDirection="row">
{hasMail && <Box flexDirection="column">{Array.from({ length: CARD_ROWS }, (_, k) => gutter(top + k))}</Box>}
<Box flexDirection="row" marginTop={1} flexGrow={1}>
{drawn(sprite(m, tick, now), m.id)}
<Box flexDirection="column" flexGrow={1}>
<Text wrap="truncate-end">
<Text bold dimColor={!isLive}>{m.task}</Text>
<Text>{' '}</Text>
<Text color={ROLE_COLORS[r]!}>{r}</Text>
<Text dimColor> {m.name !== undefined ? `${m.name} · ` : ''}{shortModel(m.model)}</Text>
</Text>
<Text wrap="truncate-end" color={mood?.ink} dimColor={!isLive && mood === undefined}>
{doing}
</Text>
<Text wrap="truncate-end">
<Text color={barColor}>{filled}</Text>
<Text dimColor>{empty}</Text>
<Text dimColor>{stats}</Text>
</Text>
</Box>
</Box>
</Box>
)
})}
{finished > 0 && (
<Box marginTop={1}>
<Button
key="clear"
label="Clear finished"
hotkey="c"
onPress={() => update($, crew, all => all.filter(m => m.status === 'working'))}
/>
</Box>
)}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 xinhuagu 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
tool calls
What its code shows
Read from the source at commit c6c298d49a71 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.plugins/agent-crew/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.1 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.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).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.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 crew |
| 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 (crew), tool.call · also: session.start, agent.spawn, session.send, turn.complete (+1) · timers: clock.every, clock.after |
| 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.reads no files, environment variables, settings or 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.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 xinhuagu/oh-my-claude-mods/plugin install agent-crew@oh-my-claude-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (c6c298d49a71). 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/xinhuagu/oh-my-claude-modsgit -C oh-my-claude-mods checkout c6c298d49a71b45ff552a87ce728bd7e2f004219claude plugin validate oh-my-claude-mods/plugins/agent-crewclaude --plugin-dir oh-my-claude-mods/plugins/agent-crewThe 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 "xinhuagu-agent-crew" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- ruflo-swarmruvnet★ 74,323
- code-modernizationAnthropic★ 37,653
- moai-boardMoAI-ADK★ 1,230
- crit-tuiTomasz Tomczyk★ 1,196
- lcu-approveLCU★ 894
- ai-maestro-secrets23blocks-OS★ 817
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/xinhuagu-agent-crew/)