modscode JA

modscode / Gallery / review-pane

review-pane

claude review: the session's latest reply in a calm reading pane docked beside the conversation, with its plan, question and tasks one key away

Code you can checkTerminal + desktopPaneBoxButtonMarkdownText

What it does

  • Draws a pane
  • Adds /claude-review
  • Hooks session.append, session.start, turn.complete, turn.start and 2 more

Good points

  • No network calls
  • Starts no processes
  • Written in TypeScript
  • Has a desktop-specific branch

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 review-pane by r3al1tym (pane), as modscode read it from the mod's code:
// https://modscode.com/gallery/r3al1tym-review-pane/
// 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: "Review" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Markdown, Button } = $.ui.resolve(e)
    const position = '…'
    const question = '…'
    const body = '…'
    const label = '…'
    return (
      <Box flexDirection="column" paddingX={2} paddingY={1} gap={1}>
        <Text dimColor>
          {position}
        </Text>
        <Text dimColor>
          {`› ${question}`}
        </Text>
        <Markdown text={`${body}`} />
        <Box flexDirection="row" gap={2}>
          <Button label={`${label}`} plain />
          <Button label={`${label}`} plain />
          <Button label={`${label}`} plain />
          <Button label="earlier" plain dimColor />
          <Button label="later" plain dimColor />
          <Button label="unfreeze" plain dimColor />
          <Button label="copy" plain dimColor />
        </Box>
      </Box>
    )
  })
}

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 207–282 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const E = $.ui.resolve(e)
    const snap = await read($, snapshot)
    const v = await read($, view)
    const busy = (await read($, working)).length > 0
    const { turn, cursor, historical } = onScreen(snap, v)
    const isLatest = !historical
    const behind = !isFollowing(snap, v) && hasReply(snap) && replySig(snap) !== v.seen

    if (e.surface === 'terminal') {
      const T = E as typeof E & Parameters<typeof screen>[0]
      // the guide's diagnostics never cost the drawing: a fact that fails reads '?'
      const facts: Facts | null = v.help
        ? {
            session: await $.session.id().catch(() => '?'),
            model: (await $.session.model().catch(() => '?')).replace(/^.*?(?=claude-)/, '').replace(/^claude-/, ''),
            project: (await $.session.cwd().catch(() => '?')).replace(/^\/home\/[^/]+/, '~'),
          }
        : null
      const drawn = screen(T, {
        columns: e.props.bodyColumns,
        rows: e.props.scroll.bodyRows,
        isFocused: e.props.isFocused,
        placement: e.props.placement,
        turn,
        tasks: isLatest ? snap.tasks : [],
        historical,
        working: busy,
        behind,
        cursor,
        turnCount: snap.turns.length,
        view: v,
        facts,
      })
      laid = drawn.laid
      const { Box, Button, Text } = T

      return (
        <Box flexDirection="column">
          {drawn.tree}
          <Text> </Text>
          <Box display="none">
            {HOTKEYS.map(k => <Button key={hotkey(k)} label={k} hotkey={k} onPress={press => pressKey($, k, press)} />)}
          </Box>
        </Box>
      )
    }

    // Other surfaces draw with their own type and scroll the tree themselves:
    // the same column, drawn by the surface's Markdown.
    const { Box, Button, Markdown, Text } = E
    const surfaces = surfacesFor(turn, isLatest ? snap.tasks : [], historical, busy)
    const active = Math.min(v.surface, surfaces.length - 1)
    laid = { maxScroll: 0, bodyRows: 10, surfaces, active }
    const shown = surfaces[active]!
    const body = shown.raw !== '' ? shown.raw : '_No response yet._'
    const position = snap.turns.length === 0 ? 'no turns yet'
      : `turn ${cursor + 1} of ${snap.turns.length}${v.frozen ? ' · frozen' : isFollowing(snap, v) ? ' · live' : ''}`

    return (
      <Box flexDirection="column" paddingX={2} paddingY={1} gap={1}>
        <Text dimColor>{position}</Text>
        {historical && turn.question ? <Text dimColor>{`› ${turn.question.replace(/\s+/g, ' ').slice(0, 200)}`}</Text> : null}
        <Markdown key="body" text={body.length <= 9800 ? body : `${body.slice(0, 9800)}\n\n_Cut at 9800 characters. Copy for the full text._`} />
        <Box flexDirection="row" gap={2}>
          {surfaces.length > 1 ? surfaces.map((sf, i) => (
            <Button key={`surface-${sf.label}`} label={sf.label} plain dimColor={i !== active} onPress={() => key($, (_, w) => ({ ...w, surface: i, scroll: 0 }))} />
          )) : null}
          <Button key="earlier" label="earlier" plain dimColor onPress={press => pressKey($, 'h', press)} />
          <Button key="later" label="later" plain dimColor onPress={press => pressKey($, 'l', press)} />
          <Button key="freeze" label={v.frozen ? 'unfreeze' : 'freeze'} plain dimColor onPress={press => pressKey($, 'f', press)} />
          <Button key="copy" label="copy" plain dimColor onPress={press => pressKey($, 'y', press)} />
        </Box>
      </Box>
    )
  })
Licence text (MIT)
MIT License

Copyright (c) 2026 r3al1tym

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

nothing found

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 ae7a92cdf9d4 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.5 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.starts no programs
Reads and sendsWhether it both reads files or environment variables and reaches the network.reaches no network
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 r3al1tym/claude-review
/plugin install review-pane@claude-review

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

Search them from Claude: the MCP connector

Similar designs