modscode JA

modscode / Gallery / kesav

kesav

Browse, read and edit your whole repo in a pane beside Claude Code, right in the terminal.

Code you can checkTerminal + desktopPaneToastBoxButtonText

What it does

  • Draws a pane, toasts
  • Adds /files, /repo, /repoviewer
  • Watches tool calls and can refuse them
  • Hooks session.start, turn.complete, ui.message
  • Keeps its own state between turns

Good points

  • No network calls
  • Written in TypeScript
  • Has a desktop-specific branch
  • 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 kesav by Kesav Reddy Eswaravaka (pane, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/kesavreddy-commits-kesav/
// 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: "‹baseName›" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Button, Text } = $.ui.resolve(e)
    const middle = '…'
    const mark = '…'
    const crumbText = '…'
    const middle2 = '…'
    const footer = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" justifyContent="space-between" paddingLeft={1} paddingRight={2}>
          <Box flexDirection="row" gap={1}>
            <Button label={`‹ back`} plain dimColor />
            <Text bold wrap="truncate-end">
              {middle}
            </Text>
            <Text>
              {mark}
            </Text>
            <Text color="magenta">
              ●
            </Text>
          </Box>
          <Button plain role="dismiss" label="close" />
        </Box>
        <Box paddingLeft={1}>
          <Text dimColor wrap="truncate-end">
            {crumbText}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" paddingX={1}>
          <Box flexDirection="row" flexWrap="wrap" columnGap={3} />
          <Text dimColor wrap="truncate-end">
            {middle2}
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1} />
        <Text dimColor wrap="truncate-end">
          {footer}
        </Text>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    await $.ui.toast(`repoviewer: refreshed`)
    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 527–685 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    draws += 1
    const el = $.ui.resolve(e)
    const columns = e.props.bodyColumns
    const rows = e.props.scroll.bodyRows
    const [repo, marks, edits, current] = [await read($, index), await read($, git), await read($, touched), await read($, view)]
    if (!repo) $.clock.after(0, () => void loadIfMissing($))

    // Docked: the terminal is the transcript beside the pane, the pane, and the divider between.
    // Size the dock once per terminal width, so a width the person drags stays theirs.
    if (e.props.placement === 'dock' && e.viewport?.columns) {
      termColumns = e.viewport.columns + columns + 1
      if (termColumns !== sizedFor && paneWidth() !== undefined) {
        sizedFor = termColumns
        $.clock.after(0, () => void openPane($))
      }
    }

    // The keyboard Client: terminal and desktop draw one; the editor's surfaces fall back to buttons.
    const hasClient = (e.surface === 'terminal' || e.surface === 'desktop') && 'Client' in el
    const nav = (props: NavProps, height: number) =>
      'Client' in el ? <el.Client key="nav" module="./nav.tsx" props={plain(props)} height={height} /> : undefined
    const navBase = {
      columns,
      surface: e.surface === 'desktop' ? ('desktop' as const) : ('terminal' as const),
      cursor: current.cursor,
      cursorAt: current.cursorAt,
      line: current.line,
      lineAt: current.lineAt,
      editing: current.editing,
      notice: current.notice,
    }

    if (current.mode === 'file' && current.openPath && repo) {
      await read($, revision)
      const path = current.openPath
      const doc = await loadDoc($, repo.root, path)
      const isText = doc.kind === 'text' || doc.kind === 'markdown'
      const isWhole = isText && (doc.text?.length ?? 0) <= NAV_MAX_TEXT
      // The Client holds a file up to NAV_MAX_TEXT whole and scrolls it itself; past that, and without a Client, it pages.
      const page: DocPage | undefined = !isText
        ? undefined
        : hasClient && isWhole
          ? { text: doc.text ?? '', startLine: 1, pageCount: 1 }
          : pageOf(doc, current.page)
      const diff = current.showDiff ? await loadDiff($, repo.root, path) : undefined
      let body: ReturnType<typeof nav>
      if (hasClient && doc.kind !== 'image') {
        const shown = isWhole ? { text: doc.text ?? '', startLine: 1, pageCount: 1 } : page
        const file: NavFile = {
          path,
          kind: doc.kind,
          text: shown?.text,
          startLine: shown?.startLine ?? 1,
          page: isWhole ? 0 : Math.min(current.page, (shown?.pageCount ?? 1) - 1),
          pageCount: shown?.pageCount ?? 1,
          lineCount: doc.lineCount,
          size: doc.size,
          mtimeMs: doc.mtimeMs,
          isEditable: isWhole,
          isRaw: current.isRaw,
          showDiff: current.showDiff,
          diff,
          mark: marks[path],
          isTouched: (edits[path] ?? 0) > 0,
        }
        body = nav({ ...navBase, mode: 'file', rows: Math.max(4, rows - FILE_CHROME), file }, Math.max(4, rows - FILE_CHROME))
      }
      return Viewer(el, {
        surface: e.surface,
        columns,
        rows,
        doc,
        page,
        diff,
        view: current,
        mark: marks[path],
        isTouched: (edits[path] ?? 0) > 0,
        repoName: baseName(repo.root),
        body,
        actions: {
          close: () => void closeByUser($),
          back: () => void handleOp($, { op: 'back' }),
          setPage: page => void setView($, v => ({ ...v, page: Math.max(0, page) })),
          toggleRaw: () => void setView($, v => ({ ...v, isRaw: !v.isRaw })),
          toggleDiff: () => void setView($, v => ({ ...v, showDiff: !v.showDiff })),
          reveal: () => {
            void setView($, v => ({
              ...v,
              mode: 'tree',
              filter: '',
              editing: undefined,
              cursor: path,
              cursorAt: v.cursorAt + 1,
              expanded: [...new Set([...v.expanded, ...parentDirs(path)])],
            })).then(() => $.clock.after(50, () => void $.ui.scroll({ to: { key: `row:${path}` }, in: PANE, block: 'center' })))
          },
        },
      })
    }

    const isFiltering = current.filter.trim() !== ''
    const listed = !repo
      ? { rows: [], total: 0 }
      : isFiltering
        ? filterRows(repo, current.filter, marks, edits)
        : { rows: treeRows(repo, new Set(current.expanded), marks, edits), total: 0 }

    let body: ReturnType<typeof nav>
    if (hasClient) {
      const compact = navRows(listed.rows)
      const total = isFiltering ? Math.max(listed.total, listed.rows.length) : listed.rows.length
      const height = Math.max(4, rows - treeChromeRows(rows))
      body = nav(
        {
          ...navBase,
          mode: 'tree',
          rows: height,
          tree: repo ? { rows: compact.rows, more: total - compact.sent, isFiltering, query: current.filter } : undefined,
        },
        height,
      )
    }

    return Tree(el, {
      surface: e.surface,
      columns,
      rows,
      index: repo,
      rows_: hasClient ? [] : listed.rows,
      total: listed.total,
      view: current,
      changedCount: Object.keys(marks).length,
      touchedCount: Object.keys(edits).length,
      body,
      actions: {
        press: row => void handleOp($, row.kind === 'dir' ? { op: 'toggle', path: row.path } : { op: 'open', path: row.path }),
        setFilter: query => void setView($, v => ({ ...v, filter: query })),
        close: () => void closeByUser($),
        collapseAll: () => void setView($, v => ({ ...v, expanded: [], filter: '' })),
        refresh: () => {
          void refreshAll($).then(() => $.ui.toast('repoviewer: refreshed'))
        },
        toggleFollow: () => void toggleFollow($),
        openFirstMatch: () => {
          void (async () => {
            const [latest, now] = [await read($, index), await read($, view)]
            if (!latest || now.filter.trim() === '') return
            const first = filterRows(latest, now.filter, await read($, git), await read($, touched), 1).rows[0]
            if (!first) return
            // Like an editor's quick open, the finder resets once it has opened something: coming
            // back shows the whole tree (the field itself comes back empty, so a kept query would hide files).
            await setView($, v => ({ ...v, filter: '' }))
            await showFile($, first.path)
          })()
        },
      },
    })
  })
