modscode JA

modscode / Gallery / fine-print

fine-print

Opens a card when Claude's final answer omits a recorded file change or a recognized command with side effects, or makes a test or Git claim the recorded results do not fully back. Step through the diffs and prepare an editable question.

Code you can checkTerminal + desktopPaneStatus lineToastBoxButtonText

What it does

  • Draws a pane
  • Watches tool calls and can refuse them
  • Hooks session.start, turn.complete, ui.close

Good points

  • No network calls
  • Starts no processes
  • Written in TypeScript
  • Handles errors

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 fine-print by JR (pane, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/biackr0se-fine-print/
// 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: "Fine print" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const turn = '…'
    const headlineOf = '…'
    const coverage = '…'
    const i = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" marginBottom={1}>
          <Text bold color="red">
            {`FINE PRINT · turn ${turn}`}
          </Text>
          <Text>
            {headlineOf}
          </Text>
        </Box>
        <Box flexDirection="column" gap={1}>
          <Box flexDirection="column" paddingLeft={1} borderStyle="single" borderColor="yellow">
            <Box flexDirection="row" gap={1}>
              <Box width={2} flexShrink={0} />
              <Box flexShrink={1} />
            </Box>
            <Box flexDirection="column" paddingLeft={3} />
            <Box flexDirection="row" gap={2} paddingLeft={3} flexWrap="wrap">
              <Text italic dimColor>
                {`Summary: ${coverage}`}
              </Text>
              <Button label="Ask Claude" hotkey={`${i}`} variant="primary" />
              <Button label="Full diff" />
            </Box>
          </Box>
          <Box flexDirection="column" paddingLeft={1} borderStyle="single" borderColor="yellow">
            <Box flexDirection="row" gap={1}>
              <Box width={2} flexShrink={0} />
              <Box flexShrink={1} />
            </Box>
            <Box flexDirection="column" paddingLeft={3} />
            <Box flexDirection="row" gap={2} paddingLeft={3} flexWrap="wrap">
              <Text italic dimColor>
                {`Summary: ${coverage}`}
              </Text>
              <Button label="Ask Claude" hotkey={`${i}`} variant="primary" />
              <Button label="Full diff" />
            </Box>
          </Box>
          <Box flexDirection="column" paddingLeft={1} borderStyle="single" borderColor="yellow">
            <Box flexDirection="row" gap={1}>
              <Box width={2} flexShrink={0} />
              <Box flexShrink={1} />
            </Box>
            <Box flexDirection="column" paddingLeft={3} />
            <Box flexDirection="row" gap={2} paddingLeft={3} flexWrap="wrap">
              <Text italic dimColor>
                {`Summary: ${coverage}`}
              </Text>
              <Button label="Ask Claude" hotkey={`${i}`} variant="primary" />
              <Button label="Full diff" />
            </Box>
          </Box>
        </Box>
        <Box flexDirection="row" gap={2} marginTop={1}>
          <Button label="Close" role="dismiss" />
          <Text dimColor>
            Ask Claude puts one question in your prompt box. You edit it and press Enter.
          </Text>
        </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.

plugins/fine-print/hooks/register.tsx lines 191–195 · Pane
  on('ui.render', { component: 'Pane' }, async ($, e, next) => {
    if (e.requestId !== PANE_ID) return next(e)
    const { Box, Text, Button } = $.ui.resolve(e)
    return cardView({ Box, Text, Button }, last, view, actions, cwd)
  })
plugins/fine-print/hooks/view.tsx lines 157–165 · Pane
export function cardView(kit: Kit, fp: FinePrint | null, view: View, act: Actions, cwd = ''): RenderElement {
  const { Box, Text } = kit
  if (!fp || !fp.items.length) {
    return <Box flexDirection="column"><Text dimColor>No fine print in the last answer: it names every edit Fine Print recorded, mentions every recorded side-effect command, and no checked claim is contradicted. Fine Print reads Edit, Write, Read and Bash results from the main conversation only.</Text></Box>
  }
  if (view.mode === 'review') return reviewView(kit, fp, view.index, act, cwd)
  if (view.mode === 'question') return questionView(kit, fp, view.index, act, cwd)
  return listView(kit, fp, act, cwd)
}
plugins/fine-print/hooks/view.tsx lines 113–138 · Pane
function reviewView(kit: Kit, fp: FinePrint, index: number, act: Actions, cwd: string): RenderElement {
  const { Box, Text, Button } = kit
  const changes = changesOf(fp)
  const at = Math.max(0, Math.min(index, changes.length - 1))
  const item = changes[at]
  if (!item) return listView(kit, fp, act, cwd)
  const lines = item.edits.flatMap((e, k) => (k ? ['…', ...e.patch] : e.patch))
  return (
    <Box flexDirection="column">
      <Box key="head" flexDirection="row" justifyContent="space-between" marginBottom={1}>
        <Text bold color={item.why ? INK.warn : undefined}>{`${relativeTo(cwd, item.path)}${item.why ? `  ·  ${item.why}` : ''}`}</Text>
        <Text dimColor>{`change ${at + 1} of ${changes.length}`}</Text>
      </Box>
      <Box key="diff" flexDirection="column">
        {lines.length ? diffLines(kit, lines, 'd') : <Text dimColor>The tool result recorded no diff for this change.</Text>}
      </Box>
      <Box key="actions" flexDirection="row" gap={2} marginTop={1} flexWrap="wrap">
        <Button key="prev" label="Prev" hotkey="p" onPress={() => act.step(-1)} />
        <Button key="next" label="Next" hotkey="n" onPress={() => act.step(1)} />
        <Button key="ask" label="Ask Claude" hotkey="a" variant="primary" onPress={() => act.ask(fp.items.indexOf(item))} />
        <Button key="back" label="Back" hotkey="b" onPress={act.back} />
        <Button key="close" label="Close" role="dismiss" onPress={act.close} />
      </Box>
    </Box>
  )
}
plugins/fine-print/hooks/view.tsx lines 96–111 · Pane
function listView(kit: Kit, fp: FinePrint, act: Actions, cwd: string): RenderElement {
  const { Box, Text, Button } = kit
  return (
    <Box flexDirection="column">
      <Box key="head" flexDirection="column" marginBottom={1}>
        <Text bold color={fp.items.some(i => i.kind === 'claim' && i.receipt.verdict === 'contradicted') ? INK.bad : INK.warn}>{`FINE PRINT · turn ${fp.turn}`}</Text>
        <Text>{headlineOf(fp.items)}</Text>
      </Box>
      <Box key="items" flexDirection="column" gap={1}>{fp.items.map((item, i) => itemCard(kit, fp, item, i, act, cwd))}</Box>
      <Box key="actions" flexDirection="row" gap={2} marginTop={1}>
        <Button key="close" label="Close" role="dismiss" onPress={act.close} />
        <Text dimColor>Ask Claude puts one question in your prompt box. You edit it and press Enter.</Text>
      </Box>
    </Box>
  )
}
plugins/fine-print/hooks/view.tsx lines 36–94 · Pane
function itemCard(kit: Kit, fp: FinePrint, item: Item, i: number, act: Actions, cwd: string): RenderElement {
  const { Box, Text, Button } = kit
  const ask = <Button key={`ask-${i}`} label="Ask Claude" hotkey={i < 9 ? String(i + 1) : undefined} variant={i === 0 ? 'primary' : undefined} onPress={() => act.ask(i)} />

  let mark: RenderElement
  let title: RenderElement
  let body: RenderElement[]
  let coverage: string

  if (item.kind === 'claim') {
    const v = item.receipt.verdict
    mark = v === 'contradicted' ? <Text color={INK.bad} bold>✗</Text> : v === 'partial' ? <Text color={INK.warn} bold>◐</Text> : <Text dimColor bold>?</Text>
    title = <Text bold italic>{`“${item.receipt.claim.quote}”`}</Text>
    body = [<Text key="result">{item.receipt.evidence}</Text>]
    coverage = v === 'contradicted' ? 'the record contradicts this claim' : v === 'partial' ? 'the record only partly backs this claim' : 'nothing recorded this turn backs this claim'
  } else if (item.kind === 'change') {
    const lines = item.edits.flatMap((e, k) => (k ? ['…', ...e.patch] : e.patch))
    const first = item.edits[0]
    const created = item.edits.some(e => e.created)
    mark = <Text color={item.why ? INK.warn : undefined} bold>{item.why ? '⚠' : '•'}</Text>
    title = (
      <Box flexDirection="row" gap={1} flexWrap="wrap">
        <Text bold>{relativeTo(cwd, item.path)}</Text>
        {item.why ? <Text color={INK.warn}>{item.why}</Text> : null}
      </Box>
    )
    body = [
      ...(relativeTo(cwd, item.path) !== item.path ? [<Text key="path" dimColor>{item.path}</Text>] : []),
      <Text key="action" dimColor>{`${created ? 'Write created it' : `${item.edits.length} edit${item.edits.length === 1 ? '' : 's'} landed`}${first ? ` at ${clock(first.atMs)}` : ''}`}</Text>,
      <Box key="hunk" flexDirection="column" paddingLeft={1}>{diffLines(kit, lines.slice(0, HUNK_PREVIEW), `h${i}-`)}</Box>,
      ...(lines.length > HUNK_PREVIEW ? [<Text key="more" dimColor>{`… ${lines.length - HUNK_PREVIEW} more line${lines.length - HUNK_PREVIEW === 1 ? '' : 's'}`}</Text>] : []),
    ]
    coverage = item.shared ? `the summary's \`${item.shared}\` matches more than one changed file` : 'the summary never names this file'
  } else {
    mark = <Text color={INK.warn} bold>⚠</Text>
    title = <Text bold>{item.effect}</Text>
    body = [
      <Text key="action">{`$ ${item.command}`}</Text>,
      <Text key="result" color={item.ok === false ? INK.bad : undefined} dimColor={item.ok !== false}>{item.result}</Text>,
    ]
    coverage = 'the summary never mentions it'
  }

  const changeIndex = item.kind === 'change' ? changesOf(fp).indexOf(item) : -1
  return (
    <Box key={`item-${i}`} flexDirection="column" paddingLeft={1} borderStyle="single" borderColor={item.kind === 'claim' ? (item.receipt.verdict === 'contradicted' ? INK.bad : item.receipt.verdict === 'partial' ? INK.warn : 'gray') : item.kind === 'command' || (item.kind === 'change' && item.why) ? INK.warn : 'gray'}>
      <Box key="title" flexDirection="row" gap={1}>
        <Box width={2} flexShrink={0}>{mark}</Box>
        <Box flexShrink={1}>{title}</Box>
      </Box>
      <Box key="body" flexDirection="column" paddingLeft={3}>{body}</Box>
      <Box key="foot" flexDirection="row" gap={2} paddingLeft={3} flexWrap="wrap">
        <Text italic dimColor>{`Summary: ${coverage}`}</Text>
        {ask}
        {changeIndex >= 0 ? <Button key={`diff-${i}`} label="Full diff" onPress={() => act.review(changeIndex)} /> : null}
      </Box>
    </Box>
  )
}
plugins/fine-print/hooks/view.tsx lines 29–34 · Pane
function diffLines(kit: Kit, lines: string[], keyPrefix: string): RenderElement[] {
  const { Text } = kit
  return lines.map((l, i) => (
    <Text key={`${keyPrefix}${i}`} color={l.startsWith('+') ? INK.add : l.startsWith('-') ? INK.del : undefined} dimColor={!l.startsWith('+') && !l.startsWith('-')}>{l === '' ? ' ' : l}</Text>
  ))
}
Licence text (MIT)
MIT License

Copyright (c) 2026 JR

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

tool calls

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 7807cb217335 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.plugins/fine-print/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.6 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 bIackr0se/fine-print
/plugin install fine-print@jr-mods

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

Search them from Claude: the MCP connector

Similar designs