modscode EN

modscode / 図鑑 / everythings

everythings

Everythings for Claude Code: workspace/thing MCP tools in every project, including asking you a question and picking up your answer later, the /things pane that follows what the agent writes, plus the /everythings:panel skill that opens yo…

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

何をするか

  • 欄を描く
  • /things を足す
  • mcp__everythings__show_thing の呼び出しを見張る(止めることがある)
  • session.start・ui.input・ui.press・ui.selectにフックする
  • ターンをまたいで自分の状態を持つ

良いところ

  • ネットワークに出ない
  • プロセスを起こさない
  • TypeScript で書かれている
  • デスクトップ専用の分岐がある

作り始めるためのコード

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

雛形(register.tsx)

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

// Drawn like everythings by Boris Babkin (pane), as modscode read it from the mod's code:
// https://modscode.com/gallery/bbabkin-everythings/
// 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: "Everythings" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Button, Text, Link, Markdown, Input } = $.ui.resolve(e)
    const line = '…'
    const line2 = '…'
    const line3 = '…'
    const rule = '…'
    const rule2 = '…'
    const rule3 = '…'
    const copyLabel = '…'
    const line4 = '…'
    const line5 = '…'
    const line6 = '…'
    const rule4 = '…'
    const rule5 = '…'
    const rule6 = '…'
    const emoji = '…'
    const name = '…'
    const emoji2 = '…'
    const emoji3 = '…'
    const length = '…'
    const count = '…'
    const label = '…'
    const agent = '…'
    const thingUrl = '…'
    const line7 = '…'
    const line8 = '…'
    const asked = '…'
    const content = '…'
    const createdBy = '…'
    const question = '…'
    const description = '…'
    const answered = '…'
    const rowLabel = '…'
    const authorName = '…'
    const byAgent = '…'
    const text = '…'
    const authorName2 = '…'
    const text2 = '…'
    const authorName3 = '…'
    const text3 = '…'
    const error = '…'
    const failure = '…'
    return (
      <Box flexDirection="column" rowGap={1}>
        <Box flexDirection="row" flexWrap="wrap" justifyContent="space-between" columnGap={2}>
          <Box flexShrink={1} />
          <Box flexDirection="row" columnGap={1}>
            <Button label="Follow: on" />
            <Button label="Loading…" />
          </Box>
        </Box>
        <Box flexDirection="column">
          <Text dimColor>
            {line}
          </Text>
          <Text dimColor>
            {line2}
          </Text>
          <Text dimColor>
            {line3}
          </Text>
          <Text>
            {rule}
          </Text>
          <Text>
            {rule2}
          </Text>
          <Text>
            {rule3}
          </Text>
          <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
            <Button label={`${copyLabel}`} />
            <Button label="Dismiss" />
          </Box>
        </Box>
        <Box flexDirection="column">
          <Text dimColor>
            {line4}
          </Text>
          <Text dimColor>
            {line5}
          </Text>
          <Text dimColor>
            {line6}
          </Text>
          <Text>
            {rule4}
          </Text>
          <Text>
            {rule5}
          </Text>
          <Text>
            {rule6}
          </Text>
          <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
            <Button label={`${copyLabel}`} />
            <Button label="Dismiss" />
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box flexDirection="row" flexWrap="wrap" columnGap={1} rowGap={0}>
            <Box flexDirection="column" alignItems="center" width={18} paddingX={1} borderStyle="round" borderDimColor>
              <Text>
                {emoji}
              </Text>
              <Button plain label={`${name}`} />
            </Box>
            <Box flexDirection="column" alignItems="center" width={18} paddingX={1} borderStyle="round" borderDimColor>
              <Text>
                {emoji2}
              </Text>
              <Button plain label={`${name}`} />
            </Box>
            <Box flexDirection="column" alignItems="center" width={18} paddingX={1} borderStyle="round" borderDimColor>
              <Text>
                {emoji3}
              </Text>
              <Button plain label={`${name}`} />
            </Box>
          </Box>
          <Text dimColor>
            {`Showing ${length} of ${count}.`}
          </Text>
        </Box>
        <Box flexDirection="column" rowGap={1}>
          <Box flexDirection="column">
            <Text bold>
              {label}
            </Text>
            <Text dimColor>
              {`by ${agent}`}
            </Text>
            <Link href={`${thingUrl}`} label="Open in app" />
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
              <Button variant="primary" label={`${label}`} />
              <Button variant="primary" label={`${label}`} />
              <Button variant="primary" label={`${label}`} />
            </Box>
            <Text dimColor>
              {line7}
            </Text>
          </Box>
          <Box flexDirection="column" rowGap={1}>
            <Text dimColor>
              {line8}
            </Text>
            <Text dimColor>
              {asked}
            </Text>
          </Box>
          <Markdown text={`${content}`} />
          <Text dimColor>
            Cut at 10,000 characters. Open it in the app for the rest.
          </Text>
          <Box flexDirection="column">
            <Text bold>
              {`Question from ${createdBy}`}
            </Text>
            <Text>
              {question}
            </Text>
            <Text>
              {`✓ ${label}: ${description}`}
            </Text>
            <Text>
              {`✓ ${label}: ${description}`}
            </Text>
            <Text>
              {`✓ ${label}: ${description}`}
            </Text>
            <Text>
              {answered}
            </Text>
            <Text dimColor>
              Waiting for an answer in the app.
            </Text>
            <Text dimColor>
              Dismissed.
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="column" alignItems="stretch" rowGap={1} paddingTop={1}>
              <Button label={`${rowLabel}`} />
              <Button label={`${rowLabel}`} />
              <Button label={`${rowLabel}`} />
            </Box>
            <Text dimColor>
              {`Showing ${length} of ${count}.`}
            </Text>
          </Box>
          <Box flexDirection="column" rowGap={1}>
            <Text dimColor>
              {`Comments (${count})`}
            </Text>
            <Box flexDirection="column" paddingLeft={2}>
              <Box flexDirection="row" columnGap={1}>
                <Text bold>
                  {authorName}
                </Text>
                <Text dimColor>
                  {`via ${byAgent}`}
                </Text>
              </Box>
              <Text>
                {text}
              </Text>
            </Box>
            <Box flexDirection="column" paddingLeft={2}>
              <Box flexDirection="row" columnGap={1}>
                <Text bold>
                  {authorName2}
                </Text>
                <Text dimColor>
                  {`via ${byAgent}`}
                </Text>
              </Box>
              <Text>
                {text2}
              </Text>
            </Box>
            <Box flexDirection="column" paddingLeft={2}>
              <Box flexDirection="row" columnGap={1}>
                <Text bold>
                  {authorName3}
                </Text>
                <Text dimColor>
                  {`via ${byAgent}`}
                </Text>
              </Box>
              <Text>
                {text3}
              </Text>
            </Box>
            <Text dimColor>
              More comments in the app.
            </Text>
            <Box flexDirection="column" paddingTop={1}>
              <Input placeholder="Add a comment" submitLabel="sending…" />
              <Text dimColor>
                {error}
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="row" columnGap={1}>
          <Text dimColor>
            {`Showing what this session's calls carried. ${failure}`}
          </Text>
          <Button label="Retry" />
        </Box>
      </Box>
    )
  })
}

