Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / a2a-mod

a2a-mod

A2A protocol client for Claude Code: Claude hands tasks to non-Claude worker agents over Agent2Agent and picks up their results.

Code you can checkTerminal + desktopPaneBandStatus lineToastBoxButtonClientInputMarkdownText
network, draws

What it does

  • Draws a band above the prompt, a pane, toasts
  • Adds /a2a
  • Watches mcp__a2a-mod__workers, mcp__a2a-mod__add_worker, mcp__a2a-mod__remove_worker, mcp__a2a-mod__send calls and can refuse them
  • Hooks prompt.submit, session.start, ui.message
  • Keeps its own state between turns

Good points

  • Written in TypeScript
  • Handles errors
  • 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)

register.tsx
import type { Register } from 'claude-code'

// Drawn like a2a-mod by Aliasgar Khimani (pane, band, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/novusedge-a2a-mod/
// 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 text = '…'
    const text2 = '…'
    const text3 = '…'
    const text4 = '…'
    const text5 = '…'
    const text6 = '…'
    const text7 = '…'
    const text8 = '…'
    const text9 = '…'
    const worker = '…'
    const what = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column">
          <Box>
            <Text>
              {text}
            </Text>
            <Text>
              {text2}
            </Text>
            <Text>
              {text3}
            </Text>
          </Box>
          <Box>
            <Text>
              {text4}
            </Text>
            <Text>
              {text5}
            </Text>
            <Text>
              {text6}
            </Text>
          </Box>
          <Box>
            <Text>
              {text7}
            </Text>
            <Text>
              {text8}
            </Text>
            <Text>
              {text9}
            </Text>
          </Box>
        </Box>
        <Box flexWrap="wrap" columnGap={3}>
          <Box>
            <Text>
              ●
            </Text>
            <Text>
              {` ${worker} · ${what}`}
            </Text>
          </Box>
          <Box>
            <Text>
              ●
            </Text>
            <Text>
              {` ${worker} · ${what}`}
            </Text>
          </Box>
          <Box>
            <Text>
              ●
            </Text>
            <Text>
              {` ${worker} · ${what}`}
            </Text>
          </Box>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "a2a-mod" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button, Markdown } = $.ui.resolve(e)
    const name = '…'
    const text = '…'
    const text2 = '…'
    const text3 = '…'
    const text4 = '…'
    const text5 = '…'
    const text6 = '…'
    const text7 = '…'
    const text8 = '…'
    const text9 = '…'
    const label = '…'
    const pad = '…'
    const tail = '…'
    const text10 = '…'
    const text11 = '…'
    const text12 = '…'
    const text13 = '…'
    const text14 = '…'
    const text15 = '…'
    const text16 = '…'
    const text17 = '…'
    const text18 = '…'
    const body = '…'
    const full = '…'
    const text19 = '…'
    const text20 = '…'
    const text21 = '…'
    const text22 = '…'
    const text23 = '…'
    const text24 = '…'
    const text25 = '…'
    const text26 = '…'
    const text27 = '…'
    const text28 = '…'
    const text29 = '…'
    const text30 = '…'
    const text31 = '…'
    const text32 = '…'
    const text33 = '…'
    const text34 = '…'
    const text35 = '…'
    const text36 = '…'
    const text37 = '…'
    const text38 = '…'
    const text39 = '…'
    const text40 = '…'
    const text41 = '…'
    const text42 = '…'
    const text43 = '…'
    const text44 = '…'
    const text45 = '…'
    const text46 = '…'
    const text47 = '…'
    const text48 = '…'
    const text49 = '…'
    const text50 = '…'
    const text51 = '…'
    const text52 = '…'
    const text53 = '…'
    const text54 = '…'
    const text55 = '…'
    const text56 = '…'
    const text57 = '…'
    const text58 = '…'
    const text59 = '…'
    const text60 = '…'
    const text61 = '…'
    const text62 = '…'
    const text63 = '…'
    const text64 = '…'
    const text65 = '…'
    const text66 = '…'
    const text67 = '…'
    const text68 = '…'
    const text69 = '…'
    const text70 = '…'
    const text71 = '…'
    const text72 = '…'
    const text73 = '…'
    const text74 = '…'
    const text75 = '…'
    const text76 = '…'
    const text77 = '…'
    const text78 = '…'
    const text79 = '…'
    const text80 = '…'
    const text81 = '…'
    const text82 = '…'
    const text83 = '…'
    const text84 = '…'
    const text85 = '…'
    const text86 = '…'
    const text87 = '…'
    const text88 = '…'
    const text89 = '…'
    const text90 = '…'
    return (
      <Box flexDirection="column">
        <Text color="inactive">
          ────────
        </Text>
        <Box>
          <Text>
            {"        "}
          </Text>
          <Button plain dimColor label="Clear done" />
        </Box>
        <Box flexDirection="column">
          <Text bold>
            Claude
          </Text>
          <Box>
            <Text color="inactive">
              {"└─ "}
            </Text>
            <Button plain label={`${name}`} />
            <Text>
              {text}
            </Text>
            <Text>
              {text2}
            </Text>
            <Text>
              {text3}
            </Text>
          </Box>
          <Box>
            <Text color="inactive">
              {"└─ "}
            </Text>
            <Button plain label={`${name}`} />
            <Text>
              {text4}
            </Text>
            <Text>
              {text5}
            </Text>
            <Text>
              {text6}
            </Text>
          </Box>
          <Box>
            <Text color="inactive">
              {"└─ "}
            </Text>
            <Button plain label={`${name}`} />
            <Text>
              {text7}
            </Text>
            <Text>
              {text8}
            </Text>
            <Text>
              {text9}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column" rowGap={1} marginTop={1}>
          <Box flexDirection="column" borderStyle="round" borderColor="inactive" paddingX={1}>
            <Box flexDirection="column">
              <Box flexDirection="column">
                <Box>
                  <Text>
                    {"● "}
                  </Text>
                  <Button plain label={`${label}`} />
                  <Text>
                    {`${pad}${tail}`}
                  </Text>
                </Box>
                <Box flexDirection="column">
                  <Box>
                    <Text>
                      {text10}
                    </Text>
                    <Text>
                      {text11}
                    </Text>
                    <Text>
                      {text12}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text13}
                    </Text>
                    <Text>
                      {text14}
                    </Text>
                    <Text>
                      {text15}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text16}
                    </Text>
                    <Text>
                      {text17}
                    </Text>
                    <Text>
                      {text18}
                    </Text>
                  </Box>
                </Box>
                <Box flexDirection="column" marginLeft={2}>
                  <Text color="inactive">
                    answered by you
                  </Text>
                  <Markdown text={`${body}`} />
                  <Box>
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                  </Box>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Box>
                  <Text>
                    {"● "}
                  </Text>
                  <Button plain label={`${label}`} />
                  <Text>
                    {`${pad}${tail}`}
                  </Text>
                </Box>
                <Box flexDirection="column">
                  <Box>
                    <Text>
                      {text19}
                    </Text>
                    <Text>
                      {text20}
                    </Text>
                    <Text>
                      {text21}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text22}
                    </Text>
                    <Text>
                      {text23}
                    </Text>
                    <Text>
                      {text24}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text25}
                    </Text>
                    <Text>
                      {text26}
                    </Text>
                    <Text>
                      {text27}
                    </Text>
                  </Box>
                </Box>
                <Box flexDirection="column" marginLeft={2}>
                  <Text color="inactive">
                    answered by you
                  </Text>
                  <Markdown text={`${body}`} />
                  <Box>
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                  </Box>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Box>
                  <Text>
                    {"● "}
                  </Text>
                  <Button plain label={`${label}`} />
                  <Text>
                    {`${pad}${tail}`}
                  </Text>
                </Box>
                <Box flexDirection="column">
                  <Box>
                    <Text>
                      {text28}
                    </Text>
                    <Text>
                      {text29}
                    </Text>
                    <Text>
                      {text30}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text31}
                    </Text>
                    <Text>
                      {text32}
                    </Text>
                    <Text>
                      {text33}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text34}
                    </Text>
                    <Text>
                      {text35}
                    </Text>
                    <Text>
                      {text36}
                    </Text>
                  </Box>
                </Box>
                <Box flexDirection="column" marginLeft={2}>
                  <Text color="inactive">
                    answered by you
                  </Text>
                  <Markdown text={`${body}`} />
                  <Box>
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                  </Box>
                </Box>
              </Box>
              <Box marginLeft={2}>
                <Button plain dimColor label="show less" />
              </Box>
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" borderColor="inactive" paddingX={1}>
            <Box flexDirection="column">
              <Box flexDirection="column">
                <Box>
                  <Text>
                    {"● "}
                  </Text>
                  <Button plain label={`${label}`} />
                  <Text>
                    {`${pad}${tail}`}
                  </Text>
                </Box>
                <Box flexDirection="column">
                  <Box>
                    <Text>
                      {text37}
                    </Text>
                    <Text>
                      {text38}
                    </Text>
                    <Text>
                      {text39}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text40}
                    </Text>
                    <Text>
                      {text41}
                    </Text>
                    <Text>
                      {text42}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text43}
                    </Text>
                    <Text>
                      {text44}
                    </Text>
                    <Text>
                      {text45}
                    </Text>
                  </Box>
                </Box>
                <Box flexDirection="column" marginLeft={2}>
                  <Text color="inactive">
                    answered by you
                  </Text>
                  <Markdown text={`${body}`} />
                  <Box>
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                  </Box>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Box>
                  <Text>
                    {"● "}
                  </Text>
                  <Button plain label={`${label}`} />
                  <Text>
                    {`${pad}${tail}`}
                  </Text>
                </Box>
                <Box flexDirection="column">
                  <Box>
                    <Text>
                      {text46}
                    </Text>
                    <Text>
                      {text47}
                    </Text>
                    <Text>
                      {text48}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text49}
                    </Text>
                    <Text>
                      {text50}
                    </Text>
                    <Text>
                      {text51}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text52}
                    </Text>
                    <Text>
                      {text53}
                    </Text>
                    <Text>
                      {text54}
                    </Text>
                  </Box>
                </Box>
                <Box flexDirection="column" marginLeft={2}>
                  <Text color="inactive">
                    answered by you
                  </Text>
                  <Markdown text={`${body}`} />
                  <Box>
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                  </Box>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Box>
                  <Text>
                    {"● "}
                  </Text>
                  <Button plain label={`${label}`} />
                  <Text>
                    {`${pad}${tail}`}
                  </Text>
                </Box>
                <Box flexDirection="column">
                  <Box>
                    <Text>
                      {text55}
                    </Text>
                    <Text>
                      {text56}
                    </Text>
                    <Text>
                      {text57}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text58}
                    </Text>
                    <Text>
                      {text59}
                    </Text>
                    <Text>
                      {text60}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text61}
                    </Text>
                    <Text>
                      {text62}
                    </Text>
                    <Text>
                      {text63}
                    </Text>
                  </Box>
                </Box>
                <Box flexDirection="column" marginLeft={2}>
                  <Text color="inactive">
                    answered by you
                  </Text>
                  <Markdown text={`${body}`} />
                  <Box>
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                  </Box>
                </Box>
              </Box>
              <Box marginLeft={2}>
                <Button plain dimColor label="show less" />
              </Box>
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" borderColor="inactive" paddingX={1}>
            <Box flexDirection="column">
              <Box flexDirection="column">
                <Box>
                  <Text>
                    {"● "}
                  </Text>
                  <Button plain label={`${label}`} />
                  <Text>
                    {`${pad}${tail}`}
                  </Text>
                </Box>
                <Box flexDirection="column">
                  <Box>
                    <Text>
                      {text64}
                    </Text>
                    <Text>
                      {text65}
                    </Text>
                    <Text>
                      {text66}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text67}
                    </Text>
                    <Text>
                      {text68}
                    </Text>
                    <Text>
                      {text69}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text70}
                    </Text>
                    <Text>
                      {text71}
                    </Text>
                    <Text>
                      {text72}
                    </Text>
                  </Box>
                </Box>
                <Box flexDirection="column" marginLeft={2}>
                  <Text color="inactive">
                    answered by you
                  </Text>
                  <Markdown text={`${body}`} />
                  <Box>
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                  </Box>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Box>
                  <Text>
                    {"● "}
                  </Text>
                  <Button plain label={`${label}`} />
                  <Text>
                    {`${pad}${tail}`}
                  </Text>
                </Box>
                <Box flexDirection="column">
                  <Box>
                    <Text>
                      {text73}
                    </Text>
                    <Text>
                      {text74}
                    </Text>
                    <Text>
                      {text75}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text76}
                    </Text>
                    <Text>
                      {text77}
                    </Text>
                    <Text>
                      {text78}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text79}
                    </Text>
                    <Text>
                      {text80}
                    </Text>
                    <Text>
                      {text81}
                    </Text>
                  </Box>
                </Box>
                <Box flexDirection="column" marginLeft={2}>
                  <Text color="inactive">
                    answered by you
                  </Text>
                  <Markdown text={`${body}`} />
                  <Box>
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                  </Box>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Box>
                  <Text>
                    {"● "}
                  </Text>
                  <Button plain label={`${label}`} />
                  <Text>
                    {`${pad}${tail}`}
                  </Text>
                </Box>
                <Box flexDirection="column">
                  <Box>
                    <Text>
                      {text82}
                    </Text>
                    <Text>
                      {text83}
                    </Text>
                    <Text>
                      {text84}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text85}
                    </Text>
                    <Text>
                      {text86}
                    </Text>
                    <Text>
                      {text87}
                    </Text>
                  </Box>
                  <Box>
                    <Text>
                      {text88}
                    </Text>
                    <Text>
                      {text89}
                    </Text>
                    <Text>
                      {text90}
                    </Text>
                  </Box>
                </Box>
                <Box flexDirection="column" marginLeft={2}>
                  <Text color="inactive">
                    answered by you
                  </Text>
                  <Markdown text={`${body}`} />
                  <Box>
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                    <Text>
                      {" "}
                    </Text>
                    <Button label={`${full}`} />
                  </Box>
                </Box>
              </Box>
              <Box marginLeft={2}>
                <Button plain dimColor label="show less" />
              </Box>
            </Box>
          </Box>
        </Box>
        <Box flexGrow={1} />
        <Text color="inactive">
          ────────
        </Text>
        <Text color="inactive">
          {"/a2a add <url>"}
        </Text>
        <Text color="inactive">
          tab move · enter press · esc back
        </Text>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const worker = '…'
    const message = '…'
    await $.ui.toast(`a2a: ${worker} was removed.`)
    await $.ui.toast(`a2a: ${message}`)
    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.ts lines 295–306 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    if (ui.layout !== 'full' || e.props.hasSurvey) return next(e)
    const now = await nowOf($)
    const rows = bandRows(await readRecent(hostOf($, settingTokens, ui)), now)
    if (!rows.length) return next(e)
    // The return packet rests with no state change to redraw the band, so a timer does it.
    bandExpiry?.cancel()
    const due = nextRedraw(rows, now, true)
    bandExpiry = due === undefined ? undefined : $.clock.after(due, () => $.ui.invalidate('ui.render'))
    const [pal, theirs] = await Promise.all([paletteOf($), next(e)])
    return bandTree($.ui.resolve(e), { surface: e.surface, width: e.props.bodyColumns, now, anim: ui.animations, pal, rows }, theirs)
  })
