modscode EN

modscode / 図鑑 / sidecast

sidecast

A podcast player inside Claude Code: subscribe to feeds, browse episodes in a pane, and play them with a now-playing bar above the prompt

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

何をするか

  • プロンプトの上の帯・欄・トーストを描く
  • /pod・/sidecast を足す
  • mcp__sidecast__library・mcp__sidecast__episode・mcp__sidecast__play・mcp__sidecast__queue の呼び出しを見張る
  • session.end・session.startにフックする
  • ターンをまたいで自分の状態を持つ

良いところ

  • TypeScript で書かれている
  • エラーを扱う
  • ファイルを書かない

作り始めるためのコード

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

雛形(register.tsx)

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

// Drawn like sidecast by Nathan Morton (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/nmorton13-sidecast/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
  // the band above the prompt; what else goes there is drawn under it
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const icon = '…'
    const show = '…'
    const title = '…'
    const speed = '…'
    const done = '…'
    const rest = '…'
    const times = '…'
    return (
      <Box flexDirection="column">
        <Box justifyContent="space-between" paddingRight={4}>
          <Text wrap="truncate">
            <Text color="claude">
              {icon}
              {" "}
            </Text>
            <Text bold>
              {show}
            </Text>
            <Text dimColor>
              {" — "}
              {title}
            </Text>
          </Text>
          <Box gap={1} flexShrink={0}>
            <Button plain hotkey="b" label="«15" />
            <Button plain hotkey="p" label="play" />
            <Button plain hotkey="f" label="30»" />
            <Button plain hotkey="x" label={`${speed}×`} />
            <Button plain hotkey="s" dimColor label="stop" />
          </Box>
        </Box>
        <Box>
          <Text color="claude">
            {done}
          </Text>
          <Text dimColor>
            {rest}
          </Text>
          <Text dimColor>
            {" "}
            {times}
          </Text>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "Podcasts" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const show = '…'
    const title = '…'
    const speed = '…'
    const qi = '…'
    const title2 = '…'
    const title3 = '…'
    const title4 = '…'
    const title5 = '…'
    const title6 = '…'
    const title7 = '…'
    const note = '…'
    const title8 = '…'
    const author = '…'
    const title9 = '…'
    const author2 = '…'
    const title10 = '…'
    const author3 = '…'
    const fresh = '…'
    const mark = '…'
    const day = '…'
    const length = '…'
    const mark2 = '…'
    const day2 = '…'
    const length2 = '…'
    const mark3 = '…'
    const day3 = '…'
    const length3 = '…'
    const fresh2 = '…'
    const mark4 = '…'
    const day4 = '…'
    const length4 = '…'
    const mark5 = '…'
    const day5 = '…'
    const length5 = '…'
    const mark6 = '…'
    const day6 = '…'
    const length6 = '…'
    const fresh3 = '…'
    const mark7 = '…'
    const day7 = '…'
    const length7 = '…'
    const mark8 = '…'
    const day8 = '…'
    const length8 = '…'
    const mark9 = '…'
    const day9 = '…'
    const length9 = '…'
    const item = '…'
    const item2 = '…'
    const item3 = '…'
    return (
      <Box flexDirection="column">
        <Box justifyContent="space-between" paddingRight={3}>
          <Text bold>
            Podcasts
          </Text>
          <Button plain dimColor label="refresh" />
        </Box>
        <Box flexDirection="column" marginY={1} borderStyle="round" borderColor="claude" paddingX={1}>
          <Text wrap="truncate">
            <Text color="claude">
              …
              {" "}
            </Text>
            <Text bold>
              {show}
            </Text>
          </Text>
          <Text wrap="truncate">
            {title}
          </Text>
          <Box gap={2} flexWrap="wrap">
            <Button plain hotkey="b" label="«15" />
            <Button plain hotkey="p" label="play" />
            <Button plain hotkey="f" label="30»" />
            <Button plain hotkey="x" label={`${speed}×`} />
            <Button plain hotkey="n" label="next" />
            <Button plain hotkey="s" dimColor label="stop" />
          </Box>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Box justifyContent="space-between">
            <Text bold>
              Up next
            </Text>
            <Button plain label="play ▶" />
          </Box>
          <Box gap={1}>
            <Text dimColor>
              {`${qi}1`}
              .
            </Text>
            <Text wrap="truncate">
              {title2}
              <Text dimColor>
                {" · "}
                {title3}
              </Text>
            </Text>
            <Button plain dimColor label="×" />
          </Box>
          <Box gap={1}>
            <Text dimColor>
              {`${qi}1`}
              .
            </Text>
            <Text wrap="truncate">
              {title4}
              <Text dimColor>
                {" · "}
                {title5}
              </Text>
            </Text>
            <Button plain dimColor label="×" />
          </Box>
          <Box gap={1}>
            <Text dimColor>
              {`${qi}1`}
              .
            </Text>
            <Text wrap="truncate">
              {title6}
              <Text dimColor>
                {" · "}
                {title7}
              </Text>
            </Text>
            <Button plain dimColor label="×" />
          </Box>
        </Box>
        <Text dimColor wrap="truncate">
          {note}
        </Text>
        <Box flexDirection="column" marginY={1}>
          <Box gap={1}>
            <Button plain label="+" />
            <Text wrap="truncate">
              {title8}
              <Text dimColor>
                {" "}
                {author}
              </Text>
            </Text>
          </Box>
          <Box gap={1}>
            <Button plain label="+" />
            <Text wrap="truncate">
              {title9}
              <Text dimColor>
                {" "}
                {author2}
              </Text>
            </Text>
          </Box>
          <Box gap={1}>
            <Button plain label="+" />
            <Text wrap="truncate">
              {title10}
              <Text dimColor>
                {" "}
                {author3}
              </Text>
            </Text>
          </Box>
          <Button plain dimColor label="clear results" />
        </Box>
        <Text dimColor>
          No subscriptions yet. Try /pod add hardcore history
        </Text>
        <Box flexDirection="column">
          <Box justifyContent="space-between">
            <Button plain label={`▾ ${title}`} />
            <Text color="claude">
              {fresh}
              {" new"}
            </Text>
          </Box>
          <Box flexDirection="column" paddingLeft={2}>
            <Box flexDirection="column">
              <Box gap={1}>
                <Text color="claude">
                  {mark}
                </Text>
                <Text dimColor>
                  {day}
                </Text>
                <Button plain label={`${title}`} />
                <Text dimColor>
                  {length}
                </Text>
                <Button plain label="?" />
                <Text dimColor>
                  {" "}
                </Text>
              </Box>
              <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                <Text dimColor italic>
                  Claude is summarizing…
                </Text>
              </Box>
            </Box>
            <Box flexDirection="column">
              <Box gap={1}>
                <Text color="claude">
                  {mark2}
                </Text>
                <Text dimColor>
                  {day2}
                </Text>
                <Button plain label={`${title}`} />
                <Text dimColor>
                  {length2}
                </Text>
                <Button plain label="?" />
                <Text dimColor>
                  {" "}
                </Text>
              </Box>
              <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                <Text dimColor italic>
                  Claude is summarizing…
                </Text>
              </Box>
            </Box>
            <Box flexDirection="column">
              <Box gap={1}>
                <Text color="claude">
                  {mark3}
                </Text>
                <Text dimColor>
                  {day3}
                </Text>
                <Button plain label={`${title}`} />
                <Text dimColor>
                  {length3}
                </Text>
                <Button plain label="?" />
                <Text dimColor>
                  {" "}
                </Text>
              </Box>
              <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                <Text dimColor italic>
                  Claude is summarizing…
                </Text>
              </Box>
            </Box>
            <Text dimColor>
              No playable episodes in this feed.
            </Text>
            <Box gap={2}>
              <Button plain dimColor label="unsubscribe" />
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box justifyContent="space-between">
            <Button plain label={`▾ ${title}`} />
            <Text color="claude">
              {fresh2}
              {" new"}
            </Text>
          </Box>
          <Box flexDirection="column" paddingLeft={2}>
            <Box flexDirection="column">
              <Box gap={1}>
                <Text color="claude">
                  {mark4}
                </Text>
                <Text dimColor>
                  {day4}
                </Text>
                <Button plain label={`${title}`} />
                <Text dimColor>
                  {length4}
                </Text>
                <Button plain label="?" />
                <Text dimColor>
                  {" "}
                </Text>
              </Box>
              <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                <Text dimColor italic>
                  Claude is summarizing…
                </Text>
              </Box>
            </Box>
            <Box flexDirection="column">
              <Box gap={1}>
                <Text color="claude">
                  {mark5}
                </Text>
                <Text dimColor>
                  {day5}
                </Text>
                <Button plain label={`${title}`} />
                <Text dimColor>
                  {length5}
                </Text>
                <Button plain label="?" />
                <Text dimColor>
                  {" "}
                </Text>
              </Box>
              <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                <Text dimColor italic>
                  Claude is summarizing…
                </Text>
              </Box>
            </Box>
            <Box flexDirection="column">
              <Box gap={1}>
                <Text color="claude">
                  {mark6}
                </Text>
                <Text dimColor>
                  {day6}
                </Text>
                <Button plain label={`${title}`} />
                <Text dimColor>
                  {length6}
                </Text>
                <Button plain label="?" />
                <Text dimColor>
                  {" "}
                </Text>
              </Box>
              <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                <Text dimColor italic>
                  Claude is summarizing…
                </Text>
              </Box>
            </Box>
            <Text dimColor>
              No playable episodes in this feed.
            </Text>
            <Box gap={2}>
              <Button plain dimColor label="unsubscribe" />
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box justifyContent="space-between">
            <Button plain label={`▾ ${title}`} />
            <Text color="claude">
              {fresh3}
              {" new"}
            </Text>
          </Box>
          <Box flexDirection="column" paddingLeft={2}>
            <Box flexDirection="column">
              <Box gap={1}>
                <Text color="claude">
                  {mark7}
                </Text>
                <Text dimColor>
                  {day7}
                </Text>
                <Button plain label={`${title}`} />
                <Text dimColor>
                  {length7}
                </Text>
                <Button plain label="?" />
                <Text dimColor>
                  {" "}
                </Text>
              </Box>
              <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                <Text dimColor italic>
                  Claude is summarizing…
                </Text>
              </Box>
            </Box>
            <Box flexDirection="column">
              <Box gap={1}>
                <Text color="claude">
                  {mark8}
                </Text>
                <Text dimColor>
                  {day8}
                </Text>
                <Button plain label={`${title}`} />
                <Text dimColor>
                  {length8}
                </Text>
                <Button plain label="?" />
                <Text dimColor>
                  {" "}
                </Text>
              </Box>
              <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                <Text dimColor italic>
                  Claude is summarizing…
                </Text>
              </Box>
            </Box>
            <Box flexDirection="column">
              <Box gap={1}>
                <Text color="claude">
                  {mark9}
                </Text>
                <Text dimColor>
                  {day9}
                </Text>
                <Button plain label={`${title}`} />
                <Text dimColor>
                  {length9}
                </Text>
                <Button plain label="?" />
                <Text dimColor>
                  {" "}
                </Text>
              </Box>
              <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                <Text dimColor italic>
                  Claude is summarizing…
                </Text>
              </Box>
            </Box>
            <Text dimColor>
              No playable episodes in this feed.
            </Text>
            <Box gap={2}>
              <Button plain dimColor label="unsubscribe" />
            </Box>
          </Box>
        </Box>
        <Box marginTop={1} flexWrap="wrap" columnGap={2}>
          <Text dimColor>
            {item}
          </Text>
          <Text dimColor>
            {item2}
          </Text>
          <Text dimColor>
            {item3}
          </Text>
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const fresh = '…'
    const title = '…'
    const upNext = '…'
    await $.ui.toast(`New episodes: ${fresh}`)
    await $.ui.toast(`Finished ${title}. Up next: ${upNext}`)
    return next(e)
  })
}

