modscode / Gallery / delivery-run-view
delivery-run-view
A read-only view of delivery runs inside Claude Code, drawn from the run files the surfaces already write: a /flows pane with one row per phase — how it ran (inline, delegate, fork, gate; inferred and marked ? where the run does not record…
What it does
- Draws a pane, a band above the prompt, the status line
- Adds /flows, /flows-demo
- Hooks session.start
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Handles errors
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like delivery-run-view by Job Schepers (pane, band, status), as modscode read it from the mod's code:
// https://modscode.com/gallery/jsdotnet-delivery-run-view/
// 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: "Delivery flows" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const title = '…'
const index = '…'
const length = '…'
const facts = '…'
const MARK = '…'
const MODE_LABEL = '…'
const who = '…'
const right = '…'
const rail = '…'
const who2 = '…'
const name = '…'
const map = '…'
const name2 = '…'
const map2 = '…'
const name3 = '…'
const map3 = '…'
const output = '…'
const name4 = '…'
const name5 = '…'
const name6 = '…'
const links = '…'
const filter = '…'
const MARK2 = '…'
const MODE_LABEL2 = '…'
const who3 = '…'
const right2 = '…'
const rail2 = '…'
const who4 = '…'
const name7 = '…'
const map4 = '…'
const name8 = '…'
const map5 = '…'
const name9 = '…'
const map6 = '…'
const output2 = '…'
const name10 = '…'
const name11 = '…'
const name12 = '…'
const links2 = '…'
const filter2 = '…'
const MARK3 = '…'
const MODE_LABEL3 = '…'
const who5 = '…'
const right3 = '…'
const rail3 = '…'
const who6 = '…'
const name13 = '…'
const map7 = '…'
const name14 = '…'
const map8 = '…'
const name15 = '…'
const map9 = '…'
const output3 = '…'
const name16 = '…'
const name17 = '…'
const name18 = '…'
const links3 = '…'
const filter3 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate-end">
{title}
</Text>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Button plain>
{`‹`}
</Button>
<Text dimColor>
{`${index}1`}
/
{length}
</Text>
<Button plain>
›
</Button>
</Box>
</Box>
<Text dimColor wrap="truncate-end">
{facts}
{" · this session"}
</Text>
<Box flexDirection="row" gap={2} marginBottom={1}>
<Text color="gray">
inline
</Text>
<Text color="cyan">
delegate
</Text>
<Text color="blue">
fork
</Text>
<Text color="magenta">
gate
</Text>
<Text dimColor>
? = inferred
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text>
{MARK}
</Text>
<Box flexGrow={1} flexShrink={1}>
<Button plain />
</Box>
<Text>
{MODE_LABEL}
</Text>
<Text dimColor wrap="truncate-end">
{who}
</Text>
<Text color="yellow">
{right}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{rail}
{" "}
{who2}
</Text>
<Text color="red" wrap="truncate-end">
╰─▶
{" "}
{name}
{map}
</Text>
<Text color="red" wrap="truncate-end">
╰─▶
{" "}
{name2}
{map2}
</Text>
<Text color="red" wrap="truncate-end">
╰─▶
{" "}
{name3}
{map3}
</Text>
<Box flexDirection="column" marginLeft={2} marginBottom={1} borderStyle="single" paddingX={1}>
<Text wrap="wrap">
{output}
</Text>
<Text color="green" wrap="truncate-end">
✓
{" "}
{name4}
</Text>
<Text color="green" wrap="truncate-end">
✓
{" "}
{name5}
</Text>
<Text color="green" wrap="truncate-end">
✓
{" "}
{name6}
</Text>
<Text color="blue">
{"↗ "}
{links}
</Text>
<Text dimColor>
{filter}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text>
{MARK2}
</Text>
<Box flexGrow={1} flexShrink={1}>
<Button plain />
</Box>
<Text>
{MODE_LABEL2}
</Text>
<Text dimColor wrap="truncate-end">
{who3}
</Text>
<Text color="yellow">
{right2}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{rail2}
{" "}
{who4}
</Text>
<Text color="red" wrap="truncate-end">
╰─▶
{" "}
{name7}
{map4}
</Text>
<Text color="red" wrap="truncate-end">
╰─▶
{" "}
{name8}
{map5}
</Text>
<Text color="red" wrap="truncate-end">
╰─▶
{" "}
{name9}
{map6}
</Text>
<Box flexDirection="column" marginLeft={2} marginBottom={1} borderStyle="single" paddingX={1}>
<Text wrap="wrap">
{output2}
</Text>
<Text color="green" wrap="truncate-end">
✓
{" "}
{name10}
</Text>
<Text color="green" wrap="truncate-end">
✓
{" "}
{name11}
</Text>
<Text color="green" wrap="truncate-end">
✓
{" "}
{name12}
</Text>
<Text color="blue">
{"↗ "}
{links2}
</Text>
<Text dimColor>
{filter2}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text>
{MARK3}
</Text>
<Box flexGrow={1} flexShrink={1}>
<Button plain />
</Box>
<Text>
{MODE_LABEL3}
</Text>
<Text dimColor wrap="truncate-end">
{who5}
</Text>
<Text color="yellow">
{right3}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{rail3}
{" "}
{who6}
</Text>
<Text color="red" wrap="truncate-end">
╰─▶
{" "}
{name13}
{map7}
</Text>
<Text color="red" wrap="truncate-end">
╰─▶
{" "}
{name14}
{map8}
</Text>
<Text color="red" wrap="truncate-end">
╰─▶
{" "}
{name15}
{map9}
</Text>
<Box flexDirection="column" marginLeft={2} marginBottom={1} borderStyle="single" paddingX={1}>
<Text wrap="wrap">
{output3}
</Text>
<Text color="green" wrap="truncate-end">
✓
{" "}
{name16}
</Text>
<Text color="green" wrap="truncate-end">
✓
{" "}
{name17}
</Text>
<Text color="green" wrap="truncate-end">
✓
{" "}
{name18}
</Text>
<Text color="blue">
{"↗ "}
{links3}
</Text>
<Text dimColor>
{filter3}
</Text>
</Box>
</Box>
</Box>
)
})
// 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 skillId = '…'
const name = '…'
const MODE_LABEL = '…'
const map = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text bold>
{skillId}
</Text>
<Box flexDirection="row">
<Text>
◇
</Text>
<Text>
◇
</Text>
<Text>
◇
</Text>
</Box>
<Text wrap="truncate-end">
<Text>
{name}
</Text>
<Text>
{" "}
{MODE_LABEL}
</Text>
<Text dimColor>
{map}
</Text>
</Text>
<Button plain>
details
</Button>
</Box>
{await next(e)}
</Box>
)
})
on('session.start', async ($, e, next) => {
const skillId = '…'
const name = '…'
await $.ui.status(`${skillId} · ${name}`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
plugins/delivery-run-view/hooks/register.tsx lines 338–474 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const { value: list = [] } = await $.state.get(RUNS)
const index = Math.min((await $.state.get(SELECTED)).value ?? 0, Math.max(0, list.length - 1))
const pinned = (await $.state.get(FOCUS)).value ?? -1
const run = list[index]
const columns = (e.props as any)?.bodyColumns ?? e.viewport?.columns ?? 60
const isWide = columns >= 72
if (!run) {
return (
<Box flexDirection="column">
<Text dimColor>No delivery runs for this worktree yet.</Text>
<Text dimColor>A flow-* skill reports its phases here as it runs. /flows-demo plays one.</Text>
</Box>
)
}
const done = run.stages.filter(s => tone(s.status) === 'done').length
const live = currentStage(run)
const focused =
pinned >= 0 && pinned < run.stages.length
? pinned
: live
? run.stages.indexOf(live)
: run.stages.reduce((last, s, i) => (tone(s.status) === 'pending' ? last : i), 0)
const elapsed = run.startedAt && !run.id.startsWith('demo') ? Date.now() - Date.parse(run.startedAt) : null
const context = run.contextPeak && run.contextLimit ? `${Math.round((run.contextPeak / run.contextLimit) * 100)}% context` : ''
const facts = [run.skillId, run.changeKind, `${done}/${run.stages.length}`, duration(elapsed), context]
.filter(Boolean)
.join(' · ')
const badge = (s: FlowStage) => (
<Text color={MODE_COLOR[s.mode]} dimColor={!s.isModeRecorded}>
{MODE_LABEL[s.mode]}
{s.isModeRecorded ? '' : '?'}
</Text>
)
const who = (s: FlowStage) =>
[s.agent, [s.model, s.effort].filter(Boolean).join('/')].filter(Boolean).join(' · ')
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate-end">
{run.title}
</Text>
{list.length > 1 && (
<Box flexDirection="row" gap={1} flexShrink={0}>
<Button key="prev" plain onPress={() => $.state.set(SELECTED, (index - 1 + list.length) % list.length)}>
‹
</Button>
<Text dimColor>
{index + 1}/{list.length}
</Text>
<Button key="next" plain onPress={() => $.state.set(SELECTED, (index + 1) % list.length)}>
›
</Button>
</Box>
)}
</Box>
<Text dimColor wrap="truncate-end">
{facts}
{run.isThisSession ? ' · this session' : ''}
</Text>
<Box flexDirection="row" gap={2} marginBottom={1}>
<Text color={MODE_COLOR.inline}>inline</Text>
<Text color={MODE_COLOR.delegate}>delegate</Text>
<Text color={MODE_COLOR.fork}>fork</Text>
<Text color={MODE_COLOR.gate}>gate</Text>
<Text dimColor>? = inferred</Text>
</Box>
{run.stages.map((s, i) => {
const t = tone(s.status)
const isFocused = i === focused
const rail = i === run.stages.length - 1 ? ' ' : '│'
const right = [s.passes > 1 ? `↺${s.passes}` : '', duration(s.durationMs)].filter(Boolean).join(' ')
return (
<Box key={`p${i}`} flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text color={COLOR[t]}>{MARK[t]}</Text>
<Box flexGrow={1} flexShrink={1}>
<Button key={`f${i}`} plain onPress={() => $.state.set(FOCUS, isFocused ? -1 : i)}>
{s.name}
</Button>
</Box>
{badge(s)}
{isWide && who(s) && (
<Text dimColor wrap="truncate-end">
{who(s)}
</Text>
)}
{right && (
<Text dimColor={!isQuiet(t)} color={s.passes > 1 ? 'yellow' : undefined}>
{right}
</Text>
)}
</Box>
{!isWide && who(s) && !isQuiet(t) && (
<Text dimColor wrap="truncate-end">
{rail} {who(s)}
</Text>
)}
{s.workers.map((w, k) => (
<Text color={w.isFailed ? 'red' : 'cyan'} dimColor={t === 'done' && !isFocused} wrap="truncate-end">
{k === s.workers.length - 1 ? '╰─▶' : '├─▶'} {w.name}
{[w.model, duration(w.durationMs), w.toolCalls ? `${w.toolCalls} tools` : '', tokens(w.tokens)]
.filter(Boolean)
.map(x => ` · ${x}`)
.join('')}
</Text>
))}
{isFocused && !isQuiet(t) && (
<Box flexDirection="column" marginLeft={2} marginBottom={1} borderStyle="single" borderColor={COLOR[t]} paddingX={1}>
{s.output ? <Text wrap="wrap">{s.output}</Text> : <Text dimColor>No output yet.</Text>}
{s.scenarios.map(c => (
<Text color={c.status === 'pass' ? 'green' : c.status === 'fail' ? 'red' : 'yellow'} wrap="truncate-end">
{c.status === 'pass' ? '✓' : c.status === 'fail' ? '✗' : '~'} {c.name}
</Text>
))}
{s.links.length > 0 && <Text color="blue">↗ {s.links.join(' ↗ ')}</Text>}
{(s.outputTokens || s.toolCalls > 0) && (
<Text dimColor>
{[s.outputTokens ? `${tokens(s.outputTokens)} output tokens` : '', s.toolCalls ? `${s.toolCalls} tool calls` : '']
.filter(Boolean)
.join(' · ')}
</Text>
)}
</Box>
)}
</Box>
)
})}
</Box>
)
})plugins/delivery-run-view/hooks/register.tsx lines 477–505 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if ((e.props as any)?.hasSurvey) return next(e)
const { value: list = [] } = await $.state.get(RUNS)
const run = list.find(r => r.isThisSession && tone(r.status) !== 'done')
if (!run) return next(e)
const { Box, Text, Button } = $.ui.resolve(e)
const live = currentStage(run)
return (
<Box flexDirection="row" gap={1}>
<Text bold>{run.skillId}</Text>
<Box flexDirection="row">
{run.stages.map(s => (
<Text color={COLOR[tone(s.status)]}>{s.mode === 'gate' && tone(s.status) === 'pending' ? '◇' : MARK[tone(s.status)]}</Text>
))}
</Box>
{live && (
<Text wrap="truncate-end">
<Text color={COLOR[tone(live.status)]}>{live.name}</Text>
<Text color={MODE_COLOR[live.mode]}> {MODE_LABEL[live.mode]}</Text>
<Text dimColor>{[live.agent, live.model].filter(Boolean).map(x => ` · ${x}`).join('')}</Text>
</Text>
)}
<Button key="open" plain onPress={() => $.ui.open({ id: PANE, title: 'Delivery flows' })}>
details
</Button>
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 JSdotNet 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.
What its code calls
reads filesenv varsremembers
The design, read from code
Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit 4896728568a9 on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.plugins/delivery-run-view/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.1 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches no network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add JSdotNet/devbook/plugin install delivery-run-view@jsdotnet-devbookThis installs the marketplace's latest commit, which may not be the one read here (4896728568a9). Compare them before you install.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "jsdotnet-delivery-run-view" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
What it does
- Draws a band above the prompt
- Adds /seo-spend, /seo-doctor, /seo-cockpit
- Watches Agent calls and can refuse them
- Hooks agent.spawn, classic.SessionStart, prompt.submit, session.compact and 3 more
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claude…
-
Ask Claude…TodayOct 63 left · Mar overdueRemCTL: Sep✓ All done for today.● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓Updated 14:32UndoRefresh
-
Ask Claude…TO graph› Fix login › Fix login › Fix loginScopeThis featureWhole projectHide done stepsReconnect
-
Ask Claude…InboxUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtral