ModsCode / Claude Code Mods / Ranking / agent-party
agent-party
Your running subagents as 16×16 pixel heroes above the prompt: their task, what they are doing, time, tokens, and a voice that tells their status
What it does
- Draws a band above the prompt, toasts
- Adds /agent-theme, /agent-size, /agent-outline, /agent-voice
- Watches tool calls and can refuse them
- Hooks agent.spawn, session.start, turn.complete, turn.step
- Keeps its own state between turns
Good points
- No network calls
- 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 agent-party by ytruong11201 (pane, band, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/ytruong11201-agent-party/
// 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 band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text } = $.ui.resolve(e)
const type = '…'
const classOf = '…'
const calls = '…'
const title = '…'
const activity = '…'
const activity2 = '…'
const elapsed = '…'
const tokens = '…'
const type2 = '…'
const classOf2 = '…'
const title2 = '…'
const activity3 = '…'
const activity4 = '…'
const elapsed2 = '…'
const hearts = '…'
const type3 = '…'
const classOf3 = '…'
const title3 = '…'
const activity5 = '…'
const activity6 = '…'
const elapsed3 = '…'
const hearts2 = '…'
const type4 = '…'
const classOf4 = '…'
const title4 = '…'
const activity7 = '…'
const activity8 = '…'
const elapsed4 = '…'
const hearts3 = '…'
const type5 = '…'
const classOf5 = '…'
const title5 = '…'
const activity9 = '…'
const activity10 = '…'
const elapsed5 = '…'
const hearts4 = '…'
const type6 = '…'
const classOf6 = '…'
const title6 = '…'
const activity11 = '…'
const activity12 = '…'
const elapsed6 = '…'
const hearts5 = '…'
const type7 = '…'
const classOf7 = '…'
const title7 = '…'
const activity13 = '…'
const activity14 = '…'
const elapsed7 = '…'
const hearts6 = '…'
const type8 = '…'
const classOf8 = '…'
const title8 = '…'
const activity15 = '…'
const activity16 = '…'
const elapsed8 = '…'
const hearts7 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box flexDirection="column">
<Text wrap="truncate">
<Text dimColor>
{"↳ "}
</Text>
<Text bold>
{type}
</Text>
<Text dimColor>
{" the "}
{classOf}
{" · Lv "}
{`${calls}1`}
</Text>
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold wrap="truncate">
{title}
</Text>
<Text italic color="yellow" wrap="truncate">
{activity}
</Text>
</Box>
<Text italic color="yellow" wrap="truncate">
{activity2}
</Text>
<Text dimColor wrap="truncate">
{" "}
{"⏱ "}
{elapsed}
{` · ↓ ${tokens} tokens`}
<Text color="red">
{" "}
♥♥♥♥♥♥♥♥♡♡♡♡♡♡♡♡
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box flexDirection="column">
<Text wrap="truncate">
<Text dimColor>
{"↳ "}
</Text>
<Text bold>
{type2}
</Text>
<Text dimColor>
{" the "}
{classOf2}
{" · Lv "}
{`${calls}1`}
</Text>
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold wrap="truncate">
{title2}
</Text>
<Text italic color="yellow" wrap="truncate">
{activity3}
</Text>
</Box>
<Text italic color="yellow" wrap="truncate">
{activity4}
</Text>
<Text dimColor wrap="truncate">
{" "}
{"⏱ "}
{elapsed2}
{` · ↓ ${tokens} tokens`}
<Text color="red">
{" "}
{hearts}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box flexDirection="column">
<Text wrap="truncate">
<Text dimColor>
{"↳ "}
</Text>
<Text bold>
{type3}
</Text>
<Text dimColor>
{" the "}
{classOf3}
{" · Lv "}
{`${calls}1`}
</Text>
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold wrap="truncate">
{title3}
</Text>
<Text italic color="yellow" wrap="truncate">
{activity5}
</Text>
</Box>
<Text italic color="yellow" wrap="truncate">
{activity6}
</Text>
<Text dimColor wrap="truncate">
{" "}
{"⏱ "}
{elapsed3}
{` · ↓ ${tokens} tokens`}
<Text color="red">
{" "}
{hearts2}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box flexDirection="column">
<Text wrap="truncate">
<Text dimColor>
{"↳ "}
</Text>
<Text bold>
{type4}
</Text>
<Text dimColor>
{" the "}
{classOf4}
{" · Lv "}
{`${calls}1`}
</Text>
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold wrap="truncate">
{title4}
</Text>
<Text italic color="yellow" wrap="truncate">
{activity7}
</Text>
</Box>
<Text italic color="yellow" wrap="truncate">
{activity8}
</Text>
<Text dimColor wrap="truncate">
{" "}
{"⏱ "}
{elapsed4}
{` · ↓ ${tokens} tokens`}
<Text color="red">
{" "}
{hearts3}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box flexDirection="column">
<Text wrap="truncate">
<Text dimColor>
{"↳ "}
</Text>
<Text bold>
{type5}
</Text>
<Text dimColor>
{" the "}
{classOf5}
{" · Lv "}
{`${calls}1`}
</Text>
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold wrap="truncate">
{title5}
</Text>
<Text italic color="yellow" wrap="truncate">
{activity9}
</Text>
</Box>
<Text italic color="yellow" wrap="truncate">
{activity10}
</Text>
<Text dimColor wrap="truncate">
{" "}
{"⏱ "}
{elapsed5}
{` · ↓ ${tokens} tokens`}
<Text color="red">
{" "}
{hearts4}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box flexDirection="column">
<Text wrap="truncate">
<Text dimColor>
{"↳ "}
</Text>
<Text bold>
{type6}
</Text>
<Text dimColor>
{" the "}
{classOf6}
{" · Lv "}
{`${calls}1`}
</Text>
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold wrap="truncate">
{title6}
</Text>
<Text italic color="yellow" wrap="truncate">
{activity11}
</Text>
</Box>
<Text italic color="yellow" wrap="truncate">
{activity12}
</Text>
<Text dimColor wrap="truncate">
{" "}
{"⏱ "}
{elapsed6}
{` · ↓ ${tokens} tokens`}
<Text color="red">
{" "}
{hearts5}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box flexDirection="column">
<Text wrap="truncate">
<Text dimColor>
{"↳ "}
</Text>
<Text bold>
{type7}
</Text>
<Text dimColor>
{" the "}
{classOf7}
{" · Lv "}
{`${calls}1`}
</Text>
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold wrap="truncate">
{title7}
</Text>
<Text italic color="yellow" wrap="truncate">
{activity13}
</Text>
</Box>
<Text italic color="yellow" wrap="truncate">
{activity14}
</Text>
<Text dimColor wrap="truncate">
{" "}
{"⏱ "}
{elapsed7}
{` · ↓ ${tokens} tokens`}
<Text color="red">
{" "}
{hearts6}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Box flexDirection="column" paddingLeft={2} />
</Box>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box flexDirection="column">
<Text wrap="truncate">
<Text dimColor>
{"↳ "}
</Text>
<Text bold>
{type8}
</Text>
<Text dimColor>
{" the "}
{classOf8}
{" · Lv "}
{`${calls}1`}
</Text>
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold wrap="truncate">
{title8}
</Text>
<Text italic color="yellow" wrap="truncate">
{activity15}
</Text>
</Box>
<Text italic color="yellow" wrap="truncate">
{activity16}
</Text>
<Text dimColor wrap="truncate">
{" "}
{"⏱ "}
{elapsed8}
{` · ↓ ${tokens} tokens`}
<Text color="red">
{" "}
{hearts7}
</Text>
</Text>
</Box>
</Box>
</Box>
</Box>
</Box>
</Box>
{await next(e)}
</Box>
)
})
on('session.start', async ($, e, next) => {
const err = '…'
await $.ui.toast(`agent-party: no voice available (${err}), voice off`)
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-party/hooks/register.tsx lines 312–433 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const list = await read($, agents)
if (!list.length || e.props.hasSurvey) return next(e)
const table = $.ui.resolve(e)
const { Box, Text } = table
// Terminal: half-block Raster. Desktop, VS Code, mobile: the same pixels as an Svg.
// WHY e.surface: the table names every element on every surface (a missing one draws nothing),
// so `'Raster' in table` is true everywhere.
const isTerminal = e.surface === 'terminal'
const Raster = isTerminal && 'Raster' in table ? table.Raster : undefined
const Svg = !isTerminal && 'Svg' in table ? table.Svg : undefined
const now = await $.clock.now()
const tick = Math.floor(now / TICK_MS)
const theTheme = await read($, theme)
const picks = await read($, cast)
const look = { outline: await read($, outline) }
// An agent another agent spawned stands under it as a small familiar while its parent is on stage.
const onStage = new Set(list.map(agent => agent.id))
const leaders = list.filter(agent => !agent.parentId || !onStage.has(agent.parentId))
const shown = sizeFor(await read($, size), leaders.length, e.props.bodyColumns ?? 100)
const card = (agent: Agent, size: Exclude<Size, 'auto'>, isFamiliar: boolean) => {
const role = picks[agent.type] ?? agent.type
const isRunning = agent.status === 'running'
const tone = agent.status === 'failed' ? 'red' : agent.status === 'done' ? 'green' : colorOf(role, theTheme)
const heroName = (
<Text wrap="truncate">
{isFamiliar ? <Text dimColor>↳ </Text> : ''}
<Text bold color={colorOf(role, theTheme)}>{agent.type}</Text>
<Text dimColor> the {classOf(role, theTheme)} · Lv {agent.calls + 1}</Text>
</Text>
)
const warning =
isStuck(agent, now) ? `💦 Quiet for ${elapsed(now - agent.seenAt)}, stuck?`
: isRunning && agent.repeats >= LOOP_REPEATS ? `🔁 ${agent.activity} ×${agent.repeats}`
: undefined
const activity = (
<Text italic color={warning ? 'yellow' : isRunning ? undefined : tone} wrap="truncate">
{warning ?? agent.activity}
</Text>
)
const stats = (
<Text dimColor wrap="truncate">
{' '}⏱ {elapsed((agent.endedAt ?? now) - agent.startedAt)}
{agent.context ? ` · ↓ ${tokens(agent.context)} tokens` : ''}
{agent.errors ? <Text color="red"> {hearts(agent)}</Text> : ''}
</Text>
)
if (size === 'line') {
const mark = agent.status === 'done' ? '✓' : agent.status === 'failed' ? '✗' : '●'
return (
<Text wrap="truncate">
{isFamiliar ? <Text dimColor> ↳ </Text> : ''}
<Text color={tone}>{mark} </Text>
<Text bold color={colorOf(role, theTheme)}>{agent.type}</Text>
<Text> {agent.title} · </Text>
<Text italic color={warning ? 'yellow' : undefined}>{warning ?? agent.activity}</Text>
<Text dimColor> · {elapsed((agent.endedAt ?? now) - agent.startedAt)}</Text>
{agent.errors ? <Text color="red"> {hearts(agent)}</Text> : ''}
</Text>
)
}
const isSmall = size === 'small' // 4 rows: no room for the bubble's border
const mode: Mode =
agent.status === 'done' ? 'done'
: agent.status === 'failed' ? 'failed'
: now - (agent.hurtAt ?? 0) < HURT_MS ? 'hurt'
: 'work'
const age = Math.floor((now - agent.startedAt) / TICK_MS)
const sinceEnd = agent.endedAt ? Math.floor((now - agent.endedAt) / TICK_MS) : undefined
const grid = frame(role, mode, tick, age, sinceEnd, theTheme, { ...look, pixels: PIXELS[size] })
const sprite =
Raster ? <Raster key={`sprite-${agent.id}`} {...cellsOf(grid)} cells={spriteCells(grid)} />
: Svg ? <Svg source={spriteSvg(grid)} alt={`${agent.type} the ${classOf(role, theTheme)}`} width={grid.length * 4} height={grid.length * 4} />
: ''
return (
<Box flexDirection="row" gap={1}>
{sprite}
<Box flexDirection="column" width={BUBBLE + 4}>
{heroName}
{isSmall ? (
<Text bold wrap="truncate">{agent.title}</Text>
) : (
<Box flexDirection="column" borderStyle="round" borderColor={tone} paddingX={1}>
<Text bold wrap="truncate">{agent.title}</Text>
{activity}
</Box>
)}
{isSmall ? activity : ''}
{stats}
</Box>
</Box>
)
}
// A leader with its familiars beneath it, and theirs beneath them.
const party = (agent: Agent, depth: number): RenderNode => {
const familiars = depth < 3 ? list.filter(one => one.parentId === agent.id) : []
const size = depth === 0 ? shown : shown === 'line' ? 'line' : 'small'
if (!familiars.length) return card(agent, size, depth > 0)
return (
<Box flexDirection="column">
{card(agent, size, depth > 0)}
<Box flexDirection="column" paddingLeft={shown === 'line' ? 2 : 4}>
{familiars.map(one => party(one, depth + 1))}
</Box>
</Box>
)
}
const cards = leaders.map(agent => party(agent, 0))
return shown === 'line' ? (
<Box flexDirection="column">{cards}</Box>
) : (
<Box flexDirection="row" flexWrap="wrap" columnGap={3}>{cards}</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 ytruong11201 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
runs programstool callsremembers
What its code shows
Read from the source at commit a82091bed16f 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-party/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.6 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.spd-say |
| 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 agent-voice, adds command agent-theme, adds command agent-size, adds command agent-outline, adds command agent-cast, adds command agent-log |
| 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 (agent-theme, agent-size, agent-outline (+3)), tool.call · shapes: turn.step · also: session.start, agent.spawn, turn.complete, ui.render (AbovePrompt, Pane) · timers: 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.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.speech (the system synthesizer) |
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 ytruong11201/claude-code-mods/plugin install agent-party@nyt-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (a82091bed16f). 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/ytruong11201/claude-code-modsgit -C claude-code-mods checkout a82091bed16f3a8b64d41296b7baed9ec642ae65claude plugin validate claude-code-mods/plugins/agent-partyclaude --plugin-dir claude-code-mods/plugins/agent-partyThe 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 "ytruong11201-agent-party" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- explain-asSumit Paul★ 20
- spending-effort-with-jevYaxin Luo★ 6
- oxen-petNhonNguyen★ 2
- superpowers-trackernalyk★ 2
- agentzerojesselei1102-hue★ 1
- deskbar0NE-C0DEMAN★ 1
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/ytruong11201-agent-party/)