modscode JA

modscode / Gallery / pr-pulse

pr-pulse

PR Pulse: live status, merge readiness, checks, comments, review queue and change alerts for your GitHub PRs, with a collapsible band

Code you can checkTerminal + desktopPaneBandStatus lineToastBoxButtonMarkdownText

What it does

  • Draws a band above the prompt, a pane, the status line, toasts
  • Adds /pulse
  • Hooks classic.CwdChanged, session.start, ui.close
  • 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)

register.tsx
import type { Register } from 'claude-code'

// Drawn like pr-pulse by Gerric Chaplin (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/gerricchaplin-pr-pulse/
// 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 g = '…'
    const number = '…'
    const b = '…'
    const g2 = '…'
    const b2 = '…'
    const g3 = '…'
    const b3 = '…'
    const length = '…'
    const text = '…'
    const toLocaleTimeString = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
          <Text backgroundColor="#6000F0" color="#F4F0FF">
            {" ◆ PR "}
          </Text>
          <Text color="#A7B1C2">
            no open PRs
          </Text>
          <Box flexDirection="row">
            <Text>
              {g}
              {" "}
            </Text>
            <Button plain label={`#${number}`} />
            <Text color="#86D9A8">
              {" "}
              {b}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {g2}
              {" "}
            </Text>
            <Button plain label={`#${number}`} />
            <Text color="#86D9A8">
              {" "}
              {b2}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {g3}
              {" "}
            </Text>
            <Button plain label={`#${number}`} />
            <Text color="#86D9A8">
              {" "}
              {b3}
            </Text>
          </Box>
          <Text color="#C9B8FB">
            {"👀 "}
            {length}
            {" to review"}
          </Text>
          <Button label="⤢ Expand" hotkey="e" />
        </Box>
        <Text color="#F2A0A0">
          {"      "}
          {text}
          {" · "}
          {toLocaleTimeString}
        </Text>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "PR Pulse" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button, Markdown } = $.ui.resolve(e)
    const title = '…'
    const number = '…'
    const review = '…'
    const mergeable = '…'
    const text = '…'
    const label = '…'
    const label2 = '…'
    const label3 = '…'
    const toLocaleTimeString = '…'
    const POLL_MS = '…'
    const error = '…'
    const where = '…'
    const state = '…'
    const when = '…'
    const state2 = '…'
    const when2 = '…'
    const state3 = '…'
    const when3 = '…'
    const where2 = '…'
    const state4 = '…'
    const when4 = '…'
    const state5 = '…'
    const when5 = '…'
    const state6 = '…'
    const when6 = '…'
    const where3 = '…'
    const state7 = '…'
    const when7 = '…'
    const state8 = '…'
    const when8 = '…'
    const state9 = '…'
    const when9 = '…'
    const state10 = '…'
    const when10 = '…'
    const body = '…'
    const state11 = '…'
    const when11 = '…'
    const state12 = '…'
    const when12 = '…'
    const author = '…'
    const split = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" justifyContent="space-between">
          <Text>
            <Text backgroundColor="#6000F0" color="#F4F0FF">
              {" ◆ PR PULSE "}
            </Text>
            <Text color="#A7B1C2">
              {" "}
              …
            </Text>
          </Text>
          <Box flexDirection="row" gap={1}>
            <Button label="↻ Refresh" hotkey="r" />
            <Button label="▁ Minimise" hotkey="m" />
            <Button label="✕ Close" hotkey="q" />
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderColor="#A37BFF" paddingX={1} marginTop={1}>
          <Box flexDirection="row" gap={1}>
            <Button variant="primary" label="↗ Open PR" hotkey="o" />
            <Text>
              {title}
            </Text>
          </Box>
          <Text>
            <Text color="#C9B8FB">
              #
              {number}
            </Text>
            <Text color="#A7B1C2">
              {" · "}
            </Text>
            <Text color="#A7B1C2">
              ○ draft
            </Text>
            <Text color="#A7B1C2">
              {" · "}
            </Text>
            <Text>
              {"● "}
              {review}
            </Text>
            <Text color="#A7B1C2">
              {" · "}
            </Text>
            <Text color="#F2A0A0">
              {mergeable}
            </Text>
          </Text>
          <Box flexDirection="row">
            <Text color="#E9CB7C">
              {"💬 "}
            </Text>
            <Button plain label="0 unresolved · 0 thread · conversation ›" />
          </Box>
          <Box flexDirection="column" marginTop={1}>
            <Text>
              <Text color="#0F1729">
                {text}
              </Text>
            </Text>
            <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
              <Text color="#86D9A8">
                ✓
                {" "}
                {label}
              </Text>
              <Text color="#86D9A8">
                ✓
                {" "}
                {label2}
              </Text>
              <Text color="#86D9A8">
                ✓
                {" "}
                {label3}
              </Text>
            </Box>
          </Box>
          <Text color="#A7B1C2">
            {"updated "}
            {toLocaleTimeString}
            {" · auto-refresh "}
            {POLL_MS}
            s
          </Text>
          <Text color="#F2A0A0">
            {"⚠ "}
            {error}
          </Text>
        </Box>
        <Box marginTop={1}>
          <Button plain label="← checks" />
        </Box>
        <Text color="#A7B1C2">
          Loading comments…
        </Text>
        <Box flexDirection="column">
          <Box marginTop={1}>
            <Text color="#E9CB7C">
              UNRESOLVED THREADS
            </Text>
          </Box>
          <Text color="#86D9A8">
            ✓ Nothing waiting on you.
          </Text>
          <Box flexDirection="column" borderStyle="round" borderColor="#E9CB7C" paddingX={1}>
            <Box flexDirection="row" justifyContent="space-between">
              <Text color="#C9B8FB">
                {where}
              </Text>
              <Box flexDirection="row" columnGap={1}>
                <Button label="✦ Address with Claude" />
                <Button label="↗ Open" />
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when}
                </Text>
              </Text>
              <Markdown text="_(no text)_" />
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state2}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when2}
                </Text>
              </Text>
              <Markdown text="_(no text)_" />
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state3}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when3}
                </Text>
              </Text>
              <Markdown text="_(no text)_" />
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" borderColor="#E9CB7C" paddingX={1}>
            <Box flexDirection="row" justifyContent="space-between">
              <Text color="#C9B8FB">
                {where2}
              </Text>
              <Box flexDirection="row" columnGap={1}>
                <Button label="✦ Address with Claude" />
                <Button label="↗ Open" />
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state4}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when4}
                </Text>
              </Text>
              <Markdown text="_(no text)_" />
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state5}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when5}
                </Text>
              </Text>
              <Markdown text="_(no text)_" />
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state6}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when6}
                </Text>
              </Text>
              <Markdown text="_(no text)_" />
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" borderColor="#E9CB7C" paddingX={1}>
            <Box flexDirection="row" justifyContent="space-between">
              <Text color="#C9B8FB">
                {where3}
              </Text>
              <Box flexDirection="row" columnGap={1}>
                <Button label="✦ Address with Claude" />
                <Button label="↗ Open" />
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state7}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when7}
                </Text>
              </Text>
              <Markdown text="_(no text)_" />
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state8}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when8}
                </Text>
              </Text>
              <Markdown text="_(no text)_" />
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state9}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when9}
                </Text>
              </Text>
              <Markdown text="_(no text)_" />
            </Box>
          </Box>
          <Box marginTop={1}>
            <Text>
              CONVERSATION
            </Text>
          </Box>
          <Text color="#A7B1C2">
            No general comments.
          </Text>
          <Box flexDirection="column" borderStyle="round" borderColor="#48566A" paddingX={1}>
            <Box flexDirection="row" justifyContent="space-between">
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state10}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when10}
                </Text>
              </Text>
              <Button plain label="↗" />
            </Box>
            <Markdown text={`${body}`} />
          </Box>
          <Box flexDirection="column" borderStyle="round" borderColor="#48566A" paddingX={1}>
            <Box flexDirection="row" justifyContent="space-between">
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state11}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when11}
                </Text>
              </Text>
              <Button plain label="↗" />
            </Box>
            <Markdown text={`${body}`} />
          </Box>
          <Box flexDirection="column" borderStyle="round" borderColor="#48566A" paddingX={1}>
            <Box flexDirection="row" justifyContent="space-between">
              <Text>
                <Text color="#C9B8FB">
                  you
                </Text>
                <Text color="#86D9A8">
                  {" · "}
                  {state12}
                </Text>
                <Text color="#A7B1C2">
                  {" · "}
                  {when12}
                </Text>
              </Text>
              <Button plain label="↗" />
            </Box>
            <Markdown text={`${body}`} />
          </Box>
          <Box marginTop={1}>
            <Text color="#A7B1C2">
              RESOLVED THREADS
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text color="#86D9A8">
              {"✓ "}
            </Text>
            <Button plain dimColor label={`${where} · ${author}: ${split}`} />
          </Box>
          <Box flexDirection="row">
            <Text color="#86D9A8">
              {"✓ "}
            </Text>
            <Button plain dimColor label={`${where} · ${author}: ${split}`} />
          </Box>
          <Box flexDirection="row">
            <Text color="#86D9A8">
              {"✓ "}
            </Text>
            <Button plain dimColor label={`${where} · ${author}: ${split}`} />
          </Box>
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const number = '…'
    const state = '…'
    const failed = '…'
    const url = '…'
    await $.ui.status(`PR #${number} ${state} · 0 unresolved · ${failed} failed`)
    await $.ui.toast(`Couldn't open ${url}`)
    await $.ui.toast(`Draft added to your prompt: review it, then press Enter`)
    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 631–639 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    if (e.props.hasSurvey || !(await read($, watchingAtom)) || !(await read($, collapsedAtom))) return next(e)
    const open: PrRow[] = await read($, openAtom)
    const selected: number = await read($, selectedAtom)
    const queue: ReviewRow[] = await read($, reviewsAtom)
    const alerts: Alert[] = await read($, alertsAtom)
    const latest = alerts[0] && Date.now() - alerts[0].at < BAND_ALERT_MS ? alerts[0] : undefined
    return band($.ui.resolve(e), $, open, selected, queue.length, latest)
  })
