Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / bw-peek

bw-peek

A Beadwork ticket pane inside Claude Code: /bw <id> or a search box runs bw show and draws the digest, title, description and comments; every ticket id a reply mentions gets a button that opens it. Needs function hooks (CLAUDE_CODE_ENABLE_…

Code you can checkTerminal + desktopPaneToastBoxButtonInputText
runs programs, draws

What it does

  • Draws a pane, toasts
  • Adds /bw
  • Watches Bash calls
  • Hooks session.start, ui.close
  • Keeps its own state between turns

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)

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

// Drawn like bw-peek by Manuel Zubieta (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/iautom8things-bw-peek/
// 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: "Beadwork" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button, Input } = $.ui.resolve(e)
    const search = '…'
    const title = '…'
    const text = '…'
    const text2 = '…'
    const text3 = '…'
    const text4 = '…'
    const text5 = '…'
    const text6 = '…'
    const text7 = '…'
    const text8 = '…'
    const text9 = '…'
    const glyph = '…'
    const priority = '…'
    const id = '…'
    const title2 = '…'
    const glyph2 = '…'
    const title3 = '…'
    const glyph3 = '…'
    const title4 = '…'
    const plural = '…'
    const text10 = '…'
    const text11 = '…'
    const text12 = '…'
    const text13 = '…'
    const text14 = '…'
    const text15 = '…'
    const text16 = '…'
    const text17 = '…'
    const text18 = '…'
    const length = '…'
    const text19 = '…'
    const text20 = '…'
    const text21 = '…'
    const text22 = '…'
    const text23 = '…'
    const text24 = '…'
    const text25 = '…'
    const text26 = '…'
    const text27 = '…'
    const text28 = '…'
    const text29 = '…'
    const text30 = '…'
    const text31 = '…'
    const text32 = '…'
    const text33 = '…'
    const text34 = '…'
    const text35 = '…'
    const text36 = '…'
    const text37 = '…'
    const text38 = '…'
    const text39 = '…'
    const text40 = '…'
    const text41 = '…'
    const text42 = '…'
    const text43 = '…'
    const text44 = '…'
    const text45 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column">
          <Box flexDirection="row">
            <Box flexShrink={0} marginRight={2}>
              <Text bold color="cyan">
                ◈ Beadwork
              </Text>
            </Box>
            <Box flexGrow={1} flexShrink={1}>
              <Text bold wrap="truncate-end" />
            </Box>
            <Box flexShrink={0} marginLeft={2}>
              <Button label="…" dimColor />
            </Box>
          </Box>
          <Box>
            <Input placeholder="ticket id, e.g. adf-c50" value={`${search}`} submitLabel="open" autoFocus />
          </Box>
          <Text dimColor>
            ────────
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Box flexDirection="row" flexWrap="wrap" />
          <Box marginTop={1}>
            <Text bold wrap="wrap">
              {title}
            </Text>
          </Box>
          <Box marginTop={1}>
            <Box flexDirection="row" flexWrap="wrap" />
          </Box>
          <Box marginTop={1}>
            <Box flexDirection="column">
              <Box flexDirection="row">
                <Text color="green">
                  {text}
                </Text>
                <Text color="green">
                  {text2}
                </Text>
                <Text color="green">
                  {text3}
                </Text>
              </Box>
              <Box flexDirection="row">
                <Text color="green">
                  {text4}
                </Text>
                <Text color="green">
                  {text5}
                </Text>
                <Text color="green">
                  {text6}
                </Text>
              </Box>
              <Box flexDirection="row">
                <Text color="green">
                  {text7}
                </Text>
                <Text color="green">
                  {text8}
                </Text>
                <Text color="green">
                  {text9}
                </Text>
              </Box>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" marginTop={1}>
              <Text bold>
                Children
              </Text>
              <Text dimColor />
              <Box marginLeft={2} />
            </Box>
            <Box marginLeft={2} flexDirection="column">
              <Box flexDirection="row">
                <Box marginRight={1} flexShrink={0}>
                  <Text>
                    {glyph}
                  </Text>
                </Box>
                <Box marginRight={1} flexShrink={0}>
                  <Text color="white">
                    {`P${priority}`}
                  </Text>
                </Box>
                <Box marginRight={1}>
                  <Button label={`${id}`} />
                </Box>
                <Text>
                  {title2}
                </Text>
              </Box>
              <Box flexDirection="row">
                <Box marginRight={1} flexShrink={0}>
                  <Text>
                    {glyph2}
                  </Text>
                </Box>
                <Box marginRight={1} flexShrink={0}>
                  <Text color="white">
                    {`P${priority}`}
                  </Text>
                </Box>
                <Box marginRight={1}>
                  <Button label={`${id}`} />
                </Box>
                <Text>
                  {title3}
                </Text>
              </Box>
              <Box flexDirection="row">
                <Box marginRight={1} flexShrink={0}>
                  <Text>
                    {glyph3}
                  </Text>
                </Box>
                <Box marginRight={1} flexShrink={0}>
                  <Text color="white">
                    {`P${priority}`}
                  </Text>
                </Box>
                <Box marginRight={1}>
                  <Button label={`${id}`} />
                </Box>
                <Text>
                  {title4}
                </Text>
              </Box>
              <Text dimColor>
                {`… ${plural}`}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" marginTop={1}>
              <Text bold>
                Description
              </Text>
              <Text dimColor />
              <Box marginLeft={2} />
            </Box>
            <Box marginLeft={2} flexDirection="column">
              <Box flexDirection="column">
                <Box flexDirection="row">
                  <Text>
                    {text10}
                  </Text>
                  <Text>
                    {text11}
                  </Text>
                  <Text>
                    {text12}
                  </Text>
                </Box>
                <Box flexDirection="row">
                  <Text>
                    {text13}
                  </Text>
                  <Text>
                    {text14}
                  </Text>
                  <Text>
                    {text15}
                  </Text>
                </Box>
                <Box flexDirection="row">
                  <Text>
                    {text16}
                  </Text>
                  <Text>
                    {text17}
                  </Text>
                  <Text>
                    {text18}
                  </Text>
                </Box>
              </Box>
              <Text dimColor>
                {`… ${plural}`}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" marginTop={1}>
              <Text bold>
                {`Comments (${length})`}
              </Text>
              <Text dimColor />
              <Box marginLeft={2} />
            </Box>
            <Box flexDirection="column" marginLeft={2}>
              <Box flexDirection="row">
                <Box flexShrink={0} marginRight={1}>
                  <Button label="−" dimColor />
                </Box>
                <Box flexShrink={0} marginRight={1}>
                  <Text dimColor />
                </Box>
                <Box flexShrink={1} flexGrow={1}>
                  <Text wrap="truncate-end" />
                </Box>
              </Box>
              <Box marginLeft={6} borderStyle="round" borderDimColor paddingX={1}>
                <Box flexDirection="column">
                  <Box flexDirection="row">
                    <Text>
                      {text19}
                    </Text>
                    <Text>
                      {text20}
                    </Text>
                    <Text>
                      {text21}
                    </Text>
                  </Box>
                  <Box flexDirection="row">
                    <Text>
                      {text22}
                    </Text>
                    <Text>
                      {text23}
                    </Text>
                    <Text>
                      {text24}
                    </Text>
                  </Box>
                  <Box flexDirection="row">
                    <Text>
                      {text25}
                    </Text>
                    <Text>
                      {text26}
                    </Text>
                    <Text>
                      {text27}
                    </Text>
                  </Box>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="column" marginLeft={2}>
              <Box flexDirection="row">
                <Box flexShrink={0} marginRight={1}>
                  <Button label="−" dimColor />
                </Box>
                <Box flexShrink={0} marginRight={1}>
                  <Text dimColor />
                </Box>
                <Box flexShrink={1} flexGrow={1}>
                  <Text wrap="truncate-end" />
                </Box>
              </Box>
              <Box marginLeft={6} borderStyle="round" borderDimColor paddingX={1}>
                <Box flexDirection="column">
                  <Box flexDirection="row">
                    <Text>
                      {text28}
                    </Text>
                    <Text>
                      {text29}
                    </Text>
                    <Text>
                      {text30}
                    </Text>
                  </Box>
                  <Box flexDirection="row">
                    <Text>
                      {text31}
                    </Text>
                    <Text>
                      {text32}
                    </Text>
                    <Text>
                      {text33}
                    </Text>
                  </Box>
                  <Box flexDirection="row">
                    <Text>
                      {text34}
                    </Text>
                    <Text>
                      {text35}
                    </Text>
                    <Text>
                      {text36}
                    </Text>
                  </Box>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="column" marginLeft={2}>
              <Box flexDirection="row">
                <Box flexShrink={0} marginRight={1}>
                  <Button label="−" dimColor />
                </Box>
                <Box flexShrink={0} marginRight={1}>
                  <Text dimColor />
                </Box>
                <Box flexShrink={1} flexGrow={1}>
                  <Text wrap="truncate-end" />
                </Box>
              </Box>
              <Box marginLeft={6} borderStyle="round" borderDimColor paddingX={1}>
                <Box flexDirection="column">
                  <Box flexDirection="row">
                    <Text>
                      {text37}
                    </Text>
                    <Text>
                      {text38}
                    </Text>
                    <Text>
                      {text39}
                    </Text>
                  </Box>
                  <Box flexDirection="row">
                    <Text>
                      {text40}
                    </Text>
                    <Text>
                      {text41}
                    </Text>
                    <Text>
                      {text42}
                    </Text>
                  </Box>
                  <Box flexDirection="row">
                    <Text>
                      {text43}
                    </Text>
                    <Text>
                      {text44}
                    </Text>
                    <Text>
                      {text45}
                    </Text>
                  </Box>
                </Box>
              </Box>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="row" flexWrap="wrap" marginTop={1}>
          <Box marginRight={1}>
            <Text dimColor>
              recent
            </Text>
          </Box>
          <Box marginRight={1}>
            <Button label={`${id}`} />
          </Box>
          <Box marginRight={1}>
            <Button label={`${id}`} />
          </Box>
          <Box marginRight={1}>
            <Button label={`${id}`} />
          </Box>
          <Button label="forget" dimColor />
        </Box>
        <Box marginTop={1}>
          <Text dimColor>
            {"esc closes · type an id and press enter · /bw <id> from the prompt"}
          </Text>
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const err = '…'
    await $.ui.toast(`could not open the pane: ${err}`)
    await $.ui.toast(`type a ticket id first`)
    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 502–511 · Pane
  on('ui.render', { component: 'Pane' }, async ($, e, next) => {
    if (e.requestId !== PANE_ID) return next(e)
    // the mobile table has no Input yet, so the search box cannot draw there
    if (e.surface === 'mobile') return next(e)
    paneOpen = true
    void ensureCommand($)
    const v = await viewOf($)
    const columns = Math.max(40, (e.props.bodyColumns ?? e.viewport?.columns ?? 100) - 1)
    return drawPane($.ui.resolve(e), v, columns, actionsFor($))
  })
