foreman
Live view of a foreman program: lanes, agents, stalls, what needs you, and memory
何をするか
- プロンプトの上の帯・欄・トーストを描く
- /lanes を足す
- mcp__foreman__report の呼び出しを見張る
- prompt.compose・session.end・session.start・turn.completeにフックする
- プロセスを起こす
良いところ
- ネットワークに出ない
- TypeScript で書かれている
- エラーを扱う
作り始めるためのコード
2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。
雛形(register.tsx)
import type { Register } from 'claude-code'
// Drawn like foreman by Stella Inwood (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/kodingdev-foreman/
// 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 item = '…'
const item2 = '…'
const item3 = '…'
const hiddenCount = '…'
return (
<Box flexDirection="column">
<Text color="yellow" wrap="truncate-end">
{item}
</Text>
<Text color="yellow" wrap="truncate-end">
{item2}
</Text>
<Text color="yellow" wrap="truncate-end">
{item3}
</Text>
<Box>
<Text dimColor>
+
{hiddenCount}
{" more "}
</Text>
<Button label="Open lanes" />
<Button label="Clear denials" />
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Foreman" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Markdown } = $.ui.resolve(e)
const countOf = '…'
const eta = '…'
const name = '…'
const need = '…'
const need2 = '…'
const need3 = '…'
const lane = '…'
const title = '…'
const eta2 = '…'
const status = '…'
const formatElapsed = '…'
const formatElapsed2 = '…'
const doneCount = '…'
const length = '…'
const summary = '…'
const TODO_MARKS = '…'
const text = '…'
const eta3 = '…'
const TODO_MARKS2 = '…'
const text2 = '…'
const eta4 = '…'
const TODO_MARKS3 = '…'
const text3 = '…'
const eta5 = '…'
const label = '…'
const value = '…'
const label2 = '…'
const value2 = '…'
const label3 = '…'
const value3 = '…'
const footer = '…'
const lane2 = '…'
const title2 = '…'
const eta6 = '…'
const status2 = '…'
const formatElapsed3 = '…'
const formatElapsed4 = '…'
const doneCount2 = '…'
const length2 = '…'
const TODO_MARKS4 = '…'
const text4 = '…'
const eta7 = '…'
const TODO_MARKS5 = '…'
const text5 = '…'
const eta8 = '…'
const TODO_MARKS6 = '…'
const text6 = '…'
const eta9 = '…'
const label4 = '…'
const value4 = '…'
const label5 = '…'
const value5 = '…'
const label6 = '…'
const value6 = '…'
const footer2 = '…'
const lane3 = '…'
const title3 = '…'
const eta10 = '…'
const status3 = '…'
const formatElapsed5 = '…'
const formatElapsed6 = '…'
const doneCount3 = '…'
const length3 = '…'
const TODO_MARKS7 = '…'
const text7 = '…'
const eta11 = '…'
const TODO_MARKS8 = '…'
const text8 = '…'
const eta12 = '…'
const TODO_MARKS9 = '…'
const text9 = '…'
const eta13 = '…'
const label7 = '…'
const value7 = '…'
const label8 = '…'
const value8 = '…'
const label9 = '…'
const value9 = '…'
const footer3 = '…'
const formatElapsed7 = '…'
const name2 = '…'
const formatElapsed8 = '…'
const name3 = '…'
const formatElapsed9 = '…'
const tool = '…'
const formatElapsed10 = '…'
const reason = '…'
const tool2 = '…'
const formatElapsed11 = '…'
const reason2 = '…'
const tool3 = '…'
const formatElapsed12 = '…'
const reason3 = '…'
const totalRssGb = '…'
return (
<Box flexDirection="column" gap={1}>
<Box justifyContent="space-between">
<Text bold wrap="truncate-end">
No program
</Text>
<Text dimColor>
{countOf}
<Text color="cyan">
{" ETA "}
{eta}
</Text>
</Text>
</Box>
<Box gap={1}>
<Text dimColor>
switch
</Text>
<Button label={`${name}`} plain />
<Button label={`${name}`} plain />
<Button label={`${name}`} plain />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="yellow" paddingX={1}>
<Text bold color="yellow">
Needs you
</Text>
<Text wrap="truncate-end">
{need}
</Text>
<Text wrap="truncate-end">
{need2}
</Text>
<Text wrap="truncate-end">
{need3}
</Text>
</Box>
<Text dimColor>
No lanes yet. Agents send them with the report tool.
</Text>
<Box flexDirection="column" borderStyle="round" borderColor="red" paddingX={1}>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text bold>
{lane}
</Text>
<Text dimColor>
{" "}
{title}
</Text>
</Text>
<Text color="cyan">
{eta2}
</Text>
</Box>
<Text wrap="truncate-end">
<Text color="red">
{status}
</Text>
<Text dimColor>
{" "}
{"for "}
{formatElapsed}
{", updated "}
{formatElapsed2}
{" ago"}
</Text>
</Text>
<Text>
<Text color="green">
########........
</Text>
<Text dimColor>
{" "}
{doneCount}
/
{length}
{" done"}
</Text>
</Text>
<Box marginTop={1}>
<Markdown text={`${summary}`} />
</Box>
<Box flexDirection="column" marginTop={1}>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text color="cyan">
{TODO_MARKS}
</Text>
{" "}
{text}
</Text>
<Text dimColor>
{eta3}
</Text>
</Box>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text color="cyan">
{TODO_MARKS2}
</Text>
{" "}
{text2}
</Text>
<Text dimColor>
{eta4}
</Text>
</Box>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text color="cyan">
{TODO_MARKS3}
</Text>
{" "}
{text3}
</Text>
<Text dimColor>
{eta5}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text wrap="truncate-end">
<Text dimColor>
{label}
{" "}
</Text>
{value}
<Text dimColor>
{" seen"}
</Text>
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{label2}
{" "}
</Text>
{value2}
<Text dimColor>
{" seen"}
</Text>
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{label3}
{" "}
</Text>
{value3}
<Text dimColor>
{" seen"}
</Text>
</Text>
</Box>
<Box marginTop={1}>
<Text dimColor wrap="truncate-end">
{footer}
</Text>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="red" paddingX={1}>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text bold>
{lane2}
</Text>
<Text dimColor>
{" "}
{title2}
</Text>
</Text>
<Text color="cyan">
{eta6}
</Text>
</Box>
<Text wrap="truncate-end">
<Text color="red">
{status2}
</Text>
<Text dimColor>
{" "}
{"for "}
{formatElapsed3}
{", updated "}
{formatElapsed4}
{" ago"}
</Text>
</Text>
<Text>
<Text color="green">
########........
</Text>
<Text dimColor>
{" "}
{doneCount2}
/
{length2}
{" done"}
</Text>
</Text>
<Box marginTop={1}>
<Markdown text={`${summary}`} />
</Box>
<Box flexDirection="column" marginTop={1}>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text color="cyan">
{TODO_MARKS4}
</Text>
{" "}
{text4}
</Text>
<Text dimColor>
{eta7}
</Text>
</Box>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text color="cyan">
{TODO_MARKS5}
</Text>
{" "}
{text5}
</Text>
<Text dimColor>
{eta8}
</Text>
</Box>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text color="cyan">
{TODO_MARKS6}
</Text>
{" "}
{text6}
</Text>
<Text dimColor>
{eta9}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text wrap="truncate-end">
<Text dimColor>
{label4}
{" "}
</Text>
{value4}
<Text dimColor>
{" seen"}
</Text>
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{label5}
{" "}
</Text>
{value5}
<Text dimColor>
{" seen"}
</Text>
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{label6}
{" "}
</Text>
{value6}
<Text dimColor>
{" seen"}
</Text>
</Text>
</Box>
<Box marginTop={1}>
<Text dimColor wrap="truncate-end">
{footer2}
</Text>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="red" paddingX={1}>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text bold>
{lane3}
</Text>
<Text dimColor>
{" "}
{title3}
</Text>
</Text>
<Text color="cyan">
{eta10}
</Text>
</Box>
<Text wrap="truncate-end">
<Text color="red">
{status3}
</Text>
<Text dimColor>
{" "}
{"for "}
{formatElapsed5}
{", updated "}
{formatElapsed6}
{" ago"}
</Text>
</Text>
<Text>
<Text color="green">
########........
</Text>
<Text dimColor>
{" "}
{doneCount3}
/
{length3}
{" done"}
</Text>
</Text>
<Box marginTop={1}>
<Markdown text={`${summary}`} />
</Box>
<Box flexDirection="column" marginTop={1}>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text color="cyan">
{TODO_MARKS7}
</Text>
{" "}
{text7}
</Text>
<Text dimColor>
{eta11}
</Text>
</Box>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text color="cyan">
{TODO_MARKS8}
</Text>
{" "}
{text8}
</Text>
<Text dimColor>
{eta12}
</Text>
</Box>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text color="cyan">
{TODO_MARKS9}
</Text>
{" "}
{text9}
</Text>
<Text dimColor>
{eta13}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text wrap="truncate-end">
<Text dimColor>
{label7}
{" "}
</Text>
{value7}
<Text dimColor>
{" seen"}
</Text>
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{label8}
{" "}
</Text>
{value8}
<Text dimColor>
{" seen"}
</Text>
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{label9}
{" "}
</Text>
{value9}
<Text dimColor>
{" seen"}
</Text>
</Text>
</Box>
<Box marginTop={1}>
<Text dimColor wrap="truncate-end">
{footer3}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
Other agents
</Text>
<Text color="red" wrap="truncate-end">
{name}
{" "}
stalled
{", active "}
{formatElapsed7}
{" ago"}
</Text>
<Text color="red" wrap="truncate-end">
{name2}
{" "}
stalled
{", active "}
{formatElapsed8}
{" ago"}
</Text>
<Text color="red" wrap="truncate-end">
{name3}
{" "}
stalled
{", active "}
{formatElapsed9}
{" ago"}
</Text>
</Box>
<Box flexDirection="column">
<Text bold color="red">
Permission denials
</Text>
<Text wrap="truncate-end">
<Text color="red">
{tool}
</Text>
<Text dimColor>
{" "}
{formatElapsed10}
{" ago "}
{reason}
</Text>
</Text>
<Text wrap="truncate-end">
<Text color="red">
{tool2}
</Text>
<Text dimColor>
{" "}
{formatElapsed11}
{" ago "}
{reason2}
</Text>
</Text>
<Text wrap="truncate-end">
<Text color="red">
{tool3}
</Text>
<Text dimColor>
{" "}
{formatElapsed12}
{" ago "}
{reason3}
</Text>
</Text>
</Box>
<Text dimColor>
{"Machine memory in use: "}
{totalRssGb}
{" GB"}
</Text>
</Box>
)
})
on('session.start', async ($, e, next) => {
const name = '…'
const formatElapsed = '…'
const where = '…'
const rssGb = '…'
await $.ui.toast(`lanes: ${name} has made no tool call for ${formatElapsed}`)
await $.ui.toast(`lanes: ${where} uses ${rssGb} GB of memory`)
return next(e)
})
}
Mod 自身のコード
Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。
mods/foreman/hooks/register.tsx 249〜284 行 · バンド
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const current = await read($, view)
const asked = await read($, waiting)
const denied = await read($, denials)
const needs = [...(current?.needs ?? []), ...asked]
const stalled = (current?.agents ?? []).filter(agent => agent.isStalled)
const isQuiet = needs.length === 0 && stalled.length === 0 && denied.length === 0
if (e.props.hasSurvey || isQuiet) {
return next(e)
}
const { Box, Button, Text } = $.ui.resolve(e)
const lastDenial = denied.at(-1)
const items = [
...needs.map(need => `needs you: ${need}`),
...stalled.map(agent => `stalled: ${agent.name}`),
...(lastDenial === undefined ? [] : [`${countOf(denied.length, 'permission denial')} (last: ${lastDenial.tool})`]),
]
const hiddenCount = items.length - 3
return (
<Box flexDirection="column">
{items.slice(0, 3).map(item => (
<Text color="yellow" wrap="truncate-end">
{item}
</Text>
))}
<Box>
{hiddenCount > 0 && <Text dimColor>+{hiddenCount} more </Text>}
<Button key="open" label="Open lanes" onPress={() => void $.ui.open({ id: PANE, title: PANE_TITLE })} />
{denied.length > 0 && <Button key="clear" label="Clear denials" onPress={() => update($, denials, () => [])} />}
</Box>
</Box>
)
})mods/foreman/hooks/register.tsx 286〜373 行 · ペイン
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const elements = $.ui.resolve(e)
const { Box, Button, Text } = elements
const now = await $.clock.now()
const selected = await read($, program)
const current = await read($, view)
const known = await read($, programs)
const asked = await read($, waiting)
const denied = await read($, denials)
const others = known.filter(name => name !== selected)
const lanes = current?.lanes ?? []
const agents = current?.agents ?? []
const laneAgents = new Set(lanes.map(lane => lane.agent))
const looseAgents = agents.filter(agent => agent.id !== MAIN_ID && !laneAgents.has(agent.name))
const needs = [...(current?.needs ?? []), ...asked]
const labelWidth = Math.max(0, ...lanes.flatMap(lane => [...lane.resources, ...(current?.usage[lane.lane]?.ports ?? [])].map(resource => resource.label.length)))
return (
<Box flexDirection="column" gap={1}>
<Box justifyContent="space-between">
<Text bold wrap="truncate-end">
{selected ?? 'No program'}
</Text>
<Text dimColor>
{current !== null && countOf(current.sessionCount, 'session')}
{current?.eta !== undefined && <Text color="cyan"> ETA {current.eta}</Text>}
</Text>
</Box>
{others.length > 0 && (
<Box gap={1}>
<Text dimColor>switch</Text>
{others.map(name => (
<Button key={`program-${name}`} label={name} plain onPress={() => void selectProgram($, name)} />
))}
</Box>
)}
{needs.length > 0 && (
<Box flexDirection="column" borderStyle="round" borderColor="yellow" paddingX={1}>
<Text bold color="yellow">
Needs you
</Text>
{needs.map(need => (
<Text wrap="truncate-end">{need}</Text>
))}
</Box>
)}
{lanes.length === 0 && <Text dimColor>No lanes yet. Agents send them with the report tool.</Text>}
{lanes.map(lane => {
const worker = agents.find(agent => agent.name === lane.agent)
return laneCard(elements, lane, worker, current?.usage[lane.lane], labelWidth, now)
})}
{looseAgents.length > 0 && (
<Box flexDirection="column">
<Text bold>Other agents</Text>
{looseAgents.map(agent => (
<Text color={agent.isStalled ? 'red' : undefined} dimColor={!agent.isStalled} wrap="truncate-end">
{agent.name} {agent.isStalled ? 'stalled' : (AGENT_STATUS_LABELS[agent.status] ?? agent.status)}, active {formatElapsed(now, agent.lastSeen)} ago
</Text>
))}
</Box>
)}
{denied.length > 0 && (
<Box flexDirection="column">
<Text bold color="red">
Permission denials
</Text>
{denied.slice(-5).map(denial => (
<Text wrap="truncate-end">
<Text color="red">{denial.tool}</Text>
<Text dimColor>
{' '}
{formatElapsed(now, denial.at)} ago {denial.reason}
</Text>
</Text>
))}
</Box>
)}
{current !== null && current.totalRssGb > 0 && <Text dimColor>Machine memory in use: {current.totalRssGb.toFixed(1)} GB</Text>}
</Box>
)
})mods/foreman/hooks/lane-card.tsx 34〜119 行 · ペイン
export const laneCard = (
{ Box, Markdown, Text }: CardElements,
lane: Lane,
worker: AgentRow | undefined,
used: LaneUsage | undefined,
labelWidth: number,
now: number,
) => {
const doneCount = lane.todos.filter(todo => todo.state === 'done').length
const openTodos = lane.todos.filter(todo => todo.state !== 'done')
const resources = [...lane.resources, ...(used?.ports ?? [])]
const isStalled = worker?.isStalled === true
const hasEnded = lane.agent !== undefined && worker === undefined
const workerState = isStalled ? 'stalled' : (AGENT_STATUS_LABELS[worker?.status ?? ''] ?? worker?.status)
const footer = [
hasEnded ? `${lane.agent} ended; /lanes close ${lane.lane} removes the lane` : '',
worker === undefined ? '' : `${worker.name} ${workerState}, active ${formatElapsed(now, worker.lastSeen)} ago`,
used === undefined ? '' : `${used.rssGb.toFixed(1)} GB ${Math.round(used.cpuPercent)}% CPU ${countOf(used.processCount, 'process', 'processes')}`,
worker === undefined || worker.tokenCount === 0 ? '' : `${formatTokens(worker.tokenCount)} tokens`,
].filter(part => part.length > 0)
return (
<Box key={`lane-${lane.lane}`} flexDirection="column" borderStyle="round" borderColor={isStalled ? 'red' : 'gray'} borderDimColor={hasEnded} paddingX={1}>
<Box justifyContent="space-between">
<Text wrap="truncate-end">
<Text bold>{lane.lane}</Text>
<Text dimColor> {lane.title}</Text>
</Text>
{lane.eta !== undefined && <Text color="cyan">{lane.eta}</Text>}
</Box>
<Text wrap="truncate-end">
<Text color={isStalled ? 'red' : 'green'} dimColor={hasEnded}>
{lane.status}
</Text>
<Text dimColor>
{' '}
for {formatElapsed(now, lane.statusSince)}, updated {formatElapsed(now, lane.reportedAt)} ago
</Text>
</Text>
{lane.todos.length > 0 && (
<Text>
<Text color="green">{progressBar(doneCount, lane.todos.length, PROGRESS_WIDTH)}</Text>
<Text dimColor>
{' '}
{doneCount}/{lane.todos.length} done
</Text>
</Text>
)}
{lane.summary !== undefined && (
<Box marginTop={1}>
<Markdown key={`summary-${lane.lane}`} text={lane.summary} />
</Box>
)}
{openTodos.length > 0 && (
<Box flexDirection="column" marginTop={1}>
{openTodos.map(todo => (
<Box justifyContent="space-between">
<Text dimColor={todo.state === 'pending'} wrap="truncate-end">
<Text color={todo.state === 'active' ? 'cyan' : undefined}>{TODO_MARKS[todo.state]}</Text> {todo.text}
</Text>
{todo.eta !== undefined && <Text dimColor>{todo.eta}</Text>}
</Box>
))}
</Box>
)}
{resources.length > 0 && (
<Box flexDirection="column" marginTop={1}>
{resources.map(resource => (
<Text wrap="truncate-end">
<Text dimColor>{resource.label.padEnd(labelWidth)} </Text>
{resource.value}
{resource.isObserved === true && <Text dimColor> seen</Text>}
</Text>
))}
</Box>
)}
{footer.length > 0 && (
<Box marginTop={1}>
<Text dimColor wrap="truncate-end">
{footer.join(' | ')}
</Text>
</Box>
)}
</Box>
)
}ライセンスの全文(MIT)
MIT License Copyright (c) 2026 Stella Inwood 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 に読んだコミット 9a3dda35b8db のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。
| 載せる条件: 確かめやすいコード | |
|---|---|
| 入口を読んだ | hooks/hooks.json が名指すモジュールをすべて読んだ。mods/foreman/hooks/register.tsx |
| 解析できる | すべてのファイルが TypeScript か JavaScript として解析できる。7 ファイルを解析 |
| コードが 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/… などは無い)。mods/foreman/hooks/register.tsx:615 rm(Windows にない) |
| 通信 | fetch の送り先(https のホスト)がコードに書いてあるか。通信なし |
| プログラム | 起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。mods/foreman/hooks/register.tsx:469 実行時に決まるプログラム; mods/foreman/hooks/register.tsx:469 実行時に決まるプログラム; mods/foreman/hooks/register.tsx:469 実行時に決まるプログラム |
| 読んで送る | ファイルや環境変数を読み、かつ通信するか。通信しない |
| ソースの鍵 | ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし |
| ライセンス | オープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT |
コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件
入れる
入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。
リポジトリがそのままマーケットプレイスです。このマーケットプレイスを足し(ターミナルでは次のコマンド、デスクトップアプリではプラグインの設定)、そこから Mod を入れます。
/plugin marketplace add KodingDev/skills/plugin install foreman@kodingdev入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(9a3dda35b8db)と違うことがあります。入れる前に見比べてください。
Claude に聞く
modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:
modscode のデザイン「kodingdev-foreman」をコードごと読んで、同じようなペインを作って似たデザイン
-
Claude に頼む…────────Clear doneClaude⋯└─ buildCancelCancelCancel└─ buildCancelCancelCancel└─ buildCancelCancelCancel
-
ENGRAM Engramver detalleocultarClaude に頼む…
-
Claude に頼む…HandoffHandoffsrc/app.tsFresh start fClose xClassicShowing the first 9800 characters; the file has it all.
-
Claude に頼む…GitHub inboxGitHubloading…Refresh rbuildbuildbuildClose xStealth IssuesNo open issues in this view.#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopenPull requestsNo open pull requests.#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopenChecks for #3Plain
-
Claude に頼む…PR #3 ok · 0 unresolved · 3 failedPR Pulse◆ PR PULSE …↻ Refresh r▁ Minimise m✕ Close q↗ Open PR oFix login#3 · ○ draft · ● Resolved threads · Conversation💬 0 unresolved · 0 thread · conversation ›Recent activityupdated 2h 10m · auto-refresh 4s⚠ Unresolved threads✓ build✓ build✓ build← checksLoading comments…UNRESOLVED THREADS✓ Nothing waiting on you.Workflows✦ Address with Claude↗ Openyou · ok · Oct 6_(no text)_you · ok · Oct 6_(no text)_you · ok · Oct 6_(no text)_Workflows✦ Address with Claude↗ Openyou · ok · Oct 6_(no text)_you · ok · Oct 6_(no text)_you · ok · Oct 6_(no text)_Workflows✦ Address with Claude↗ Openyou · ok · Oct 6_(no text)_you · ok · Oct 6_(no text)_you · ok · Oct 6_(no text)_CONVERSATIONNo general comments.you · ok · Oct 6↗Other checksyou · ok · Oct 6↗Other checksyou · ok · Oct 6↗Other checksRESOLVED THREADS✓ Workflows · alex: Other checks✓ Workflows · alex: Other checks✓ Workflows · alex: Other checks
-
Claude に頼む…✨ đang viết lại câu lệnh…Phiên làm việcWrite build Write build Write buildTIMELINE ────────▆▆▆■ build ■ build ■ buildHOẠT ĐỘNG ────────GrepGrepGrepbuildbây giờTOOL ────────Chưa có tool call nào.Read buildGrepSpinner3Read buildGrepSpinner3Read buildGrepSpinner3CHANGES ────────Không có thay đổi.ok src/app.ts−3+3ok src/app.ts−3+3ok src/app.ts−3+3… 3 file nữa▐ReadReadRead▌ main