Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / sidebar

sidebar

Shows the model's real output speed, token and prompt-cache stats in a docked sidebar beside the transcript.

Code you can checkTerminal + desktopPaneBandBoxButtonSvgText
runs programs, draws

What it does

  • Draws a band above the prompt, a pane
  • Adds /sidebar
  • Watches tool calls and can refuse them
  • Hooks session.start, turn.step, ui.close
  • 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

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 sidebar by Fayeque Peerzade (pane, band), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/fayequep-sidebar/
// 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, Button } = $.ui.resolve(e)
    return (
      <Box flexDirection="column">
        <Box>
          <Button label="Show sidebar  ctrl+x s" plain dimColor action="app:toggleReplTab" />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "sidebar" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Svg, Button } = $.ui.resolve(e)
    const label = '…'
    const right = '…'
    const svg = '…'
    const r = '…'
    const spinnerFrame = '…'
    const title = '…'
    const formatElapsed = '…'
    const spinnerFrame2 = '…'
    const title2 = '…'
    const formatElapsed2 = '…'
    const spinnerFrame3 = '…'
    const title3 = '…'
    const formatElapsed3 = '…'
    const more = '…'
    const label2 = '…'
    const right2 = '…'
    const label3 = '…'
    const right3 = '…'
    const label4 = '…'
    const value = '…'
    const label5 = '…'
    const value2 = '…'
    const label6 = '…'
    const value3 = '…'
    const label7 = '…'
    const value4 = '…'
    const label8 = '…'
    const value5 = '…'
    const label9 = '…'
    const value6 = '…'
    const label10 = '…'
    const value7 = '…'
    const label11 = '…'
    const right4 = '…'
    const label12 = '…'
    const value8 = '…'
    const validText = '…'
    const source = '…'
    const label13 = '…'
    const right5 = '…'
    const label14 = '…'
    const value9 = '…'
    const label15 = '…'
    const value10 = '…'
    const label16 = '…'
    const right6 = '…'
    const label17 = '…'
    const value11 = '…'
    const label18 = '…'
    const value12 = '…'
    const label19 = '…'
    const value13 = '…'
    const compact = '…'
    const compact2 = '…'
    return (
      <Box flexDirection="column" width="100%" paddingLeft={1} paddingRight={2} paddingTop={1}>
        <Box flexDirection="column" width="100%" marginBottom={1}>
          <Box flexDirection="row" justifyContent="space-between" width="100%">
            <Text bold>
              {label}
            </Text>
            <Text bold color="#7aa2f7">
              {right}
            </Text>
          </Box>
          <Box width="100%">
            <Svg source={`${svg}`} alt={`${r}%`} height={14} />
          </Box>
          <Box flexDirection="column" width="100%">
            <Box flexDirection="row" width="100%">
              <Text color="#e07a7a">
                {spinnerFrame}
                {" "}
              </Text>
              <Text wrap="truncate" color="#8b919a">
                {title}
              </Text>
              <Box flexGrow={1} justifyContent="flex-end">
                <Text color="#8b919a">
                  {" "}
                  {formatElapsed}
                </Text>
              </Box>
            </Box>
            <Box flexDirection="row" width="100%">
              <Text color="#e07a7a">
                {spinnerFrame2}
                {" "}
              </Text>
              <Text wrap="truncate" color="#8b919a">
                {title2}
              </Text>
              <Box flexGrow={1} justifyContent="flex-end">
                <Text color="#8b919a">
                  {" "}
                  {formatElapsed2}
                </Text>
              </Box>
            </Box>
            <Box flexDirection="row" width="100%">
              <Text color="#e07a7a">
                {spinnerFrame3}
                {" "}
              </Text>
              <Text wrap="truncate" color="#8b919a">
                {title3}
              </Text>
              <Box flexGrow={1} justifyContent="flex-end">
                <Text color="#8b919a">
                  {" "}
                  {formatElapsed3}
                </Text>
              </Box>
            </Box>
            <Text color="#8b919a">
              +
              {more}
              {" more"}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text bold>
            {label2}
          </Text>
          <Text bold color="#7aa2f7">
            {right2}
          </Text>
        </Box>
        <Box width="100%">
          <Svg source={`${svg}`} alt={`${r}%`} height={14} />
        </Box>
        <Text color="#8b919a">
          — / —
          {" tokens"}
        </Text>
        <Box height={1} />
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text bold>
            {label3}
          </Text>
          <Text bold color="#7aa2f7">
            {right3}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color="#8b919a">
            {label4}
          </Text>
          <Text color="#8b919a">
            {value}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color="#8b919a">
            {label5}
          </Text>
          <Text color="#8b919a">
            {value2}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color="#8b919a">
            {label6}
          </Text>
          <Text color="#8b919a">
            {value3}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color="#8b919a">
            {label7}
          </Text>
          <Text color="#8b919a">
            {value4}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text>
            Total
          </Text>
          <Text bold>
            0000
          </Text>
        </Box>
        <Box flexDirection="column" width="100%">
          <Box flexDirection="row" justifyContent="space-between" width="100%">
            <Text color="#8b919a">
              {label8}
            </Text>
            <Text color="#8b919a">
              {value5}
            </Text>
          </Box>
          <Box flexDirection="row" justifyContent="space-between" width="100%">
            <Text color="#8b919a">
              {label9}
            </Text>
            <Text color="#8b919a">
              {value6}
            </Text>
          </Box>
          <Box flexDirection="row" justifyContent="space-between" width="100%">
            <Text color="#8b919a">
              {label10}
            </Text>
            <Text color="#8b919a">
              {value7}
            </Text>
          </Box>
        </Box>
        <Box height={1} />
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text bold>
            {label11}
          </Text>
          <Text bold color="#7aa2f7">
            {right4}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color="#8b919a">
            {label12}
          </Text>
          <Text color="#8b919a">
            {value8}
          </Text>
        </Box>
        <Box width="100%">
          <Svg source={`${svg}`} alt={`${r}%`} height={14} />
        </Box>
        <Box height={1} />
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color="#8b919a">
            Expires in
          </Text>
          <Text>
            <Text>
              {validText}
            </Text>
            <Text color="#8b919a">
              {" / "}
              1h
            </Text>
          </Text>
        </Box>
        <Box width="100%">
          <Svg source={`${svg}`} alt={`${r}%`} height={14} />
        </Box>
        <Text color="#8b919a">
          1h
          {" cache · "}
          {source}
        </Text>
        <Box height={1} />
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text bold>
            {label13}
          </Text>
          <Text bold color="#7aa2f7">
            {right5}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color="#8b919a">
            {label14}
          </Text>
          <Text color="#8b919a">
            {value9}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color="#8b919a">
            {label15}
          </Text>
          <Text color="#8b919a">
            {value10}
          </Text>
        </Box>
        <Box height={1} />
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text bold>
            {label16}
          </Text>
          <Text bold color="#7aa2f7">
            {right6}
          </Text>
        </Box>
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color="#8b919a">
            {label17}
          </Text>
          <Text color="#8b919a">
            {value11}
          </Text>
        </Box>
        <Box flexDirection="column" width="100%">
          <Box flexDirection="row" justifyContent="space-between" width="100%">
            <Text color="#8b919a">
              {label18}
            </Text>
            <Text color="#8b919a">
              {value12}
            </Text>
          </Box>
          <Box flexDirection="row" justifyContent="space-between" width="100%">
            <Text color="#8b919a">
              {label19}
            </Text>
            <Text color="#8b919a">
              {value13}
            </Text>
          </Box>
          <Box flexDirection="row" justifyContent="space-between" width="100%">
            <Text color="#8b919a">
              Lines
            </Text>
            <Text>
              <Text color="#8fbf7a">
                +
                {compact}
              </Text>
              <Text color="#8b919a">
                {" "}
              </Text>
              <Text color="#e07a7a">
                −
                {compact2}
              </Text>
            </Text>
          </Box>
        </Box>
        <Box flexGrow={1} minHeight={1} />
        <Button label="Hide sidebar  ctrl+x s" plain dimColor action="app:toggleReplTab" />
      </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 241–249 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    if (isOpen || e.props.hasSurvey) return next(e)
    const { Box, Button } = (await $.ui.resolve(e)) as any
    return (
      <Box>
        <Button key="toggle" label="Show sidebar  ctrl+x s" plain dimColor action={TOGGLE_ACTION} onPress={() => toggle($)} />
      </Box>
    )
  })