hooks/draw.tsx lines 419–431 · Pane
export function drawPane(els: Els, v: View, columns: number, actions: Actions): RenderElement {
  const { Box, Text } = els
  return (
    <Box flexDirection="column" width={columns}>
      {header(els, v, columns, actions)}
      {body(els, v, columns, actions)}
      {recentRow(els, v, actions)}
      <Box marginTop={1}>
        <Text dimColor>{'esc closes · type an id and press enter · /bw <id> from the prompt'}</Text>
      </Box>
    </Box>
  )
}
hooks/draw.tsx lines 99–130 · Pane
function header(els: Els, v: View, columns: number, actions: Actions): RenderElement {
  const { Box, Text, Button, Input } = els
  return (
    <Box flexDirection="column">
      <Box flexDirection="row" width={columns}>
        <Box flexShrink={0} marginRight={2}>
          <Text bold color="cyan">◈ Beadwork</Text>
        </Box>
        <Box flexGrow={1} flexShrink={1}>
          <Text bold wrap="truncate-end">{v.current ?? ''}</Text>
        </Box>
        {v.current === undefined ? null : (
          <Box flexShrink={0} marginLeft={2}>
            <Button key="refresh" label={v.pending ? '…' : 'Refresh'} dimColor onPress={actions.refresh} />
          </Box>
        )}
      </Box>
      <Box width={columns}>
        <Input
          key="search"
          placeholder={v.defaultPrefix === undefined ? 'ticket id, e.g. adf-c50' : `ticket id, e.g. ${v.defaultPrefix}-c50 or c50`}
          value={v.search}
          submitLabel="open"
          autoFocus
          onInput={(value: string) => actions.input(value)}
          onSubmit={(value: string) => actions.submit(value)}
        />
      </Box>
      {divider(els, columns)}
    </Box>
  )
}
hooks/draw.tsx lines 81–84 · Pane
function divider(els: Els, columns: number): RenderElement {
  const { Text } = els
  return <Text dimColor>{'─'.repeat(Math.max(0, columns))}</Text>
}
hooks/draw.tsx lines 373–402 · Pane
function body(els: Els, v: View, columns: number, actions: Actions): RenderElement {
  const { Box, Text } = els
  const l = v.lookup
  if (v.current === undefined) return empty(els, v)
  if (l === undefined)
    return (
      <Box marginTop={1} marginLeft={2}>
        <Text dimColor>{v.pending ? `… asking bw about ${v.current}` : `nothing known about ${v.current} yet`}</Text>
      </Box>
    )
  switch (l.kind) {
    case 'ticket':
      return ticketView(els, l.ticket, v, columns, actions)
    case 'ambiguous':
      return ambiguous(els, l.id, l.candidates, actions)
    case 'missing':
      return (
        <Box flexDirection="column" marginTop={1} marginLeft={2}>
          <Text color="red">{`✗ no ticket matches ${l.id}`}</Text>
          <Text dimColor>bw looks the prefix up in its registry (bw registry list); with registry.auto on in ~/.bw a repo joins it the next time bw runs there.</Text>
        </Box>
      )
    default:
      return (
        <Box marginTop={1} marginLeft={2} width={columns}>
          <Text color="red" wrap="wrap">{`✗ ${l.message}`}</Text>
        </Box>
      )
  }
}
hooks/draw.tsx lines 363–371 · Pane
function empty(els: Els, v: View): RenderElement {
  const { Box, Text } = els
  return (
    <Box flexDirection="column" marginTop={1} marginLeft={2}>
      <Text dimColor>Type a ticket id in the box and press Enter, or press an id under a reply.</Text>
      <Text dimColor>{`Full ids work across every repo bw knows (adf-c50, think-1pp)${v.defaultPrefix === undefined ? '.' : `; a bare c50 means ${v.defaultPrefix}-c50 here.`}`}</Text>
    </Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Manuel Zubieta

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 programstool callsremembers

What its code shows

Read from the source at commit b1979f4ab1b8 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 readEvery module hooks/hooks.json names was read.hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.3 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).runs no program a Windows PC lacks
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:147 a program named at run time; hooks/register.tsx:148 a program named at run time; hooks/register.tsx:304 a program named at run time
Reads and sendsWhether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reaches nothing outside
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
Settings hooksHooks 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 shipsMCP 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, agentsWhat 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 MCPWhether 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 modelCompletions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.asks nothing of the model
Events it hooksBy 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: tool.call (Bash), command.run (bw) · also: session.start, ui.close, ui.render (Pane, AssistantMessage)
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.reads no files, environment variables, settings or transcript
Writes, by nameThe 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.writes no files, environment variables, settings or conversation rows

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 iautom8things/bw-peek
/plugin install bw-peek@bw-peek
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (b1979f4ab1b8). 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/iautom8things/bw-peek
git -C bw-peek checkout b1979f4ab1b86bea84ae7ecf6d62b3ee2b2a1a1e
claude plugin validate bw-peek
claude --plugin-dir bw-peek

The 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 "iautom8things-bw-peek" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/iautom8things-bw-peek.svg)](https://modscode.com/claude-mods/mods/iautom8things-bw-peek/)