hooks/ui/band.tsx lines 53–63 · Band
export function bandTree(el: BandEls, d: BandData, theirs: RenderElement | undefined): RenderElement {
  const { Box, Client } = el
  const wire = wireProps(d)
  return (
    <Box flexDirection="column">
      {Client && hasClient(d.surface) ? <Client key="wire" module="./wire.tsx" props={wire} /> : lines(el, [wireCells(wire, 0, 0)])}
      <Box flexWrap="wrap" columnGap={3}>{d.rows.filter(isOpen).map(t => chip(el, t))}</Box>
      {theirs ?? null}
    </Box>
  )
}
hooks/ui/draw.tsx lines 17–20 · Band
export function lines(el: Els, rows: readonly (readonly Cell[])[]): RenderElement {
  const { Box } = el
  return <Box flexDirection="column">{rows.map(r => <Box>{cellsOf(el, r)}</Box>)}</Box>
}
hooks/ui/draw.tsx lines 12–15 · Band
export function cellsOf(el: Els, cells: readonly Cell[]): RenderElement[] {
  const { Text } = el
  return runs(cells).map(c => <Text {...(c.color ? { color: c.color } : {})} {...(c.bold ? { bold: true } : {})}>{c.text}</Text>)
}
hooks/ui/band.tsx lines 45–50 · Band
function chip(el: BandEls, t: RecentTask): RenderElement {
  const { Box, Text } = el
  const look = STATES[t.state]
  const what = isWaiting(t.state) ? 'waiting on Claude' : fit(t.text, 24)
  return <Box><Text color={look.color}>{isRunning(t.state) ? '●' : look.glyph}</Text><Text>{` ${t.worker} · ${what}`}</Text></Box>
}
hooks/register.ts lines 314–358 · Pane
  on('ui.render', { component: 'Pane', requestId: 'a2a-workers' }, async ($, e) => {
    const host = hostOf($, settingTokens, ui)
    const now = await nowOf($)
    const [workers, list, stored, durations, pal] = await Promise.all([loadWorkers(host), readRecent(host), read($, paneView), host.readDurations(), paletteOf($)])
    // State saved by an earlier version lacks the newer fields.
    const view: PaneView = { ...EMPTY_VIEW, ...stored }
    const act: PaneActions = {
      cancel: t => cancelFromPane($, host, t),
      // One row open at a time keeps the pane under the engine's 100,000-character tree limit.
      toggleOpen: t => update($, paneView, v => ({ ...v, open: v.open.includes(t.taskId) ? [] : [t.taskId] })),
      toggleBox: alias => update($, paneView, v => ({ ...v, collapsed: toggled(v.collapsed, alias) })),
      toggleAll: alias => update($, paneView, v => ({ ...v, all: toggled(v.all, alias) })),
      // Hides what ended by now from the pane only; the recent list keeps it for the cards.
      clearDone: async () => { const at = await nowOf($); await update($, paneView, v => ({ ...v, clearedAt: at })) },
      copy: async (t, press) => {
        const copied = await $.ui.copy({ text: t.result ?? '', surface: press.surface })
        if (!copied.isCopied) $.ui.toast(`a2a: nothing was copied: ${NOT_COPIED[copied.reason]}.`)
      },
      startReply: async t => {
        await update($, paneView, v => ({ ...v, replying: [...without(v.replying, t.taskId), t.taskId] }))
        // autoFocus applies only when the pane takes the keyboard, and a press does not hand it over.
        // The field shows either way: claude plugin test 2.1.288 rejects every $.ui.focus.
        try { await $.ui.focus({ requestId: PANE.id, key: `input:${t.taskId}` }) } catch {}
      },
      draft: (t, text) => { drafts.set(t.taskId, text) },
      send: async (t, text) => {
        if (!text.trim() || !(await replyFromPane($, host, t, text))) return
        drafts.delete(t.taskId)
        await update($, paneView, v => ({ ...v, replying: without(v.replying, t.taskId) }))
        await update($, replies, r => [...r, { worker: t.worker, taskId: t.taskId, text }])
      },
      discard: async t => {
        drafts.delete(t.taskId)
        await update($, paneView, v => ({ ...v, replying: without(v.replying, t.taskId) }))
      },
    }
    const shown = Object.values(workers).sort((a, b) => a.addedAt - b.addedAt)
    const aging = visible(list, now)
    // A row ages out with no state change to redraw the pane, so a timer does it.
    paneExpiry?.cancel()
    const due = nextRedraw(aging, now, false)
    paneExpiry = due === undefined ? undefined : $.clock.after(due, () => $.ui.invalidate('ui.render'))
    const rows = aging.filter(t => isOpen(t) || (t.endedAt ?? t.startedAt) > view.clearedAt)
    return paneTree($.ui.resolve(e), { surface: e.surface, width: e.props.bodyColumns, height: e.props.scroll.bodyRows, now, anim: ui.animations, pal, workers: shown, rows, durations, view, drafts }, act)
  })
