ModsCode / Claude Code Mods / Ranking / pr-watch
pr-watch
Above the prompt: the branch PR with its checks and failing log lines, uncommitted work with a commit-and-push key, and how far the branch is behind the default branch with a rebase key. The branch name sits in the hint line.
What it does
- Draws a band above the prompt, a pane, toasts
- Adds /pr-watch
- Watches mcp__pr-watch__commit, mcp__pr-watch__push, mcp__pr-watch__rebase_and_push calls and can refuse them
- Hooks prompt.submit, session.start, turn.complete, turn.start
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Handles errors
- Writes no files
Code to start from
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like pr-watch by cephalofoil (pane, band, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/cephalofoil-pr-watch/
// 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 busy = '…'
const key = '…'
const mark = '…'
const number = '…'
const word = '…'
const title = '…'
const done = '…'
const total = '…'
const GLYPH = '…'
const split = '…'
const GLYPH2 = '…'
const split2 = '…'
const GLYPH3 = '…'
const split3 = '…'
const skipped = '…'
const name = '…'
const line = '…'
const line2 = '…'
const line3 = '…'
const name2 = '…'
const line4 = '…'
const line5 = '…'
const line6 = '…'
const name3 = '…'
const line7 = '…'
const line8 = '…'
const line9 = '…'
const dirty = '…'
const filter = '…'
const outgoing = '…'
const plural = '…'
const number2 = '…'
const behind = '…'
const base = '…'
const map = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column">
<Text color="yellow" wrap="truncate-end">
{"● "}
{busy}
</Text>
<Box flexDirection="column">
<Text color="red" wrap="truncate-end">
{"✗ "}
{key}
{" failed · "}
</Text>
<Box columnGap={2} marginLeft={2}>
<Button plain hotkey="r" label="Resolve with Claude" />
<Button plain dimColor hotkey="n" label="Cancel" />
</Box>
</Box>
<Box flexDirection="column">
<Box columnGap={1}>
<Text bold>
{mark}
{" PR #"}
{number}
</Text>
<Text>
{word}
</Text>
<Text dimColor>
·
</Text>
<Box flexGrow={1} flexShrink={1}>
<Text wrap="truncate-end">
{title}
{` · ${done}/${total} done`}
</Text>
</Box>
</Box>
<Box columnGap={2} flexWrap="wrap" marginLeft={2}>
<Box>
<Text>
{GLYPH}
{" "}
</Text>
<Text>
{split}
</Text>
<Text dimColor>
{" queued"}
</Text>
</Box>
<Box>
<Text>
{GLYPH2}
{" "}
</Text>
<Text>
{split2}
</Text>
<Text dimColor>
{" queued"}
</Text>
</Box>
<Box>
<Text>
{GLYPH3}
{" "}
</Text>
<Text>
{split3}
</Text>
<Text dimColor>
{" queued"}
</Text>
</Box>
<Text dimColor>
{"– "}
{skipped}
{" skipped"}
</Text>
<Text dimColor>
no checks reported yet
</Text>
</Box>
<Box flexDirection="column" marginLeft={2}>
<Text color="red" wrap="truncate-end">
{"✗ "}
{name}
{" · log arrives when the run finishes"}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{line}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{line2}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{line3}
</Text>
</Box>
<Box flexDirection="column" marginLeft={2}>
<Text color="red" wrap="truncate-end">
{"✗ "}
{name2}
{" · log arrives when the run finishes"}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{line4}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{line5}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{line6}
</Text>
</Box>
<Box flexDirection="column" marginLeft={2}>
<Text color="red" wrap="truncate-end">
{"✗ "}
{name3}
{" · log arrives when the run finishes"}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{line7}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{line8}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{line9}
</Text>
</Box>
<Box columnGap={2} marginLeft={2}>
<Button plain hotkey="1" label="Retry failed" />
<Button plain hotkey="2" label="Hand log to Claude" />
<Button plain dimColor hotkey="3" label="Open in browser" />
<Button plain dimColor hotkey="x" label="Hide" />
</Box>
</Box>
<Box columnGap={1}>
<Text bold color="cyan">
{"● "}
{dirty}
{" uncommitted"}
</Text>
<Text dimColor>
{"· "}
{filter}
{` · ↑ ${outgoing} not pushed`}
</Text>
<Text>
{" "}
</Text>
<Button plain hotkey="c" label="Commit" />
</Box>
<Box columnGap={1}>
<Text bold color="cyan">
{`↑ ${plural} not pushed`}
</Text>
<Text dimColor>
· no PR yet
</Text>
<Text>
{" "}
</Text>
<Button plain hotkey="p" label="Push" />
</Box>
<Box columnGap={1}>
<Text bold color="magenta">
✓ PR #
{number2}
{" merged"}
</Text>
<Text dimColor>
· this branch is done
</Text>
<Text>
{" "}
</Text>
<Text dimColor>
commit or stash first to switch
</Text>
</Box>
<Box columnGap={1}>
<Text bold color="yellow">
{"↓ "}
{behind}
{" behind "}
{base}
</Text>
<Text dimColor>
·
</Text>
<Text dimColor>
conflict check unavailable
</Text>
<Text color="green">
rebase looks clean
</Text>
<Text color="red" wrap="truncate-end">
{"conflicts likely in "}
{plural}
:
{" "}
{map}
, …
</Text>
<Text>
{" "}
</Text>
<Button plain hotkey="b" label="Rebase & push" />
<Button plain dimColor hotkey="h" label="Hide" />
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "PR" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const key = '…'
const mark = '…'
const number = '…'
const title = '…'
const word = '…'
const number2 = '…'
const title2 = '…'
const done = '…'
const total = '…'
const branch = '…'
const behind = '…'
const base = '…'
const GLYPH = '…'
const name = '…'
const duration = '…'
const step = '…'
const line = '…'
const line2 = '…'
const line3 = '…'
const GLYPH2 = '…'
const name2 = '…'
const duration2 = '…'
const step2 = '…'
const line4 = '…'
const line5 = '…'
const line6 = '…'
const GLYPH3 = '…'
const name3 = '…'
const duration3 = '…'
const step3 = '…'
const line7 = '…'
const line8 = '…'
const line9 = '…'
const length = '…'
const map = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column">
<Text bold color="red">
{"✗ "}
{key}
{" failed"}
</Text>
<Text>
{" "}
</Text>
<Text>
{" "}
</Text>
<Text>
{" "}
</Text>
<Text>
{" "}
</Text>
<Box columnGap={2}>
<Button plain hotkey="r" label="Resolve with Claude" />
<Button plain dimColor hotkey="n" label="Cancel" />
</Box>
<Text>
{" "}
</Text>
</Box>
<Text bold wrap="truncate-end">
{mark}
{" PR #"}
{number}
{" · "}
{title}
</Text>
<Box>
<Text dimColor>
{"Status "}
</Text>
<Text bold>
{word}
</Text>
<Text dimColor>
{" · draft"}
</Text>
</Box>
<Box>
<Text dimColor>
{"Issue "}
</Text>
<Text wrap="truncate-end">
#
{number2}
{" "}
{title2}
{` · ${done}/${total} done`}
</Text>
</Box>
<Box>
<Text dimColor>
{"Branch "}
</Text>
<Text wrap="truncate-end">
{branch}
</Text>
<Text color="yellow">
{` · ${behind} behind ${base}`}
</Text>
</Box>
<Text>
{" "}
</Text>
<Text dimColor>
{" No checks reported yet."}
</Text>
<Box flexDirection="column">
<Box>
<Text>
{" "}
{GLYPH}
{" "}
</Text>
<Box flexGrow={1}>
<Text wrap="truncate-end">
{name}
</Text>
</Box>
<Text dimColor>
{" running "}
{duration}
</Text>
</Box>
<Text dimColor italic>
{" log arrives when the run finishes"}
</Text>
<Box flexDirection="column" marginLeft={6}>
<Text color="red" wrap="truncate-end">
{step}
</Text>
<Text dimColor wrap="truncate-end">
{line}
</Text>
<Text dimColor wrap="truncate-end">
{line2}
</Text>
<Text dimColor wrap="truncate-end">
{line3}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Box>
<Text>
{" "}
{GLYPH2}
{" "}
</Text>
<Box flexGrow={1}>
<Text wrap="truncate-end">
{name2}
</Text>
</Box>
<Text dimColor>
{" running "}
{duration2}
</Text>
</Box>
<Text dimColor italic>
{" log arrives when the run finishes"}
</Text>
<Box flexDirection="column" marginLeft={6}>
<Text color="red" wrap="truncate-end">
{step2}
</Text>
<Text dimColor wrap="truncate-end">
{line4}
</Text>
<Text dimColor wrap="truncate-end">
{line5}
</Text>
<Text dimColor wrap="truncate-end">
{line6}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Box>
<Text>
{" "}
{GLYPH3}
{" "}
</Text>
<Box flexGrow={1}>
<Text wrap="truncate-end">
{name3}
</Text>
</Box>
<Text dimColor>
{" running "}
{duration3}
</Text>
</Box>
<Text dimColor italic>
{" log arrives when the run finishes"}
</Text>
<Box flexDirection="column" marginLeft={6}>
<Text color="red" wrap="truncate-end">
{step3}
</Text>
<Text dimColor wrap="truncate-end">
{line7}
</Text>
<Text dimColor wrap="truncate-end">
{line8}
</Text>
<Text dimColor wrap="truncate-end">
{line9}
</Text>
</Box>
</Box>
<Text dimColor italic wrap="truncate-end">
{" "}
{"– "}
{length}
{" skipped by path filter: "}
{map}
</Text>
<Text>
{" "}
</Text>
<Box columnGap={2} flexWrap="wrap">
<Button plain hotkey="1" label="Retry failed" />
<Button plain hotkey="2" label="Hand log to Claude" />
<Button plain hotkey="3" label="Open in browser" />
<Button plain hotkey="r" label="Refresh" />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const behind = '…'
const base = '…'
const number = '…'
await $.ui.toast(`${behind} behind ${base}: rebasing (auto-rebase is on)`)
await $.ui.toast(`PR #${number}: failed jobs restarted`)
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.
pr-watch/hooks/register.tsx lines 981–1140 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey) return next(e)
const pr = await read($, snapshot)
const git = await read($, gitState)
const now = pr === null ? null : overall(pr)
const hasPr =
pr !== null && git !== null && now !== null && pr.branch === git.branch &&
now !== 'merged' && now !== 'closed' && (await read($, hiddenPr)) !== keyOf(pr)
const dirty = git === null ? 0 : git.modified + git.untracked
// The branch's PR is merged and nothing was committed since: the branch is done.
const isDone =
pr !== null && git !== null && pr.state === 'MERGED' && pr.branch === git.branch && pr.headSha === git.head
const isOpen = pr !== null && git !== null && pr.state === 'OPEN' && pr.branch === git.branch
// A branch without an upstream has pushed nothing: everything on top of the base is outgoing.
const outgoing = git === null ? 0 : (git.unpushed ?? git.ahead)
const isBase = git !== null && `origin/${git.branch}` === git.base
const hasPush =
git !== null && dirty === 0 && !isDone && !isBase && (outgoing > 0 || (!isOpen && git.ahead > 0))
const hasRebase =
!isDone && git !== null && git.behind > 0 && `origin/${git.branch}` !== git.base && (await read($, hiddenRebase)) !== git.baseSha
const busy = await read($, doing)
const halt = await read($, halted)
if (!hasPr && !isDone && dirty === 0 && !hasPush && !hasRebase && busy === null && halt === null) return next(e)
const below = await next(e)
const { Box, Button, Text } = $.ui.resolve(e)
const width = Math.max(30, e.props.bodyColumns)
const failed = hasPr ? pr.checks.filter(check => check.state === 'fail') : []
const skipped = hasPr ? pr.checks.filter(check => check.state === 'skipped').length : 0
const files = git?.conflicts ?? []
return (
<Box flexDirection="column">
<Box flexDirection="column" width={width}>
{busy !== null && (
<Text color="yellow" wrap="truncate-end">● {busy}</Text>
)}
{halt !== null && (
<Box flexDirection="column">
<Text color="red" wrap="truncate-end">
✗ {halt.key} failed · {halt.why.split(/\r?\n/).find(line => line.trim() !== '')?.trim() ?? ''}
</Text>
<Box columnGap={2} marginLeft={2}>
<Button key="resolve" plain hotkey="r" label="Resolve with Claude" onPress={() => resolve($, halt)} />
<Button key="cancel" plain dimColor hotkey="n" label="Cancel" onPress={() => update($, halted, () => null)} />
</Box>
</Box>
)}
{hasPr && (
<Box flexDirection="column">
<Box columnGap={1}>
<Text bold color={HEAD[now].color}>
{HEAD[now].mark} PR #{pr.number}
</Text>
<Text color={HEAD[now].color}>{HEAD[now].word}</Text>
<Text dimColor>·</Text>
<Box flexGrow={1} flexShrink={1}>
<Text wrap="truncate-end">
{pr.issue === null ? pr.title : `#${pr.issue.number} ${pr.issue.title}`}
{pr.issue !== null && pr.issue.total > 0 ? ` · ${pr.issue.done}/${pr.issue.total} done` : ''}
</Text>
</Box>
</Box>
<Box columnGap={2} flexWrap="wrap" marginLeft={2}>
{pr.checks
.filter(check => check.state !== 'skipped')
.map(check => (
<Box>
<Text color={COLOR[check.state]}>{GLYPH[check.state]} </Text>
<Text bold={check.state === 'fail'} dimColor={check.state === 'pass'}>
{check.name.split(' — ')[0]}
</Text>
<Text dimColor>
{check.state === 'queued' ? ' queued' : check.seconds === null ? '' : ` ${duration(check.seconds)}`}
</Text>
</Box>
))}
{skipped > 0 && <Text dimColor>– {skipped} skipped</Text>}
{pr.checks.length === 0 && <Text dimColor>no checks reported yet</Text>}
</Box>
{failed.map(check => {
const log = pr.logs.find(one => one.jobId === check.jobId)
return (
<Box flexDirection="column" marginLeft={2}>
<Text color="red" wrap="truncate-end">
✗ {check.name}
{log === undefined ? ' · log arrives when the run finishes' : log.step === '' ? '' : ` › ${log.step}`}
</Text>
{log !== undefined &&
headline(log.lines, 2).map(line => (
<Text dimColor wrap="truncate-end"> {line}</Text>
))}
</Box>
)
})}
<Box columnGap={2} marginLeft={2}>
{failed.length > 0 && <Button key="retry" plain hotkey="1" label="Retry failed" onPress={() => retry($, pr)} />}
{failed.length > 0 && <Button key="hand" plain hotkey="2" label="Hand log to Claude" onPress={() => hand($, pr)} />}
<Button key="web" plain dimColor hotkey="3" label="Open in browser" onPress={() => browse($, pr)} />
<Button key="hide-pr" plain dimColor hotkey="x" label="Hide" onPress={() => update($, hiddenPr, () => keyOf(pr))} />
</Box>
</Box>
)}
{git !== null && dirty > 0 && (
<Box columnGap={1}>
<Text bold color="cyan">● {dirty} uncommitted</Text>
<Text dimColor>
· {[git.modified > 0 ? `${git.modified} modified` : '', git.untracked > 0 ? `${git.untracked} new` : '']
.filter(Boolean)
.join(', ')}
{outgoing > 0 ? ` · ↑ ${outgoing} not pushed` : ''}
</Text>
<Text> </Text>
<Button
key="commit"
plain
hotkey="c"
label="Commit"
onPress={() => act($, 'The person pressed Commit', () => commitKey($), ASK.commit)}
/>
</Box>
)}
{hasPush && (
<Box columnGap={1}>
<Text bold color="cyan">
{outgoing > 0 ? `↑ ${plural(outgoing, 'commit')} not pushed` : '↑ pushed'}
</Text>
{!isOpen && <Text dimColor>· no PR yet</Text>}
<Text> </Text>
<Button
key="push"
plain
hotkey="p"
label={isOpen ? 'Push' : outgoing > 0 ? 'Push & open PR' : 'Open PR'}
onPress={() =>
isOpen
? act($, 'The person pressed Push', () => pushTool($, {}), ASK.push)
: act($, 'The person pressed Push & open PR', () => shipKey($), ASK.ship)
}
/>
</Box>
)}
{isDone && (
<Box columnGap={1}>
<Text bold color="magenta">✓ PR #{pr.number} merged</Text>
<Text dimColor>· this branch is done</Text>
<Text> </Text>
{dirty === 0 ? (
<Button
key="switch"
plain
hotkey="m"
label={`Switch to ${git.base.replace(/^origin\//, '')}`}
onPress={() => switchToBase($, git)}
/>pr-watch/hooks/register.tsx lines 1186–1301 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Button, Text } = $.ui.resolve(e)
const pr = await read($, snapshot)
const git = await read($, gitState)
const halt = await read($, halted)
// A key that stopped: its reason whole, every line wrapped, none cut.
const stop = halt !== null && (
<Box flexDirection="column">
<Text bold color="red">✗ {halt.key} failed</Text>
{halt.why.split(/\r?\n/).map(line => (
<Text>{line === '' ? ' ' : line}</Text>
))}
<Text> </Text>
<Box columnGap={2}>
<Button key="resolve" plain hotkey="r" label="Resolve with Claude" onPress={() => resolve($, halt)} />
<Button key="cancel" plain dimColor hotkey="n" label="Cancel" onPress={() => update($, halted, () => null)} />
</Box>
<Text> </Text>
</Box>
)
if (pr === null) {
return (
<Box flexDirection="column">
{stop}
<Text dimColor>
{(await read($, isLoaded)) ? 'This branch has no pull request.' : 'Looking for the pull request…'}
</Text>
</Box>
)
}
const now = overall(pr)
const head = HEAD[now]
const width = Math.max(30, Math.min(e.props.bodyColumns, 76))
const shown = pr.checks.filter(check => check.state !== 'skipped')
const skipped = pr.checks.filter(check => check.state === 'skipped')
const failed = pr.checks.filter(check => check.state === 'fail')
const room = e.props.placement === 'dock' ? 6 : 3
const behind = git !== null && git.branch === pr.branch ? git.behind : null
return (
<Box flexDirection="column" width={width}>
{stop}
<Text bold color={head.color} wrap="truncate-end">
{head.mark} PR #{pr.number} · {pr.title}
</Text>
<Box>
<Text dimColor>Status </Text>
<Text bold color={head.color}>{head.word}</Text>
{pr.isDraft && <Text dimColor> · draft</Text>}
</Box>
{pr.issue !== null && (
<Box>
<Text dimColor>Issue </Text>
<Text wrap="truncate-end">
#{pr.issue.number} {pr.issue.title}
{pr.issue.total > 0 ? ` · ${pr.issue.done}/${pr.issue.total} done` : ''}
</Text>
</Box>
)}
<Box>
<Text dimColor>Branch </Text>
<Text wrap="truncate-end">{pr.branch}</Text>
{behind !== null && pr.state === 'OPEN' && (
<Text color={behind > 0 ? 'yellow' : undefined} dimColor={behind === 0}>
{behind > 0 ? ` · ${behind} behind ${git?.base.replace(/^origin\//, '') ?? 'base'}` : ' · up to date'}
</Text>
)}
</Box>
<Text> </Text>
{pr.checks.length === 0 && <Text dimColor> No checks reported yet.</Text>}
{shown.map(check => {
const log = pr.logs.find(one => one.jobId === check.jobId)
return (
<Box flexDirection="column">
<Box>
<Text color={COLOR[check.state]}> {GLYPH[check.state]} </Text>
<Box flexGrow={1}>
<Text bold={check.state === 'fail'} wrap="truncate-end">{check.name}</Text>
</Box>
<Text dimColor>
{check.state === 'running' ? ' running ' : check.state === 'queued' ? ' queued' : ' '}
{duration(check.seconds)}
</Text>
</Box>
{check.state === 'fail' && log === undefined && (
<Text dimColor italic> log arrives when the run finishes</Text>
)}
{log !== undefined && (
<Box flexDirection="column" marginLeft={6}>
{log.step !== '' && <Text color="red" wrap="truncate-end">{log.step}</Text>}
{headline(log.lines, room).map(line => (
<Text dimColor wrap="truncate-end">{line}</Text>
))}
</Box>
)}
</Box>
)
})}
{skipped.length > 0 && (
<Text dimColor italic wrap="truncate-end">
{' '}– {skipped.length} skipped by path filter: {skipped.map(check => check.name.split(' — ')[0]).join(', ')}
</Text>
)}
<Text> </Text>
<Box columnGap={2} flexWrap="wrap">
{failed.length > 0 && <Button key="retry" plain hotkey="1" label="Retry failed" onPress={() => retry($, pr)} />}
{failed.length > 0 && <Button key="hand" plain hotkey="2" label="Hand log to Claude" onPress={() => hand($, pr)} />}
<Button key="web" plain hotkey="3" label="Open in browser" onPress={() => browse($, pr)} />
<Button key="refresh" plain hotkey="r" label="Refresh" onPress={() => refreshPr($)} />
</Box>
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 cephalofoil and contributors 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.
How to build this: Pane (panel), Deny a tool call
What its code calls
runs programsreads filesdrives Claudetool calls
What its code shows
Read from the source at commit 73bc4d541310 on 2026-10-11. 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.pr-watch/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.2 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.pr-watch/hooks/register.tsx:146 a program named at run time |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads files, but reaches nothing outside |
| 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 |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.prompt.submit (as the person), model.fork (sends its own transcript), model.complete, adds command pr-watch, adds tool commit, adds tool push, adds tool rebase_and_push |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run (pr-watch), tool.call (mcp__pr-watch__commit, mcp__pr-watch__push, mcp__pr-watch__rebase_a…), prompt.submit · also: session.start, turn.start, turn.complete, ui.render (PromptHint, AbovePrompt, Pane) · timers: clock.after, clock.every |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.files: a path computed at run time, kitt.toml |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.the conversation (a row the model reads) |
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 its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
From its marketplace
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 cephalofoil/kitt/plugin install pr-watch@kitt/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (73bc4d541310). Compare them before you install. /reload-plugins loads it into a session that is already open.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/cephalofoil/kittgit -C kitt checkout 73bc4d5413108496333360081852fbfcd8254eb3claude plugin validate kitt/pr-watchclaude --plugin-dir kitt/pr-watchThe validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude about it
With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:
Read the ModsCode mod "cephalofoil-pr-watch" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- crit-tuiTomasz Tomczyk★ 1,196
- remctlFederico Viticci★ 595
- task-orchestrator-modJeff Picklyk★ 208
- localvoxtral-modlocalvoxtral★ 59
- localvoxtral-remotelocalvoxtral★ 59
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/cephalofoil-pr-watch/)