Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / cockpit

cockpit

Agent cockpit for Claude Code: live context, limits, cost, tools, files, tests and a guard for risky commands

Code you can checkTerminal + desktopPaneBandStatus lineToastBoxButtonText
writes files, runs programs, draws

What it does

  • Draws a band above the prompt, a pane, the status line, toasts
  • Adds /cockpit-budget, /cockpit-demo, /cockpit-cache, /cockpit-export
  • Watches tool calls and can refuse them
  • Hooks session.compact, session.measure, session.start, turn.complete and 3 more
  • Keeps its own state between turns

Good points

  • No network calls
  • Written in TypeScript
  • 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 cockpit by drkokorev (pane, band, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/drkokorev-cockpit/
// 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, Text, Button } = $.ui.resolve(e)
    const pct = '…'
    const percentUsed = '…'
    const percentUsed2 = '…'
    const fmtUsd = '…'
    const loopAlerts = '…'
    const length = '…'
    const toolTotal = '…'
    const toolErrors = '…'
    const fmtDur = '…'
    const turnSteps = '…'
    const turnTools = '…'
    const diffAdd = '…'
    const diffDel = '…'
    const guardBlocked = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" gap={1} flexWrap="wrap">
          <Text bold color="cyan">
            ◆ Cockpit
          </Text>
          <Text dimColor>
            ctx
          </Text>
          <Text>
            ████████░░░░░░░░
            {" "}
            {pct}
            %
          </Text>
          <Text>
            {"5h "}
            {percentUsed}
            %
          </Text>
          <Text>
            {"7d "}
            {percentUsed2}
            %
          </Text>
          <Text bold>
            {`${fmtUsd}/${fmtUsd}`}
          </Text>
          <Text color="yellow">
            {`⟳ ${loopAlerts}`}
          </Text>
          <Text color="magenta">
            {`${length} agents`}
          </Text>
          <Text dimColor>
            {`${toolTotal} tools, ${toolErrors} err`}
          </Text>
          <Text color="cyan">
            {`● ${fmtDur} · ${turnSteps} steps · ${turnTools} tools`}
          </Text>
        </Box>
        <Box flexDirection="row" gap={1} flexWrap="wrap">
          <Text dimColor>
            {`files ${length} (+${diffAdd} −${diffDel})`}
          </Text>
          <Text color="green">
            ✓ tests
          </Text>
          <Text color="green">
            {`guard on · ${guardBlocked} blocked`}
          </Text>
          <Button variant="primary" label="Compact now" />
          <Button label="Panel" dimColor />
          <Button label="Report" dimColor />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "Cockpit" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const text = '…'
    const text2 = '…'
    const text3 = '…'
    const label = '…'
    const budgetMode = '…'
    const fmtUsd = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row">
          <Text wrap="truncate-end">
            {text}
          </Text>
          <Text wrap="truncate-end">
            {text2}
          </Text>
          <Text wrap="truncate-end">
            {text3}
          </Text>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row">
          <Box width={12} flexShrink={0}>
            <Text dimColor bold>
              {`  ${label}`}
            </Text>
          </Box>
          <Box flexDirection="column" flexGrow={1}>
            <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor />
          </Box>
        </Box>
        <Box flexDirection="row" gap={1} marginTop={1} flexWrap="wrap">
          <Button hotkey="x" label="Collapse all" />
          <Button hotkey="c" label="Full view" />
          <Button hotkey="g" variant="primary" label="Guard: on" />
          <Button hotkey="s" label="Status line: on" />
          <Button hotkey="m" label="Cost: hidden" />
          <Button hotkey="b" label={`Budget: ${budgetMode} ${fmtUsd}`} />
          <Button hotkey="p" label="Report" />
          <Button hotkey="e" label="Export .md" />
          <Button hotkey="r" dimColor label="Reset" />
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const parts = '…'
    const text = '…'
    const tool = '…'
    const repeats = '…'
    const label = '…'
    await $.ui.status(`◆ ${parts}`)
    await $.ui.toast(`Cockpit: ${text}`)
    await $.ui.toast(`Cockpit: possible loop, ${tool} ran ${repeats}× with the same input (${label})`)
    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.

plugins/cockpit/hooks/register.tsx lines 1872–1917 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const p = await read($, prefs)
    const where = await read($, pane)
    if (e.props.hasSurvey || (where.isPlaced && !p.isBandOn)) return next(e)
    const { Box, Text, Button } = $.ui.resolve(e)
    const s = await read($, stats)
    const now = await $.clock.now()
    const width = Math.max(6, Math.min(16, e.props.bodyColumns - 60))
    const pct = s.ctxPercent
    const fiveHour = s.limits.find(l => l.kind === 'five_hour')
    const sevenDay = s.limits.find(l => l.kind === 'seven_day')
    const lastTurn = s.turns.at(-1)
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" gap={1} flexWrap="wrap">
          <Text bold color="cyan">◆ Cockpit</Text>
          <Text dimColor>ctx</Text>
          {pct === undefined ? <Text dimColor>—</Text> : <Text color={levelColor(pct)}>{bar(pct, width)} {pct}%</Text>}
          {fiveHour ? <Text color={levelColor(fiveHour.percentUsed)}>5h {Math.round(fiveHour.percentUsed)}%</Text> : null}
          {sevenDay ? <Text color={levelColor(sevenDay.percentUsed)}>7d {Math.round(sevenDay.percentUsed)}%</Text> : null}
          {!isMoneyInLine(p, s) ? null : <Text bold>{isBudgetVisible(p, s) ? `${fmtUsd(s.costUsd)}/${fmtUsd(p.budgetUsd)}` : fmtUsd(s.costUsd)}</Text>}
          {s.loopAlerts ? <Text color="yellow">{`⟳ ${s.loopAlerts}`}</Text> : null}
          {visibleAgents(s).some(a => a.status === 'running') ? <Text color="magenta">{`${visibleAgents(s).filter(a => a.status === 'running').length} agent${visibleAgents(s).filter(a => a.status === 'running').length > 1 ? 's' : ''}`}</Text> : null}
          <Text dimColor>{`${s.toolTotal} tools${s.toolErrors ? `, ${s.toolErrors} err` : ''}`}</Text>
          {s.turnActive ? (
            <Text color="cyan">{`● ${fmtDur(now - s.turnStartedAt)} · ${s.turnSteps} steps · ${s.turnTools} tools`}</Text>
          ) : lastTurn ? (
            <Text dimColor>{`○ last ${fmtDur(lastTurn.durationMs)}`}</Text>
          ) : null}
        </Box>
        <Box flexDirection="row" gap={1} flexWrap="wrap">
          <Text dimColor>{`files ${s.diff.length || Object.keys(s.edits).length}${s.diff.length ? ` (+${s.diffAdd} −${s.diffDel})` : ''}`}</Text>
          {s.lastTest ? <Text color={s.lastTest.isOk ? 'green' : 'red'}>{s.lastTest.isOk ? '✓ tests' : '✗ tests'}</Text> : null}
          <Text color={p.isGuardOn ? 'green' : 'yellow'}>{`guard ${p.isGuardOn ? 'on' : 'off'}${s.guardBlocked ? ` · ${s.guardBlocked} blocked` : ''}`}</Text>
          {(() => {
            const left = cacheLeftMs(s, p, now)
            if (left === undefined || s.turnActive) return null
            return left > 0 ? <Text color={left > 60_000 ? 'green' : 'yellow'}>{`cache ${fmtDur(left)}`}</Text> : <Text color="yellow">cache cold</Text>
          })()}
          {(s.ctxPercent ?? 0) >= 70 && !s.turnActive ? <Button key="band-compact" variant="primary" label="Compact now" onPress={() => $.command.run({ command: 'compact' })} /> : null}
          <Button key="band-open" label="Panel" dimColor onPress={() => openPane($)} />
          <Button key="band-report" label="Report" dimColor onPress={async () => { const cur = await read($, stats); $.ui.log(buildReport(cur, await $.clock.now())) }} />
        </Box>
      </Box>
    )
  })