Mod 自身のコード

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

plugins/everythings/hooks/register.tsx 161〜164 行 · ペイン
  on('ui.render', { component: 'Pane', requestId: 'everythings' }, async ($, e) => {
    const p = ports($);
    return drawPane($.ui.resolve(e), e.surface, await readSnapshot(p), paneActions(p));
  });
plugins/everythings/hooks/pane.tsx 126〜204 行 · ペイン
export function drawPane(
  els: ElementTable,
  surface: RenderSurface,
  snap: PaneSnapshot,
  act: PaneActions,
): RenderElement {
  const { Box, Text, Button } = els;
  const { view, load, cache, blocked, writes } = snap;
  const page = view.kind === 'thing' ? pageOf(cache, view.thingId) : null;
  const grid = view.kind === 'grid' ? gridOf(cache, view.workspaceId) : null;
  const landing = grid?.landing ?? null;
  const hasData = page !== null || (landing !== null && (landing.things.length > 0 || landing.isListed));

  const failure = load.error ?? (load.isNotConnected ? NOT_CONNECTED : null);
  const retry = <Button key="retry" label="Retry" onPress={act.refresh} />;
  // The pane will not fill this screen by itself: its reads are blocked, or the last one failed.
  const isSettled = blocked !== null || failure !== null;
  // Asking Claude helps then: its own calls reach the connector under whatever name it runs.
  const canAsk = isSettled;
  const isAsked = snap.asked !== null && snap.asked === askKey(view, cache);
  // The reads' note, then a refused write's, both when both are up.
  const readNote = blocked !== null && !snap.isNoteDismissed ? blocked : null;
  const writeNote = writes.blocked;

  // A screen with nothing to draw says why and offers to ask Claude for it.
  let unseen: RenderElement | null = null;
  if (grid !== null && !hasData && canAsk) {
    const workspaceId = landing?.workspaceId ?? null;
    unseen = drawAsk(els, {
      line: landing === null ? NOTHING_SEEN : WORKSPACE_UNLISTED,
      label: landing === null ? 'Ask Claude to show your workspace' : 'Ask Claude to list it',
      asked: landing === null ? WORKSPACE_ASKED_FIRST : WORKSPACE_ASKED,
      isAsked,
      onPress: () => act.ask({ kind: 'workspace', id: workspaceId }),
    });
  } else if (view.kind === 'thing' && !hasData && canAsk) {
    const thingId = view.thingId;
    unseen = drawAsk(els, {
      line: THING_NOT_SEEN,
      label: 'Ask Claude to open it',
      asked: THING_ASKED,
      isAsked,
      onPress: () => act.ask({ kind: 'thing', id: thingId }),
    });
  }

  // No server answered and the session's calls carried nothing: the notice, and the ask under it.
  if (load.isNotConnected && !hasData) {
    return (
      <Box flexDirection="column" rowGap={1}>
        <Box flexDirection="row" columnGap={1}>
          <Text>{NOT_CONNECTED}</Text>
          <Button key="retry" label="Retry" onPress={act.refresh} />
        </Box>
        {unseen}
      </Box>
    );
  }

  // A read in flight shows on the Refresh Button, and a failed read's line
  // sits below the page: neither adds or drops a line above the cards, so
  // nothing moves under the pointer while a read runs.
  return (
    <Box flexDirection="column" rowGap={1}>
      {drawHeader(els, surface, snap, page, grid, act)}
      {readNote !== null && drawNote(els, [BLOCKED_NOTE, UNBLOCK_HOW], readNote, 'reads', act)}
      {writeNote !== null && drawNote(els, [WRITE_UNBLOCK_HOW[writeNote.on]], writeNote, 'writes', act)}
      {unseen}
      {landing !== null && hasData && drawGrid(els, surface, landing, act)}
      {page !== null && drawThing(els, surface, page, writes, canAsk, isAsked, act)}
      {failure !== null && (
        <Box flexDirection="row" columnGap={1}>
          <Text dimColor>{hasData ? `${FROM_CALLS} ${failure}` : failure}</Text>
          {retry}
        </Box>
      )}
    </Box>
  );
}
plugins/everythings/hooks/pane.tsx 206〜273 行 · ペイン
function drawHeader(
  els: ElementTable,
  surface: RenderSurface,
  snap: PaneSnapshot,
  page: DrawnPage | null,
  grid: DrawnGrid | null,
  act: PaneActions,
): RenderElement {
  const { Box, Text, Button } = els;
  const { view, cache, isFollowing } = snap;
  const workspaces = grid?.workspaces ?? cache.workspaces;
  const current = grid?.landing?.workspaceId ?? view.workspaceId;
  // The phone draws no Select (its table has none to draw), so it gets Buttons.
  const Select = surface !== 'mobile' && 'Select' in els ? els.Select : null;
  const picked = workspaces.some(ws => ws.id === current) ? (current ?? undefined) : undefined;

  let left: RenderElement | null = null;
  if (view.kind === 'thing') {
    // The breadcrumb: the workspace's grid, then the thing this one sits under.
    const parent = page?.parent ?? null;
    left = (
      <Box flexDirection="row" columnGap={1} alignItems="center">
        <Button key="back" label={GRID_GLYPH} onPress={act.back} />
        {parent !== null && <Text dimColor>{CHEVRON}</Text>}
        {parent !== null && (
          <Button
            key="parent"
            label={label(parent.emoji, clip(parent.name, PARENT_NAME_CELLS))}
            onPress={() => act.openThing(parent.id)}
          />
        )}
      </Box>
    );
  } else if (workspaces.length > 0 && Select) {
    left = (
      <Select
        key="workspace"
        options={workspaces.map(ws => ({ value: ws.id, label: ws.name }))}
        value={picked}
        onSelect={act.openWorkspace}
      />
    );
  } else if (workspaces.length > 0) {
    left = (
      <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
        {workspaces.map(ws => (
          <Button
            key={`workspace:${ws.id}`}
            plain
            dimColor={ws.id !== current}
            label={ws.name}
            onPress={() => act.openWorkspace(ws.id)}
          />
        ))}
      </Box>
    );
  }

  return (
    <Box flexDirection="row" flexWrap="wrap" justifyContent="space-between" columnGap={2}>
      <Box flexShrink={1}>{left}</Box>
      <Box flexDirection="row" columnGap={1}>
        <Button key="follow" label={isFollowing ? 'Follow: on' : 'Follow: paused'} onPress={act.toggleFollow} />
        <Button key="refresh" label={snap.load.isLoading ? 'Loading…' : 'Refresh'} onPress={act.refresh} />
      </Box>
    </Box>
  );
}
plugins/everythings/hooks/pane.tsx 282〜313 行 · ペイン
function drawNote(
  els: ElementTable,
  lines: string[],
  blocked: EverythingsBlocked,
  on: 'reads' | 'writes',
  act: PaneActions,
): RenderElement {
  const { Box, Text, Button } = els;
  const prefix = on === 'reads' ? '' : 'write-';
  return (
    <Box flexDirection="column">
      {lines.map(line => (
        <Text dimColor>{line}</Text>
      ))}
      {blocked.rules.map(rule => (
        <Text>{rule}</Text>
      ))}
      <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
        <Button
          key={`copy-${prefix}rules`}
          label={copyLabel(blocked)}
          onPress={press => act.copyRules(on, press.surface)}
        />
        <Button
          key={`dismiss-${prefix}note`}
          label="Dismiss"
          onPress={on === 'reads' ? act.dismissNote : act.dismissWriteNote}
        />
      </Box>
    </Box>
  );
}
plugins/everythings/hooks/pane.tsx 444〜458 行 · ペイン
function drawGrid(
  els: ElementTable,
  surface: RenderSurface,
  landing: NonNullable<DrawnGrid['landing']>,
  act: PaneActions,
): RenderElement {
  const { Box, Text } = els;
  if (landing.things.length === 0) return <Text dimColor>This workspace is empty.</Text>;
  return (
    <Box flexDirection="column">
      {drawCards(els, surface, landing.things, act)}
      {landing.truncated && <Text dimColor>{`Showing ${landing.things.length} of ${landing.count}.`}</Text>}
    </Box>
  );
}
plugins/everythings/hooks/pane.tsx 343〜379 行 · ペイン
function drawCards(
  els: ElementTable,
  surface: RenderSurface,
  refs: EverythingsThingRef[],
  act: PaneActions,
): RenderElement {
  const { Box, Text, Button } = els;
  const isTerminal = surface === 'terminal';
  return (
    <Box flexDirection="row" flexWrap="wrap" columnGap={1} rowGap={isTerminal ? 0 : 1}>
      {refs.map(ref => {
        const emoji = ref.emoji ?? NO_EMOJI;
        const name = clip(ref.name, CARD_NAME_CELLS);
        const open = () => act.openThing(ref.id);
        return isTerminal ? (
          <Box
            key={`card:${ref.id}`}
            flexDirection="column"
            alignItems="center"
            width={CARD_WIDTH}
            paddingX={1}
            borderStyle="round"
            borderDimColor
            hover={{ borderColor: 'cyan', borderDimColor: false }}
          >
            <Text>{emoji}</Text>
            <Button key={`tile:${ref.id}`} plain label={name} onPress={open} />
          </Box>
        ) : (
          <Box key={`card:${ref.id}`} flexDirection="column" alignItems="stretch" width={CARD_WIDTH}>
            <Button key={`tile:${ref.id}`} label={`${emoji}\n${name}`} onPress={open} />
          </Box>
        );
      })}
    </Box>
  );
}
ライセンスの全文(MIT)
MIT License

Copyright (c) 2026 Boris Babkin

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

載せる条件: 確かめやすいコード
入口を読んだhooks/hooks.json が名指すモジュールをすべて読んだ。plugins/everythings/hooks/register.tsx
解析できるすべてのファイルが TypeScript か JavaScript として解析できる。12 ファイルを解析
コードが 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 bbabkin/everythings-claude
/plugin install everythings@everythings-claude

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

Claude に聞く

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

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

Claude から探す: MCP コネクタ

似たデザイン