modscode JA

modscode / Gallery / specialists

specialists

Specialists execution runtime in Claude Code: specialist activation and dispatch over MCP, session continuity hooks, and the supervising-activations skill. Consumes the Substrate work authority; it is not Substrate.

Code you can checkTerminal + desktopPaneBandToastBoxButtonInputText

What it does

  • Draws a pane
  • Hooks session.start, ui.close

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)

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

// Drawn like specialists by XTRM (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/xtrm-dev-specialists/
// 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: "Specialists" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button, Input } = $.ui.resolve(e)
    const headerOf = '…'
    const error = '…'
    const markerOf = '…'
    const specialist = '…'
    const shortId = '…'
    const bead_id = '…'
    const purpose = '…'
    const resolved_model = '…'
    const thinking_level = '…'
    const metricsOf = '…'
    const activation_id = '…'
    const line = '…'
    const line2 = '…'
    const line3 = '…'
    const length = '…'
    const kind = '…'
    const flash = '…'
    return (
      <Box flexDirection="column">
        <Text bold>
          {headerOf}
        </Text>
        <Text color="yellow" wrap="truncate-end">
          {"status unavailable · "}
          {error}
        </Text>
        <Text dimColor>
          No live activations.
        </Text>
        <Box flexDirection="column">
          <Box flexDirection="column">
            <Button plain>
              {`▾ ${markerOf} ${specialist}:${shortId}  ${bead_id}  ${purpose}`}
            </Button>
            <Text dimColor wrap="truncate-end">
              {`      ${resolved_model} · ${thinking_level}  • ${metricsOf}`}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Button plain>
              {`▾ ${markerOf} ${specialist}:${shortId}  ${bead_id}  ${purpose}`}
            </Button>
            <Text dimColor wrap="truncate-end">
              {`      ${resolved_model} · ${thinking_level}  • ${metricsOf}`}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Button plain>
              {`▾ ${markerOf} ${specialist}:${shortId}  ${bead_id}  ${purpose}`}
            </Button>
            <Text dimColor wrap="truncate-end">
              {`      ${resolved_model} · ${thinking_level}  • ${metricsOf}`}
            </Text>
          </Box>
          <Box flexDirection="column" paddingLeft={4}>
            <Text dimColor>
              {activation_id}
              {" · "}
              unknown
            </Text>
            <Text color="#9a8bff" wrap="wrap">
              ask
              {": "}
            </Text>
            <Input label="reply " placeholder="answer the specialist" submitLabel="reply" autoFocus />
            <Box>
              <Button hotkey="r">
                hide result
              </Button>
              <Text>
                {" "}
              </Text>
              <Button hotkey="f">
                hide feed
              </Button>
              <Text>
                {" "}
              </Text>
              <Button hotkey="x">
                stop
              </Button>
            </Box>
            <Box flexDirection="column">
              <Text wrap="truncate-end">
                {line}
              </Text>
              <Text wrap="truncate-end">
                {line2}
              </Text>
              <Text wrap="truncate-end">
                {line3}
              </Text>
              <Text dimColor italic>
                {`… ${length} more lines · /specialists ${kind} ${shortId}`}
              </Text>
            </Box>
          </Box>
          <Text dimColor>
            {" "}
            {flash}
          </Text>
        </Box>
        <Text dimColor>
          esc closes · select a row to read its result or feed, or to reply, steer, resume or stop
        </Text>
      </Box>
    )
  })
}

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/specialists/hooks/register.tsx lines 662–676 · Pane
  on('ui.render', { component: 'Pane' }, async ($, e, next) => {
    // The mobile app draws no Input; it keeps /specialists status.
    if (e.requestId !== PANE_ID || e.surface === 'mobile') return next(e)

    const { Box, Text, Button, Input } = await $.ui.resolve(e)
    return (
      <Box flexDirection="column">
        <Text bold>{headerOf(s.fleet)}</Text>
        {s.error ? <Text color="yellow" wrap="truncate-end">status unavailable · {s.error}</Text> : null}
        {s.fleet.activations.length === 0 ? <Text dimColor>No live activations.</Text> : null}
        {fleetBody($, s, { Box, Text, Button, Input }, orderedOf(s.fleet), 'pane', DETAIL_PANE_LINES)}
        <Text dimColor>esc closes · select a row to read its result or feed, or to reply, steer, resume or stop</Text>
      </Box>
    )
  })