Licence text (MIT)
MIT License

Copyright (c) 2026 Aliasgar Khimani

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 programsreads filesdrives Claudetool callsremembers

What its code shows

Read from the source at commit 510e3a68c457. 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 readEvery module hooks/hooks.json names was read.hooks/register.ts
ParsesEvery file parses as TypeScript or JavaScript.23 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo 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 openNetwork 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 drawsThe 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 lineWhether 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 WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks
NetworkWhether every fetch names its https host in the code.hooks/register.ts:56 fetch(url)
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.hooks/register.ts:60 a program named at run time
Reads and sendsWhether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads files and reaches the network
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn 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 hooksHooks 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 shipsMCP 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, agentsWhat 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 MCPWhether 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 modelCompletions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.prompt.submit (as the person), adds tool ?, adds command a2a
Events it hooksBy 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 (a2a), prompt.submit, tool.call (mcp__a2a-mod__workers, mcp__a2a-mod__add_worker, mcp__a2a-mod__remove_wo… (+2)) · reads: ui.message · also: session.start, ui.render (ToolUse, ToolResult, AbovePrompt (+1)) · timers: clock.every, clock.after
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.files: a path computed at run time
Writes, by nameThe 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.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 NovusEdge/a2a-mod
/plugin install a2a-mod@a2a-mod
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (510e3a68c457). 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/NovusEdge/a2a-mod
git -C a2a-mod checkout 510e3a68c457c1bdaa16d219ae2d9c066127e3fb
claude plugin validate a2a-mod
claude --plugin-dir a2a-mod

The 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 "novusedge-a2a-mod" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/novusedge-a2a-mod.svg)](https://modscode.com/claude-mods/mods/novusedge-a2a-mod/)