pr-bar
Your GitHub pull requests in the Claude Code sidebar: review queue, merge-ready PRs, fixes needed, with one-press Claude reviews.
What it does
- Draws a band above the prompt, a pane, the status line
- Adds /pr-bar
- Hooks session.start
- Keeps its own state between turns
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Handles errors
- Writes no files
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 pr-bar by Designibl (pane, band, status), as modscode read it from the mod's code:
// https://modscode.com/gallery/designibl-pr-bar/
// 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 t = '…'
const t2 = '…'
const t3 = '…'
return (
<Box flexDirection="column">
<Box>
<Text dimColor>
{"PRs: "}
</Text>
<Text>
{" · "}
{t}
</Text>
<Text>
{" · "}
{t2}
</Text>
<Text>
{" · "}
{t3}
</Text>
<Text color="red">
{" !"}
</Text>
<Text>
{" "}
</Text>
<Button label="Open list" />
<Button label="Refresh" />
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "PRs" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Link } = $.ui.resolve(e)
const length = '…'
const eyes = '…'
const error = '…'
const title = '…'
const length2 = '…'
const url = '…'
const number = '…'
const repo = '…'
const files = '…'
const additions = '…'
const deletions = '…'
const text = '…'
const author = '…'
const fixReasons = '…'
const label = '…'
const repo2 = '…'
const files2 = '…'
const additions2 = '…'
const deletions2 = '…'
const text2 = '…'
const fixReasons2 = '…'
const repo3 = '…'
const files3 = '…'
const additions3 = '…'
const deletions3 = '…'
const text3 = '…'
const fixReasons3 = '…'
const length3 = '…'
const repo4 = '…'
const files4 = '…'
const additions4 = '…'
const deletions4 = '…'
const text4 = '…'
const fixReasons4 = '…'
const repo5 = '…'
const files5 = '…'
const additions5 = '…'
const deletions5 = '…'
const text5 = '…'
const fixReasons5 = '…'
const repo6 = '…'
const files6 = '…'
const additions6 = '…'
const deletions6 = '…'
const text6 = '…'
const fixReasons6 = '…'
const length4 = '…'
const repo7 = '…'
const files7 = '…'
const additions7 = '…'
const deletions7 = '…'
const text7 = '…'
const fixReasons7 = '…'
const repo8 = '…'
const files8 = '…'
const additions8 = '…'
const deletions8 = '…'
const text8 = '…'
const fixReasons8 = '…'
const repo9 = '…'
const files9 = '…'
const additions9 = '…'
const deletions9 = '…'
const text9 = '…'
const fixReasons9 = '…'
const length5 = '…'
const repo10 = '…'
const files10 = '…'
const additions10 = '…'
const deletions10 = '…'
const text10 = '…'
const fixReasons10 = '…'
const repo11 = '…'
const files11 = '…'
const additions11 = '…'
const deletions11 = '…'
const text11 = '…'
const fixReasons11 = '…'
const repo12 = '…'
const files12 = '…'
const additions12 = '…'
const deletions12 = '…'
const text12 = '…'
const fixReasons12 = '…'
const length6 = '…'
const repo13 = '…'
const files13 = '…'
const additions13 = '…'
const deletions13 = '…'
const text13 = '…'
const fixReasons13 = '…'
const repo14 = '…'
const files14 = '…'
const additions14 = '…'
const deletions14 = '…'
const text14 = '…'
const fixReasons14 = '…'
const repo15 = '…'
const files15 = '…'
const additions15 = '…'
const deletions15 = '…'
const text15 = '…'
const fixReasons15 = '…'
const length7 = '…'
const repo16 = '…'
const files16 = '…'
const additions16 = '…'
const deletions16 = '…'
const text16 = '…'
const fixReasons16 = '…'
const repo17 = '…'
const files17 = '…'
const additions17 = '…'
const deletions17 = '…'
const text17 = '…'
const fixReasons17 = '…'
const repo18 = '…'
const files18 = '…'
const additions18 = '…'
const deletions18 = '…'
const text18 = '…'
return (
<Box flexDirection="column">
<Box>
<Text bold>
{length}
{" open"}
</Text>
<Text>
{" · 👀 "}
{eyes}
</Text>
<Text dimColor>
{" · "}
refreshing…
{" "}
</Text>
<Button label="Refresh" hotkey="r" />
</Box>
<Text color="red">
{"! "}
{error}
</Text>
<Text dimColor>
No open pull requests.
</Text>
<Box flexDirection="column" marginTop={1}>
<Button label={`▾ ${title} (${length})`} />
<Box flexDirection="column">
<Text dimColor>
Requested of you
{" ("}
{length2}
)
</Text>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo}
{" · "}
{files}
f +
{additions}
/-
{deletions}
{" · "}
</Text>
<Text>
{text}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo2}
{" · "}
{files2}
f +
{additions2}
/-
{deletions2}
{" · "}
</Text>
<Text>
{text2}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons2}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo3}
{" · "}
{files3}
f +
{additions3}
/-
{deletions3}
{" · "}
</Text>
<Text>
{text3}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons3}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor>
Requested of you
{" ("}
{length3}
)
</Text>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo4}
{" · "}
{files4}
f +
{additions4}
/-
{deletions4}
{" · "}
</Text>
<Text>
{text4}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons4}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo5}
{" · "}
{files5}
f +
{additions5}
/-
{deletions5}
{" · "}
</Text>
<Text>
{text5}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons5}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo6}
{" · "}
{files6}
f +
{additions6}
/-
{deletions6}
{" · "}
</Text>
<Text>
{text6}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons6}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor>
Requested of you
{" ("}
{length4}
)
</Text>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo7}
{" · "}
{files7}
f +
{additions7}
/-
{deletions7}
{" · "}
</Text>
<Text>
{text7}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons7}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo8}
{" · "}
{files8}
f +
{additions8}
/-
{deletions8}
{" · "}
</Text>
<Text>
{text8}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons8}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo9}
{" · "}
{files9}
f +
{additions9}
/-
{deletions9}
{" · "}
</Text>
<Text>
{text9}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons9}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Button label={`▾ ${title} (${length})`} />
<Box flexDirection="column">
<Text dimColor>
Requested of you
{" ("}
{length5}
)
</Text>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo10}
{" · "}
{files10}
f +
{additions10}
/-
{deletions10}
{" · "}
</Text>
<Text>
{text10}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons10}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo11}
{" · "}
{files11}
f +
{additions11}
/-
{deletions11}
{" · "}
</Text>
<Text>
{text11}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons11}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo12}
{" · "}
{files12}
f +
{additions12}
/-
{deletions12}
{" · "}
</Text>
<Text>
{text12}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons12}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor>
Requested of you
{" ("}
{length6}
)
</Text>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo13}
{" · "}
{files13}
f +
{additions13}
/-
{deletions13}
{" · "}
</Text>
<Text>
{text13}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons13}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo14}
{" · "}
{files14}
f +
{additions14}
/-
{deletions14}
{" · "}
</Text>
<Text>
{text14}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons14}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo15}
{" · "}
{files15}
f +
{additions15}
/-
{deletions15}
{" · "}
</Text>
<Text>
{text15}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons15}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor>
Requested of you
{" ("}
{length7}
)
</Text>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo16}
{" · "}
{files16}
f +
{additions16}
/-
{deletions16}
{" · "}
</Text>
<Text>
{text16}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons16}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo17}
{" · "}
{files17}
f +
{additions17}
/-
{deletions17}
{" · "}
</Text>
<Text>
{text17}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text>
no CI
</Text>
<Text dimColor>
{" · "}
{`by ${author}`}
</Text>
</Box>
<Text color="red">
{" "}
{fixReasons17}
</Text>
<Box>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Link href={`${url}`}>
{`${label} `}
</Link>
<Button label="Review with Claude" />
</Box>
</Box>
<Box flexDirection="column" marginBottom={0}>
<Box>
<Link href={`${url}`}>
{`#${number} ${title}`}
</Link>
</Box>
<Box>
<Text dimColor>
{repo18}
{" · "}
{files18}
f +
{additions18}
/-
{deletions18}
{" · "}
</Text>
<Text>
{text18}
</Text>
<Text dimColor />
</Box>
</Box>
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
await $.ui.status(`PR Bar: ! (see /pr-bar)`)
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.
hooks/register.tsx lines 421–445 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const d = await read($, data)
if (e.props.hasSurvey || (d.prs.length === 0 && !d.error)) return next(e)
const { Box, Text, Button } = $.ui.resolve(e)
const s = await readSettings($)
const by = grouped(d.prs)
const eyes = reviewCount(by.review!, s.isCountingTeams)
const mine = d.prs.length - by.review!.length
const bits: [string, string?][] = [[`${mine} open`]]
if (eyes) bits.push([`👀 ${eyes} to review`, 'yellow'])
if (by.merge!.length) bits.push([`${by.merge!.length} ready to merge`, 'green'])
if (by.fixes!.length) bits.push([`${by.fixes!.length} need fixes`, 'red'])
return (
<Box>
<Text dimColor>PRs: </Text>
{bits.map(([t, c], i) => (
<Text key={`b${i}`} color={c}>{i ? ' · ' : ''}{t}</Text>
))}
{d.error && <Text color="red"> !</Text>}
<Text> </Text>
<Button key="band-open" label="Open list" onPress={() => $.ui.open({ id: PANE, title: 'PRs', focus: true })} />
<Button key="band-refresh" label="Refresh" onPress={() => refresh($)} />
</Box>
)
})hooks/register.tsx lines 447–586 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button, Link } = $.ui.resolve(e)
const d = await read($, data)
const s = await readSettings($)
const v = await read($, view)
const busy = await read($, isBusy)
const now = await $.clock.now()
const by = grouped(d.prs)
let budget = Math.max(6, (e.viewport?.rows ?? 30) - 6)
const prRow = (pr: Pr, key: string) => {
const age = fmtAge(pr.lastChange, now)
const draftOrFix = !pr.isReviewRequested && pr.bucket === 'fixes'
budget -= 2
return (
<Box key={key} flexDirection="column" marginBottom={0}>
<Box>
<Link href={pr.url}>{`#${pr.number} ${pr.title}`}</Link>
</Box>
<Box>
<Text dimColor>{pr.repo} · {pr.files}f +{pr.additions}/-{pr.deletions} · </Text>
<Text color={age.color} dimColor={!age.color}>{age.text}</Text>
<Text dimColor> · </Text>
<Text color={ciColor(pr.ci)}>{ciText(pr.ci)}</Text>
<Text dimColor> · {pr.isReviewRequested ? `by ${pr.author}` : mergeText(pr)}</Text>
</Box>
{draftOrFix && <Text color="red"> {pr.fixReasons.join(', ')}</Text>}
<Box>
{pr.issues.map(l => (
<Link key={l.url} href={l.url}>{`${l.label} `}</Link>
))}
{pr.previews.map(l => (
<Link key={l.url} href={l.url}>{`${l.label} `}</Link>
))}
{pr.isReviewRequested || pr.bucket === 'ready' || pr.bucket === 'fixes' ? (
<Button
key={`act-${key}`}
label={pr.isReviewRequested ? 'Review with Claude' : pr.bucket === 'fixes' ? 'Fix with Claude' : 'Self-review'}
onPress={() => $.prompt.submit({ text: pr.isReviewRequested || pr.bucket === 'ready' ? reviewPrompt(pr) : fixPrompt(pr) })}
/>
) : null}
</Box>
</Box>
)
}
const sectionEl = (key: string, title: string, items: Pr[]) => {
const isOpen = !v.collapsed.includes(key)
budget -= 1
return (
<Box key={`s-${key}`} flexDirection="column" marginTop={1}>
<Button
key={`toggle-${key}`}
label={`${isOpen ? '▾' : '▸'} ${title} (${items.length})`}
onPress={async () => {
const next = { ...v, collapsed: isOpen ? [...v.collapsed, key] : v.collapsed.filter(k => k !== key) }
await update($, view, () => next)
await $.store.set('view', next)
}}
/>
{isOpen &&
(key === 'review'
? reviewGroups(items).map(([via, sub]) => (
<Box key={`g-${via}`} flexDirection="column">
<Text dimColor>{via === YOU ? 'Requested of you' : `Team ${via}`} ({sub.length})</Text>
{sub.map(pr => (budget > 0 ? prRow(pr, `${key}-${via}-${pr.url}`) : null))}
</Box>
))
: items.map(pr => (budget > 0 ? prRow(pr, `${key}-${pr.url}`) : null)))}
</Box>
)
}
const copy = (scope: Scope, label: string) => (
<Button
key={`copy-${scope}`}
label={label}
onPress={press =>
$.ui.copy({ text: formatSummary(d.prs, v.format, scope), surface: press.surface })
}
/>
)
const nextFormat = { md: 'slack', slack: 'text', text: 'md' } as const
const eyes = reviewCount(by.review!, s.isCountingTeams)
return (
<Box flexDirection="column">
<Box>
<Text bold>{d.prs.filter(p => !p.isReviewRequested).length} open</Text>
{eyes > 0 && <Text> · 👀 {eyes}</Text>}
<Text dimColor> · {busy ? 'refreshing…' : d.fetchedAt ? `updated ${fmtAge(d.fetchedAt, now).text} ago` : 'no data yet'} </Text>
<Button key="refresh" label="Refresh" hotkey="r" onPress={() => refresh($)} />
</Box>
{d.error && <Text color="red">! {d.error}</Text>}
{d.prs.length === 0 && !d.error && <Text dimColor>No open pull requests.</Text>}
{SECTIONS.map(([key, title]) => (by[key]!.length ? sectionEl(key, title, by[key]!) : null))}
{budget <= 0 && <Text dimColor>… more hidden; collapse sections to see the rest</Text>}
<Box marginTop={1}>
<Text dimColor>Copy </Text>
{copy('all', 'all')}
{copy('review', 'to review')}
{copy('mine', 'awaiting review')}
<Button
key="format"
label={`as ${v.format}`}
onPress={async () => {
const next = { ...v, format: nextFormat[v.format] }
await update($, view, () => next)
await $.store.set('view', next)
}}
/>
</Box>
<Box>
<Text dimColor>Poll </Text>
{INTERVALS.map(m => (
<Button
key={`i-${m}`}
label={m === s.intervalMinutes ? `[${m}m]` : `${m}m`}
onPress={async () => {
const next = { ...s, intervalMinutes: m }
await update($, settings, () => next)
await $.store.set('settings', next)
schedule($, m)
}}
/>
))}
<Button
key="teams"
label={s.isCountingTeams ? '👀 incl. teams' : '👀 direct only'}
onPress={async () => {
const next = { ...s, isCountingTeams: !s.isCountingTeams }
await update($, settings, () => next)
await $.store.set('settings', next)
await setStatus($)
}}
/>
</Box>
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Designibl 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
runs programsdrives Clauderemembers
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 492c95f49a4d 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.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.its repository's .claude-plugin/marketplace.json does not list it: no install line to give |
| 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.hooks/register.tsx:67 a program named at run time |
| 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's .claude-plugin/marketplace.json does not list it, so there is no install line to give. Read it as code, or follow its author's README.
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 "designibl-pr-bar" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
✦ explain as pick how Claude answers×3 ● build3 ● build3 ● build▸ VideoAsk Claude…
-
Ask Claude…CIcross Bash · Classicmain · a1b2c3d · failed at 14:32Open the run on GitHubFix it fClose x
(no log available)
-
Ask 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
-
Ask Claude…gh-pulser Refreshm buildf Fix ite Rerun failedl Next logy Copy loga Review with Claudeo Openx Removed Clear finished (3)c Clearz Undo (build)h Hide keyspending Detail only…KFailingKFailingKFailingKFailingKFailingKFailingKFailingKFailingKFailing3 buildNothing open. Press m to bring the list back.3 build3 build
-
Ask Claude…◉ Subcommands◆ acme/app● Backlog build▲ Backlog build⇄ Backlog build✗ Backlog buildPriorityBacklog 3%◌ syncing… r⚙ Set up build for the board◌ Reading the repo, its project and its issues…Couldn't read what setup needs: Item closed/issues check says what is missing and how to fix it.Projectnone is linked to buildFix login (#3)buildApply will:● Fix login Item closed● Fix login Item closed● Fix login Item closedarea labels to create: Off track updateWhich Status is whichInbox (folds)Inbox (folds)Inbox (folds)In the project's Workflows settings, by hand: · turn on Off track · turn off Inactive: it marks every closed issue Done, even an abandoned one; the board moves issues closed as comp… · new issues arrive with Status Todo, GitHub's default, so they skip the Inbox: open Item added to project and set it…↗ WorkflowsNo issue template has an Acceptance list.◌ Applying…build █████░░░ Off trackbuild █████░░░ Off tracklast 12 weeks✗ Setup needed⋯Fix loginSubcommandsSubcommands↗ example.comFix loginSubcommandsSubcommands↗ example.comFix loginSubcommandsSubcommands↗ example.com
-
Ask Claude…Tokenbreak● Learn moresponsoredFix loginTokenbreak ↗ 🔊 muteCloses when Claude finishes · /ads pause hides ads