sidebar
Shows the model's real output speed, token and prompt-cache stats in a docked sidebar beside the transcript.
何をするか
- プロンプトの上の帯・欄を描く
- /sidebar を足す
- ツールの呼び出しを見張る(止めることがある)
- session.start・turn.step・ui.closeにフックする
- ターンをまたいで自分の状態を持つ
良いところ
- ネットワークに出ない
- TypeScript で書かれている
- デスクトップ専用の分岐がある
- エラーを扱う
作り始めるためのコード
2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。
雛形(register.tsx)
import type { Register } from 'claude-code'
// Drawn like sidebar by Fayeque Peerzade (pane, band), as modscode read it from the mod's code:
// https://modscode.com/gallery/fayequep-sidebar/
// 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 } = $.ui.resolve(e)
return (
<Box flexDirection="column">
<Box>
<Button label="Show sidebar ctrl+x s" plain dimColor action="app:toggleReplTab" />
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "sidebar" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Svg, Button } = $.ui.resolve(e)
const label = '…'
const right = '…'
const svg = '…'
const r = '…'
const spinnerFrame = '…'
const title = '…'
const formatElapsed = '…'
const spinnerFrame2 = '…'
const title2 = '…'
const formatElapsed2 = '…'
const spinnerFrame3 = '…'
const title3 = '…'
const formatElapsed3 = '…'
const more = '…'
const label2 = '…'
const right2 = '…'
const label3 = '…'
const right3 = '…'
const label4 = '…'
const value = '…'
const label5 = '…'
const value2 = '…'
const label6 = '…'
const value3 = '…'
const label7 = '…'
const value4 = '…'
const label8 = '…'
const value5 = '…'
const label9 = '…'
const value6 = '…'
const label10 = '…'
const value7 = '…'
const label11 = '…'
const right4 = '…'
const label12 = '…'
const value8 = '…'
const validText = '…'
const source = '…'
const label13 = '…'
const right5 = '…'
const label14 = '…'
const value9 = '…'
const label15 = '…'
const value10 = '…'
const label16 = '…'
const right6 = '…'
const label17 = '…'
const value11 = '…'
const label18 = '…'
const value12 = '…'
const label19 = '…'
const value13 = '…'
const compact = '…'
const compact2 = '…'
return (
<Box flexDirection="column" width="100%" paddingLeft={1} paddingRight={2} paddingTop={1}>
<Box flexDirection="column" width="100%" marginBottom={1}>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text bold>
{label}
</Text>
<Text bold color="#7aa2f7">
{right}
</Text>
</Box>
<Box width="100%">
<Svg source={`${svg}`} alt={`${r}%`} height={14} />
</Box>
<Box flexDirection="column" width="100%">
<Box flexDirection="row" width="100%">
<Text color="#e07a7a">
{spinnerFrame}
{" "}
</Text>
<Text wrap="truncate" color="#8b919a">
{title}
</Text>
<Box flexGrow={1} justifyContent="flex-end">
<Text color="#8b919a">
{" "}
{formatElapsed}
</Text>
</Box>
</Box>
<Box flexDirection="row" width="100%">
<Text color="#e07a7a">
{spinnerFrame2}
{" "}
</Text>
<Text wrap="truncate" color="#8b919a">
{title2}
</Text>
<Box flexGrow={1} justifyContent="flex-end">
<Text color="#8b919a">
{" "}
{formatElapsed2}
</Text>
</Box>
</Box>
<Box flexDirection="row" width="100%">
<Text color="#e07a7a">
{spinnerFrame3}
{" "}
</Text>
<Text wrap="truncate" color="#8b919a">
{title3}
</Text>
<Box flexGrow={1} justifyContent="flex-end">
<Text color="#8b919a">
{" "}
{formatElapsed3}
</Text>
</Box>
</Box>
<Text color="#8b919a">
+
{more}
{" more"}
</Text>
</Box>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text bold>
{label2}
</Text>
<Text bold color="#7aa2f7">
{right2}
</Text>
</Box>
<Box width="100%">
<Svg source={`${svg}`} alt={`${r}%`} height={14} />
</Box>
<Text color="#8b919a">
— / —
{" tokens"}
</Text>
<Box height={1} />
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text bold>
{label3}
</Text>
<Text bold color="#7aa2f7">
{right3}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label4}
</Text>
<Text color="#8b919a">
{value}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label5}
</Text>
<Text color="#8b919a">
{value2}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label6}
</Text>
<Text color="#8b919a">
{value3}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label7}
</Text>
<Text color="#8b919a">
{value4}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text>
Total
</Text>
<Text bold>
0000
</Text>
</Box>
<Box flexDirection="column" width="100%">
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label8}
</Text>
<Text color="#8b919a">
{value5}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label9}
</Text>
<Text color="#8b919a">
{value6}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label10}
</Text>
<Text color="#8b919a">
{value7}
</Text>
</Box>
</Box>
<Box height={1} />
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text bold>
{label11}
</Text>
<Text bold color="#7aa2f7">
{right4}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label12}
</Text>
<Text color="#8b919a">
{value8}
</Text>
</Box>
<Box width="100%">
<Svg source={`${svg}`} alt={`${r}%`} height={14} />
</Box>
<Box height={1} />
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
Expires in
</Text>
<Text>
<Text>
{validText}
</Text>
<Text color="#8b919a">
{" / "}
1h
</Text>
</Text>
</Box>
<Box width="100%">
<Svg source={`${svg}`} alt={`${r}%`} height={14} />
</Box>
<Text color="#8b919a">
1h
{" cache · "}
{source}
</Text>
<Box height={1} />
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text bold>
{label13}
</Text>
<Text bold color="#7aa2f7">
{right5}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label14}
</Text>
<Text color="#8b919a">
{value9}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label15}
</Text>
<Text color="#8b919a">
{value10}
</Text>
</Box>
<Box height={1} />
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text bold>
{label16}
</Text>
<Text bold color="#7aa2f7">
{right6}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label17}
</Text>
<Text color="#8b919a">
{value11}
</Text>
</Box>
<Box flexDirection="column" width="100%">
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label18}
</Text>
<Text color="#8b919a">
{value12}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
{label19}
</Text>
<Text color="#8b919a">
{value13}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color="#8b919a">
Lines
</Text>
<Text>
<Text color="#8fbf7a">
+
{compact}
</Text>
<Text color="#8b919a">
{" "}
</Text>
<Text color="#e07a7a">
−
{compact2}
</Text>
</Text>
</Box>
</Box>
<Box flexGrow={1} minHeight={1} />
<Button label="Hide sidebar ctrl+x s" plain dimColor action="app:toggleReplTab" />
</Box>
)
})
}
Mod 自身のコード
Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。
hooks/register.tsx 241〜249 行 · バンド
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (isOpen || e.props.hasSurvey) return next(e)
const { Box, Button } = (await $.ui.resolve(e)) as any
return (
<Box>
<Button key="toggle" label="Show sidebar ctrl+x s" plain dimColor action={TOGGLE_ACTION} onPress={() => toggle($)} />
</Box>
)
})hooks/register.tsx 339〜498 行 · ペイン
on('ui.render', { component: 'Pane' }, async ($, e, next) => {
if (e.requestId !== 'meter') return next(e)
// Being drawn means it is open. An unasked open below 144 columns waits
// ({ isPlaced: false }) and is seated later, after session.start already
// recorded it closed; without this the band's "Show sidebar" lingers.
if (!isOpen) {
isOpen = true
$.ui.invalidate('ui.render') // drop the band's show button
}
const els = (await $.ui.resolve(e)) as any // Svg exists on desktop, not terminal
const { Box, Text } = els
// CONTEXT figures from the session usage (same source as the status line).
let contextPct: number | null = null
let contextLine = '— / —'
let rateLimits: { kind: string; percentUsed: number }[] = []
let costUsd: number | undefined
try {
const usage = await $.session.usage()
rateLimits = usage?.rateLimits ?? []
costUsd = usage?.cost?.usd
limitUse = trackLimitUse(limitUse, rateLimits)
if (usage && usage.context && usage.context.window) {
const used = usage.context.tokens ?? 0
contextPct = used / usage.context.window
contextLine = `${compact(used)} / ${compact(usage.context.window)}`
}
} catch {
// a test or a build without session.usage: draw without context
}
// Prompt-cache TTL of the main conversation, resolved as Claude Code does.
const [envTtl, force5m, enable1h, settings] = await Promise.all([
$.env.get('CLAUDE_CODE_PROMPT_CACHE_TTL').catch(() => undefined),
$.env.get('FORCE_PROMPT_CACHING_5M').catch(() => undefined),
$.env.get('ENABLE_PROMPT_CACHING_1H').catch(() => undefined),
$.settings.read().catch(() => ({}) as Record<string, unknown>),
])
const ttl = resolveTtl({
envTtl,
force5m,
enable1h,
setting: settings.promptCacheTtl,
rateLimits,
})
const ttlMin = ttl.minutes
const now = await $.clock.now()
if (now - gitAt > 5000) {
gitAt = now
await pollGit($)
}
const remaining = last ? ttlMin * 60_000 - (now - last.at) : null
const remainingRatio = remaining !== null ? remaining / (ttlMin * 60_000) : 0
let workspace = ''
try {
workspace = await $.session.cwd()
} catch {
// keep defaults
}
const workspaceName = workspace ? workspace.replace(/\\/g, '/').split('/').filter(Boolean).pop() ?? '' : '—'
const liveStats = live ?? last
const rate = hitRate()
const contextBarRatio = contextPct ?? 0
const ctxPctText = contextPct === null ? '—' : `${(contextPct * 100).toFixed(1)}%`
const rateText = rate === null ? '—' : `${(rate * 100).toFixed(1)}%`
const validText = remaining === null ? '—' : formatCountdown(remaining)
const speedText = liveStats && liveStats.tps > 0 ? formatTps(liveStats.tps) : '—'
// Expiry is the one value that changes meaning near zero: color it then.
const expiryColor = remaining === null ? C.muted : remaining < 30_000 ? C.bad : remaining < 90_000 ? C.warn : undefined
const el = els
const barW = Math.max(10, (e.props.bodyColumns || 30) - 3) // minus paddingLeft 1 + paddingRight 2
// Main-screen terminal seats the pane inline above the prompt, full width:
// a sidebar layout there is a takeover, so draw a compact strip instead.
if (e.props.placement === 'inline') {
const dot = <Text color={C.track}> · </Text>
return (
<Box flexDirection="column" width="100%">
<Box flexDirection="row" width="100%" flexWrap="wrap">
<Text color={C.muted}>Context </Text>
<Bar ratio={contextBarRatio} color={C.accent} width={16} surface={e.surface} el={el} />
<Text bold color={C.accent}> {ctxPctText}</Text>
{dot}
<Text color={C.muted}>Cache </Text><Text>{rateText}</Text>
<Text color={C.muted}> expires </Text><Text color={expiryColor}>{validText}</Text>
{dot}
<Text color={C.muted}>Speed </Text><Text>{speedText}</Text>
{dot}
<Text color={C.muted}>Total </Text>
<Text>{compact(sums.input + sums.output + sums.cacheRead + sums.cacheWrite)}</Text>
</Box>
<Text color={C.muted}>Run /tui fullscreen to dock this as a sidebar.</Text>
</Box>
)
}
const gap = <Box height={1} />
return (
<Box flexDirection="column" width="100%" minHeight={e.props.scroll?.bodyRows} paddingLeft={1} paddingRight={2} paddingTop={1}>
{tasks.length > 0 ? (
<Box flexDirection="column" width="100%" marginBottom={1}>
<Title label="Tasks" right={`${taskDone(tasks)}/${tasks.length}${taskFailed(tasks) ? ` · ${taskFailed(tasks)} ✗` : ''}`} el={el} />
<Bar ratio={(taskDone(tasks) + taskFailed(tasks)) / tasks.length} color={C.accent} width={barW} surface={e.surface} el={el} />
<TaskRows tasks={tasks} starts={taskStarts} now={now} el={el} />
</Box>
) : undefined}
<Title label="Context" right={ctxPctText} el={el} />
<Bar ratio={contextBarRatio} color={C.accent} width={barW} surface={e.surface} el={el} />
<Text color={C.muted}>{contextLine} tokens</Text>
{gap}
<Title label="Tokens" el={el} />
<Row label="Input" value={compact(sums.input)} el={el} />
<Row label="Output" value={compact(sums.output)} el={el} />
<Row label="Cache read" value={compact(sums.cacheRead)} el={el} />
<Row label="Cache write" value={compact(sums.cacheWrite)} el={el} />
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text>Total</Text>
<Text bold>{compact(sums.input + sums.output + sums.cacheRead + sums.cacheWrite)}</Text>
</Box>
{/* What this session spent, in the unit the person pays in: a share of
the plan's limits on a subscription, dollars on an API key. */}
{rateLimits.length > 0 ? (
<Box flexDirection="column" width="100%">
{LIMIT_ROWS.filter(([kind]) => limitUse.has(kind)).map(([kind, label]) => (
<Row key={`limit-${kind}`} label={label} value={formatShare(sessionShare(limitUse.get(kind)!))} el={el} />
))}
</Box>
) : costUsd !== undefined && costUsd > 0 ? ( // > 0: before the first reply, a subscriber has no readings yet
<Row label="Cost" value={formatUsd(costUsd)} el={el} />
) : undefined}
{gap}
<Title label="Cache" el={el} />
<Row label="Hit rate" value={rateText} el={el} color={C.accent} />
<Bar ratio={rate ?? 0} color={C.accent} width={barW} surface={e.surface} el={el} />
{gap}
<Box flexDirection="row" justifyContent="space-between" width="100%">
<Text color={C.muted}>Expires in</Text>
<Text>
<Text color={expiryColor}>{validText}</Text>
<Text color={C.muted}> / {ttlMin === 60 ? '1h' : '5m'}</Text>
</Text>
</Box>
<Bar ratio={remainingRatio} color={expiryColor ?? C.accent} width={barW} surface={e.surface} el={el} />
{/* Which rule set the TTL, on its own line: beside the time it overflowed a narrow pane. */}
<Text color={C.muted}>{ttlMin === 60 ? '1h' : '5m'} cache · {ttl.source}</Text>
{gap}
<Title label="Speed" el={el} />
<Row label="First token" value={formatTtft(liveStats?.ttftMs ?? null)} el={el} />
<Row label="Output" value={speedText} el={el} />
{gap}
<Title label="Workspace" el={el} />
<Row label="Folder" value={workspaceName} el={el} />hooks/register.tsx 87〜108 行 · ペイン
function Bar(props: { ratio: number; color: string; width: number; surface: string; el: any }) {
const { ratio, color, width, surface, el } = props
const r = Math.max(0, Math.min(1, ratio))
if (surface === 'terminal') {
const { fill, track } = smoothBar(r, width)
return (
<el.Text>
<el.Text color={color}>{fill}</el.Text>
<el.Text color={C.track}>{track}</el.Text>
</el.Text>
)
}
const w = Math.round(r * 1000)
// 8px pill centred in 14px: the transparent margin spaces rows on desktop.
// rx is wider than ry because the 1000-wide viewBox is squeezed to the pane.
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="14" viewBox="0 0 1000 14" preserveAspectRatio="none"><rect y="3" width="1000" height="8" rx="10" ry="4" fill="${C.track}"/>${w > 0 ? `<rect y="3" width="${Math.max(w, 20)}" height="8" rx="10" ry="4" fill="${color}"/>` : ''}</svg>`
return (
<el.Box width="100%">
<el.Svg source={svg} alt={`${Math.round(r * 100)}%`} height={14} />
</el.Box>
)
}hooks/register.tsx 110〜118 行 · ペイン
function Title(props: { label: string; right?: string; el: any }) {
const { label, right, el } = props
return (
<el.Box flexDirection="row" justifyContent="space-between" width="100%">
<el.Text bold>{label}</el.Text>
{right !== undefined ? <el.Text bold color={C.accent}>{right}</el.Text> : undefined}
</el.Box>
)
}hooks/register.tsx 650〜680 行 · ペイン
function TaskRows(props: { tasks: Task[]; starts: Map<string, number>; now: number; el: any }) {
const { tasks, starts, now, el } = props
const { rows, more } = visibleTasks(tasks)
return (
<el.Box flexDirection="column" width="100%">
{rows.map(t => {
const failed = t.status === 'completed' ? failedTitle(t.title) : null
return (
<el.Box key={`task-${t.id}`} flexDirection="row" width="100%">
<el.Text color={failed !== null ? C.bad : t.status === 'completed' ? C.ok : t.status === 'in_progress' ? C.accent : C.muted}>
{t.status === 'in_progress' ? spinnerFrame(now) : failed !== null ? '✗' : TASK_MARK[t.status]}{' '}
</el.Text>
<el.Text
wrap="truncate"
bold={t.status === 'in_progress'}
color={t.status === 'in_progress' ? undefined : C.muted}
>
{t.status === 'in_progress' ? (t.active ?? t.title) : (failed ?? t.title)}
</el.Text>
{t.status === 'in_progress' && starts.has(taskKey(t)) ? (
<el.Box flexGrow={1} justifyContent="flex-end">
<el.Text color={C.muted}> {formatElapsed(now - starts.get(taskKey(t))!)}</el.Text>
</el.Box>
) : undefined}
</el.Box>
)
})}
{more > 0 ? <el.Text color={C.muted}>+{more} more</el.Text> : undefined}
</el.Box>
)
}hooks/register.tsx 120〜128 行 · ペイン
function Row(props: { label: string; value: string; el: any; color?: string; dim?: boolean }) {
const { label, value, el, color, dim } = props
return (
<el.Box flexDirection="row" justifyContent="space-between" width="100%">
<el.Text color={C.muted}>{label}</el.Text>
<el.Text color={dim ? C.muted : color}>{value}</el.Text>
</el.Box>
)
}ライセンスの全文(MIT)
MIT License Copyright (c) 2026 Fayeque Peerzade 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.
コードが呼ぶもの
プログラム起動環境変数ツール呼び出し保存
コードから読み取ったデザイン
読み取ったコミットのソースから描いたもので、動かした結果ではありません。一覧は 3 回描き、条件はデスクトップアプリで描く最初の分岐を取り、動かしたときにだけ決まる値は仮の例(点線の下線)にするか省きます。色と書体はこのサイトのものです。
コードから読めること
2026-10-06 に読んだコミット 8e99b63fcf66 のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。
| 載せる条件: 確かめやすいコード | |
|---|---|
| 入口を読んだ | hooks/hooks.json が名指すモジュールをすべて読んだ。hooks/register.tsx |
| 解析できる | すべてのファイルが TypeScript か JavaScript として解析できる。1 ファイルを解析 |
| コードが 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 のホスト)がコードに書いてあるか。通信なし |
| プログラム | 起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。git(通信する) |
| 読んで送る | ファイルや環境変数を読み、かつ通信するか。読んだうえで通信する |
| ソースの鍵 | ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし |
| ライセンス | オープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT |
コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件
入れる
入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。
リポジトリがそのままマーケットプレイスです。このマーケットプレイスを足し(ターミナルでは次のコマンド、デスクトップアプリではプラグインの設定)、そこから Mod を入れます。
/plugin marketplace add FayequeP/sidebar/plugin install sidebar@claude-mod-sidebar入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(8e99b63fcf66)と違うことがあります。入れる前に見比べてください。
Claude に聞く
modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:
modscode のデザイン「fayequep-sidebar」をコードごと読んで、同じようなペインを作って似たデザイン
-
Claude に頼む…AgentsFix loginExpand≈$1.24 · 12.4k tokens · 2h 10mNo subagents yet.Running · 3▸ Finished · 3Planned · 3▢ 3. Fix login ◷ Plan · · after Planned▢ 3. Fix login ◷ Plan · · after Planned▢ 3. Fix login ◷ Plan · · after Planned
-
Claude に頼む…Fix loginRemoveCopy markdownacme/app · mainCopy linkCopy markdownbuild2h 10mbuild2h 10mbuild2h 10mHosted on uploads.sh, not committed to the repo.They will appear in a comment on the pull request once opened.
-
何をするか
- プロンプトの上の帯・欄を描く
- /progress を足す
- ツールの呼び出しを見張る(止めることがある)
- classic.SessionStart・prompt.compose・prompt.submit・session.start ほか 2 個にフックする
-
Claude に頼む…Skins0 Your promptadd rate limiting to the hub api0 Tool rows: finished, running, failedYour prompt Spinner0 Folded group of reads and searches●main · note 3 · note 3 · note 30 Edit diff cardDesktop only; the terminal keeps Claude Code's diff.0 Shell output cardDesktop only.0 Code block cardDesktop only; the terminal keeps Claude Code's markdown.0 TableAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopy0 SpinnerAccent SpinnerSpinnerSpinner… 2h 10m0 Band above the prompt: normal, then nudging to compact█████░░░ 42% build█████░░░ 42% build█████░░░ 42% buildContext is 42% full0 Compact now0 Band above a questionTable BashBashBash0 Turn footer (terminal)3 build in 2h 10m · Grep · +3 −3
-
spending-effort-with-jev: no TypeSafe API key, so effort tips are off. Set it in /plugin.⚠ effort: long run, fuzzy spec → have Claude interview you, then go maxClaude に頼む…
-
Claude に頼む…Deck style3 Edit
← now
3 Edit← now
Press Read to choose · Esc to close3 Edit← now