modscode EN

modscode / 図鑑 / pult

pult

A control panel for Claude Code: quick-reply chips and a status band above the prompt, and a scrolling pane of cards for context, limits, prompt cache, deadlines from your notes, work areas and an SSH server. English and Russian.

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

何をするか

  • プロンプトの上の帯・欄・トーストを描く
  • /pult・/journal・/keep-cache を足す
  • ツールの呼び出しを見張る
  • prompt.submit・session.measure・session.start・turn.complete ほか 1 個にフックする
  • ターンをまたいで自分の状態を持つ

良いところ

  • ネットワークに出ない
  • TypeScript で書かれている
  • デスクトップ専用の分岐がある
  • エラーを扱う

作り始めるためのコード

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

雛形(register.tsx)

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

// Drawn like pult by Egor062020 (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/egor062020-pult/
// 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, Button, Text } = $.ui.resolve(e)
    const label = '…'
    const text = '…'
    const resumeAt = '…'
    const turnsNoJournal = '…'
    const fallback = '…'
    return (
      <Box flexDirection="column">
        <Box flexWrap="wrap" columnGap={1}>
          <Button label={`${label}`} />
          <Button label={`${label}`} />
          <Button label={`${label}`} />
        </Box>
        <Box flexWrap="wrap" columnGap={1}>
          <Text>
            {`· ${text}`}
          </Text>
          <Text>
            {`· ${text}`}
          </Text>
          <Text>
            {`· ${text}`}
          </Text>
          <Text color="yellow">
            {`${resumeAt}`}
          </Text>
          <Button label="cancel" plain dimColor />
          <Button label="keep cache 3 h" />
          <Text dimColor>
            {`${turnsNoJournal}`}
          </Text>
          <Button label="save journal" />
        </Box>
        <Text dimColor wrap="truncate-end">
          {fallback}
        </Text>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "Pult" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const folder = '…'
    const short = '…'
    const ddmm = '…'
    const label = '…'
    const days = '…'
    const ddmm2 = '…'
    const label2 = '…'
    const ddmm3 = '…'
    const label3 = '…'
    const workIn = '…'
    const ahead = '…'
    const ddmm4 = '…'
    const what = '…'
    const role = '…'
    const ddmm5 = '…'
    const ddmm6 = '…'
    const inbox = '…'
    const wait = '…'
    const tokenText = '…'
    const turnsLine = '…'
    const sparkline = '…'
    const apiPrice = '…'
    const noDataFor = '…'
    const resumeAt = '…'
    const value = '…'
    const cacheKept = '…'
    const running = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1} marginBottom={1}>
          <Box justifyContent="space-between">
            <Text bold>
              Areas
            </Text>
            <Text dimColor>
              {folder}
            </Text>
          </Box>
          <Box flexWrap="wrap" columnGap={1}>
            <Button label={`${short}`} />
            <Button label={`${short}`} />
            <Button label={`${short}`} />
          </Box>
          <Text wrap="wrap">
            Nothing urgent for this area in the focus note.
          </Text>
          <Box>
            <Box width={7} flexShrink={0}>
              <Text dimColor>
                {ddmm}
              </Text>
            </Box>
            <Box flexGrow={1}>
              <Text wrap="truncate-end">
                {label}
              </Text>
            </Box>
            <Text>
              {` ${days}`}
            </Text>
          </Box>
          <Box>
            <Box width={7} flexShrink={0}>
              <Text dimColor>
                {ddmm2}
              </Text>
            </Box>
            <Box flexGrow={1}>
              <Text wrap="truncate-end">
                {label2}
              </Text>
            </Box>
            <Text>
              {` ${days}`}
            </Text>
          </Box>
          <Box>
            <Box width={7} flexShrink={0}>
              <Text dimColor>
                {ddmm3}
              </Text>
            </Box>
            <Box flexGrow={1}>
              <Text wrap="truncate-end">
                {label3}
              </Text>
            </Box>
            <Text>
              {` ${days}`}
            </Text>
          </Box>
          <Box marginTop={1}>
            <Button label={`${workIn}`} />
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1} marginBottom={1}>
          <Box justifyContent="space-between">
            <Text bold>
              My deadlines
            </Text>
            <Text dimColor>
              {`${ahead}`}
            </Text>
          </Box>
          <Box>
            <Box width={7} flexShrink={0}>
              <Text dimColor>
                {ddmm4}
              </Text>
            </Box>
            <Box flexGrow={1}>
              <Text wrap="truncate-end">
                {`${what} (${role})`}
              </Text>
            </Box>
            <Text>
              {` ${days}`}
            </Text>
          </Box>
          <Box>
            <Box width={7} flexShrink={0}>
              <Text dimColor>
                {ddmm5}
              </Text>
            </Box>
            <Box flexGrow={1}>
              <Text wrap="truncate-end">
                {`${what} (${role})`}
              </Text>
            </Box>
            <Text>
              {` ${days}`}
            </Text>
          </Box>
          <Box>
            <Box width={7} flexShrink={0}>
              <Text dimColor>
                {ddmm6}
              </Text>
            </Box>
            <Box flexGrow={1}>
              <Text wrap="truncate-end">
                {`${what} (${role})`}
              </Text>
            </Box>
            <Text>
              {` ${days}`}
            </Text>
          </Box>
          <Box columnGap={1} marginTop={1}>
            <Button label="collapse" />
            <Button label="open in Obsidian" />
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1} marginBottom={1}>
          <Box justifyContent="space-between">
            <Text bold>
              Waiting for you
            </Text>
            <Text dimColor>
              {`${inbox}`}
            </Text>
          </Box>
          <Text wrap="wrap">
            {wait}
          </Text>
          <Box marginTop={1}>
            <Button label="sort the inbox" />
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1} marginBottom={1}>
          <Box justifyContent="space-between">
            <Text bold>
              Session
            </Text>
            <Text dimColor />
          </Box>
          <Box flexDirection="column">
            <Text>
              no data yet
            </Text>
            <Text dimColor>
              {tokenText}
            </Text>
            <Text dimColor>
              {`helpers: ${tokenText}`}
            </Text>
            <Text dimColor>
              {`${turnsLine}`}
            </Text>
            <Text color="cyan">
              {sparkline}
            </Text>
          </Box>
          <Box flexWrap="wrap" columnGap={1} marginTop={1}>
            <Button label="journal saved, again" />
            <Button label="compact context" />
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1} marginBottom={1}>
          <Box justifyContent="space-between">
            <Text bold>
              Limits
            </Text>
            <Text dimColor>
              {`${apiPrice}`}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text>
              {`${noDataFor}`}
            </Text>
            <Text>
              {`${noDataFor}`}
            </Text>
          </Box>
          <Box columnGap={1}>
            <Text color="yellow">
              {resumeAt}
            </Text>
            <Button label="cancel" />
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1} marginBottom={1}>
          <Box justifyContent="space-between">
            <Text bold>
              Cache
            </Text>
            <Text dimColor>
              {value}
            </Text>
          </Box>
          <Text>
            {`${cacheKept}`}
          </Text>
          <Box columnGap={1} marginTop={1}>
            <Button label="release" />
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1} marginBottom={1}>
          <Box justifyContent="space-between">
            <Text bold />
            <Text dimColor>
              online
            </Text>
          </Box>
          <Text>
            no data yet
          </Text>
          <Text wrap="wrap">
            {`${running}`}
          </Text>
          <Box columnGap={1} marginTop={1}>
            <Button label="checking…" />
            <Button label="terminal" />
          </Box>
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    await $.ui.toast(`Set the journalDir option to save journals.`)
    await $.ui.toast(`Journal not saved: the model did not answer`)
    return next(e)
  })
}