Mod 自身のコード

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

hooks/register.tsx 815〜852 行 · バンド
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const { now } = await snapshot($)
    if (!now || e.props.hasSurvey) return next(e)

    const { Box, Text, Button } = $.ui.resolve(e)
    const below = await next(e)
    const width = e.props.bodyColumns
    const icon = now.isLoading ? '…' : now.isPaused ? '⏸' : '▶'
    const times = `${clock(now.pos)} / ${now.dur ? clock(now.dur) : '--:--'}`
    const bar = progressBar(now.pos, now.dur, Math.max(10, width - times.length - 2))

    return (
      <Box flexDirection="column">
        {/* The right edge stays clear for the band's own marker. */}
        <Box justifyContent="space-between" paddingRight={4}>
          <Text wrap="truncate">
            <Text color="claude">{icon} </Text>
            <Text bold>{now.show}</Text>
            <Text dimColor> — {now.title}</Text>
          </Text>
          <Box gap={1} flexShrink={0}>
            {/* The same keys as the pane, for when the band holds the focus (ctrl+x tab). */}
            <Button key="pod-back" plain hotkey="b" label="«15" onPress={() => seek($, -15)} />
            <Button key="pod-toggle" plain hotkey="p" label={now.isPaused ? 'play' : 'pause'} onPress={() => togglePause($)} />
            <Button key="pod-skip" plain hotkey="f" label="30»" onPress={() => seek($, 30)} />
            <Button key="pod-speed" plain hotkey="x" label={`${now.speed}×`} onPress={() => setSpeed($, nextSpeed(now.speed))} />
            <Button key="pod-stop" plain hotkey="s" dimColor label="stop" onPress={() => stopPlaying($)} />
          </Box>
        </Box>
        <Box>
          <Text color="claude">{bar.done}</Text>
          <Text dimColor>{bar.rest}</Text>
          <Text dimColor>  {times}</Text>
        </Box>
        {below}
      </Box>
    )
  })
