opum-quest
Drive the quest CLI: create, list, view, edit, complete, and archive tasks, drafts, milestones, and decisions in a Quest-initialized workspace instead of editing tracker state directly. Cut from the same quest-cli repository and tag as the…
何をするか
- デスクトップアプリにプロンプトの上の帯・欄・トーストを描く
- ツールの呼び出しを見張る(止めることがある)
- session.startにフックする
- ターンをまたいで自分の状態を持つ
- プロセスを起こす
良いところ
- ネットワークに出ない
- TypeScript で書かれている
- エラーを扱う
- ファイルを書かない
作り始めるためのコード
2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。
雛形(register.tsx)
import type { Register } from 'claude-code'
// Drawn like opum-quest by Opum AI (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/opum-ai-opum-quest/
// 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)
return (
<Box flexDirection="column">
<Box>
<Text>
{"Quest board ready "}
</Text>
<Button label="Open" hotkey="o" />
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Quest" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Button, Text, Input, Select, Markdown } = $.ui.resolve(e)
const query = '…'
const status = '…'
const repo = '…'
const summary = '…'
const hint = '…'
const refsLine = '…'
const discoveryNote = '…'
const localRepo = '…'
const uncommitted = '…'
const label = '…'
const label2 = '…'
const label3 = '…'
const repo2 = '…'
const label4 = '…'
const label5 = '…'
const label6 = '…'
const repo3 = '…'
const label7 = '…'
const label8 = '…'
const label9 = '…'
const drawn = '…'
const repo4 = '…'
const error = '…'
const repo5 = '…'
const error2 = '…'
const repo6 = '…'
const error3 = '…'
const id = '…'
const id2 = '…'
const error4 = '…'
const id3 = '…'
const proposedBy = '…'
const id4 = '…'
const title = '…'
const filter = '…'
const labels = '…'
const description = '…'
const length = '…'
const length2 = '…'
const text = '…'
const text2 = '…'
const text3 = '…'
const dependencies = '…'
const latestNote = '…'
const author = '…'
const createdAt = '…'
const body = '…'
const author2 = '…'
const createdAt2 = '…'
const author3 = '…'
const createdAt3 = '…'
const repo7 = '…'
return (
<Box flexDirection="column">
<Box>
<Button label="List" hotkey="1" variant="primary" />
<Text>
{" "}
</Text>
<Button label="Kanban" hotkey="2" variant="primary" />
</Box>
<Box>
<Button label="Fleet" hotkey="f" variant="primary" />
<Text>
{" "}
</Text>
<Button label="This repo" hotkey="l" variant="primary" />
<Text>
{" "}
</Text>
<Button label="Refs" hotkey="g" variant="primary" />
<Text>
{" "}
</Text>
<Button label="Refresh" hotkey="r" />
<Text>
{" "}
</Text>
<Button label="Normal size" hotkey="z" variant="primary" />
<Text>
{" "}
</Text>
<Button label="Collapse" hotkey="c" />
</Box>
<Input placeholder="Filter by id, title or label" value={`${query}`} submitLabel="Filter" />
<Box>
<Select label="Status" value={`${status}`} />
<Select label="Repo" value={`${repo}`} options={[{"value":"all","label":"All repos"},{"label":"‹option›"}]} />
</Box>
<Text dimColor wrap="truncate">
{summary}
</Text>
<Text dimColor wrap="truncate">
{hint}
</Text>
<Text color="yellow" wrap="truncate">
{refsLine}
</Text>
<Text dimColor wrap="truncate">
{discoveryNote}
</Text>
<Text dimColor wrap="truncate">
* marks a task whose refs disagree about its status; origin/dev is drawn where it has one. Resolving it is that reposit…
</Text>
<Input placeholder={`New task in ${localRepo}`} submitLabel="Create" />
<Box marginTop={1}>
<Text color="yellow" wrap="truncate">
{uncommitted}
{" tracker "}
change
{" in"}
{" "}
{localRepo}
{" not committed yet. Until they land, this repository's other checkouts cannot see the ids in them and can mint the same…"}
{" "}
</Text>
<Button label="Ask Claude to land them" />
</Box>
<Box flexDirection="row">
<Box flexDirection="column">
<Box marginTop={1}>
<Text dimColor>
No tasks match. Clear the filter or pick another status.
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{repo}
</Text>
<Text inverse wrap="truncate">
{label}
</Text>
<Text inverse wrap="truncate">
{label2}
</Text>
<Text inverse wrap="truncate">
{label3}
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{repo2}
</Text>
<Text inverse wrap="truncate">
{label4}
</Text>
<Text inverse wrap="truncate">
{label5}
</Text>
<Text inverse wrap="truncate">
{label6}
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{repo3}
</Text>
<Text inverse wrap="truncate">
{label7}
</Text>
<Text inverse wrap="truncate">
{label8}
</Text>
<Text inverse wrap="truncate">
{label9}
</Text>
</Box>
<Text dimColor>
{drawn}
{" more. Close the details to see them all."}
</Text>
<Box flexDirection="column" marginTop={1}>
<Text color="red">
Could not read:
</Text>
<Text dimColor wrap="truncate">
{" "}
{repo4}
{": "}
{error}
</Text>
<Text dimColor wrap="truncate">
{" "}
{repo5}
{": "}
{error2}
</Text>
<Text dimColor wrap="truncate">
{" "}
{repo6}
{": "}
{error3}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={0}>
<Text dimColor>
────────
</Text>
<Text dimColor>
{"Loading "}
{id}
…
</Text>
<Text color="red">
{"Could not load "}
{id2}
{": "}
{error4}
</Text>
<Text dimColor wrap="wrap">
{id3}
{" exists on "}
{proposedBy}
{" and not in this checkout, so the detail reads nothing here. It is on the board from the refs read."}
</Text>
<Box flexDirection="column">
<Text bold wrap="wrap">
{id4}
{" "}
{title}
</Text>
<Text dimColor wrap="truncate">
{filter}
</Text>
<Text dimColor wrap="truncate">
{"Labels: "}
{labels}
</Text>
<Box marginTop={1}>
<Markdown text={`${description}…`} />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
Acceptance criteria,
{" "}
{length}
{" "}
{"of "}
{length2}
{" checked"}
</Text>
<Text wrap="truncate">
{"☑ "}
{text}
</Text>
<Text wrap="truncate">
{"☑ "}
{text2}
</Text>
<Text wrap="truncate">
{"☑ "}
{text3}
</Text>
</Box>
<Text dimColor wrap="truncate">
{"Depends on "}
{dependencies}
</Text>
<Box flexDirection="column" marginTop={1}>
<Text>
Latest note
</Text>
<Text dimColor wrap="wrap">
{`${latestNote}…`}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
Comments
</Text>
<Text dimColor wrap="wrap">
{author}
,
{" "}
{createdAt}
:
{" "}
{`${body}…`}
</Text>
<Text dimColor wrap="wrap">
{author2}
,
{" "}
{createdAt2}
:
{" "}
{`${body}…`}
</Text>
<Text dimColor wrap="wrap">
{author3}
,
{" "}
{createdAt3}
:
{" "}
{`${body}…`}
</Text>
</Box>
<Box marginTop={1}>
<Text dimColor wrap="wrap">
{"Read-only here. "}
{repo7}
{" is edited from its own session."}
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box>
<Button label="Resume" hotkey="s" />
<Button label="Pause" hotkey="p" />
<Text>
{" "}
</Text>
<Button label="Complete" hotkey="d" />
<Text>
{" "}
</Text>
<Button label="Close as won't do" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Input label="Final summary" placeholder="What happened, in a sentence or two" submitLabel="Complete" />
<Button label="Cancel" />
</Box>
<Select label="Priority" value="medium" options={[{"value":"high","label":"High"},{"value":"medium","label":"Medium"},{"value":"low","label":"Low"}]} />
<Input placeholder="Rename to…" submitLabel="Rename" />
<Input placeholder="Add a label" submitLabel="Add label" />
<Input placeholder="Add a comment" submitLabel="Comment" />
<Text dimColor>
Saving…
</Text>
</Box>
<Box marginTop={1}>
<Button label="Copy id" hotkey="y" />
<Text>
{" "}
</Text>
<Button label="Close details" hotkey="x" />
</Box>
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const id = '…'
await $.ui.toast(`${id} changed since you opened it. It has been reloaded; try again.`)
await $.ui.toast(`Created ${id}`)
return next(e)
})
}
Mod 自身のコード
Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。
hooks/register.tsx 1116〜1135 行 · バンド
on("ui.render", { component: "AbovePrompt" }, async ($, e, next) => {
const panes = await $.ui.panes();
const pane = panes.find((one) => one.id === PANE);
if (!pane || pane.isPlaced) {
return next(e);
}
const { Box, Button, Text } = $.ui.resolve(e);
return (
<Box>
<Text>Quest board ready </Text>
<Button
key="open-board"
label="Open"
hotkey="o"
onPress={() => void openBoardFromBand($)}
/>
</Box>
);
});hooks/register.tsx 1137〜1296 行 · ペイン
on("ui.render", { component: "Pane", requestId: PANE }, async ($, e) => {
startAlerts($);
const { rows, refreshedAt, isLoading } = await read($, board);
if (e.surface === "mobile") {
const { Box, Text } = $.ui.resolve(e);
const total = rows.reduce((sum, row) => sum + row.tasks.length, 0);
return (
<Box flexDirection="column">
<Text>
{total} tasks. Open the board in the terminal or desktop to filter.
</Text>
</Box>
);
}
const { Box, Button, Input, Markdown, Select, Text } = $.ui.resolve(e);
const current = await read($, view);
const width = Math.max(16, e.props.bodyColumns);
// A draw is the only place both axes of the surface are known. It is kept
// so a pane opened outside one can ask for the full size, and a full mode
// restored at `session.start` -- which could not size it -- asks again
// here, once per size, now that it can.
//
// This re-request is the pane's own, not a person's, so it is asked for
// WITHOUT focus: the person may be typing, and a pane that grabbed the
// keyboard on a redraw they did not make would move their keys mid-word.
if (e.viewport) {
viewport = { columns: e.viewport.columns, rows: e.viewport.rows };
if (current.isFull && !current.isCollapsed) {
const wanted = JSON.stringify(paneSize(current, viewport));
if (askedFullSize !== wanted) {
askedFullSize = wanted;
void openPane($, current, viewport);
}
}
}
const shown = filterRows(rows, current.query, current.repo);
const busy = shown.filter((row) => row.tasks.length > 0);
const failed = rows.filter((row) => row.error !== null);
const total = busy.reduce((sum, row) => sum + row.tasks.length, 0);
const refsLine = coverageLine(rows, current.readRefs);
const hasConflict = rows.some((row) =>
row.tasks.some((task) => task.conflict),
);
// A size the surface kept rather than granted is said out loud, so the pane
// does not claim a size it did not get. The dock is measured across and the
// inline block down, so each compares against the axis it was sized on.
const hint = sizeHeldHint(
current,
e.props.placement,
viewport,
e.props.placement === "dock"
? e.props.bodyColumns
: e.props.scroll.bodyRows,
);
if (current.isCollapsed) {
return (
<Box flexDirection="column">
{rows.map((row) => (
<Text
dimColor={row.tasks.length === 0}
color={row.error ? "red" : undefined}
wrap="truncate"
>
{shortName(row.repo).padEnd(width - 4)}
{row.error ? " ?" : String(row.tasks.length).padStart(3)}
</Text>
))}
<Box marginTop={1}>
<Text dimColor>
{total} {statusWords(current.status)}{" "}
</Text>
</Box>
<Button
key="expand"
label="Expand"
hotkey="c"
onPress={() => void setCollapsed($, false)}
/>
</Box>
);
}
const summary =
refreshedAt === null
? "Reading the trackers…"
: `${total} ${statusWords(current.status)} ${total === 1 ? "task" : "tasks"} in ${busy.length} ${busy.length === 1 ? "repo" : "repos"}, checked ${clockTime(refreshedAt)}${isLoading ? ", refreshing" : ""}${current.readRefs ? " (across refs)" : ""}`;
const selectedKey = current.selected
? `${current.selected.repo}:${current.selected.id}`
: null;
const open = selectedKey ? await read($, detail) : null;
// At 120 body columns or more the list and the detail go side by side; the
// detail then sits beside the list rather than under it, so the list is no
// longer cut short to leave it room.
const isSideBySide = open !== null && isWideLayout(e.props.bodyColumns);
const listWidth = isSideBySide
? Math.max(24, Math.floor((width - 1) / 2))
: width;
const detailWidth = isSideBySide
? Math.max(24, width - listWidth - 1)
: width;
const listRoom =
open && !isSideBySide
? Math.max(5, e.props.scroll.bodyRows - 18)
: Number.POSITIVE_INFINITY;
let drawn = 0;
await resolveLocal($);
const task = open?.task ?? null;
const canEdit =
!!task &&
current.selected?.repo === localRepo &&
task.status !== "Done" &&
task.status !== "Closed";
const selectedRow = current.selected
? rows
.find((row) => row.repo === current.selected?.repo)
?.tasks.find((one) => one.id === current.selected?.id)
: undefined;
const { isWriting, uncommitted } = await read($, edits);
const banner =
uncommitted > 0 && localRepo ? (
<Box marginTop={1}>
<Text color="yellow" wrap="truncate">
{uncommitted} tracker {uncommitted === 1 ? "change" : "changes"} in{" "}
{localRepo} not committed yet. Until they land, this repository's
other checkouts cannot see the ids in them and can mint the same
ones.{" "}
</Text>
<Button
key="land"
label="Ask Claude to land them"
onPress={() =>
void $.prompt.fill({
text: `Land the uncommitted Quest tracker changes in ${localRepo} through a branch and pull request, following the opum-sdlc skill. Land them promptly: until they are committed, this repository's other checkouts cannot see the task ids in them and can mint the same ones.`,
mode: "replace",
})
}
/>
</Box>
) : null;
const tabs = (
<Box>
<Button
key="tab-list"
label="List"
hotkey="1"
variant={current.tab === "list" ? "primary" : undefined}
onPress={() => void setTab($, "list")}
/>
<Text> </Text>
<Button
key="tab-kanban"
label="Kanban"
hotkey="2"
variant={current.tab === "kanban" ? "primary" : undefined}ライセンスの全文(MIT)
MIT License Copyright (c) 2026 Opum AI 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 に読んだコミット 0073e4e857c2 のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。
| 載せる条件: 確かめやすいコード | |
|---|---|
| 入口を読んだ | hooks/hooks.json が名指すモジュールをすべて読んだ。hooks/register.tsx |
| 解析できる | すべてのファイルが TypeScript か JavaScript として解析できる。2 ファイルを解析 |
| コードが 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(通信する), quest |
| 読んで送る | ファイルや環境変数を読み、かつ通信するか。読んだうえで通信する |
| ソースの鍵 | ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし |
| ライセンス | オープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT |
コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件
入れる
入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。
リポジトリの .claude-plugin/marketplace.json にこの Mod が載っていないため、入れる手順は出せません。コードとして読むか、作者の README に従ってください。
Claude に聞く
modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:
modscode のデザイン「opum-ai-opum-quest」をコードごと読んで、同じようなペインを作って似たデザイン
-
Claude に頼む…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel
-
Claude に頼む…────────Clear doneClaude⋯└─ buildCancelCancelCancel└─ buildCancelCancelCancel└─ buildCancelCancelCancel
-
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 に頼む…clawdifybuild 3build 3build 3Presets layer on top of what you have. Reset first for a clean slate.Empty = Claude Code default · lists are comma-separated · tokens {model} {cwd} {time} {date}buildbuildbuildYours bring back exactly the look you saved. /clawdify delete <name> removes one.buildbuildbuildSave current as my-look savecopy JSONreset allWhile thinking
-
Councilmodeaskdeepshow14:32?hideGeminiGeminiGeminiClaude に頼む…Review: deep, once · Request
-
Claude に頼む…Fix logingoal Fix loginedit session goalpaste /goal linecopy pathattach to promptback to hubcloseOwling────────outcome on the recordPondering mail session goal (what the Stop hook holds the agent to)none yetGoal Pondering mail savecanceledit in the prompt box█████░░░