plugins/cockpit/hooks/register.tsx lines 1935–1935 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => drawCockpit($, $.ui.resolve(e), e.props.bodyColumns))
plugins/cockpit/hooks/register.tsx lines 493–652 · Pane
const drawCockpit = async ($: Dollar, els: CockpitElements, bodyColumns: number) => {
  const { Box, Text, Button } = els
  const s = await read($, stats)
  const p = await read($, prefs)
  const now = await $.clock.now()
  const cols = Math.max(30, bodyColumns || 60)
  const barWidth = Math.max(8, Math.min(24, cols - 26))
  const labelWidth = 12
  const mini = (share: number, width = 10) => bar(Math.max(0, Math.min(100, share)), width)
  const pad = (text: string, width: number) => (text.length >= width ? text.slice(0, width - 1) + ' ' : text.padEnd(width))
  const nameWidth = Math.max(10, Math.min(22, cols - labelWidth - 30))

  const isOpen = (label: string) => p.openSections.includes(label)
  const toggleSection = (label: string) =>
    update($, prefs, cur => ({
      ...cur,
      openSections: cur.openSections.includes(label) ? cur.openSections.filter(x => x !== label) : [...cur.openSections, label],
    }))

  // A section: its label opens the details, which show under the summary.
  const row = (label: string, body: RenderChildren, details?: () => RenderChildren, onToggle?: () => unknown, isToggled?: boolean) => (
    <Box flexDirection="row">
      <Box width={labelWidth} flexShrink={0}>
        {details || onToggle ? (
          <Button
            key={`sec-${label}`}
            plain
            dimColor={!(onToggle ? isToggled : isOpen(label))}
            label={`${(onToggle ? isToggled : isOpen(label)) ? '▾' : '▸'} ${label}`}
            onPress={() => (onToggle ? onToggle() : toggleSection(label))}
          />
        ) : (
          <Text dimColor bold>{`  ${label}`}</Text>
        )}
      </Box>
      <Box flexDirection="column" flexGrow={1}>
        {body}
        {details && isOpen(label) ? (
          <Box flexDirection="column" paddingLeft={1} marginBottom={1} borderStyle="single" borderColor="gray" borderDimColor>
            {details()}
          </Box>
        ) : null}
      </Box>
    </Box>
  )

  const line = (...parts: { text: string; color?: string; dim?: boolean; bold?: boolean }[]) => (
    <Box flexDirection="row">
      {parts.map(part => (
        <Text color={part.color} dimColor={part.dim} bold={part.bold} wrap="truncate-end">
          {part.text}
        </Text>
      ))}
    </Box>
  )

  // context
  const pct = s.ctxPercent
  const contextBody =
    pct === undefined
      ? line({ text: 'waiting for the first response', dim: true })
      : [
          line(
            { text: bar(pct, barWidth), color: levelColor(pct) },
            { text: ` ${pct}%`, bold: true, color: levelColor(pct) },
            { text: `  ${fmtTokens(s.ctxTokens)} / ${fmtTokens(s.ctxWindow)}`, dim: true },
          ),
          s.ctxParts.length > 0
            ? line({ text: s.ctxParts.slice(0, 4).map(c => `${c.name.toLowerCase()} ${fmtTokens(c.tokens)}`).join(' · '), dim: true })
            : null,
          pct >= 70 && !s.turnActive ? (
            <Box flexDirection="row" gap={1}>
              <Button key="compact-now" variant="primary" label="Compact now" onPress={() => $.command.run({ command: 'compact' })} />
              <Text dimColor>summarize the history before it happens mid-task</Text>
            </Box>
          ) : null,
        ]

  // limits
  const limitsBody =
    s.limits.length === 0
      ? line({ text: 'no rate-limit data (API key or no response yet)', dim: true })
      : s.limits.map(l =>
          line(
            { text: `${limitLabel(l.kind).padEnd(5)} ` },
            { text: bar(l.percentUsed, Math.max(6, barWidth - 6)), color: levelColor(l.percentUsed) },
            { text: ` ${Math.round(l.percentUsed)}%`, bold: true },
            { text: `  ${resetIn(l.resetsAt, now)}`, dim: true },
            (() => {
              const eta = paceEta(s, l.kind, now)
              const resetsAt = l.resetsAt ? Date.parse(l.resetsAt) : NaN
              if (eta === undefined) return { text: '' }
              const isBeforeReset = Number.isNaN(resetsAt) || now + eta < resetsAt
              return isBeforeReset ? { text: ` · full in ${fmtDur(eta)} at this pace`, color: 'yellow' } : { text: ' · on pace', dim: true }
            })(),
          ),
        )

  // cost
  const lastTurn = s.turns.at(-1)
  const burn = burnPerHour(s, now)
  const cache = cacheShare(s)
  const budgetShare = isBudgetVisible(p, s) ? (s.costUsd / p.budgetUsd) * 100 : undefined
  const costBody = [
    line(
      { text: fmtUsd(s.costUsd), bold: true },
      { text: isSubscription(s) ? ' API value (covered by your plan)' : ' this session', dim: true },
      { text: lastTurn ? ` · ${fmtUsd(lastTurn.costUsd)} last turn` : '', dim: true },
    ),
    (() => {
      const left = cacheLeftMs(s, p, now)
      if (left === undefined) return null
      if (s.turnActive) return line({ text: '◉ cache in use', color: 'green' })
      return left > 0
        ? line({ text: `◉ cache warm ${fmtDur(left)}`, color: left > 60_000 ? 'green' : 'yellow' }, { text: ' · reply before it expires to keep requests cheap', dim: true })
        : line({ text: '○ cache expired', color: 'yellow' }, { text: ' · the next request re-reads the whole context at full price', dim: true })
    })(),
    line(
      { text: burn === undefined ? 'pace —' : `pace ${fmtUsd(burn)}/h`, dim: true },
      { text: cache === undefined ? '' : ` · cache hits ${cache}%`, color: cache === undefined ? undefined : cache >= 70 ? 'green' : cache >= 40 ? 'yellow' : 'red' },
    ),
    budgetShare === undefined
      ? null
      : line(
          { text: `budget ${bar(Math.min(100, budgetShare), Math.max(6, barWidth - 7))}`, color: levelColor(budgetShare) },
          { text: ` ${Math.round(budgetShare)}% of ${fmtUsd(p.budgetUsd)}`, bold: budgetShare >= 80 },
        ),
  ]

  // the running turn
  const turnBody = s.turnActive
    ? line(
        { text: '● working ', color: 'cyan', bold: true },
        { text: fmtDur(now - s.turnStartedAt) },
        { text: ` · ${s.turnSteps} steps · ${s.turnTools} tools`, dim: true },
        { text: s.agentsActive.length ? ` · ${s.agentsActive.length} subagent${s.agentsActive.length > 1 ? 's' : ''}` : '', color: 'magenta' },
      )
    : line(
        { text: '○ idle', dim: true },
        { text: lastTurn ? ` · last ${fmtDur(lastTurn.durationMs)}, ${lastTurn.tools} tools, ${fmtTokens(lastTurn.tokensIn)} in / ${fmtTokens(lastTurn.tokensOut)} out` : '', dim: true },
      )

  const header = line(
    { text: '◆ COCKPIT', bold: true, color: 'cyan' },
    { text: `  ${s.model || ''}`, dim: true },
    { text: s.startedAt ? `  · ${fmtDur(now - s.startedAt)}` : '', dim: true },
  )

  const controls = (
    <Box flexDirection="row" gap={1} marginTop={1} flexWrap="wrap">
      <Button
        key="sections"
        hotkey="x"
        label={p.openSections.length ? 'Collapse all' : 'Expand all'}
        onPress={() =>
          update($, prefs, cur => ({
            ...cur,
            openSections: cur.openSections.length ? [] : ['CONTEXT', 'LIMITS', 'COST', 'TURN', 'TOOLS', 'FILES', 'TESTS', 'GUARD', 'ALERTS', 'HISTORY', 'ALL-TIME'],
          }))
        }
Licence text (MIT)
MIT License

Copyright (c) 2026 drkokorev

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 programswrites filesdrives Claudetool callsrememberscalls tools

What its code shows

Read from the source at commit 8960ed87ed3b 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.plugins/cockpit/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 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
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).command.run: /compact
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 cockpit, adds command cockpit-report, adds command cockpit-guard, adds command cockpit-budget, adds command cockpit-export, adds command cockpit-demo, adds command cockpit-cache
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, command.run (cockpit-budget, cockpit-demo, cockpit-cache (+4)) · shapes: turn.step · also: session.start, session.measure, turn.start, turn.complete (+3) · 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.files: a path computed at run time
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.files: .cockpit/cockpit-report.md

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 drkokorev/cockpit-for-claude
/plugin install cockpit@cockpit-for-claude
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (8960ed87ed3b). 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/drkokorev/cockpit-for-claude
git -C cockpit-for-claude checkout 8960ed87ed3b39d7236aaa17a1e1d26c7d154461
claude plugin validate cockpit-for-claude/plugins/cockpit
claude --plugin-dir cockpit-for-claude/plugins/cockpit

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 "drkokorev-cockpit" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

More by drkokorev

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