hooks/register.tsx 854〜1006 行 · ペイン
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const { lib, heard, upNextItems, written, now } = await snapshot($)
    const v = await read($, view)
    const upNext = upNextItems.map(item => findEpisode(lib, item.guid)).filter(found => found !== null)
    const queued = new Set(upNext.map(found => found.ep.guid))
    const width = e.props.bodyColumns
    // A pane docked beside the conversation is narrow: the titles get the date's room.
    const isNarrow = width < 60

    return (
      <Box flexDirection="column">
        {/* The right edge stays clear for the pane's own close mark. */}
        <Box justifyContent="space-between" paddingRight={3}>
          <Text bold>Podcasts</Text>
          <Button key="refresh" plain dimColor label="refresh" onPress={() => refreshAll($, false)} />
        </Box>
        {now ? (
          <Box flexDirection="column" marginY={1} borderStyle="round" borderColor="claude" paddingX={1}>
            <Text wrap="truncate">
              <Text color="claude">{now.isLoading ? '…' : now.isPaused ? '⏸' : '▶'} </Text>
              <Text bold>{now.show}</Text>
            </Text>
            <Text wrap="truncate">{now.title}</Text>
            {(() => {
              const times = `${clock(now.pos)} / ${now.dur ? clock(now.dur) : '--:--'}`
              const bar = progressBar(now.pos, now.dur, Math.max(10, width - times.length - 6))
              return (
                <Box>
                  <Text color="claude">{bar.done}</Text>
                  <Text dimColor>{bar.rest}</Text>
                  <Text dimColor>  {times}</Text>
                </Box>
              )
            })()}
            <Box gap={2} flexWrap="wrap">
              <Button key="pane-back" plain hotkey="b" label="«15" onPress={() => seek($, -15)} />
              <Button key="pane-toggle" plain hotkey="p" label={now.isPaused ? 'play' : 'pause'} onPress={() => togglePause($)} />
              <Button key="pane-skip" plain hotkey="f" label="30»" onPress={() => seek($, 30)} />
              <Button key="pane-speed" plain hotkey="x" label={`${now.speed}×`} onPress={() => setSpeed($, nextSpeed(now.speed))} />
              {upNext.length ? <Button key="pane-next" plain hotkey="n" label="next" onPress={() => playNext($)} /> : null}
              <Button key="pane-stop" plain hotkey="s" dimColor label="stop" onPress={() => stopPlaying($)} />
            </Box>
          </Box>
        ) : null}
        {upNext.length ? (
          <Box flexDirection="column" marginBottom={1}>
            <Box justifyContent="space-between">
              <Text bold>Up next</Text>
              {!now ? <Button key="queue-start" plain label="play ▶" onPress={() => playNext($)} /> : null}
            </Box>
            {upNext.map((found, qi) => (
              <Box key={`queued-${qi}`} gap={1}>
                <Text dimColor>{qi + 1}.</Text>
                <Text wrap="truncate">
                  {fit(found.ep.title, Math.max(10, width - 24))}
                  <Text dimColor> · {fit(found.show.title, 14)}</Text>
                </Text>
                <Button key={`unqueue-${qi}`} plain dimColor label="×" onPress={() => unqueue($, found.ep.guid)} />
              </Box>
            ))}
          </Box>
        ) : null}
        {v.note ? <Text dimColor wrap="truncate">{v.note}</Text> : null}

        {v.results.length > 0 ? (
          <Box flexDirection="column" marginY={1}>
            {v.results.map((r, i) => (
              <Box key={`result-${i}`} gap={1}>
                <Button key={`sub-${i}`} plain label="+" onPress={() => subscribe($, r.feedUrl)} />
                <Text wrap="truncate">
                  {fit(r.title, width - 6)}
                  <Text dimColor> {r.author}</Text>
                </Text>
              </Box>
            ))}
            <Button key="clear-results" plain dimColor label="clear results"
              onPress={() => update($, view, vv => ({ ...vv, results: [], note: null }))} />
          </Box>
        ) : null}

        {lib.shows.length === 0 && v.results.length === 0 ? (
          <Text dimColor>No subscriptions yet. Try /pod add hardcore history</Text>
        ) : null}

        {lib.shows.map((show, si) => {
          const episodes = lib.episodes[show.feedUrl] ?? []
          const isOpen = v.openShow === show.feedUrl
          const fresh = unplayed(show, episodes, heard)
          return (
            <Box key={`show-${si}`} flexDirection="column">
              <Box justifyContent="space-between">
                <Button key={`open-${si}`} plain label={`${isOpen ? '▾' : '▸'} ${fit(show.title, width - 12)}`}
                  onPress={() => update($, view, vv => ({ ...vv, openShow: isOpen ? null : show.feedUrl }))} />
                {fresh ? <Text color="claude">{fresh} new</Text> : null}
              </Box>
              {isOpen ? (
                <Box flexDirection="column" paddingLeft={2}>
                  {episodes.slice(0, EPISODES_SHOWN).map((ep, ei) => {
                    const saved = heard[ep.guid]
                    const isPlaying = now?.guid === ep.guid
                    // ● only for what the show's "N new" counts; older unplayed episodes are a quiet ○
                    const isNew = !saved && isRecent(show, ep)
                    const mark = isPlaying ? '▶' : saved?.isDone ? '✓' : saved ? '◐' : isNew ? '●' : '○'
                    const isInfo = v.infoGuid === ep.guid
                    const about = written[ep.guid]
                    return (
                      <Box key={`ep-${si}-${ei}`} flexDirection="column">
                        <Box gap={1}>
                          <Text color={isPlaying || isNew ? 'claude' : undefined} dimColor={!isPlaying && (saved?.isDone || (!saved && !isNew))}>{mark}</Text>
                          {isNarrow ? null : <Text dimColor>{day(ep.date)}</Text>}
                          <Button key={`play-${si}-${ei}`} plain dimColor={saved?.isDone}
                            label={fit(ep.title, Math.max(10, width - (isNarrow ? 18 : 30)))} onPress={() => play($, show, ep)} />
                          <Text dimColor>{length(ep.duration)}</Text>
                          <Button key={`info-${si}-${ei}`} plain dimColor={!isInfo} label="?" onPress={() => toggleInfo($, ep.guid)} />
                          {queued.has(ep.guid) || isPlaying ? (
                            <Text dimColor> </Text>
                          ) : (
                            <Button key={`queue-${si}-${ei}`} plain dimColor label="+" onPress={() => enqueue($, ep.guid)} />
                          )}
                        </Box>
                        {isInfo ? (
                          <Box flexDirection="column" paddingLeft={4} marginBottom={1}>
                            {about === undefined || about === PENDING ? (
                              <Text dimColor italic>Claude is summarizing…</Text>
                            ) : (
                              <Text>{about}</Text>
                            )}
                          </Box>
                        ) : null}
                      </Box>
                    )
                  })}
                  {episodes.length === 0 ? <Text dimColor>No playable episodes in this feed.</Text> : null}
                  <Box gap={2}>
                    <Button key={`unsub-${si}`} plain dimColor label="unsubscribe" onPress={() => unsubscribe($, show.feedUrl)} />
                  </Box>
                </Box>
              ) : null}
            </Box>
          )
        })}

        {lib.shows.length ? (
          <Box marginTop={1} flexWrap="wrap" columnGap={2}>
            {['● new', '○ unplayed', '◐ started', '✓ played', '? about', '+ up next'].map(item => (
              <Text key={`key-${item}`} dimColor>{item}</Text>
            ))}
          </Box>
        ) : null}
      </Box>
    )
  })
ライセンスの全文(MIT)
MIT License

Copyright (c) 2026 Nathan Morton

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

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

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

入れる

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

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

/plugin marketplace add nmorton13/sidecast
/plugin install sidecast@sidecast

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

Claude に聞く

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

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

Claude から探す: MCP コネクタ

似たデザイン