plugins/specialists/hooks/register.tsx lines 402–495 · Pane
function fleetBody($: EngineInterface, s: State, ui: Kit, rows: Activation[], site: string, detailLines: number) {
  const { Box, Text, Button, Input } = ui
  const nowMs = Date.now()
  const selectedRow = rows.find(a => a.activation_id === s.selected)
  const selectedAsk = selectedRow && s.fleet.asks.find(a => a.activation_id === selectedRow.activation_id)

  return (
    <Box flexDirection="column">
      {rows.map(row => {
        const ask = s.fleet.asks.find(a => a.activation_id === row.activation_id)
        const purpose = purposeShort(row.purpose)
        const isSelected = row.activation_id === s.selected
        return (
          <Box key={`${site}:${row.activation_id}`} flexDirection="column">
            <Button
              plain
              key={`row:${row.activation_id}`}
              onPress={() => { s.selected = isSelected ? null : row.activation_id; s.flash = null; $.ui.invalidate('ui.render') }}
            >
              {`${isSelected ? '▾' : ' '} ${markerOf(row, ask, nowMs)} ${row.specialist ?? 'specialist'}:${shortId(row.activation_id)}  ${row.bead_id ?? '—'}${purpose ? `  ${purpose}` : ''}`}
            </Button>
            <Text dimColor wrap="truncate-end">
              {`      ${row.resolved_model ?? '?model'}${row.thinking_level ? ` · ${row.thinking_level}` : ''}  • ${metricsOf(row, ask, nowMs)}`}
            </Text>
          </Box>
        )
      })}

      {selectedRow ? (
        <Box flexDirection="column" paddingLeft={4}>
          <Text dimColor>{selectedRow.activation_id} · {selectedRow.state ?? 'unknown'}</Text>
          {selectedAsk ? (
            <>
              <Text color={ACCENT} wrap="wrap">{selectedAsk.kind ?? 'ask'}: {selectedAsk.body ?? ''}</Text>
              <Input
                key={`reply:${selectedAsk.message_id}`}
                label="reply "
                placeholder="answer the specialist"
                submitLabel="reply"
                autoFocus
                onSubmit={value => { if (value.trim()) void act($, s, 'specialist_reply', { message_id: selectedAsk.message_id, body: value.trim() }, `Answered ${selectedAsk.message_id}.`) }}
              />
            </>
          ) : isActive(selectedRow.state) ? (
            <Input
              key={`steer:${selectedRow.activation_id}`}
              label="steer "
              placeholder="redirect the running specialist"
              submitLabel="steer"
              onSubmit={value => { if (value.trim()) void act($, s, 'specialist_steer', { activation_id: selectedRow.activation_id, message: value.trim() }, `Steered ${selectedRow.activation_id}.`) }}
            />
          ) : (
            <Input
              key={`resume:${selectedRow.activation_id}`}
              label="resume "
              placeholder="next instruction, same session"
              submitLabel="resume"
              onSubmit={value => { if (value.trim()) void act($, s, 'specialist_resume', { activation_id: selectedRow.activation_id, prompt: value.trim() }, `Resumed ${selectedRow.activation_id}.`) }}
            />
          )}
          <Box>
            <Button key={`result:${selectedRow.activation_id}`} hotkey="r" onPress={() => toggleDetail($, s, 'result', selectedRow.activation_id)}>
              {s.detail?.kind === 'result' ? 'hide result' : 'result'}
            </Button>
            <Text> </Text>
            <Button key={`feed:${selectedRow.activation_id}`} hotkey="f" onPress={() => toggleDetail($, s, 'feed', selectedRow.activation_id)}>
              {s.detail?.kind === 'feed' ? 'hide feed' : 'feed'}
            </Button>
            <Text> </Text>
            <Button
              key={`stop:${selectedRow.activation_id}`}
              hotkey="x"
              onPress={() => void act($, s, 'specialist_stop_activation', { activation_id: selectedRow.activation_id, reason: 'operator request' }, `Stopped ${selectedRow.activation_id}.`)}
            >
              stop
            </Button>
          </Box>
          {s.detail && s.detail.id === selectedRow.activation_id ? (
            <Box flexDirection="column">
              {(s.detail.kind === 'feed' ? s.detail.lines.slice(-detailLines) : s.detail.lines.slice(0, detailLines)).map((line, i) => (
                <Text key={`${site}:detail:${i}`} dimColor={s.detail!.kind === 'feed'} wrap="truncate-end">{line}</Text>
              ))}
              {s.detail.lines.length > detailLines ? (
                <Text dimColor italic>{`… ${s.detail.lines.length - detailLines} more lines · /specialists ${s.detail.kind} ${shortId(selectedRow.activation_id)}`}</Text>
              ) : null}
            </Box>
          ) : null}
        </Box>
      ) : null}

      {s.flash ? <Text dimColor>    {s.flash}</Text> : null}
    </Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Dawid (Jaggerxtrm)

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

env vars

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 c176accdc794 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 readEvery module hooks/hooks.json names was read.plugins/specialists/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.1 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 files or environment variables and reaches the network.reaches no 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

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 xtrm-dev/specialists
/plugin install specialists@xtrm

This installs the marketplace's latest commit, which may not be the one read here (c176accdc794). 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 "xtrm-dev-specialists" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs