modscode EN

modscode / 図鑑 / command-center

command-center

One pane for the whole session: the original intent and drift, subagents and background shells with model, tokens, idle and typical duration, files changed, and the last reply with its open questions.

確かめやすいコードターミナル+デスクトップペイントーストBoxButtonText

何をするか

  • 欄・トーストを描く
  • /command-center を足す
  • ツールの呼び出しを見張る(止めることがある)
  • prompt.submit・session.measure・session.receive・session.start ほか 2 個にフックする

良いところ

  • ネットワークに出ない
  • プロセスを起こさない
  • TypeScript で書かれている
  • ファイルを書かない

作り始めるためのコード

2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。

雛形(register.tsx)

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

// Drawn like command-center by Justin Johnson (pane, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/bioinfo-command-center/
// 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: "Command center" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const label = '…'
    const pct = '…'
    const tok = '…'
    const usd = '…'
    const shortModel = '…'
    const mainEffort = '…'
    const age = '…'
    const label2 = '…'
    const pct2 = '…'
    const paceNote = '…'
    const label3 = '…'
    const pct3 = '…'
    const paceNote2 = '…'
    const n = '…'
    const title = '…'
    const note = '…'
    const spin = '…'
    const type = '…'
    const age2 = '…'
    const age3 = '…'
    const description = '…'
    const effort = '…'
    const tok2 = '…'
    const tools = '…'
    const lastTool = '…'
    const spin2 = '…'
    const type2 = '…'
    const age4 = '…'
    const age5 = '…'
    const age6 = '…'
    const description2 = '…'
    const tok3 = '…'
    const tools2 = '…'
    const spin3 = '…'
    const type3 = '…'
    const age7 = '…'
    const age8 = '…'
    const age9 = '…'
    const description3 = '…'
    const tok4 = '…'
    const tools3 = '…'
    const spin4 = '…'
    const type4 = '…'
    const age10 = '…'
    const age11 = '…'
    const age12 = '…'
    const description4 = '…'
    const tok5 = '…'
    const tools4 = '…'
    const spin5 = '…'
    const type5 = '…'
    const age13 = '…'
    const age14 = '…'
    const age15 = '…'
    const description5 = '…'
    const tok6 = '…'
    const tools5 = '…'
    const spin6 = '…'
    const type6 = '…'
    const age16 = '…'
    const age17 = '…'
    const age18 = '…'
    const description6 = '…'
    const tok7 = '…'
    const tools6 = '…'
    const length = '…'
    const title2 = '…'
    const note2 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column">
        </Box>
        <Box>
          <Box width={6}>
            <Text color="#9FB6CF">
              {label}
            </Text>
          </Box>
          <Text>
            ████████░░░░░░░░
          </Text>
          <Text bold>
            {" "}
            {pct}
            %
          </Text>
        </Box>
        <Box>
          <Box width={6}>
            <Text color="#9FB6CF">
              {" "}
            </Text>
          </Box>
          <Text color="#9FB6CF">
            {" "}
            {tok}
          </Text>
        </Box>
        <Text wrap="truncate-end">
          <Text color="#F5F0E8" bold>
            {usd}
          </Text>
          <Text color="#9FB6CF">
            {` · ${usd}/h`}
            {` · ${shortModel} ${mainEffort}`}
          </Text>
        </Text>
        <Box>
          <Box width={6}>
            <Text color="#9FB6CF">
              cache
            </Text>
          </Box>
          <Text color="#E0607A">
            {` ${age}`}
          </Text>
        </Box>
        <Box>
          <Box width={6}>
            <Text color="#9FB6CF">
              {label2}
            </Text>
          </Box>
          <Text>
            ████████░░░░░░░░
          </Text>
          <Text bold>
            {" "}
            {pct2}
            %
          </Text>
        </Box>
        <Text color="#FBBF24">
          {" 5h "}
          {paceNote}
        </Text>
        <Box>
          <Box width={6}>
            <Text color="#9FB6CF">
              {label3}
            </Text>
          </Box>
          <Text>
            ████████░░░░░░░░
          </Text>
          <Text bold>
            {" "}
            {pct3}
            %
          </Text>
        </Box>
        <Text color="#FBBF24">
          {" 7d "}
          {paceNote2}
        </Text>
        <Box flexDirection="column" borderStyle="round" borderColor="#E0607A" paddingX={1} marginTop={1}>
          <Text bold color="#E0607A">
            NEEDS YOU
          </Text>
          <Box>
            <Text color="#E0607A">
              {"▸ "}
            </Text>
            <Button plain />
          </Box>
          <Box>
            <Text color="#E0607A">
              {"▸ "}
            </Text>
            <Button plain />
          </Box>
          <Box>
            <Text color="#E0607A">
              {"▸ "}
            </Text>
            <Button plain />
          </Box>
        </Box>
        <Box marginTop={1} flexWrap="wrap">
          <Box marginRight={1}>
            <Button variant="primary" hotkey="1">
              {`${label} ${n}`}
            </Button>
          </Box>
          <Box marginRight={1}>
            <Button variant="primary" hotkey="2">
              {`${label} ${n}`}
            </Button>
          </Box>
          <Box marginRight={1}>
            <Button variant="primary" hotkey="3">
              {`${label} ${n}`}
            </Button>
          </Box>
          <Box marginRight={1}>
            <Button variant="primary" hotkey="4">
              {`${label} ${n}`}
            </Button>
          </Box>
          <Box marginRight={1}>
            <Button variant="primary" hotkey="5">
              {`${label} ${n}`}
            </Button>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box flexDirection="column" borderStyle="round" borderColor="#1D3A66" paddingX={1} marginTop={1}>
            <Text wrap="truncate-end">
              <Text bold color="#F97316">
                {title}
              </Text>
              <Text color="#9FB6CF">
                {" "}
                {note}
              </Text>
            </Text>
          </Box>
          <Box flexDirection="column" borderStyle="round" paddingX={1} marginTop={1}>
            <Text wrap="truncate-end">
              <Text color="#3FA9BD">
                {spin}
                {" "}
              </Text>
              <Text color="#9FB6CF">
                {type}
              </Text>
              <Text color="#9FB6CF">
                {" "}
                {age}
              </Text>
              <Text color="#FBBF24">
                {" quiet "}
                {age2}
              </Text>
              <Text color="#E0607A">
                {" stuck? "}
                {age3}
              </Text>
            </Text>
            <Text color="#9FB6CF" wrap="truncate-end">
              {description}
            </Text>
            <Box flexDirection="column">
              <Text color="#00C0E0" wrap="truncate-end">
                ?
                {` ${effort}`}
                <Text color="#9FB6CF">
                  {" "}
                  {"· ctx "}
                  {tok2}
                  {" · "}
                  {tools}
                  {" tools"}
                  {` (${lastTool})`}
                </Text>
              </Text>
              <Text color="#9FB6CF" wrap="truncate-end">
                {`in ${tok} out ${tok}`}
                {` · cache ${pct}%`}
                {` · idle ${age}`}
                {` · typ ${age}`}
              </Text>
            </Box>
            <Box>
              <Button>
                Stop this agent
              </Button>
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" paddingX={1} marginTop={1}>
            <Text wrap="truncate-end">
              <Text color="#3FA9BD">
                {spin2}
                {" "}
              </Text>
              <Text color="#9FB6CF">
                {type2}
              </Text>
              <Text color="#9FB6CF">
                {" "}
                {age4}
              </Text>
              <Text color="#FBBF24">
                {" quiet "}
                {age5}
              </Text>
              <Text color="#E0607A">
                {" stuck? "}
                {age6}
              </Text>
            </Text>
            <Text color="#9FB6CF" wrap="truncate-end">
              {description2}
            </Text>
            <Box flexDirection="column">
              <Text color="#00C0E0" wrap="truncate-end">
                ?
                {` ${effort}`}
                <Text color="#9FB6CF">
                  {" "}
                  {"· ctx "}
                  {tok3}
                  {" · "}
                  {tools2}
                  {" tools"}
                  {` (${lastTool})`}
                </Text>
              </Text>
              <Text color="#9FB6CF" wrap="truncate-end">
                {`in ${tok} out ${tok}`}
                {` · cache ${pct}%`}
                {` · idle ${age}`}
                {` · typ ${age}`}
              </Text>
            </Box>
            <Box>
              <Button>
                Stop this agent
              </Button>
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" paddingX={1} marginTop={1}>
            <Text wrap="truncate-end">
              <Text color="#3FA9BD">
                {spin3}
                {" "}
              </Text>
              <Text color="#9FB6CF">
                {type3}
              </Text>
              <Text color="#9FB6CF">
                {" "}
                {age7}
              </Text>
              <Text color="#FBBF24">
                {" quiet "}
                {age8}
              </Text>
              <Text color="#E0607A">
                {" stuck? "}
                {age9}
              </Text>
            </Text>
            <Text color="#9FB6CF" wrap="truncate-end">
              {description3}
            </Text>
            <Box flexDirection="column">
              <Text color="#00C0E0" wrap="truncate-end">
                ?
                {` ${effort}`}
                <Text color="#9FB6CF">
                  {" "}
                  {"· ctx "}
                  {tok4}
                  {" · "}
                  {tools3}
                  {" tools"}
                  {` (${lastTool})`}
                </Text>
              </Text>
              <Text color="#9FB6CF" wrap="truncate-end">
                {`in ${tok} out ${tok}`}
                {` · cache ${pct}%`}
                {` · idle ${age}`}
                {` · typ ${age}`}
              </Text>
            </Box>
            <Box>
              <Button>
                Stop this agent
              </Button>
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" paddingX={1} marginTop={1}>
            <Text wrap="truncate-end">
              <Text color="#3FA9BD">
                {spin4}
                {" "}
              </Text>
              <Text color="#9FB6CF">
                {type4}
              </Text>
              <Text color="#9FB6CF">
                {" "}
                {age10}
              </Text>
              <Text color="#FBBF24">
                {" quiet "}
                {age11}
              </Text>
              <Text color="#E0607A">
                {" stuck? "}
                {age12}
              </Text>
            </Text>
            <Text color="#9FB6CF" wrap="truncate-end">
              {description4}
            </Text>
            <Box flexDirection="column">
              <Text color="#00C0E0" wrap="truncate-end">
                ?
                {` ${effort}`}
                <Text color="#9FB6CF">
                  {" "}
                  {"· ctx "}
                  {tok5}
                  {" · "}
                  {tools4}
                  {" tools"}
                  {` (${lastTool})`}
                </Text>
              </Text>
              <Text color="#9FB6CF" wrap="truncate-end">
                {`in ${tok} out ${tok}`}
                {` · cache ${pct}%`}
                {` · idle ${age}`}
                {` · typ ${age}`}
              </Text>
            </Box>
            <Box>
              <Button>
                Stop this agent
              </Button>
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" paddingX={1} marginTop={1}>
            <Text wrap="truncate-end">
              <Text color="#3FA9BD">
                {spin5}
                {" "}
              </Text>
              <Text color="#9FB6CF">
                {type5}
              </Text>
              <Text color="#9FB6CF">
                {" "}
                {age13}
              </Text>
              <Text color="#FBBF24">
                {" quiet "}
                {age14}
              </Text>
              <Text color="#E0607A">
                {" stuck? "}
                {age15}
              </Text>
            </Text>
            <Text color="#9FB6CF" wrap="truncate-end">
              {description5}
            </Text>
            <Box flexDirection="column">
              <Text color="#00C0E0" wrap="truncate-end">
                ?
                {` ${effort}`}
                <Text color="#9FB6CF">
                  {" "}
                  {"· ctx "}
                  {tok6}
                  {" · "}
                  {tools5}
                  {" tools"}
                  {` (${lastTool})`}
                </Text>
              </Text>
              <Text color="#9FB6CF" wrap="truncate-end">
                {`in ${tok} out ${tok}`}
                {` · cache ${pct}%`}
                {` · idle ${age}`}
                {` · typ ${age}`}
              </Text>
            </Box>
            <Box>
              <Button>
                Stop this agent
              </Button>
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" paddingX={1} marginTop={1}>
            <Text wrap="truncate-end">
              <Text color="#3FA9BD">
                {spin6}
                {" "}
              </Text>
              <Text color="#9FB6CF">
                {type6}
              </Text>
              <Text color="#9FB6CF">
                {" "}
                {age16}
              </Text>
              <Text color="#FBBF24">
                {" quiet "}
                {age17}
              </Text>
              <Text color="#E0607A">
                {" stuck? "}
                {age18}
              </Text>
            </Text>
            <Text color="#9FB6CF" wrap="truncate-end">
              {description6}
            </Text>
            <Box flexDirection="column">
              <Text color="#00C0E0" wrap="truncate-end">
                ?
                {` ${effort}`}
                <Text color="#9FB6CF">
                  {" "}
                  {"· ctx "}
                  {tok7}
                  {" · "}
                  {tools6}
                  {" tools"}
                  {` (${lastTool})`}
                </Text>
              </Text>
              <Text color="#9FB6CF" wrap="truncate-end">
                {`in ${tok} out ${tok}`}
                {` · cache ${pct}%`}
                {` · idle ${age}`}
                {` · typ ${age}`}
              </Text>
            </Box>
            <Box>
              <Button>
                Stop this agent
              </Button>
            </Box>
          </Box>
          <Text color="#9FB6CF">
            +
            {length}
            {" older"}
          </Text>
          <Box flexDirection="column" borderStyle="round" borderColor="#1D3A66" paddingX={1} marginTop={1}>
            <Text wrap="truncate-end">
              <Text bold color="#F97316">
                {title2}
              </Text>
              <Text color="#9FB6CF">
                {" "}
                {note2}
              </Text>
            </Text>
          </Box>
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const type = '…'
    const description = '…'
    const age = '…'
    const note = '…'
    await $.ui.toast(`${type} "${description}" has been quiet for ${age}`)
    await $.ui.toast(`${note}: open the command center and press Check intent`)
    return next(e)
  })
}