hooks/viewer.tsx lines 142–301 · Pane
export function Viewer(el: ElementTable, ctx: ViewerCtx): RenderElement {
  const { Box, Text, Button, Code, Markdown } = el
  const { doc, view, mark, actions } = ctx
  const columns = Math.max(20, Math.floor(ctx.columns) || 20)
  const pageCount = ctx.page?.pageCount ?? 1
  const current = Math.min(Math.max(view.page, 0), Math.max(0, pageCount - 1))
  const isText = doc.kind === 'text' || doc.kind === 'markdown'
  const isMarkdown = doc.kind === 'markdown'
  // A deleted file has no content to show, only its diff. Keep the toggle
  // reachable while the diff is showing so the person can always get out.
  const hasDiffMark = mark !== undefined && mark !== '?'
  const canDiff = (isText || doc.kind === 'missing') && (hasDiffMark || view.showDiff)
  const showingDiff = canDiff && view.showDiff
  const isPaged = isText && !showingDiff && pageCount > 1

  // 1. Header, the file's tab: back, the file name bold, git mark, touched dot; our close button at
  // the right (the engine's own dim ✕ covers the last two cells of this row, so it stops short of
  // them and the two read as one `close ✕`). One cell in from the divider, as the tree's chrome is.
  const hasClose = columns >= 28
  const tail = (mark ? 2 : 0) + (ctx.isTouched ? 2 : 0)
  const base = doc.path.slice(doc.path.lastIndexOf('/') + 1)
  const baseRoom = Math.max(6, columns - PAD - BACK_WIDTH - 1 - tail - (hasClose ? CLOSE_RESERVE : PAD))
  const header = (
    <Box flexDirection="row" justifyContent="space-between" paddingLeft={PAD} paddingRight={hasClose ? 2 : PAD}>
      <Box flexDirection="row" gap={1}>
        <Button key="back" label="‹ back" plain dimColor onPress={() => actions.back()} />
        <Text bold wrap="truncate-end">{middle(base, baseRoom)}</Text>
        {mark ? <Text {...markStyle(mark)}>{mark}</Text> : null}
        {ctx.isTouched ? <Text color="magenta">●</Text> : null}
      </Box>
      {hasClose ? <Button key="close" plain role="dismiss" label="close" onPress={() => actions.close()} /> : null}
    </Box>
  )

  // 2. Breadcrumb: repo › folders, dim, the last crumb a touch stronger.
  const crumbs = [...(ctx.repoName ? [ctx.repoName] : []), ...doc.path.split('/').slice(0, -1)]
  const crumbRoom = Math.max(4, columns - PAD * 2)
  const crumbText = middle(crumbs.length > 0 ? crumbs.join(' › ') : '·', crumbRoom)
  const breadcrumb = (
    <Box paddingLeft={PAD}>
      <Text dimColor wrap="truncate-end">{crumbText}</Text>
    </Box>
  )

  // 3. Toolbar (only the buttons that apply) with the file's facts at its right edge when they fit.
  const parts: string[] = []
  if (isText) {
    parts.push(`${doc.lineCount} ${doc.lineCount === 1 ? 'line' : 'lines'}`)
    parts.push(formatSize(doc.size))
    const language = languageOf(doc.path)
    if (language) parts.push(language)
    if (isPaged) parts.push(`page ${current + 1}/${pageCount}`)
  } else if (doc.kind === 'image') {
    parts.push('png image', formatSize(doc.size))
  } else if (doc.kind === 'binary' || doc.kind === 'too-large') {
    parts.push(formatSize(doc.size))
  } else if (doc.kind === 'missing') {
    parts.push('not on disk')
  }
  if (showingDiff) {
    if (ctx.diff) {
      const { add, del } = countDiff(ctx.diff.hunks)
      parts.push(`diff vs HEAD +${add} −${del}`)
    } else {
      parts.push('diff vs HEAD')
    }
  }
  const metaText = parts.join(' · ')

  const buttons: RenderElement[] = []
  const labels: string[] = []
  const add = (key: string, label: string, onPress: () => void) => {
    labels.push(label)
    buttons.push(<Button key={key} label={label} plain dimColor onPress={onPress} />)
  }
  if (isPaged && current > 0) add('prev', '‹ prev', () => actions.setPage(current - 1))
  if (isPaged && current < pageCount - 1) add('next', 'next ›', () => actions.setPage(current + 1))
  if (isMarkdown && !showingDiff) add('raw', view.isRaw ? 'rendered' : 'raw', () => actions.toggleRaw())
  if (canDiff) add('diff', showingDiff ? 'file' : 'diff', () => actions.toggleDiff())
  add('reveal', 'reveal', () => actions.reveal())
  const buttonsWidth = labels.reduce((w, l) => w + l.length, 0) + 3 * (labels.length - 1)
  const metaRoom = columns - PAD * 2 - buttonsWidth - 3
  const toolbar = (
    <Box flexDirection="row" justifyContent="space-between" paddingX={PAD}>
      <Box flexDirection="row" flexWrap="wrap" columnGap={3}>
        {buttons}
      </Box>
      {metaRoom >= 8 ? <Text dimColor wrap="truncate-end">{middle(metaText, metaRoom)}</Text> : null}
    </Box>
  )

  // 4. Body.
  let body: RenderElement
  let footer: string | undefined
  if (showingDiff) {
    if (ctx.diff && ctx.diff.hunks.trim() !== '') {
      body = <Code source={clean(ctx.diff.hunks)} format="diff" wrap="truncate-end" />
      if (ctx.diff.isTruncated) footer = '… diff truncated'
    } else {
      body = <Text dimColor>No changes against HEAD.</Text>
    }
  } else if (doc.kind === 'missing') {
    body = <Text dimColor wrap="truncate-end">{doc.error ?? 'File not found.'}</Text>
  } else if (doc.kind === 'too-large') {
    body = <Text dimColor>Too large to show ({formatSize(doc.size)}; the limit is 4.0 MB).</Text>
  } else if (doc.kind === 'binary') {
    body = <Text dimColor>Binary file, not shown.</Text>
  } else if (doc.kind === 'image') {
    if (ctx.surface === 'terminal' && 'Image' in el && doc.absPath) {
      const { Image } = el
      body = (
        <Image
          key="image"
          source={{ file: doc.absPath, format: 'png', generation: Math.floor(doc.mtimeMs) }}
          columns={Math.min(255, Math.max(1, Math.floor(columns)))}
          rows={Math.min(255, Math.max(1, Math.floor(ctx.rows) - CHROME_ROWS))}
          alt={doc.path}
        />
      )
    } else {
      body = <Text dimColor>Image preview is only available in the terminal.</Text>
    }
  } else if (!ctx.page) {
    body = <Text dimColor>Loading…</Text>
  } else if (ctx.page.text === '') {
    body = <Text dimColor>Empty file.</Text>
  } else if (isMarkdown && !view.isRaw) {
    body = <Markdown text={clean(ctx.page.text)} />
  } else {
    body = (
      <Code
        source={clean(ctx.page.text)}
        {...(isMarkdown ? { language: 'markdown', wrap: 'wrap' as const } : { path: doc.path, wrap: 'truncate-end' as const })}
        startLine={ctx.page.startLine}
      />
    )
  }

  // 5. Footer when paged.
  if (isPaged && ctx.page && !footer) {
    const first = ctx.page.startLine
    const last = first + Math.max(1, countLines(ctx.page.text)) - 1
    footer = `lines ${first}–${last} of ${doc.lineCount}`
  }

  if (ctx.body) {
    return (
      <Box flexDirection="column">
        {header}
        {breadcrumb}
        {toolbar}
        {ctx.body}
      </Box>
    )
  }

  return (
    <Box flexDirection="column">
      {header}
      {breadcrumb}
hooks/tree.tsx lines 329–488 · Pane
export function Tree(el: ElementTable, ctx: TreeCtx): RenderElement {
  const { Box, Text, Button } = el
  const W = Math.max(1, ctx.columns)
  const { index, view, actions } = ctx
  const isFilter = view.filter.trim() !== ''

  // 1. Header: repo folder bold, branch dim, our close button at the right (the engine's own dim
  // ✕ is drawn over the last two cells of this row, so the button stops short of them and the two
  // read as one `close ✕`). Then the counts, dim. Everything sits one cell in from the divider,
  // lined up with the tree's chevrons.
  const hasClose = W >= 28
  const left = Math.max(4, W - PAD - (hasClose ? CLOSE_RESERVE : PAD))
  let header: RenderElement
  let counts: RenderElement | undefined
  if (index) {
    const name = fit(repoName(index.root), left)
    const branchRoom = left - strWidth(name) - 3
    const branch = index.isGit && index.branch && branchRoom >= 4 ? fit(index.branch, branchRoom) : ''
    header = (
      <Text wrap="truncate-end">
        <Text bold>{name}</Text>
        {branch ? <Text dimColor>{` ⎇ ${branch}`}</Text> : null}
      </Text>
    )
    const bits = [`${n(index.files.length)}${index.isTruncated ? '+' : ''} files`]
    if (ctx.changedCount > 0) bits.push(`${n(ctx.changedCount)} changed`)
    if (ctx.touchedCount > 0) bits.push(`${n(ctx.touchedCount)} edited by Claude`)
    counts = (
      <Box paddingLeft={PAD}>
        <Text dimColor wrap="truncate-end">
          {fit(bits.join(' · '), W - PAD * 2)}
        </Text>
      </Box>
    )
  } else {
    header = <Text bold>Repo</Text>
  }
  const top = (
    <Box flexDirection="row" justifyContent="space-between" paddingLeft={PAD} paddingRight={hasClose ? 2 : PAD}>
      {header}
      {hasClose ? <Button key="close" plain role="dismiss" label="close" onPress={() => actions.close()} /> : null}
    </Box>
  )

  // 2. Finder: a search field. Boxed (three rows) when the pane is tall enough to spare them.
  const isBoxed = hasBoxedFinder(ctx.rows)
  let finder: RenderElement | undefined
  if ('Input' in el) {
    const { Input } = el
    // The field sits alone in a column box that grows, so it stretches across the whole box: a click
    // anywhere in the row focuses it (a field beside a glyph in a row box took only its text's cells).
    // autoFocus: after ctrl+x tab, a click on the pane or `/files`, the ring starts on the finder.
    const field = (
      <Input
        key="filter"
        placeholder="Filter files…"
        value={view.filter}
        autoFocus
        onInput={(value: string) => actions.setFilter(value)}
        onSubmit={() => actions.openFirstMatch()}
      />
    )
    finder = isBoxed ? (
      <Box paddingX={PAD}>
        <Box key="finder" flexGrow={1} borderStyle="round" borderDimColor paddingX={1} gap={1} hover={{ borderDimColor: false }}>
          <Text dimColor>⌕</Text>
          <Box flexGrow={1} flexDirection="column">
            {field}
          </Box>
        </Box>
      </Box>
    ) : (
      <Box paddingLeft={PAD} gap={1}>
        <Text dimColor>⌕</Text>
        <Box flexGrow={1} flexDirection="column">
          {field}
        </Box>
      </Box>
    )
  }

  // 3. Toolbar: secondary actions, dim until pointed at or focused.
  const collapseLabel = W >= 44 ? 'collapse all' : 'collapse'
  const toolbar = (
    <Box flexDirection="row" columnGap={3} flexWrap="wrap" paddingLeft={PAD}>
      <Button key="tb:refresh" plain dimColor label="refresh" onPress={() => actions.refresh()} />
      <Button key="tb:collapse" plain dimColor label={collapseLabel} onPress={() => actions.collapseAll()} />
      <Button
        key="tb:follow"
        plain
        dimColor={!view.follow}
        label={`follow ${view.follow ? 'on' : 'off'}`}
        onPress={() => actions.toggleFollow()}
      />
    </Box>
  )

  // 4. Body: rows or an empty state.
  const body: RenderElement[] = []
  const shown = ctx.rows_
  let drawn = 0
  if (!index) {
    body.push(<Text dimColor>Loading files…</Text>)
  } else if (shown.length === 0) {
    if (isFilter) {
      body.push(<Text dimColor wrap="truncate-end">{fit(`No files match "${view.filter}"`, W)}</Text>)
    } else if (index.files.length === 0) {
      body.push(<Text dimColor>No files in this repo.</Text>)
    } else {
      body.push(<Text dimColor>Nothing to show.</Text>)
    }
  } else {
    if (isFilter) {
      const matches = Math.max(ctx.total, shown.length)
      const info = `${n(matches)} match${matches === 1 ? '' : 'es'}`
      body.push(<Text dimColor>{fit(info, W)}</Text>)
    }
    let budget = ROW_CHAR_BUDGET
    for (const row of shown) {
      if (drawn >= MAX_ROWS) break
      const rendered = Row(el, ctx, row, isFilter)
      budget -= JSON.stringify(rendered).length
      if (budget < 0) break
      body.push(rendered)
      drawn++
    }
    const total = isFilter ? Math.max(ctx.total, shown.length) : shown.length
    const more = total - drawn
    if (more > 0) {
      const text = isFilter ? `… ${n(more)} more · keep typing to narrow` : `… ${n(more)} more`
      body.push(<Text dimColor>{fit(text, W)}</Text>)
    }
  }

  // 5. Hint.
  const hintFull = '↑↓ move · ⏎ open · ctrl+x tab focus'
  const hint = strWidth(hintFull) <= W ? hintFull : fit('↑↓ move · ⏎ open', W)

  if (ctx.body) {
    return (
      <Box flexDirection="column">
        {top}
        {counts}
        {finder}
        {toolbar}
        {ctx.tools && ctx.tools.length > 0 ? (
          <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
            {ctx.tools}
          </Box>
        ) : null}
        {ctx.body}
      </Box>
    )
  }

  return (
    <Box flexDirection="column">
      {top}
      {counts}
      {finder}
Licence text (MIT)
MIT License

Copyright (c) 2026 Kesav Reddy Eswaravaka

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 programswrites filestool callsremembers

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 f3382212ade0 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.7 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, with its own branch for the desktop
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.git (reaches the network)
Reads and sendsWhether it both reads files or environment variables and reaches the network.reads files and reaches the 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 kesavreddy-commits/repo-viewer
/plugin install kesav@repoviewer

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

Search them from Claude: the MCP connector

Similar designs