hooks/register.tsx lines 547–578 · Band
function band(ui: any, $: any, open: PrRow[], selected: number, queue: number, latest: Alert | undefined) {
  const { Box, Text, Button } = ui
  const t = theme
  const glyph = (p: PrRow) =>
    p.checks === 'failed' ? { g: '✗', c: t.fail } : p.checks === 'running' ? { g: '◐', c: t.run } : p.checks === 'passed' ? { g: '✓', c: t.ok } : { g: '○', c: t.muted }
  return (
    <Box flexDirection="column">
      <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
        <Text backgroundColor={t.brandBg} color={t.onBrand}> ◆ PR </Text>
        {open.length === 0 && <Text color={t.muted}>no open PRs</Text>}
        {open.map(p => {
          const gl = glyph(p)
          const b = blocker(p)
          return (
            <Box key={`chip-${p.number}`} flexDirection="row">
              <Text color={gl.c}>{gl.g} </Text>
              <Button plain key={`chip-open-${p.number}`} dimColor={p.number !== selected} label={`#${p.number}`} onPress={() => void expand($, p.number)} />
              <Text color={b === 'ready' ? t.ok : t.muted}> {b}</Text>
            </Box>
          )
        })}
        {queue > 0 && <Text color={t.accent}>👀 {queue} to review</Text>}
        <Button key="expand" label="⤢ Expand" hotkey="e" onPress={() => void expand($)} />
      </Box>
      {latest && (
        <Text color={latest.tone === 'fail' ? t.fail : latest.tone === 'ok' ? t.ok : t.muted}>
          {'      '}{latest.text} · {new Date(latest.at).toLocaleTimeString().slice(0, 5)}
        </Text>
      )}
    </Box>
  )
}
hooks/register.tsx lines 641–800 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const t = theme
    const pr = await read($, prAtom)
    const repo: string = await read($, repoAtom)
    const openPrs: PrRow[] = await read($, openAtom)
    const selected: number = await read($, selectedAtom)
    const error = await read($, errorAtom)
    const loaded: number = await read($, loadedAtom)
    const view: View = await read($, viewAtom)
    const steps: Step[] = await read($, stepsAtom)
    const failedLog: string[] = await read($, logAtom)
    const alerts: Alert[] = await read($, alertsAtom)

    const pick = (n: number) => async () => {
      await update($, selectedAtom, () => n)
      await update($, viewAtom, () => ({}))
      await update($, stepsAtom, () => [])
      void refresh($)
    }
    const go = (v: View) => async () => {
      await update($, viewAtom, () => v)
      await update($, stepsAtom, () => [])
      await update($, logAtom, () => [])
      if (v.comments) await update($, commentsLoadedAtom, () => false)
      if (v.job && pr) await loadSteps($, pr, v.job)
      if (v.comments && pr) await loadComments($, pr)
    }

    const topBar = (
      <Box flexDirection="row" justifyContent="space-between">
        <Text>
          <Text backgroundColor={t.brandBg} color={t.onBrand}> ◆ PR PULSE </Text>
          <Text color={t.muted}>  {repo || '…'}</Text>
        </Text>
        <Box flexDirection="row" gap={1}>
          <Button key="refresh" label="↻ Refresh" hotkey="r" onPress={() => void refresh($, true)} />
          <Button key="minimise" label="▁ Minimise" hotkey="m" onPress={() => void minimise($)} />
          <Button key="close" label="✕ Close" hotkey="q" onPress={() => void stop($)} />
        </Box>
      </Box>
    )
    const section = (label: string, count?: number, color = t.accent) => (
      <Box marginTop={1}>
        <Text color={color}>{count === undefined ? label.toUpperCase() : `${label.toUpperCase()} · ${count}`}</Text>
      </Box>
    )
    const errorLine = error ? <Text color={t.fail}>⚠ {error}</Text> : null

    const openSection = (
      <Box flexDirection="column">
        {section('Open PRs', openPrs.length)}
        {openPrs.length === 0 && <Text color={t.muted}>None open.</Text>}
        {openPrs.map(p => {
          const isSel = p.number === selected
          return (
            <Box key={`pr-row-${p.number}`} flexDirection="row">
              <Text color={t.brand}>{isSel ? '▸ ' : '  '}</Text>
              <Button plain key={`pr-${p.number}`} dimColor={!isSel} label={`#${p.number} ${p.title}`} onPress={pick(p.number)} />
              {p.isDraft && <Text color={t.muted}> · draft</Text>}
            </Box>
          )
        })}
      </Box>
    )

    if (!pr) {
      return (
        <Box flexDirection="column">
          {topBar}
          {openSection}
          {errorLine ?? <Text color={t.muted}>Loading PR…</Text>}
        </Box>
      )
    }

    const groups = new Map<string, Check[]>()
    for (const c of pr.checks) groups.set(c.workflow, [...(groups.get(c.workflow) ?? []), c])
    const total = pr.checks.length
    const done = pr.checks.filter(c => !isPending(c)).length
    const count = (cs: Check[]) => {
      const n: Record<Outcome, number> = { failed: 0, running: 0, passed: 0, skipped: 0 }
      for (const c of cs) n[outcome(c)]++
      return n
    }
    const counts = count(pr.checks)

    const bar = (n: Record<Outcome, number>, of: number) => {
      const cells = (k: number) => (of ? Math.round((k / of) * BAR_WIDTH) : 0)
      const order: Outcome[] = ['failed', 'passed', 'skipped', 'running']
      const widths = order.map(o => cells(n[o]))
      const rest = Math.max(0, BAR_WIDTH - widths.reduce((a, b) => a + b, 0))
      return (
        <Text>
          {order.map((o, i) => <Text color={tone(o)}>{'█'.repeat(widths[i]!)}</Text>)}
          <Text color={t.rule}>{'░'.repeat(rest)}</Text>
        </Text>
      )
    }
    const tally = (n: Record<Outcome, number>) => (
      <Text>
        {OUTCOMES.filter(o => n[o]).map(o => (
          <Text color={tone(o)}>{GLYPH[o]} {n[o]} {o}   </Text>
        ))}
      </Text>
    )
    const checkRow = (c: Check, key: string, label: string) => {
      const i = icon(c.status, c.conclusion)
      return (
        <Box key={key} flexDirection="row">
          <Text color={tone(i.tone)}>{i.glyph} </Text>
          <Button plain label={label} onPress={go({ workflow: c.workflow, job: c })} />
        </Box>
      )
    }

    const review = pr.review.toUpperCase()
    const reviewColor = review === 'APPROVED' ? t.ok : review === 'CHANGES_REQUESTED' ? t.fail : t.run
    const reqChecks = pr.required.length ? pr.checks.filter(c => pr.required.includes(c.name)) : pr.checks
    const reqFailed = reqChecks.filter(isFailed).length
    const reqPending = reqChecks.filter(isPending).length
    const plural = (n: number, w: string) => `${n} ${w}${n === 1 ? '' : 's'}`
    const checkWord = pr.required.length ? 'required check' : 'check'
    // ok: true passes, false blocks, null is waiting or advisory
    const readiness: { ok: boolean | null; label: string }[] = [
      { ok: !pr.isDraft, label: pr.isDraft ? 'draft' : 'ready for review' },
      {
        ok: reqFailed ? false : reqPending ? null : true,
        label: reqFailed ? `${plural(reqFailed, checkWord)} failing` : reqPending ? `${plural(reqPending, checkWord)} running` : `${checkWord}s passed`,
      },
      {
        ok: review === 'APPROVED' || review === 'NONE',
        label: review === 'APPROVED' ? 'approved' : review === 'CHANGES_REQUESTED' ? 'changes requested' : review === 'NONE' ? 'no review required' : 'needs approval',
      },
      { ok: pr.unresolved <= 0, label: pr.unresolved > 0 ? plural(pr.unresolved, 'unresolved thread') : 'threads resolved' },
      { ok: pr.mergeable !== 'CONFLICTING', label: pr.mergeable === 'CONFLICTING' ? 'merge conflicts' : 'no conflicts' },
      // behind is only a blocker when a branch rule demands up-to-date branches, which github reports as BEHIND
      {
        ok: !pr.behind ? true : pr.mergeState === 'BEHIND' ? false : null,
        label: pr.behind ? `${plural(pr.behind, 'commit')} behind ${pr.base}` : `up to date with ${pr.base}`,
      },
    ]
    const waiting = readiness.some(r => r.ok === null && r.label.includes('running'))
    // github can block on rules the checklist cannot see (signed commits, codeowners, deployments)
    if (pr.mergeState === 'BLOCKED' && !waiting && readiness.every(r => r.ok !== false)) {
      readiness.push({ ok: false, label: 'blocked by a branch rule' })
    }
    const blockers = readiness.filter(r => r.ok === false).length
    const isReady = pr.state === 'OPEN' && !blockers && !waiting
    const verdict =
      pr.state === 'MERGED' ? { text: ' ⑂ MERGED ', bg: t.brandBg }
      : pr.state === 'CLOSED' ? { text: ' ⊘ CLOSED ', bg: t.rule }
      : isReady ? { text: ' ✓ READY TO MERGE ', bg: t.ok }
      : blockers ? { text: ` ✗ BLOCKED · ${blockers} `, bg: t.fail }
      : { text: ' ◐ WAITING ON CHECKS ', bg: t.run }
    const readinessLine = (
      <Box flexDirection="column" marginTop={1}>
        <Text>
          <Text backgroundColor={verdict.bg} color="#0F1729">{verdict.text}</Text>
        </Text>
Licence text (MIT)
MIT License

Copyright (c) 2026 Gerric Chaplin

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 programs

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 8bf587aaa9cb 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 readEvery module hooks/hooks.json names was read.hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.1 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo 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 openNetwork 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 drawsThe 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 lineWhether 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 WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).hooks/register.tsx:117 uname (not on Windows)
NetworkWhether every fetch names its https host in the code.no network
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.hooks/register.tsx:118 a program named at run time
Reads and sendsWhether it both reads files or environment variables and reaches the network.reaches the network, but reads no files and no environment variables
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn 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 gerricchaplin/pr-pulse
/plugin install pr-pulse@pr-pulse

This installs the marketplace's latest commit, which may not be the one read here (8bf587aaa9cb). 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 "gerricchaplin-pr-pulse" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs