Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / agent-watch

agent-watch

Subagents at a glance: tokens per agent, a toast when one stalls, and a summary naming the heaviest agent when they finish

Code you can checkTerminal + desktopPaneStatus lineToastBoxButtonText
drives Claude, draws

What it does

  • Draws a pane, toasts
  • Watches tool calls
  • Hooks agent.spawn, session.start, turn.complete, turn.step and 1 more

Good points

  • No network calls
  • Starts no processes
  • Written in TypeScript
  • 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)

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

// Drawn like agent-watch by Lucas Fernandes (pane, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/ice-lfernandes-agent-watch/
// 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 } = $.ui.resolve(e)
    const hint = '…'
    const counts = '…'
    const warn = '…'
    const stalled = '…'
    const nameOf = '…'
    const tokens = '…'
    const lead = '…'
    const leadLine = '…'
    const sortStart = '…'
    const empty = '…'
    const emptyNext = '…'
    const prefix = '…'
    const glyphOf = '…'
    const meta = '…'
    const demoBadge = '…'
    const investigate = '…'
    const rail = '…'
    const tools = '…'
    const clock = '…'
    const state = '…'
    const recentTitle = '…'
    const noRecent = '…'
    const doing = '…'
    const failedMark = '…'
    const doing2 = '…'
    const doing3 = '…'
    const prefix2 = '…'
    const tokens2 = '…'
    const state2 = '…'
    const doing4 = '…'
    const doing5 = '…'
    const doing6 = '…'
    const prefix3 = '…'
    const tokens3 = '…'
    const state3 = '…'
    const doing7 = '…'
    const doing8 = '…'
    const doing9 = '…'
    const up = '…'
    const down = '…'
    const range = '…'
    const finished = '…'
    const clearDone = '…'
    const otherLoops = '…'
    const lastRun = '…'
    const runText = '…'
    const verb = '…'
    const clearDemo = '…'
    const close = '…'
    return (
      <Box flexDirection="column" paddingX={1} gap={1}>
        <Box flexDirection="column">
          <Text dimColor>
            {hint}
          </Text>
          <Text>
            <Text dimColor>
              {counts}
            </Text>
            <Text color="warning" bold>
              {`  ${warn} ${stalled}`}
            </Text>
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text>
            <Text>
              ░░░░░░░░
            </Text>
            <Text>
              ░░░░░░░░
            </Text>
            <Text>
              ░░░░░░░░
            </Text>
          </Text>
          <Box flexDirection="row" flexWrap="wrap" gap={2}>
            <Text>
              <Text>
                {"░ "}
              </Text>
              <Text dimColor>
                {`${nameOf} ${tokens}%`}
              </Text>
            </Text>
            <Text>
              <Text>
                {"░ "}
              </Text>
              <Text dimColor>
                {`${nameOf} ${tokens}%`}
              </Text>
            </Text>
            <Text>
              <Text>
                {"░ "}
              </Text>
              <Text dimColor>
                {`${nameOf} ${tokens}%`}
              </Text>
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box flexDirection="row" gap={2}>
            <Text>
              <Text bold>
                {`◆ ${lead}`}
              </Text>
              <Text dimColor>
                {`  ${leadLine}`}
              </Text>
            </Text>
            <Button plain dimColor label={`⇅ ${sortStart}`} />
          </Box>
          <Text dimColor>
            {`  ${empty} ${emptyNext}`}
          </Text>
          <Box flexDirection="column">
            <Box flexDirection="row">
              <Text dimColor>
                {prefix}
              </Text>
              <Text bold>
                {` ${glyphOf} `}
              </Text>
              <Button plain label={`${nameOf} ▾`} />
              <Text dimColor>
                {`  ${meta}`}
              </Text>
              <Text>
                {"  ■"}
              </Text>
              <Text color="warning">
                {`  ${demoBadge}`}
              </Text>
              <Text>
                {"  "}
              </Text>
              <Button plain color="warning" label={`${investigate}`} />
            </Box>
            <Text>
              <Text dimColor>
                {`${rail}   `}
              </Text>
              <Text bold>
                {tokens}
              </Text>
              <Text dimColor>
                {`  in ${tokens} out ${tokens}`}
              </Text>
              <Text dimColor>
                {`  ${tools}  ${clock}  `}
              </Text>
              <Text color="warning">
                {state}
              </Text>
            </Text>
            <Box flexDirection="column">
              <Text dimColor>
                {`${rail}   ${recentTitle}`}
              </Text>
              <Text dimColor>
                {`${rail}     ${noRecent}`}
              </Text>
              <Text>
                <Text dimColor>
                  {`${rail}     `}
                </Text>
                <Text color="error">
                  {"× "}
                </Text>
                <Text>
                  {doing}
                </Text>
                <Text color="error">
                  {`  ${failedMark}`}
                </Text>
              </Text>
              <Text>
                <Text dimColor>
                  {`${rail}     `}
                </Text>
                <Text color="error">
                  {"× "}
                </Text>
                <Text>
                  {doing2}
                </Text>
                <Text color="error">
                  {`  ${failedMark}`}
                </Text>
              </Text>
              <Text>
                <Text dimColor>
                  {`${rail}     `}
                </Text>
                <Text color="error">
                  {"× "}
                </Text>
                <Text>
                  {doing3}
                </Text>
                <Text color="error">
                  {`  ${failedMark}`}
                </Text>
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row">
              <Text dimColor>
                {prefix2}
              </Text>
              <Text bold>
                {` ${glyphOf} `}
              </Text>
              <Button plain label={`${nameOf} ▾`} />
              <Text dimColor>
                {`  ${meta}`}
              </Text>
              <Text>
                {"  ■"}
              </Text>
              <Text color="warning">
                {`  ${demoBadge}`}
              </Text>
              <Text>
                {"  "}
              </Text>
              <Button plain color="warning" label={`${investigate}`} />
            </Box>
            <Text>
              <Text dimColor>
                {`${rail}   `}
              </Text>
              <Text bold>
                {tokens2}
              </Text>
              <Text dimColor>
                {`  in ${tokens} out ${tokens}`}
              </Text>
              <Text dimColor>
                {`  ${tools}  ${clock}  `}
              </Text>
              <Text color="warning">
                {state2}
              </Text>
            </Text>
            <Box flexDirection="column">
              <Text dimColor>
                {`${rail}   ${recentTitle}`}
              </Text>
              <Text dimColor>
                {`${rail}     ${noRecent}`}
              </Text>
              <Text>
                <Text dimColor>
                  {`${rail}     `}
                </Text>
                <Text color="error">
                  {"× "}
                </Text>
                <Text>
                  {doing4}
                </Text>
                <Text color="error">
                  {`  ${failedMark}`}
                </Text>
              </Text>
              <Text>
                <Text dimColor>
                  {`${rail}     `}
                </Text>
                <Text color="error">
                  {"× "}
                </Text>
                <Text>
                  {doing5}
                </Text>
                <Text color="error">
                  {`  ${failedMark}`}
                </Text>
              </Text>
              <Text>
                <Text dimColor>
                  {`${rail}     `}
                </Text>
                <Text color="error">
                  {"× "}
                </Text>
                <Text>
                  {doing6}
                </Text>
                <Text color="error">
                  {`  ${failedMark}`}
                </Text>
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row">
              <Text dimColor>
                {prefix3}
              </Text>
              <Text bold>
                {` ${glyphOf} `}
              </Text>
              <Button plain label={`${nameOf} ▾`} />
              <Text dimColor>
                {`  ${meta}`}
              </Text>
              <Text>
                {"  ■"}
              </Text>
              <Text color="warning">
                {`  ${demoBadge}`}
              </Text>
              <Text>
                {"  "}
              </Text>
              <Button plain color="warning" label={`${investigate}`} />
            </Box>
            <Text>
              <Text dimColor>
                {`${rail}   `}
              </Text>
              <Text bold>
                {tokens3}
              </Text>
              <Text dimColor>
                {`  in ${tokens} out ${tokens}`}
              </Text>
              <Text dimColor>
                {`  ${tools}  ${clock}  `}
              </Text>
              <Text color="warning">
                {state3}
              </Text>
            </Text>
            <Box flexDirection="column">
              <Text dimColor>
                {`${rail}   ${recentTitle}`}
              </Text>
              <Text dimColor>
                {`${rail}     ${noRecent}`}
              </Text>
              <Text>
                <Text dimColor>
                  {`${rail}     `}
                </Text>
                <Text color="error">
                  {"× "}
                </Text>
                <Text>
                  {doing7}
                </Text>
                <Text color="error">
                  {`  ${failedMark}`}
                </Text>
              </Text>
              <Text>
                <Text dimColor>
                  {`${rail}     `}
                </Text>
                <Text color="error">
                  {"× "}
                </Text>
                <Text>
                  {doing8}
                </Text>
                <Text color="error">
                  {`  ${failedMark}`}
                </Text>
              </Text>
              <Text>
                <Text dimColor>
                  {`${rail}     `}
                </Text>
                <Text color="error">
                  {"× "}
                </Text>
                <Text>
                  {doing9}
                </Text>
                <Text color="error">
                  {`  ${failedMark}`}
                </Text>
              </Text>
            </Box>
          </Box>
          <Box flexDirection="row" gap={2}>
            <Button plain label={`${up}`} />
            <Button plain label={`${down}`} />
            <Text dimColor>
              {range}
            </Text>
          </Box>
          <Box flexDirection="row" gap={2}>
            <Text color="success">
              {"  ✓"}
            </Text>
            <Button plain label={`${finished}`} />
            <Button plain dimColor label={`${clearDone}`} />
          </Box>
          <Text dimColor>
            {`  ${otherLoops}`}
          </Text>
        </Box>
        <Text>
          <Text bold>
            {`${lastRun}  `}
          </Text>
          <Text dimColor>
            {runText}
          </Text>
        </Text>
        <Box flexDirection="row" flexWrap="wrap" gap={2}>
          <Box flexDirection="row" flexWrap="wrap">
            <Text dimColor>
              {`${lead} · `}
            </Text>
            <Text dimColor>
              {"/watch "}
            </Text>
            <Box flexDirection="row">
              <Text dimColor>
                {" · "}
              </Text>
              <Button plain dimColor label={`${verb}`} />
            </Box>
            <Box flexDirection="row">
              <Text dimColor>
                {" · "}
              </Text>
              <Button plain dimColor label={`${verb}`} />
            </Box>
            <Box flexDirection="row">
              <Text dimColor>
                {" · "}
              </Text>
              <Button plain dimColor label={`${verb}`} />
            </Box>
          </Box>
          <Button plain dimColor label={`${clearDemo}`} />
          <Button role="dismiss" label={`${close}`} />
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const failedToRun = '…'
    await $.ui.toast(`${failedToRun}`)
    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.

agent-watch/hooks/register.tsx lines 334–490 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const w = WORDS[lang]
    const n = await read($, tick)
    const isOpen = await read($, showDone)
    const opened = await read($, expanded)
    const order = await read($, sortBy)
    const now = await $.clock.now()
    const list = await read($, agents)
    const spentLead = await read($, lead)
    const other = Object.values(await read($, orphans)).reduce((t, x) => add(t, x), ZERO)
    const run = await read($, lastRun)
    const width = Math.max(40, (e.props.bodyColumns || e.viewport?.columns || 80) - 2)
    const isWide = width >= 90

    const running = list.filter(a => isActive(a.status))
    const done = list.length - running.length
    const stalled = running.filter(a => a.isStalled).length
    const hasDemo = list.some(a => a.id.startsWith(DEMO))
    const sum = list.reduce((s, a) => s + total(a.tokens), 0)
    const tone = (a: Agent) => (a.isStalled && isActive(a.status) ? 'warning' : isActive(a.status) ? 'claude' : isFailed(a.status) ? 'error' : 'success')
    const rows = tree(isOpen ? list : running, order)
    const parts = shares(list, Math.min(60, width - 4))
    const colorOf = (a: Agent | null) => {
      const i = parts.findIndex(p => p.agent === a)
      return a === null || i < 0 ? undefined : SHARE_COLORS[i % SHARE_COLORS.length]
    }
    // Two lines an agent, and the open ones' tool calls. The rest of the pane: hint, counts,
    // the share bar and its legend, the lead, the folded line, other loops, the last run, the
    // scroll row, the footer and the gaps.
    const extra = rows.filter(r => opened.includes(r.agent.id)).reduce((k, r) => k + 1 + Math.max(1, r.agent.recent?.length ?? 0), 0)
    const fixed = 16 + (parts.length ? 2 : 0)
    const listRows = Math.max(2, Math.floor(((e.props.scroll?.bodyRows ?? e.viewport?.rows ?? 40) - fixed - extra) / 2))
    const view = windowOf(rows.length, await read($, offset), listRows)
    lastStart = Math.max(0, rows.length - listRows)
    const scrollList = (by: number) => update($, offset, o => windowOf(rows.length, o + by, listRows).start)
    const toggle = (id: string) => update($, expanded, ids => (ids.includes(id) ? ids.filter(x => x !== id) : [...ids, id]))
    const investigate = (a: Agent) =>
      fill($, w.askInvestigate(nameOf(a), a.activity === 'thinking' ? w.thinking : (a.doing ?? w.inATool), elapsed(quietFor(a, now))))

    return (
      <Box flexDirection="column" paddingX={1} gap={1}>
        <Box flexDirection="column">
          <Text dimColor>{w.hint}</Text>
          <Text>
            <Text dimColor>{w.counts(running.length, done, tokens(sum))}</Text>
            {stalled > 0 && <Text color="warning" bold>{`  ${warn()} ${w.stalled(stalled)}`}</Text>}
          </Text>
        </Box>

        {parts.length > 0 && (
          <Box flexDirection="column">
            <Text>
              {parts.map(p => (
                <Text key={`share:${p.agent?.id ?? 'rest'}`} color={colorOf(p.agent)} dimColor={p.agent === null}>
                  {(p.agent === null ? '░' : '█').repeat(p.cells)}
                </Text>
              ))}
            </Text>
            <Box flexDirection="row" flexWrap="wrap" gap={2}>
              {parts.map(p => (
                <Text key={`legend:${p.agent?.id ?? 'rest'}`}>
                  <Text color={colorOf(p.agent)} dimColor={p.agent === null}>{p.agent === null ? '░ ' : '█ '}</Text>
                  <Text dimColor>{`${clip(p.agent ? nameOf(p.agent) : w.others, 20)} ${Math.round((p.tokens / sum) * 100)}%`}</Text>
                </Text>
              ))}
            </Box>
          </Box>
        )}

        <Box flexDirection="column">
          <Box flexDirection="row" gap={2}>
            <Text>
              <Text bold>{`◆ ${w.lead}`}</Text>
              <Text dimColor>{`  ${w.leadLine(tokens(total(spentLead)), tokens(spentLead.output))}`}</Text>
            </Text>
            {rows.length > 1 && (
              <Button key="sort" plain dimColor label={`⇅ ${order === 'start' ? w.sortStart : w.sortTokens}`} onPress={() => update($, sortBy, x => (x === 'start' ? 'tokens' : 'start'))} />
            )}
          </Box>
          {list.length === 0 && <Text dimColor>{`  ${w.empty} ${w.emptyNext}`}</Text>}
          {rows.slice(view.start, view.end).map(({ agent: a, prefix, rail }) => {
            const isStuck = a.isStalled && isActive(a.status)
            const state = isStuck ? stallText(a, now, lang) : isActive(a.status) ? (a.activity === 'thinking' ? w.thinking : (a.doing ?? w.starting)) : (w.statuses[a.status] ?? a.status)
            const clock = isActive(a.status) ? elapsed(now - a.startedAt) : elapsed((a.endedAt ?? now) - a.startedAt)
            const meta = `${a.type === 'general-purpose' ? 'general' : a.type}${a.model ? ` · ${shortModel(a.model)}` : ''}`
            const isExpanded = opened.includes(a.id)
            return (
              <Box key={a.id} flexDirection="column">
                <Box flexDirection="row">
                  <Text dimColor>{prefix}</Text>
                  <Text color={tone(a)} bold>{` ${glyphOf(a, n)} `}</Text>
                  <Button key={`open:${a.id}`} plain label={`${nameOf(a).slice(0, 28)} ${isExpanded ? '▾' : '▸'}`} onPress={() => toggle(a.id)} />
                  <Text dimColor>{`  ${meta}`}</Text>
                  {colorOf(a) && <Text color={colorOf(a)}>{'  ■'}</Text>}
                  {a.id.startsWith(DEMO) && <Text color="warning">{`  ${w.demoBadge}`}</Text>}
                  {isStuck && <Text>{'  '}</Text>}
                  {isStuck && <Button key={`investigate:${a.id}`} plain color="warning" label={w.investigate} onPress={() => investigate(a)} />}
                </Box>
                <Text>
                  <Text dimColor>{`${rail}   `}</Text>
                  <Text bold>{tokens(total(a.tokens)).padStart(5)}</Text>
                  <Text dimColor>{isWide ? `  in ${tokens(a.tokens.input + a.tokens.cacheRead + a.tokens.cacheWrite)} out ${tokens(a.tokens.output)}` : ''}</Text>
                  <Text dimColor>{`  ${w.tools(a.tools, a.errors)}  ${clock}  `}</Text>
                  <Text color={isStuck ? 'warning' : undefined} dimColor={!isStuck}>
                    {state.slice(0, Math.max(10, width - 50))}
                  </Text>
                </Text>
                {isExpanded && (
                  <Box flexDirection="column">
                    <Text dimColor>{`${rail}   ${w.recentTitle}`}</Text>
                    {(a.recent ?? []).length === 0 && <Text dimColor>{`${rail}     ${w.noRecent}`}</Text>}
                    {(a.recent ?? []).map((r, i) => (
                      <Text key={`recent:${a.id}:${i}`}>
                        <Text dimColor>{`${rail}     `}</Text>
                        <Text color={r.ok === false ? 'error' : r.ok === null ? 'claude' : 'success'}>{r.ok === false ? '× ' : r.ok === null ? '… ' : '✓ '}</Text>
                        <Text dimColor={r.ok !== false}>{clip(r.doing, Math.max(10, width - rail.length - 12))}</Text>
                        {r.ok === false && <Text color="error">{`  ${w.failedMark}`}</Text>}
                      </Text>
                    ))}
                  </Box>
                )}
              </Box>
            )
          })}
          {rows.length > listRows && (
            <Box flexDirection="row" gap={2}>
              <Button key="list:up" plain dimColor={view.start === 0} label={w.up} onPress={() => scrollList(-listRows + 1)} />
              <Button key="list:down" plain dimColor={view.end === rows.length} label={w.down} onPress={() => scrollList(listRows - 1)} />
              <Text dimColor>{w.range(view.start + 1, view.end, rows.length)}</Text>
            </Box>
          )}
          {done > 0 && (
            <Box flexDirection="row" gap={2}>
              <Text color="success">{'  ✓'}</Text>
              <Button key="done" plain label={w.finished(done, isOpen)} onPress={() => update($, showDone, x => !x)} />
              <Button key="clear-done" plain dimColor label={w.clearDone} onPress={() => clear($, 'done')} />
            </Box>
          )}
          {total(other) > 0 && <Text dimColor>{`  ${w.otherLoops(tokens(total(other)))}`}</Text>}
        </Box>

        {run && (
          <Text>
            <Text bold>{`${w.lastRun}  `}</Text>
            <Text dimColor>{runText(run, lang)}</Text>
          </Text>
        )}

        <Box flexDirection="row" flexWrap="wrap" gap={2}>
          {verbRow({ Box, Text, Button }, COMMAND, VERBS, v => pressVerb($, v))}
          {hasDemo && <Button key="clear-demo" plain dimColor label={w.clearDemo} onPress={() => clear($, 'demo')} />}
          <Button key="close" role="dismiss" label={w.close} onPress={() => $.ui.close({ id: PANE })} />
        </Box>
      </Box>
    )
  })
