modscode / Gallery / agent-atc
agent-atc
Air-traffic control for subagents: a live pane listing every agent, what each one is doing now, and controls to message or stop one. Open it with /atc.
What it does
- Draws a pane, toasts
- Adds /atc
- Watches tool calls and can refuse them
- Hooks agent.spawn, session.end, session.start, turn.complete and 1 more
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like agent-atc by Matteo Hertel (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/tinyorbit-ai-agent-atc/
// 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: "Agents" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const STEP_MARK = '…'
const stepLine = '…'
const ago = '…'
const glyph = '…'
const i = '…'
const label = '…'
const word = '…'
const glyph2 = '…'
const word2 = '…'
const glyph3 = '…'
const word3 = '…'
const filter = '…'
const label2 = '…'
const clockTime = '…'
const STEP_MARK2 = '…'
const stepLine2 = '…'
const clockTime2 = '…'
const STEP_MARK3 = '…'
const stepLine3 = '…'
const clockTime3 = '…'
const STEP_MARK4 = '…'
const stepLine4 = '…'
const answer = '…'
return (
<Box flexDirection="column">
<Text bold wrap="truncate-end">
No subagents yet
</Text>
<Text dimColor wrap="truncate-end">
{"main: "}
{STEP_MARK}
{" "}
{stepLine}
{" · "}
{ago}
{" ago"}
</Text>
<Text dimColor>
────────
</Text>
<Text dimColor wrap="wrap">
Each subagent shows here the moment it starts, with what it is doing now.
</Text>
<Box flexDirection="row">
<Text>
{" "}
›
{glyph}
{" "}
</Text>
<Button plain hotkey={`${i}`} label={`${label}`} />
<Text dimColor wrap="truncate-end">
{" "}
{word}
{` ${stepLine}`}
</Text>
</Box>
<Box flexDirection="row">
<Text>
{" "}
›
{glyph2}
{" "}
</Text>
<Button plain hotkey={`${i}`} label={`${label}`} />
<Text dimColor wrap="truncate-end">
{" "}
{word2}
{` ${stepLine}`}
</Text>
</Box>
<Box flexDirection="row">
<Text>
{" "}
›
{glyph3}
{" "}
</Text>
<Button plain hotkey={`${i}`} label={`${label}`} />
<Text dimColor wrap="truncate-end">
{" "}
{word3}
{` ${stepLine}`}
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold wrap="truncate-end">
{label}
</Text>
<Text dimColor wrap="truncate-end">
{filter}
</Text>
<Text dimColor wrap="truncate-end">
{label2}
</Text>
<Box flexDirection="row">
<Text dimColor>
{clockTime}
{" "}
</Text>
<Text color="red">
{STEP_MARK2}
{" "}
</Text>
<Text wrap="truncate-end">
{stepLine2}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{clockTime2}
{" "}
</Text>
<Text color="red">
{STEP_MARK3}
{" "}
</Text>
<Text wrap="truncate-end">
{stepLine3}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{clockTime3}
{" "}
</Text>
<Text color="red">
{STEP_MARK4}
{" "}
</Text>
<Text wrap="truncate-end">
{stepLine4}
</Text>
</Box>
<Text dimColor>
No tool calls yet.
</Text>
<Text wrap="wrap">
{"Answer: "}
{answer}
</Text>
<Input placeholder="Message this agent…" submitLabel="Send" />
<Box flexDirection="row" gap={1}>
<Button label="Stop" />
<Button label="Back" hotkey="b" />
</Box>
</Box>
<Text dimColor wrap="truncate-end">
{"\n"}
1-9 picks an agent · Tab walks the controls · Esc gives the keyboard back
</Text>
</Box>
)
})
on('session.start', async ($, e, next) => {
const label = '…'
const deny = '…'
await $.ui.toast(`Sent to ${label}`)
await $.ui.toast(`Not stopped: ${deny}`)
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.
mods/agent-atc/hooks/register.tsx lines 379–527 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const ui = $.ui.resolve(e)
const { Box, Text, Button } = ui
const Input = 'Input' in ui ? ui.Input : undefined
const [all, picked, , top, at] = await Promise.all([
read($, agents),
read($, selected),
read($, now),
read($, main),
$.clock.now(),
])
const width = Math.max(30, e.props.bodyColumns)
const rows = treeOrder(Object.values(all))
const live = rows.filter(row => isBusy(row.agent.status)).length
const done = rows.filter(row => row.agent.status === 'completed').length
const other = rows.filter(row => !isLive(row.agent.status) && row.agent.status !== 'completed').length
const focusId = picked ?? e.props.view.agentId ?? null
const focus = focusId === null ? undefined : all[focusId]
const pick = (id: string) => () => {
void update($, selected, current => (current === id ? null : id))
}
const send = (agent: AtcAgent) => async (text: string) => {
const message = text.trim()
if (message === '') return
const sent = await $.session.send({ to: { agentId: agent.id }, text: message })
$.ui.toast(sent.isDelivered ? `Sent to ${agent.label}` : `Not sent: ${sent.reason}`)
}
const stop = (agent: AtcAgent) => async () => {
const ran = await $.tool.call({
tool: 'TaskStop',
task_id: agent.teammateId ?? agent.id,
consent: `The user pressed "Stop" on agent ${agent.label} in the agent control pane.`,
})
if (ran.deny !== undefined) $.ui.toast(`Not stopped: ${ran.deny}`)
else if (ran.isError === true) $.ui.toast(`Not stopped: ${ran.text}`)
else $.ui.toast(`Stopped ${agent.label}`)
}
return (
<Box flexDirection="column" width={width}>
<Text bold wrap="truncate-end">
{rows.length === 0
? 'No subagents yet'
: `${live} running · ${done} done${other > 0 ? ` · ${other} stopped or failed` : ''}`}
</Text>
{top.step !== undefined && (
<Text dimColor wrap="truncate-end">
main: {STEP_MARK[top.step.state]} {stepLine(top.step)} · {ago(at - top.lastAt)} ago
</Text>
)}
<Text dimColor>{'─'.repeat(width)}</Text>
{rows.length === 0 && (
<Text dimColor wrap="wrap">
Each subagent shows here the moment it starts, with what it is doing now.
</Text>
)}
{rows.map(({ agent, depth }, i) => {
const { glyph, color, word } = look(agent, at)
const last = agent.steps[agent.steps.length - 1]
return (
<Box key={`row-${agent.id}`} flexDirection="row">
<Text color={color}>
{' '.repeat(depth)}
{agent.id === focusId ? '›' : ' '}
{glyph}{' '}
</Text>
<Button
key={`pick-${agent.id}`}
plain
hotkey={i < 9 ? String(i + 1) : undefined}
label={agent.name ?? agent.label}
onPress={pick(agent.id)}
/>
<Text dimColor wrap="truncate-end">
{' '}
{word}
{isLive(agent.status) && last !== undefined ? ` ${stepLine(last)}` : ''}
</Text>
</Box>
)
})}
{focus !== undefined && (
<Box flexDirection="column" marginTop={1}>
<Text bold wrap="truncate-end">
{focus.name ?? focus.label}
</Text>
<Text dimColor wrap="truncate-end">
{[
focus.type,
shortModel(focus.model),
`started ${clockTime(focus.startedAt)}`,
`${focus.calls} calls`,
focus.errors > 0 ? `${focus.errors} errors` : undefined,
focus.tokens !== undefined ? kTokens(focus.tokens) : undefined,
]
.filter(part => part !== undefined)
.join(' · ')}
</Text>
{focus.name !== undefined && (
<Text dimColor wrap="truncate-end">
{focus.label}
</Text>
)}
{focus.steps.map(step => (
<Box key={`step-${step.id}`} flexDirection="row">
<Text dimColor>{clockTime(step.at)} </Text>
<Text color={step.state === 'err' || step.state === 'deny' ? 'red' : undefined}>
{STEP_MARK[step.state]}{' '}
</Text>
<Text wrap="truncate-end">{stepLine(step)}</Text>
</Box>
))}
{focus.steps.length === 0 && <Text dimColor>No tool calls yet.</Text>}
{focus.answer !== undefined && !isLive(focus.status) && (
<Text wrap="wrap">Answer: {focus.answer}</Text>
)}
{Input !== undefined && (
<Input
key={`msg-${focus.id}`}
placeholder={isLive(focus.status) ? 'Message this agent…' : 'Ask it a follow-up…'}
submitLabel="Send"
onSubmit={send(focus)}
/>
)}
<Box flexDirection="row" gap={1}>
{isLive(focus.status) && (
<Button key="stop" label="Stop" onPress={stop(focus)} />
)}
{picked !== null && (
<Button key="back" label="Back" hotkey="b" onPress={() => void update($, selected, () => null)} />
)}
</Box>
</Box>
)}
{rows.length > 0 && (
<Text dimColor wrap="truncate-end">
{'\n'}1-9 picks an agent · Tab walks the controls · Esc gives the keyboard back
</Text>
)}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Matteo Hertel / tinyorbit 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.
What its code calls
drives Claudetool calls
The design, read from code
Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit d03405eee4c2 on 2026-10-06. 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/agent-atc/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 files or environment variables and reaches the network.reaches no 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 |
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 the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
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 tinyorbit-ai/skills/plugin install agent-atc@tinyorbitThis installs the marketplace's latest commit, which may not be the one read here (d03405eee4c2). Compare them before you install.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "tinyorbit-ai-agent-atc" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
Ask Claude…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel
-
Ask Claude…────────Clear doneClaude⋯└─ buildCancelCancelCancel└─ buildCancelCancelCancel└─ buildCancelCancelCancel
-
Ask Claude…GitHub inboxGitHubloading…Refresh rbuildbuildbuildClose xStealth IssuesNo open issues in this view.#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopenPull requestsNo open pull requests.#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopenChecks for #3Plain
-
Ask Claude…GTM board1 Board2 Detail3 Health (3)4 Views5 Analytics[build][build][build]Call this week (3) Fix login — Hold Fix login — Hold Fix login — Hold +3 moreHold (3) Fix login — Hold Fix login — Hold Fix login — Hold +3 moreDrop (3) Fix login — Hold Fix login — Hold Fix login — Hold +3 moreNot scored (3) Fix login — Hold Fix login — Hold Fix login — Hold +3 more
-
Ask Claude…no-limitTurn offauto-resume onUsageNo readings yet: they arrive with the next reply.5-hourCancelWeekly42%2h 10m5-hourCancelWeekly42%2h 10m5-hourCancelWeekly42%2h 10mbuild hit. Napping until it resets.Retry 3 of 3: the last resume hit the limit again.█████░░░█████░░░resuming in 2h 10mResume prompt (default)The usage limit has reset. Carry on with the task you were working on when the limit stopped you. If it was already fin…Type a new resume prompt, Enter to save (empty: default) SaveHistoryNo resumes yet.✓ 2h 10m after the build, waited 2h 10m✓ 2h 10m after the build, waited 2h 10m✓ 2h 10m after the build, waited 2h 10mResume now rCancel cTurn off oTest (1 min) t