Mod 自身のコード

Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。

mods/command-center/hooks/register.tsx 152〜311 行 · ペイン
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const els = $.ui.resolve(e)
    const { Box, Button, Text } = els
    // Raster is the terminal's truecolor cell grid; other surfaces get the plain-text bar.
    const Raster = 'Raster' in els ? els.Raster : null
    const c = migrate(await read($, centerAtom))
    const list = await $.agent.list()
    const now = Date.now()
    const rows = e.viewport?.rows ?? 40
    const width = Math.max(28, (e.props.bodyColumns ?? 50) - 2)
    const iw = width - 4 // inside a bordered card
    const home = (await $.env.get('HOME')) ?? ''
    const go = (v: View) => () => update($, centerAtom, x => setView(x, v))
    const b64 = (w: Uint32Array) => (new Uint8Array(w.buffer) as Uint8Array & { toBase64(): string }).toBase64()

    const running = list.filter(a => a.status === 'running')
    anyRunning = running.length > 0
    const finished = list.filter(a => a.status !== 'running').reverse()
    const openShells = c.shells.filter(s => s.doneAt === null)
    const doneShells = c.shells.filter(s => s.doneAt !== null).reverse()
    const fileList = Object.entries(c.files).sort((a, b) => b[1].lastAt - a[1].lastAt)
    const totalAdd = fileList.reduce((n, [, f]) => n + f.added, 0)
    const totalDel = fileList.reduce((n, [, f]) => n + f.removed, 0)
    const qs = c.reply ? questionsIn(c.reply.text) : []
    const five = c.limits.find(l => l.kind === 'five_hour')
    const seven = c.limits.find(l => l.kind === 'seven_day')
    const ctxPct = c.ctx !== null && c.compactAt ? Math.round((c.ctx / c.compactAt) * 100) : null
    const todo = alerts(c, list, now)
    const cache = cacheLeft(c, now)
    const gap = cursorGap(c)
    const barW = Math.max(8, width - 20)
    const spin = spinner(now)

    // A rounded card: the border carries the tone, the title carries the meaning.
    const Card = (p: { title: string; note?: string; tone?: string; children?: RenderChildren }) => (
      <Box flexDirection="column" borderStyle="round" borderColor={p.tone ?? PAL.line} paddingX={1} marginTop={1}>
        <Text wrap="truncate-end">
          <Text bold color={p.tone ?? PAL.accent}>
            {p.title}
          </Text>
          {p.note ? <Text color={PAL.mute}> {p.note}</Text> : null}
        </Text>
        {p.children}
      </Box>
    )

    const Meter = (p: { label: string; pct: number; note?: string | null }) => (
      <Box>
        <Box width={6}>
          <Text color={PAL.mute}>{p.label}</Text>
        </Box>
        {Raster ? (
          <Raster key={`m-${p.label}`} columns={barW} rows={1} cells={b64(meterCells(p.pct, barW))} />
        ) : (
          <Text color={toneHex(meterTone(p.pct))}>{bar(p.pct, barW)}</Text>
        )}
        <Text bold color={toneHex(meterTone(p.pct))}>
          {' '}
          {String(p.pct).padStart(3)}%
        </Text>
      </Box>
    )

    const tab = (v: View, hotkey: string, icon: string, label: string, n?: number) => (
      <Box marginRight={1}>
        <Button variant={c.view === v ? 'primary' : undefined} hotkey={hotkey} onPress={go(v)}>
          {`${label}${n !== undefined && n > 0 ? ` ${n}` : ''}`}
        </Button>
      </Box>
    )
    const stop = (id: string, what: string) => async () => {
      const r = await $.tool.call({ tool: 'TaskStop', task_id: id, consent: `The user pressed Stop on this ${what} in the command center.` })
      $.ui.toast('deny' in r && r.deny !== undefined ? `Stop refused: ${r.deny}` : 'isError' in r && r.isError === true ? 'Stop failed' : 'Stop sent')
    }

    const send = (s: Short) => async () => {
      await $.prompt.submit({ text: shortPrompt(s), asUser: true })
      $.ui.toast(`Sent: ${s.label}`)
    }
    // Click only, no letter keys: typing while the pane has focus would fire a run of prompts.
    const ShortButton = (p: { s: Short }) => (
      <Box marginRight={1}>
        <Button onPress={send(p.s)}>
          {p.s.label}
        </Button>
      </Box>
    )

    const AgentCard = (p: { a: (typeof list)[number] }) => {
      const a = p.a
      const s = c.agents[a.id]
      const level = stallLevel(a.status, s, now)
      const typical = typicalMs(c, a.type)
      const up = s ? (s.endedAt ?? now) - s.startedAt : 0
      const pct = s ? cachePct(s) : null
      const live = a.status === 'running'
      const ok = /complet|done|success/i.test(a.status)
      const tone = level === 'stuck' ? PAL.bad : level === 'quiet' ? PAL.warn : live ? PAL.good : ok ? PAL.line : PAL.bad

      return (
        <Box flexDirection="column" borderStyle="round" borderColor={tone} paddingX={1} marginTop={1}>
          <Text wrap="truncate-end">
            <Text color={live ? PAL.good : ok ? PAL.mute : PAL.bad}>{live ? spin : ok ? '✓' : '✗'} </Text>
            <Text bold={live} color={live ? undefined : PAL.mute}>
              {a.type}
            </Text>
            <Text color={PAL.mute}> {age(up)}</Text>
            {level === 'quiet' ? <Text color={PAL.warn}> quiet {age(now - (s?.lastSeenAt ?? now))}</Text> : null}
            {level === 'stuck' ? <Text color={PAL.bad}> stuck? {age(now - (s?.lastSeenAt ?? now))}</Text> : null}
          </Text>
          <Text color={PAL.mute} wrap="truncate-end">
            {trunc(a.description, iw)}
          </Text>
          {s ? (
            <Box flexDirection="column">
              <Text color={PAL.data} wrap="truncate-end">
                {shortModel(s.model)}
                {s.effort ? ` ${s.effort}` : ''}
                <Text color={PAL.mute}>
                  {' '}
                  · ctx {tok(s.ctx)} · {s.tools} tools{s.lastTool ? ` (${s.lastTool})` : ''}
                </Text>
              </Text>
              <Text color={PAL.mute} wrap="truncate-end">
                {s.turns > 0 ? `in ${tok(s.input)} out ${tok(s.output)}` : 'tokens counted when it finishes'}
                {pct !== null ? ` · cache ${pct}%` : ''}
                {live ? ` · idle ${age(now - s.lastSeenAt)}` : ''}
                {live && typical ? ` · typ ${age(typical.ms)}` : ''}
              </Text>
            </Box>
          ) : (
            <Text color={PAL.mute}>started before this mod loaded</Text>
          )}
          {level !== 'ok' ? (
            <Box>
              <Button onPress={stop(a.id, 'agent')}>Stop this agent</Button>
            </Box>
          ) : null}
        </Box>
      )
    }

    const ShellRow = (p: { s: (typeof c.shells)[number] }) => (
      <Box flexDirection="column">
        <Text wrap="truncate-end">
          <Text color={p.s.doneAt === null ? PAL.good : PAL.mute}>{p.s.doneAt === null ? spin : '✓'} </Text>
          <Text color={PAL.mute}>{age((p.s.doneAt ?? now) - p.s.startedAt)} </Text>
          <Text>{trunc(p.s.command.replace(/\s+/g, ' '), iw - 8)}</Text>
        </Text>
        {p.s.doneAt === null && p.s.stoppable ? (
          <Box marginLeft={2}>
            <Button onPress={stop(p.s.id, 'background shell')}>Stop</Button>
          </Box>
        ) : null}
      </Box>
    )

    const FileRow = (p: { path: string; f: FileStat }) => {
      const { dir, base } = splitPath(p.path, home)
ライセンスの全文(MIT)
MIT License

Copyright (c) 2026 Justin Johnson

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.

コードが呼ぶもの

ファイル読み取り環境変数Claude を動かすツール呼び出し

コードから読み取ったデザイン

読み取ったコミットのソースから描いたもので、動かした結果ではありません。一覧は 3 回描き、条件はデスクトップアプリで描く最初の分岐を取り、動かしたときにだけ決まる値は仮の例(点線の下線)にするか省きます。色と書体はこのサイトのものです。

コードから読めること

2026-10-06 に読んだコミット 79b276d2c2ea のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。

載せる条件: 確かめやすいコード
入口を読んだhooks/hooks.json が名指すモジュールをすべて読んだ。mods/command-center/hooks/register.tsx
解析できるすべてのファイルが TypeScript か JavaScript として解析できる。2 ファイルを解析
コードが Mod の中で完結import は Mod 自身のファイルかエンジンのモジュールだけ。パッケージも require もない。コードはすべて Mod の中
読める圧縮した行・eval・new Function・計算した道の import()・符号化した塊がない。圧縮・eval・符号化した塊なし
呼び出しが見える通信とプログラム起動はその場で $.http.fetch・$.process.run と書き、他へ渡さない。外への呼び出しはすべてその場の $ で
入れる前に自分で判断する材料
描く場所コードから読んだ、描く先。ターミナル・デスクトップアプリ・両方・何も描かない(フックだけ: 見張りやプロンプトの書き換え)のどれか。出すだけで、外す理由にはしない。ターミナルとデスクトップアプリに同じように描く
入れる手順リポジトリ自身の .claude-plugin/marketplace.json にこの Mod が載っていて、ページに書いた手順でそのマーケットプレイスから入れられるか。リポジトリの .claude-plugin/marketplace.json に載っており、そこから入れられる
Windows のプログラム$.process で起動するプログラムが Windows にあるか(tail・date・open・osascript・/usr/… などは無い)。Windows にないプログラムを使わない
通信fetch の送り先(https のホスト)がコードに書いてあるか。通信なし
プログラム起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。プログラムを起動しない
読んで送るファイルや環境変数を読み、かつ通信するか。通信しない
ソースの鍵ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし
ライセンスオープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT

コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件

入れる

入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。

リポジトリがそのままマーケットプレイスです。このマーケットプレイスを足し(ターミナルでは次のコマンド、デスクトップアプリではプラグインの設定)、そこから Mod を入れます。

/plugin marketplace add BioInfo/claudelicious
/plugin install command-center@claudelicious

入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(79b276d2c2ea)と違うことがあります。入れる前に見比べてください。

Claude に聞く

modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:

modscode のデザイン「bioinfo-command-center」をコードごと読んで、同じようなペインを作って

Claude から探す: MCP コネクタ

似たデザイン