Mod 自身のコード

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

hooks/register.tsx 426〜484 行 · バンド
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const theirs = await next(e)
    if (e.props.hasSurvey) return theirs
    const { Box, Button, Text } = $.ui.resolve(e)

    const now = (await read($, nowAtom)) || (await $.clock.now())
    const u = await read($, usage)
    const due = await read($, deadline)
    const box = await read($, server)
    const last = await read($, lastTurnAt)
    const keep = await read($, keepUntil)
    const resume = await read($, resumeAt)
    const n = await read($, turns)
    const isSaved = (await read($, journalPath)) !== ''
    const left = last > 0 ? last + CACHE_MS - now : 0
    const isBig = (u?.contextTokens ?? 0) >= BIG_CONTEXT

    const info: { text: string; color?: string; dim?: boolean }[] = [{ text: place || t.noFolder, dim: true }]
    if (due !== null) {
      const d = daysBetween(localDate(now), due.date)
      const label = due.label.length > 40 ? `${due.label.slice(0, 39)}…` : due.label
      info.push({ text: `${t.due} ${ddmm(due.date)} ${label} (${days(d)})`, ...(d <= 3 ? { color: 'red' } : d <= 10 ? { color: 'yellow' } : {}) })
    }
    if (box !== null) {
      const jobs = box.jobs.map(j => `${j.name} ${span(j.minutes * 60_000)}`).join(', ')
      info.push(box.isOnline ? { text: `${cfg.serverName} ${t.serverOk}${jobs ? ` ${jobs}` : ''}`, color: 'green' } : { text: `${cfg.serverName} ${t.serverDown}`, color: 'red' })
    }
    if (keep > now) info.push({ text: t.cacheKeptUntil(hhmm(keep)), color: 'green' })
    else if (left > 0) info.push({ text: t.cacheLeft(Math.ceil(left / 60_000)), ...(left < WARN_BEFORE_MS ? { color: 'yellow' } : { dim: true }) })
    else if (last > 0 && isBig) info.push({ text: t.cacheCold, dim: true })

    const fallback = hintSurfaces.has(e.surface) ? undefined : bottomLine(u, await read($, samples), await read($, tokens), now)

    return (
      <Box flexDirection="column">
        {theirs}
        <Box flexWrap="wrap" columnGap={1}>
          {cfg.quick.map((label, i) => (
            <Button key={`q${i + 1}`} label={label} onPress={() => void $.prompt.submit({ text: label, asUser: true })} />
          ))}
        </Box>
        <Box flexWrap="wrap" columnGap={1}>
          {info.map((item, i) => (
            <Text {...(item.color ? { color: item.color } : {})} {...(item.dim ? { dimColor: true } : {})}>
              {`${i > 0 ? '· ' : ''}${item.text}`}
            </Text>
          ))}
          {resume > now && <Text color="yellow">{t.resumeAt(hhmm(resume))}</Text>}
          {resume > now && <Button key="resume-cancel" label={t.cancel} plain dimColor onPress={() => void cancelResume($)} />}
          {keep <= now && left > 0 && left < WARN_BEFORE_MS && isBig && (
            <Button key="keep" label={t.keep3h} onPress={() => void keepCache($, 3).then(text => $.ui.toast(text))} />
          )}
          {cfg.journal !== '' && !isSaved && n >= LONG_SESSION && <Text dimColor>{t.turnsNoJournal(n)}</Text>}
          {cfg.journal !== '' && !isSaved && n >= LONG_SESSION && <Button key="journal" label={t.saveJournal} onPress={() => void saveJournal($)} />}
        </Box>
        {fallback !== undefined && <Text dimColor wrap="truncate-end">{fallback}</Text>}
      </Box>
    )
  })