hooks/register.tsx lines 339–498 · Pane
  on('ui.render', { component: 'Pane' }, async ($, e, next) => {
    if (e.requestId !== 'meter') return next(e)
    // Being drawn means it is open. An unasked open below 144 columns waits
    // ({ isPlaced: false }) and is seated later, after session.start already
    // recorded it closed; without this the band's "Show sidebar" lingers.
    if (!isOpen) {
      isOpen = true
      $.ui.invalidate('ui.render') // drop the band's show button
    }
    const els = (await $.ui.resolve(e)) as any // Svg exists on desktop, not terminal
    const { Box, Text } = els

    // CONTEXT figures from the session usage (same source as the status line).
    let contextPct: number | null = null
    let contextLine = '— / —'
    let rateLimits: { kind: string; percentUsed: number }[] = []
    let costUsd: number | undefined
    try {
      const usage = await $.session.usage()
      rateLimits = usage?.rateLimits ?? []
      costUsd = usage?.cost?.usd
      limitUse = trackLimitUse(limitUse, rateLimits)
      if (usage && usage.context && usage.context.window) {
        const used = usage.context.tokens ?? 0
        contextPct = used / usage.context.window
        contextLine = `${compact(used)} / ${compact(usage.context.window)}`
      }
    } catch {
      // a test or a build without session.usage: draw without context
    }

    // Prompt-cache TTL of the main conversation, resolved as Claude Code does.
    const [envTtl, force5m, enable1h, settings] = await Promise.all([
      $.env.get('CLAUDE_CODE_PROMPT_CACHE_TTL').catch(() => undefined),
      $.env.get('FORCE_PROMPT_CACHING_5M').catch(() => undefined),
      $.env.get('ENABLE_PROMPT_CACHING_1H').catch(() => undefined),
      $.settings.read().catch(() => ({}) as Record<string, unknown>),
    ])
    const ttl = resolveTtl({
      envTtl,
      force5m,
      enable1h,
      setting: settings.promptCacheTtl,
      rateLimits,
    })
    const ttlMin = ttl.minutes

    const now = await $.clock.now()
    if (now - gitAt > 5000) {
      gitAt = now
      await pollGit($)
    }
    const remaining = last ? ttlMin * 60_000 - (now - last.at) : null
    const remainingRatio = remaining !== null ? remaining / (ttlMin * 60_000) : 0

    let workspace = ''
    try {
      workspace = await $.session.cwd()
    } catch {
      // keep defaults
    }
    const workspaceName = workspace ? workspace.replace(/\\/g, '/').split('/').filter(Boolean).pop() ?? '' : '—'

    const liveStats = live ?? last
    const rate = hitRate()
    const contextBarRatio = contextPct ?? 0

    const ctxPctText = contextPct === null ? '—' : `${(contextPct * 100).toFixed(1)}%`
    const rateText = rate === null ? '—' : `${(rate * 100).toFixed(1)}%`
    const validText = remaining === null ? '—' : formatCountdown(remaining)
    const speedText = liveStats && liveStats.tps > 0 ? formatTps(liveStats.tps) : '—'
    // Expiry is the one value that changes meaning near zero: color it then.
    const expiryColor = remaining === null ? C.muted : remaining < 30_000 ? C.bad : remaining < 90_000 ? C.warn : undefined
    const el = els
    const barW = Math.max(10, (e.props.bodyColumns || 30) - 3) // minus paddingLeft 1 + paddingRight 2

    // Main-screen terminal seats the pane inline above the prompt, full width:
    // a sidebar layout there is a takeover, so draw a compact strip instead.
    if (e.props.placement === 'inline') {
      const dot = <Text color={C.track}>  ·  </Text>
      return (
        <Box flexDirection="column" width="100%">
          <Box flexDirection="row" width="100%" flexWrap="wrap">
            <Text color={C.muted}>Context </Text>
            <Bar ratio={contextBarRatio} color={C.accent} width={16} surface={e.surface} el={el} />
            <Text bold color={C.accent}> {ctxPctText}</Text>
            {dot}
            <Text color={C.muted}>Cache </Text><Text>{rateText}</Text>
            <Text color={C.muted}> expires </Text><Text color={expiryColor}>{validText}</Text>
            {dot}
            <Text color={C.muted}>Speed </Text><Text>{speedText}</Text>
            {dot}
            <Text color={C.muted}>Total </Text>
            <Text>{compact(sums.input + sums.output + sums.cacheRead + sums.cacheWrite)}</Text>
          </Box>
          <Text color={C.muted}>Run /tui fullscreen to dock this as a sidebar.</Text>
        </Box>
      )
    }

    const gap = <Box height={1} />
    return (
      <Box flexDirection="column" width="100%" minHeight={e.props.scroll?.bodyRows} paddingLeft={1} paddingRight={2} paddingTop={1}>
        {tasks.length > 0 ? (
          <Box flexDirection="column" width="100%" marginBottom={1}>
            <Title label="Tasks" right={`${taskDone(tasks)}/${tasks.length}${taskFailed(tasks) ? ` · ${taskFailed(tasks)} ✗` : ''}`} el={el} />
            <Bar ratio={(taskDone(tasks) + taskFailed(tasks)) / tasks.length} color={C.accent} width={barW} surface={e.surface} el={el} />
            <TaskRows tasks={tasks} starts={taskStarts} now={now} el={el} />
          </Box>
        ) : undefined}
        <Title label="Context" right={ctxPctText} el={el} />
        <Bar ratio={contextBarRatio} color={C.accent} width={barW} surface={e.surface} el={el} />
        <Text color={C.muted}>{contextLine} tokens</Text>
        {gap}

        <Title label="Tokens" el={el} />
        <Row label="Input" value={compact(sums.input)} el={el} />
        <Row label="Output" value={compact(sums.output)} el={el} />
        <Row label="Cache read" value={compact(sums.cacheRead)} el={el} />
        <Row label="Cache write" value={compact(sums.cacheWrite)} el={el} />
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text>Total</Text>
          <Text bold>{compact(sums.input + sums.output + sums.cacheRead + sums.cacheWrite)}</Text>
        </Box>
        {/* What this session spent, in the unit the person pays in: a share of
            the plan's limits on a subscription, dollars on an API key. */}
        {rateLimits.length > 0 ? (
          <Box flexDirection="column" width="100%">
            {LIMIT_ROWS.filter(([kind]) => limitUse.has(kind)).map(([kind, label]) => (
              <Row key={`limit-${kind}`} label={label} value={formatShare(sessionShare(limitUse.get(kind)!))} el={el} />
            ))}
          </Box>
        ) : costUsd !== undefined && costUsd > 0 ? ( // > 0: before the first reply, a subscriber has no readings yet
          <Row label="Cost" value={formatUsd(costUsd)} el={el} />
        ) : undefined}
        {gap}

        <Title label="Cache" el={el} />
        <Row label="Hit rate" value={rateText} el={el} color={C.accent} />
        <Bar ratio={rate ?? 0} color={C.accent} width={barW} surface={e.surface} el={el} />
        {gap}
        <Box flexDirection="row" justifyContent="space-between" width="100%">
          <Text color={C.muted}>Expires in</Text>
          <Text>
            <Text color={expiryColor}>{validText}</Text>
            <Text color={C.muted}> / {ttlMin === 60 ? '1h' : '5m'}</Text>
          </Text>
        </Box>
        <Bar ratio={remainingRatio} color={expiryColor ?? C.accent} width={barW} surface={e.surface} el={el} />
        {/* Which rule set the TTL, on its own line: beside the time it overflowed a narrow pane. */}
        <Text color={C.muted}>{ttlMin === 60 ? '1h' : '5m'} cache · {ttl.source}</Text>
        {gap}

        <Title label="Speed" el={el} />
        <Row label="First token" value={formatTtft(liveStats?.ttftMs ?? null)} el={el} />
        <Row label="Output" value={speedText} el={el} />
        {gap}

        <Title label="Workspace" el={el} />
        <Row label="Folder" value={workspaceName} el={el} />
hooks/register.tsx lines 87–108 · Pane
function Bar(props: { ratio: number; color: string; width: number; surface: string; el: any }) {
  const { ratio, color, width, surface, el } = props
  const r = Math.max(0, Math.min(1, ratio))
  if (surface === 'terminal') {
    const { fill, track } = smoothBar(r, width)
    return (
      <el.Text>
        <el.Text color={color}>{fill}</el.Text>
        <el.Text color={C.track}>{track}</el.Text>
      </el.Text>
    )
  }
  const w = Math.round(r * 1000)
  // 8px pill centred in 14px: the transparent margin spaces rows on desktop.
  // rx is wider than ry because the 1000-wide viewBox is squeezed to the pane.
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="14" viewBox="0 0 1000 14" preserveAspectRatio="none"><rect y="3" width="1000" height="8" rx="10" ry="4" fill="${C.track}"/>${w > 0 ? `<rect y="3" width="${Math.max(w, 20)}" height="8" rx="10" ry="4" fill="${color}"/>` : ''}</svg>`
  return (
    <el.Box width="100%">
      <el.Svg source={svg} alt={`${Math.round(r * 100)}%`} height={14} />
    </el.Box>
  )
}
hooks/register.tsx lines 110–118 · Pane
function Title(props: { label: string; right?: string; el: any }) {
  const { label, right, el } = props
  return (
    <el.Box flexDirection="row" justifyContent="space-between" width="100%">
      <el.Text bold>{label}</el.Text>
      {right !== undefined ? <el.Text bold color={C.accent}>{right}</el.Text> : undefined}
    </el.Box>
  )
}
hooks/register.tsx lines 650–680 · Pane
function TaskRows(props: { tasks: Task[]; starts: Map<string, number>; now: number; el: any }) {
  const { tasks, starts, now, el } = props
  const { rows, more } = visibleTasks(tasks)
  return (
    <el.Box flexDirection="column" width="100%">
      {rows.map(t => {
        const failed = t.status === 'completed' ? failedTitle(t.title) : null
        return (
        <el.Box key={`task-${t.id}`} flexDirection="row" width="100%">
          <el.Text color={failed !== null ? C.bad : t.status === 'completed' ? C.ok : t.status === 'in_progress' ? C.accent : C.muted}>
            {t.status === 'in_progress' ? spinnerFrame(now) : failed !== null ? '✗' : TASK_MARK[t.status]}{' '}
          </el.Text>
          <el.Text
            wrap="truncate"
            bold={t.status === 'in_progress'}
            color={t.status === 'in_progress' ? undefined : C.muted}
          >
            {t.status === 'in_progress' ? (t.active ?? t.title) : (failed ?? t.title)}
          </el.Text>
          {t.status === 'in_progress' && starts.has(taskKey(t)) ? (
            <el.Box flexGrow={1} justifyContent="flex-end">
              <el.Text color={C.muted}> {formatElapsed(now - starts.get(taskKey(t))!)}</el.Text>
            </el.Box>
          ) : undefined}
        </el.Box>
        )
      })}
      {more > 0 ? <el.Text color={C.muted}>+{more} more</el.Text> : undefined}
    </el.Box>
  )
}
hooks/register.tsx lines 120–128 · Pane
function Row(props: { label: string; value: string; el: any; color?: string; dim?: boolean }) {
  const { label, value, el, color, dim } = props
  return (
    <el.Box flexDirection="row" justifyContent="space-between" width="100%">
      <el.Text color={C.muted}>{label}</el.Text>
      <el.Text color={dim ? C.muted : color}>{value}</el.Text>
    </el.Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Fayeque Peerzade

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 programsenv varstool callsremembers

What its code shows

Read from the source at commit 8e99b63fcf66 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.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).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 something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, settings.json 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
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.adds command sidebar
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: command.run (sidebar), tool.call · shapes: turn.step · also: session.start, ui.render (AbovePrompt, Pane), ui.close · timers: clock.every
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: CLAUDE_CODE_ENABLE_TODO_TOOLS, CLAUDE_CODE_PROMPT_CACHE_TTL, FORCE_PROMPT_CACHING_5M, ENABLE_PROMPT_CACHING_1H; settings.json
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.env: CLAUDE_CODE_ENABLE_TODO_TOOLS

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 FayequeP/sidebar
/plugin install sidebar@claude-mod-sidebar
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (8e99b63fcf66). 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/FayequeP/sidebar
git -C sidebar checkout 8e99b63fcf6619b50f7433b9cc1a6878f6fcca7b
claude plugin validate sidebar
claude --plugin-dir sidebar

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 "fayequep-sidebar" 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/fayequep-sidebar.svg)](https://modscode.com/claude-mods/mods/fayequep-sidebar/)