modscode JA

modscode / Gallery / agent-cockpit

agent-cockpit

The instruments around each Claude Code session: themed status line, TTSR and layered rules, AGENTS.md and APPEND_SYSTEM, an edit advisor

Code you can checkTerminal + desktopPaneBandToastBoxButtonInputSelectText

What it does

  • Draws a pane, a band above the prompt, toasts
  • Adds /dgs
  • Watches Edit, Write calls and can refuse them
  • Hooks prompt.compose, prompt.context, prompt.submit, session.start and 3 more
  • Keeps its own state between turns

Good points

  • No network calls
  • 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 agent-cockpit by Daniel Santana (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/dgsantana-agent-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 pane: open it with $.ui.open({ id: 'my-pane', title: "dgs settings" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Button, Text, Select } = $.ui.resolve(e)
    const i = '…'
    const label = '…'
    const name = '…'
    const kind = '…'
    const source = '…'
    const title = '…'
    const value = '…'
    const origin = '…'
    const text = '…'
    const label2 = '…'
    const text2 = '…'
    const label3 = '…'
    const text3 = '…'
    const segOrigin = '…'
    const id = '…'
    const side = '…'
    const id2 = '…'
    const id3 = '…'
    const title2 = '…'
    const label4 = '…'
    const text4 = '…'
    const label5 = '…'
    const text5 = '…'
    const label6 = '…'
    const text6 = '…'
    const id4 = '…'
    const id5 = '…'
    const id6 = '…'
    const title3 = '…'
    const label7 = '…'
    const text7 = '…'
    const label8 = '…'
    const text8 = '…'
    const label9 = '…'
    const text9 = '…'
    const id7 = '…'
    const id8 = '…'
    const id9 = '…'
    const hint = '…'
    return (
      <Box flexDirection="column">
        <Box gap={1}>
          <Button hotkey={`${i}`} label={`${label}`} variant="primary" />
          <Button hotkey={`${i}`} label={`${label}`} variant="primary" />
          <Button hotkey={`${i}`} label={`${label}`} variant="primary" />
        </Box>
        <Box gap={1}>
          <Text dimColor>
            write to
          </Text>
          <Button label="Global" variant="primary" />
          <Button label="This project" variant="primary" />
          <Text dimColor />
        </Box>
        <Box flexDirection="column">
          <Box gap={1}>
            <Button label="[ ]" plain />
            <Text>
              {`${name}  ${kind} · ${source}`}
            </Text>
          </Box>
          <Box gap={1}>
            <Button label="[ ]" plain />
            <Text>
              {`${name}  ${kind} · ${source}`}
            </Text>
          </Box>
          <Box gap={1}>
            <Button label="[ ]" plain />
            <Text>
              {`${name}  ${kind} · ${source}`}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Text bold color="suggestion">
            {title}
          </Text>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box>
                <Text>
                  {label}
                </Text>
              </Box>
              <Box gap={1}>
                <Text dimColor>
                  family
                </Text>
                <Select value={`${label}`} />
                <Text dimColor>
                  theme
                </Text>
                <Select value={`${value}`} />
              </Box>
              <Text dimColor>
                {`· ${origin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Text color="red">
              {text}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box>
                <Text>
                  {label2}
                </Text>
              </Box>
              <Box gap={1}>
                <Text dimColor>
                  family
                </Text>
                <Select value={`${label}`} />
                <Text dimColor>
                  theme
                </Text>
                <Select value={`${value}`} />
              </Box>
              <Text dimColor>
                {`· ${origin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Text color="red">
              {text2}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box>
                <Text>
                  {label3}
                </Text>
              </Box>
              <Box gap={1}>
                <Text dimColor>
                  family
                </Text>
                <Select value={`${label}`} />
                <Text dimColor>
                  theme
                </Text>
                <Select value={`${value}`} />
              </Box>
              <Text dimColor>
                {`· ${origin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Text color="red">
              {text3}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Text bold color="suggestion">
                Segments
              </Text>
              <Text dimColor>
                {`· ${segOrigin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Box gap={1}>
              <Box>
                <Text>
                  {id}
                </Text>
              </Box>
              <Button label="[x]" plain />
              <Button label={`${side}`} plain />
              <Button label="↑" plain />
              <Button label="↓" plain />
            </Box>
            <Box gap={1}>
              <Box>
                <Text>
                  {id2}
                </Text>
              </Box>
              <Button label="[x]" plain />
              <Button label={`${side}`} plain />
              <Button label="↑" plain />
              <Button label="↓" plain />
            </Box>
            <Box gap={1}>
              <Box>
                <Text>
                  {id3}
                </Text>
              </Box>
              <Button label="[x]" plain />
              <Button label={`${side}`} plain />
              <Button label="↑" plain />
              <Button label="↓" plain />
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Text bold color="suggestion">
            {title2}
          </Text>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box>
                <Text>
                  {label4}
                </Text>
              </Box>
              <Box gap={1}>
                <Text dimColor>
                  family
                </Text>
                <Select value={`${label}`} />
                <Text dimColor>
                  theme
                </Text>
                <Select value={`${value}`} />
              </Box>
              <Text dimColor>
                {`· ${origin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Text color="red">
              {text4}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box>
                <Text>
                  {label5}
                </Text>
              </Box>
              <Box gap={1}>
                <Text dimColor>
                  family
                </Text>
                <Select value={`${label}`} />
                <Text dimColor>
                  theme
                </Text>
                <Select value={`${value}`} />
              </Box>
              <Text dimColor>
                {`· ${origin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Text color="red">
              {text5}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box>
                <Text>
                  {label6}
                </Text>
              </Box>
              <Box gap={1}>
                <Text dimColor>
                  family
                </Text>
                <Select value={`${label}`} />
                <Text dimColor>
                  theme
                </Text>
                <Select value={`${value}`} />
              </Box>
              <Text dimColor>
                {`· ${origin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Text color="red">
              {text6}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Text bold color="suggestion">
                Segments
              </Text>
              <Text dimColor>
                {`· ${segOrigin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Box gap={1}>
              <Box>
                <Text>
                  {id4}
                </Text>
              </Box>
              <Button label="[x]" plain />
              <Button label={`${side}`} plain />
              <Button label="↑" plain />
              <Button label="↓" plain />
            </Box>
            <Box gap={1}>
              <Box>
                <Text>
                  {id5}
                </Text>
              </Box>
              <Button label="[x]" plain />
              <Button label={`${side}`} plain />
              <Button label="↑" plain />
              <Button label="↓" plain />
            </Box>
            <Box gap={1}>
              <Box>
                <Text>
                  {id6}
                </Text>
              </Box>
              <Button label="[x]" plain />
              <Button label={`${side}`} plain />
              <Button label="↑" plain />
              <Button label="↓" plain />
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Text bold color="suggestion">
            {title3}
          </Text>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box>
                <Text>
                  {label7}
                </Text>
              </Box>
              <Box gap={1}>
                <Text dimColor>
                  family
                </Text>
                <Select value={`${label}`} />
                <Text dimColor>
                  theme
                </Text>
                <Select value={`${value}`} />
              </Box>
              <Text dimColor>
                {`· ${origin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Text color="red">
              {text7}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box>
                <Text>
                  {label8}
                </Text>
              </Box>
              <Box gap={1}>
                <Text dimColor>
                  family
                </Text>
                <Select value={`${label}`} />
                <Text dimColor>
                  theme
                </Text>
                <Select value={`${value}`} />
              </Box>
              <Text dimColor>
                {`· ${origin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Text color="red">
              {text8}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box>
                <Text>
                  {label9}
                </Text>
              </Box>
              <Box gap={1}>
                <Text dimColor>
                  family
                </Text>
                <Select value={`${label}`} />
                <Text dimColor>
                  theme
                </Text>
                <Select value={`${value}`} />
              </Box>
              <Text dimColor>
                {`· ${origin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Text color="red">
              {text9}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Text bold color="suggestion">
                Segments
              </Text>
              <Text dimColor>
                {`· ${segOrigin}`}
              </Text>
              <Button label="reset" plain />
            </Box>
            <Box gap={1}>
              <Box>
                <Text>
                  {id7}
                </Text>
              </Box>
              <Button label="[x]" plain />
              <Button label={`${side}`} plain />
              <Button label="↑" plain />
              <Button label="↓" plain />
            </Box>
            <Box gap={1}>
              <Box>
                <Text>
                  {id8}
                </Text>
              </Box>
              <Button label="[x]" plain />
              <Button label={`${side}`} plain />
              <Button label="↑" plain />
              <Button label="↓" plain />
            </Box>
            <Box gap={1}>
              <Box>
                <Text>
                  {id9}
                </Text>
              </Box>
              <Button label="[x]" plain />
              <Button label={`${side}`} plain />
              <Button label="↑" plain />
              <Button label="↓" plain />
            </Box>
          </Box>
        </Box>
        <Text dimColor>
          {hint}
        </Text>
      </Box>
    )
  })

  // 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 note = '…'
    return (
      <Box flexDirection="column">
        <Text>
          <Text bold color="warning">
            {"Advisor: "}
          </Text>
          {note}
        </Text>
        <Box>
          <Button label="✓ Send with next prompt" />
          <Text>
            {" "}
          </Text>
          <Button label="✓ Ignore" />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const fired = '…'
    const model = '…'
    await $.ui.toast(`agent-cockpit TTSR: ${fired}`)
    await $.ui.toast(`Advisor: no price for ${model}; spend estimated at the highest known rate (set advisor.prices in config)`)
    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/agent-cockpit/hooks/register.tsx lines 707–857 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE_ID }, async ($, e) => {
    if (e.surface === 'mobile') {
      const { Text } = $.ui.resolve(e)
      return <Text>dgs settings need a terminal or desktop session (pickers and inputs).</Text>
    }
    const { Box, Button, Input, Select, Text } = $.ui.resolve(e)
    const tab: Tab = (await $.state.get(PANE_TAB)).value ?? 'statusline'
    const scope = (await $.state.get(PANE_SCOPE)).value ?? 'global'
    const error = (await $.state.get(PANE_ERROR)).value
    const themeGroup = (await $.state.get(PANE_THEME_GROUP)).value
    const hint = hintFor((await $.state.get(PANE_FOCUS)).value ?? undefined)
    let snap: Snapshot
    try {
      snap = await snapshot($)
    } catch (err) {
      return <Text>agent-cockpit: settings unavailable ({errText(err)})</Text>
    }
    const targets = await paneTargets($, snap)
    const rows = paneRows(tab, snap, await storeValues($))
    const builtin = await builtinThemes($)
    const themes = listThemes(builtin, snap.themeSpecs)
    const statusline = sanitizeStatusline(snap.config.statusline).config
    // The preview stops a cell short of the pane's frame.
    const columns = e.props.bodyColumns === undefined ? undefined : e.props.bodyColumns - 1
    const extra = await paneExtras($, tab, snap, statusline, builtin, e, columns)
    const groups = paneGroups(settingsFor(tab))
    const lw = labelWidth(groups.flatMap(g => g.settings))
    const rowOf = new Map(rows.map(r => [r.setting.key, r]))

    const control = (s: Setting, value: unknown) => {
      const key = `set-${s.key}`
      switch (s.kind) {
        case 'bool':
          return <Button key={key} label={value ? '[x] on' : '[ ] off'} plain onPress={() => writeSetting($, s, !value)} />
        case 'enum':
          return (
            <Select key={key} options={s.options.map(o => ({ value: o }))} value={String(value)} onSelect={(v: string) => writeSetting($, s, v)} />
          )
        case 'theme': {
          // Two steps: a family, then a theme in it (a Select takes at most SELECT_MAX options).
          const groups = themeGroups(themes.includes(String(value)) ? themes : [String(value), ...themes])
          const group = groups.find(g => g.label === themeGroup) ?? groups.find(g => g.names.includes(String(value))) ?? groups[0]
          return (
            <Box key={key + '-box'} gap={1}>
              <Text dimColor>family</Text>
              <Select
                key={`${key}-group`}
                options={groups.slice(0, SELECT_MAX).map(g => ({ value: g.label }))}
                value={group?.label}
                onSelect={(v: string) => $.state.set(PANE_THEME_GROUP, v)}
              />
              <Text dimColor>theme</Text>
              <Select
                key={key}
                options={(group?.names ?? [String(value)]).map(o => ({ value: o }))}
                value={group?.names.includes(String(value)) ? String(value) : undefined}
                onSelect={(v: string) => writeSetting($, s, v)}
              />
            </Box>
          )
        }
        case 'stringList':
          return (
            <Input
              key={key}
              value={Array.isArray(value) ? value.join(', ') : ''}
              onSubmit={(v: string) => writeSetting($, s, parseListInput(v))}
            />
          )
        default:
          return <Input key={key} value={value === undefined ? '' : String(value)} onSubmit={(v: string) => writeSetting($, s, v)} />
      }
    }

    // The segment table: every segment, on or off, its side and its order.
    const lists: SegmentLists = { left: statusline.left, right: statusline.right }
    const segOrigin = rows.find(r => r.setting.kind === 'segments' && r.origin !== 'default')?.origin
    const segmentTable = (
      <Box key="group-segments" flexDirection="column">
        <Box gap={1}>
          <Text bold color="suggestion">Segments</Text>
          {segOrigin ? <Text dimColor>{`· ${segOrigin}`}</Text> : null}
          {segOrigin ? <Button key="reset-segments" label="reset" plain onPress={() => resetSegments($)} /> : null}
        </Box>
        {segmentRows(lists).map(r => (
          <Box key={`segrow-${r.id}`} gap={1}>
            <Box width={lw}>
              <Text dimColor={r.side === null}>{r.id}</Text>
            </Box>
            <Button key={`seg-on-${r.id}`} label={r.side ? '[x]' : '[ ]'} plain onPress={() => writeSegments($, segmentToggle(lists, r.id))} />
            {r.side ? <Button key={`seg-side-${r.id}`} label={r.side} plain onPress={() => writeSegments($, segmentSide(lists, r.id))} /> : null}
            {r.side ? <Button key={`seg-up-${r.id}`} label="↑" plain onPress={() => writeSegments($, segmentMove(lists, r.id, 'up'))} /> : null}
            {r.side ? <Button key={`seg-down-${r.id}`} label="↓" plain onPress={() => writeSegments($, segmentMove(lists, r.id, 'down'))} /> : null}
          </Box>
        ))}
      </Box>
    )

    return (
      <Box flexDirection="column">
        <Box gap={1}>
          {TABS.map((t, i) => (
            <Button
              key={`tab-${t.id}`}
              hotkey={String(i + 1)}
              label={t.label}
              variant={t.id === tab ? 'primary' : undefined}
              onPress={() => $.state.set(PANE_TAB, t.id)}
            />
          ))}
        </Box>
        <Box gap={1}>
          <Text dimColor>write to</Text>
          <Button key="scope-global" label="Global" variant={scope === 'global' ? 'primary' : undefined} onPress={() => setScope($, 'global')} />
          <Button
            key="scope-project"
            label="This project"
            dimColor={!targets.project}
            variant={scope === 'project' ? 'primary' : undefined}
            onPress={() => setScope($, 'project')}
          />
          <Text dimColor>{(scope === 'project' ? targets.project : targets.global) ?? ''}</Text>
        </Box>
        {extra}
        {groups.map((g, gi) => (
          <Box key={`group-${gi}`} flexDirection="column">
            {g.title ? <Text bold color="suggestion">{g.title}</Text> : null}
            {g.settings.map(setting => {
              const row = rowOf.get(setting.key)
              const isSet = row !== undefined && row.origin !== 'default'
              return (
                <Box key={`row-${setting.key}`} flexDirection="column">
                  <Box gap={1}>
                    <Box width={lw}>
                      <Text>{setting.label}</Text>
                    </Box>
                    {control(setting, row?.value)}
                    {isSet ? <Text dimColor>{`· ${row.origin}`}</Text> : null}
                    {isSet ? <Button key={`reset-${setting.key}`} label="reset" plain onPress={() => resetSetting($, setting)} /> : null}
                  </Box>
                  {error?.key === setting.key ? <Text color="red">{error.text}</Text> : null}
                </Box>
              )
            })}
            {tab === 'statusline' && g.title === 'Look' ? segmentTable : null}
          </Box>
        ))}
        {hint ? <Text dimColor>{hint}</Text> : null}
      </Box>
    )
  })
plugins/agent-cockpit/hooks/register.tsx lines 476–542 · Pane
async function paneExtras(
  $: EngineInterface,
  tab: Tab,
  snap: Snapshot,
  statusline: StatuslineConfig,
  builtin: Record<string, Record<string, string>>,
  e: Parameters<EngineInterface['ui']['resolve']>[0],
  columns: number | undefined,
) {
  const { Box, Button, Text } = $.ui.resolve(e)
  if (tab === 'statusline') {
    const resolved = resolveTheme(statusline.theme, builtin, snap.themeSpecs)
    const warnings = [...sanitizeStatusline(snap.config.statusline).warnings, ...resolved.warnings]
    for (const w of warnings) warnOnce($, w)
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" flexWrap="nowrap" overflow="hidden">
          {(() => {
            const { left, middle, right } = statusSpans(PREVIEW_DATA, statusline, resolved.theme, columns)
            return [...left, ...middle, ...right].map(s => (
              <Text color={s.color} backgroundColor={s.backgroundColor} wrap="truncate">
                {s.text}
              </Text>
            ))
          })()}
        </Box>
        {warnings.map(w => (
          <Text color="yellow">{`⚠ ${w}`}</Text>
        ))}
      </Box>
    )
  }
  if (tab === 'rules') {
    const disabledSetting = SETTINGS.find(s => s.key === 'rules.disabled') as Setting
    const disabled = snap.config.rules.disabled
    return (
      <Box flexDirection="column">
        {rulesRows(snap.allRules, snap.config.rules).map(r => (
          <Box key={`rulerow-${r.name}`} gap={1}>
            <Button
              key={`rule-${r.name}`}
              label={r.disabled ? '[ ]' : '[x]'}
              plain
              onPress={() =>
                writeSetting($, disabledSetting, disabled.includes(r.name) ? disabled.filter(n => n !== r.name) : [...disabled, r.name])
              }
            />
            <Text dimColor={r.disabled}>{`${r.name}  ${r.kind} · ${r.source}`}</Text>
          </Box>
        ))}
      </Box>
    )
  }
  if (tab === 'advisor') {
    const session = (await $.state.get(SESSION_USD)).value ?? 0
    const total = await $.store.get('advisor.totalUsd')
    const lastError = (await $.state.get(LAST_ERROR)).value
    return (
      <Box gap={1}>
        <Text>{`spent: session $${session.toFixed(3)}, total $${(typeof total === 'number' ? total : 0).toFixed(3)}`}</Text>
        <Button key="advisor-reset-spend" label="Reset spend" onPress={() => $.store.set('advisor.totalUsd', 0)} />
        {lastError ? <Text color="red">{`last review failed: ${lastError}`}</Text> : null}
      </Box>
    )
  }
  return null
}
plugins/agent-cockpit/hooks/register.tsx lines 879–913 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    if (e.props.hasSurvey) return next(e)
    let status = null
    try {
      status = await statusRow($, e, e.props.bodyColumns)
    } catch (err) {
      warnOnce($, `status line not drawn (${errText(err)})`)
    }
    const note = (await $.state.get(NOTE)).value
    if (!note) return status ?? next(e)
    const decision = (await $.state.get(DECISION)).value ?? 'accept'
    const { Box, Button, Text } = $.ui.resolve(e)
    return (
      <Box flexDirection="column">
        {status}
        <Text>
          <Text bold color="warning">Advisor: </Text>
          {note}
        </Text>
        <Box>
          <Button
            key="advisor-accept"
            label={decision === 'accept' ? '✓ Send with next prompt' : 'Send with next prompt'}
            onPress={() => $.state.set(DECISION, 'accept')}
          />
          <Text> </Text>
          <Button
            key="advisor-ignore"
            label={decision === 'ignore' ? '✓ Ignore' : 'Ignore'}
            onPress={() => $.state.set(DECISION, 'ignore')}
          />
        </Box>
      </Box>
    )
  })
Licence text (MIT)
MIT License

Copyright (c) 2026 Daniel Santana

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 filesenv varsdrives Claudetool 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 1862cbe68417 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/agent-cockpit/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.17 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.ast-grep, git (reaches the network)
Reads and sendsWhether it both reads files or environment variables and reaches the network.reads environment variables and 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 dgsantana/claude-mods
/plugin install agent-cockpit@dgsantana

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

Search them from Claude: the MCP connector

Similar designs