hooks/register.tsx 488〜647 行 · ペイン
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const table = $.ui.resolve(e)
    const { Box, Button, Text } = table
    // The terminal's table answers Svg with an empty fragment, so look at the surface
    const Svg = e.surface !== 'terminal' && 'Svg' in table ? table.Svg : undefined

    const now = (await read($, nowAtom)) || (await $.clock.now())
    const u = await read($, usage)
    const list = await read($, areaList)
    const picked = (await read($, area)) || here || (list[0]?.code ?? '')
    const info = (await read($, areas)).find(a => a.code === picked)
    const meta = list.find(a => a.code === picked)
    const wait = await read($, waiting)
    const unread = await read($, inbox)
    const mine = await read($, duties)
    const isAll = await read($, isDutiesOpen)
    const own = await read($, tokens)
    const helpers = await read($, agentTokens)
    const points = await read($, history)
    const n = await read($, turns)
    const toolCount = await read($, tools)
    const pace = u?.five ? forecast(await read($, samples), u.five.resetsAt, now) : undefined
    const resume = await read($, resumeAt)
    const last = await read($, lastTurnAt)
    const keep = await read($, keepUntil)
    const left = last > 0 ? last + CACHE_MS - now : 0
    const box = await read($, server)
    const isBusy = await read($, isPolling)
    const isSaved = (await read($, journalPath)) !== ''
    const elapsed = u && u.startedAt > 0 ? now - u.startedAt : 0

    const card = (key: string, title: string, aside: string | undefined, children: unknown[]) => (
      <Box key={key} flexDirection="column" borderStyle="round" borderDimColor paddingX={1} marginBottom={1}>
        <Box justifyContent="space-between">
          <Text bold>{title}</Text>
          {aside !== undefined && <Text dimColor>{aside}</Text>}
        </Box>
        {children}
      </Box>
    )
    const picture = (source: string, alt: string) => (Svg !== undefined ? <Svg source={source} alt={alt} /> : undefined)
    const dateRow = (key: string, date: string, label: string) => {
      const dn = daysBetween(localDate(now), date)
      return (
        <Box key={key}>
          <Box width={7} flexShrink={0}><Text dimColor>{ddmm(date)}</Text></Box>
          <Box flexGrow={1}><Text wrap="truncate-end">{label}</Text></Box>
          <Text {...dayTone(dn)}>{` ${days(dn)}`}</Text>
        </Box>
      )
    }
    const tokenText = (x: typeof own) => t.tokensLine(amount(x.input), amount(x.output), amount(x.cacheRead), amount(x.cacheWrite))

    return (
      <Box flexDirection="column">
        {list.length > 0 &&
          card('areas', t.areas, meta ? meta.folder : undefined, [
            <Box key="chips" flexWrap="wrap" columnGap={1}>
              {list.map(a => (
                <Button key={`area-${a.code}`} label={a.short} {...(a.code === picked ? { variant: 'primary' as const } : {})} onPress={() => void update($, area, () => a.code)} />
              ))}
            </Box>,
            ...(cfg.focus !== '' ? [<Text key="focus" wrap="wrap">{info?.text || t.nothingBurns}</Text>] : []),
            ...(info?.deadlines ?? []).map(d => dateRow(`d-${d.date}-${d.label}`, d.date, d.label)),
            picked !== here && meta !== undefined ? (
              <Box key="go" marginTop={1}>
                <Button key="area-go" label={t.workIn(meta.short)} onPress={() => void $.prompt.submit({ text: t.workInPrompt(meta.folder, `${cfg.areasRoot}/${meta.folder}`.replace(/\//g, isWindows() ? '\\' : '/')), asUser: true })} />
              </Box>
            ) : (
              <Text key="here" dimColor>{t.youAreHere}</Text>
            ),
          ])}

        {mine.length > 0 &&
          card('deadlines', t.myDeadlines, t.ahead(mine.length), [
            ...(isAll ? mine : mine.slice(0, SHOWN_DEADLINES)).map(d => dateRow(`dl-${d.date}-${d.what}`, d.date, isOwnRole(d.role) ? d.what : `${d.what} (${d.role})`)),
            <Box key="deadlines-actions" columnGap={1} marginTop={1}>
              {mine.length > SHOWN_DEADLINES && (
                <Button key="deadlines-more" label={isAll ? t.collapse : t.all(mine.length)} onPress={() => void update($, isDutiesOpen, v => !v)} />
              )}
              {cfg.obsidian !== '' && (
                <Button
                  key="deadlines-note"
                  label={t.openNote}
                  onPress={() => void $.process.run(opener(`obsidian://open?vault=${encodeURIComponent(cfg.obsidian)}&file=${encodeURIComponent(cfg.deadlinesNote.replace(/\.md$/, ''))}`))}
                />
              )}
            </Box>,
          ])}

        {(wait !== '' || unread > 0) &&
          card('waiting', t.waiting, unread > 0 ? t.inbox(unread) : undefined, [
            ...(wait !== '' ? [<Text key="w" wrap="wrap">{wait}</Text>] : []),
            ...(unread > 0
              ? [
                  <Box key="inbox-row" marginTop={1}>
                    <Button key="inbox" label={t.sortInbox} onPress={() => void $.prompt.submit({ text: t.sortInboxPrompt(cfg.inboxDir), asUser: true })} />
                  </Box>,
                ]
              : []),
          ])}

        {card('session', t.sessionCard, place, [
          picture(sessionSvg({ usage: u, tokens: own, agentTokens: helpers, turns: n, tools: toolCount, elapsedMs: elapsed, history: points }), `${t.context} ${Math.round(u?.contextPct ?? 0)}%, ${tokenText(own)}`) ?? (
            <Box key="session-text" flexDirection="column">
              <Text>{u ? (contextLine(u) ?? t.noData) : t.numbersLater}</Text>
              <Text dimColor>{tokenText(own)}</Text>
              {helpers.output + helpers.input > 0 && <Text dimColor>{`${t.helpers}: ${tokenText(helpers)}`}</Text>}
              <Text dimColor>{t.turnsLine(n, toolCount, span(elapsed))}</Text>
              {points.length >= 2 && <Text color="cyan">{sparkline(points.slice(-40).map(p => p.pct))}</Text>}
            </Box>
          ),
          <Box key="session-actions" flexWrap="wrap" columnGap={1} marginTop={1}>
            {cfg.journal !== '' && <Button key="pane-journal" label={isSaved ? t.journalSaved : t.saveJournal} onPress={() => void saveJournal($)} />}
            <Button key="compact" label={t.compact} onPress={() => void $.command.run({ command: 'compact' })} />
          </Box>,
        ])}

        {card('limits', t.limits, u?.costUsd !== undefined ? t.apiPrice(u.costUsd.toFixed(2)) : undefined, [
          picture(limitsSvg(u, pace, now), `${t.fiveHoursTitle} ${Math.round(u?.five?.pct ?? 0)}%, ${t.weekTitle} ${Math.round(u?.week?.pct ?? 0)}%`) ?? (
            <Box key="limits-text" flexDirection="column">
              <Text>{limitLine(t.fiveHours, u?.five, now, pace) ?? t.noDataFor(t.fiveHours)}</Text>
              <Text>{limitLine(t.week, u?.week, now) ?? t.noDataFor(t.week)}</Text>
            </Box>
          ),
          ...(resume > now
            ? [
                <Box key="resume" columnGap={1}>
                  <Text color="yellow">{t.resumeAt(hhmm(resume)).replace(/^· /, '')}</Text>
                  <Button key="pane-resume-cancel" label={t.cancel} onPress={() => void cancelResume($)} />
                </Box>,
              ]
            : []),
        ])}

        {card('cache', t.cache, undefined, [
          picture(cacheSvg(left, keep, now), keep > now ? t.cacheKeptUntil(hhmm(keep)) : left > 0 ? t.cacheLeft(Math.ceil(left / 60_000)) : t.cacheCold) ?? (
            <Text key="cache-text">{keep > now ? t.cacheKept(hhmm(keep)) : left > 0 ? t.cacheWarm(Math.ceil(left / 60_000)) : t.cacheColdLong}</Text>
          ),
          <Box key="cache-actions" columnGap={1} marginTop={1}>
            {keep > now ? (
              <Button key="release" label={t.release} onPress={() => void releaseCache($)} />
            ) : (
              <Button key="pane-keep" label={t.keep} onPress={() => void keepCache($, 3).then(text => $.ui.toast(text))} />
            )}
          </Box>,
        ])}

        {cfg.host !== '' &&
          card('server', cfg.serverName, box?.isOnline ? t.online : box ? t.offline('').replace(/: $/, '') : undefined, [
            picture(serverSvg(box, isBusy), box?.isOnline ? `${cfg.serverName}: ${t.online}, ${t.cpu} ${box.cpu ?? 0}%` : `${cfg.serverName}: ${t.noData}`) ?? (
              <Text key="server-text" {...(box?.isOnline ? { color: 'green' } : { color: 'red' })}>
                {box === null ? t.noData : box.isOnline ? `● ${t.cpu} ${box.cpu ?? 0}% · ${t.gpu} ${box.gpu?.util ?? 0}%` : `○ ${box.error ?? ''}`}
              </Text>
            ),
            ...(box?.isOnline ? [<Text key="jobs" wrap="wrap">{box.jobs.length > 0 ? t.running(box.jobs.map(j => `${j.name} ${span(j.minutes * 60_000)}`).join(', ')) : t.idle}</Text>] : []),
            <Box key="server-actions" columnGap={1} marginTop={1}>
              <Button key="refresh" label={isBusy ? t.checking : t.refresh} onPress={() => void pollServer($, true)} />
              <Button key="terminal" label={t.terminal} onPress={() => void $.process.run(terminalArgv())} />
            </Box>,
ライセンスの全文(MIT)
MIT License

Copyright (c) 2026 Egor062020

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 に読んだコミット bf021db2045a のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。

載せる条件: 確かめやすいコード
入口を読んだhooks/hooks.json が名指すモジュールをすべて読んだ。hooks/register.tsx
解析できるすべてのファイルが TypeScript か JavaScript として解析できる。8 ファイルを解析
コードが 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 のホスト)がコードに書いてあるか。通信なし
プログラム起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。hooks/register.tsx:137 実行時に決まるプログラム; hooks/register.tsx:572 実行時に決まるプログラム; hooks/register.tsx:646 実行時に決まるプログラム
読んで送るファイルや環境変数を読み、かつ通信するか。通信しない
ソースの鍵ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし
ライセンスオープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT

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

入れる

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

リポジトリの .claude-plugin/marketplace.json にこの Mod が載っていないため、入れる手順は出せません。コードとして読むか、作者の README に従ってください。

Claude に聞く

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

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

Claude から探す: MCP コネクタ

似たデザイン