agent-watch/hooks/ui.tsx lines 66–86 · Pane
export function verbRow(
  ui: Pick<Elements[keyof Elements], 'Box' | 'Text' | 'Button'>,
  command: string,
  verbs: readonly Verb[],
  onPress: (v: Verb) => void,
  lead = '',
) {
  const { Box, Text, Button } = ui
  return (
    <Box flexDirection="row" flexWrap="wrap">
      {lead !== '' && <Text dimColor>{`${lead} · `}</Text>}
      <Text dimColor>{`/${command} `}</Text>
      {verbs.map((v, i) => (
        <Box key={`verbrow:${v.verb}`} flexDirection="row">
          {i > 0 && <Text dimColor> · </Text>}
          <Button key={`verb:${v.verb}`} plain dimColor label={v.label ?? v.verb} onPress={() => onPress(v)} />
        </Box>
      ))}
    </Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Lucas Fernandes

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

env varsdrives Claudetool calls

What its code shows

Read from the source at commit b03955fc8e5f 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 readEvery module hooks/hooks.json names was read.agent-watch/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.5 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.no network
ProgramsWhether 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 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 environment variables, but reaches nothing outside
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.adds command ?
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: tool.call, command.run · shapes: turn.step · also: session.start, agent.spawn, turn.complete, ui.scroll (Pane) (+1) · timers: clock.every
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: LANG, TERMINAL_EMULATOR
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 prompt box

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 ice-lfernandes/claude-code-mods
/plugin install agent-watch@lfernandes-mods
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (b03955fc8e5f). 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/ice-lfernandes/claude-code-mods
git -C claude-code-mods checkout b03955fc8e5f59734e36f58e84c2ab9959e40ce6
claude plugin validate claude-code-mods/agent-watch
claude --plugin-dir claude-code-mods/agent-watch

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 "ice-lfernandes-agent-watch" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

More from this repository

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/ice-lfernandes-agent-watch.svg)](https://modscode.com/claude-mods/mods/ice-lfernandes-agent-watch/)