Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / console-status

console-status

Claude Console:跨專案 STATUS、Claude/Codex 派工、工作階段與用量總覽(含手機 Remote Control)

Code you can checkTerminal + desktopPaneBandToastBoxButtonClientText
network, draws

What it does

  • Draws a pane, toasts
  • Watches tool calls and can refuse them
  • Hooks classic.Stop, prompt.compose, prompt.submit, session.compact and 5 more
  • Keeps its own state between turns
  • Calls the network

Good points

  • 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 console-status by SaM-runtime (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/sam-runtime-console-status/
// 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: "主控台" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button, Client } = $.ui.resolve(e)
    const length = '…'
    const time = '…'
    const executor = '…'
    const name = '…'
    const STAGE_GLYPH = '…'
    const label = '…'
    const STAGE_GLYPH2 = '…'
    const label2 = '…'
    const STAGE_GLYPH3 = '…'
    const label3 = '…'
    const note = '…'
    const clause = '…'
    const blockedReason = '…'
    const actionLabel = '…'
    const pendingConfirm = '…'
    const reason = '…'
    const verify = '…'
    const value = '…'
    const line = '…'
    const line2 = '…'
    const line3 = '…'
    const n = '…'
    const n2 = '…'
    const GLYPH = '…'
    const c = '…'
    const c2 = '…'
    const c3 = '…'
    const chipText = '…'
    const project = '…'
    const item = '…'
    const t = '…'
    const t2 = '…'
    const t3 = '…'
    const age = '…'
    const chipText2 = '…'
    const item2 = '…'
    const t4 = '…'
    const t5 = '…'
    const t6 = '…'
    const age2 = '…'
    const chipText3 = '…'
    const item3 = '…'
    const t7 = '…'
    const t8 = '…'
    const t9 = '…'
    const age3 = '…'
    const name2 = '…'
    const STAGE_GLYPH4 = '…'
    const label4 = '…'
    const STAGE_GLYPH5 = '…'
    const label5 = '…'
    const STAGE_GLYPH6 = '…'
    const label6 = '…'
    const note2 = '…'
    const id = '…'
    const meta = '…'
    const last = '…'
    const id2 = '…'
    const meta2 = '…'
    const last2 = '…'
    const id3 = '…'
    const meta3 = '…'
    const last3 = '…'
    const clause2 = '…'
    const clause3 = '…'
    const i = '…'
    const key = '…'
    const text = '…'
    const answer = '…'
    const clause4 = '…'
    const clause5 = '…'
    const clause6 = '…'
    const clause7 = '…'
    const clause8 = '…'
    const clause9 = '…'
    const clause10 = '…'
    const clause11 = '…'
    const clause12 = '…'
    const gitLine = '…'
    const hash = '…'
    const subject = '…'
    const agoText = '…'
    const ignored = '…'
    const clause13 = '…'
    const clause14 = '…'
    return (
      <Box flexDirection="column" gap={1}>
        <Box flexDirection="column">
          <Box justifyContent="space-between" gap={1}>
            <Text bold color="#E5EAF0" wrap="truncate-end">
              主控台
              <Text color="#6E7787" backgroundColor="#1C222B">
                {" 示範資料 "}
              </Text>
              <Text color="#6E7787">
                {` ${length} 個專案`}
              </Text>
            </Text>
            <Box flexShrink={0}>
              <Text color="#4A5260">
                {`更新於 ${time}`}
              </Text>
            </Box>
          </Box>
          <Box columnGap={1} flexWrap="wrap">
            <Text color="#6E7787">
              全域派工
            </Text>
            <Box>
              <Button plain label={`${executor}`} />
              <Text color="#8AADF4">
                ▴
              </Text>
            </Box>
            <Text color="#4A5260">
              ·
            </Text>
            <Text color="#6E7787">
              模型
            </Text>
            <Box>
              <Button plain label="預設" />
              <Text color="#8AADF4">
                ▴
              </Text>
            </Box>
            <Text color="#4A5260">
              ·
            </Text>
            <Text color="#6E7787">
              強度
            </Text>
            <Box>
              <Button plain label="預設" />
              <Text color="#8AADF4">
                ▴
              </Text>
            </Box>
            <Text color="#4A5260">
              ·
            </Text>
            <Text color="#6E7787">
              同步模型
            </Text>
            <Box>
              <Button plain label="同派工" />
              <Text color="#8AADF4">
                ▴
              </Text>
            </Box>
            <Text color="#6E7787">
              新 session
            </Text>
          </Box>
          <Box columnGap={1} flexWrap="wrap">
            <Text color="#6E7787">
              {`同步模型(${executor})`}
            </Text>
            <Button plain label="[▸ 下一步]" />
            <Button plain label="[▸ 下一步]" />
            <Button plain label="[▸ 下一步]" />
            <Text color="#6E7787">
              模型快取讀不到;用 /console model &lt;name&gt; 輸入
            </Text>
            <Text color="#6E7787">
              {"清單沒有的模型:/console sync-model <name>"}
            </Text>
            <Button plain dimColor label="✕" />
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderColor="#8BD5CA" paddingX={1}>
          <Box justifyContent="space-between" gap={1}>
            <Text bold color="#8BD5CA" wrap="truncate-end">
              {"專案模式 "}
              <Text color="#E5EAF0">
                {name}
              </Text>
            </Text>
            <Text color="#6E7787">
              /console mode console 切回主控台
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box flexWrap="wrap">
              <Text wrap="truncate-end">
                <Text>
                  {" ─ "}
                </Text>
                <Text>
                  {STAGE_GLYPH}
                  {" "}
                  {label}
                </Text>
              </Text>
              <Text wrap="truncate-end">
                <Text>
                  {" ─ "}
                </Text>
                <Text>
                  {STAGE_GLYPH2}
                  {" "}
                  {label2}
                </Text>
              </Text>
              <Text wrap="truncate-end">
                <Text>
                  {" ─ "}
                </Text>
                <Text>
                  {STAGE_GLYPH3}
                  {" "}
                  {label3}
                </Text>
              </Text>
            </Box>
            <Text wrap="wrap">
              {note}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text color="#6E7787">
              下一步
            </Text>
            <Text color="#CAD3E0" wrap="wrap">
              {`· ${clause}`}
            </Text>
            <Text color="#CAD3E0" wrap="wrap">
              {`· ${clause}`}
            </Text>
            <Text color="#CAD3E0" wrap="wrap">
              {`· ${clause}`}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box gap={2}>
              <Box width={6} flexShrink={0}>
                <Text color="#6E7787">
                  動作
                </Text>
              </Box>
              <Box columnGap={2} flexWrap="wrap" flexGrow={1} flexShrink={1}>
                <Box gap={1}>
                  <Client module="./spinner.tsx" width={1} height={1} />
                  <Button plain label="▸ 下一步" />
                </Box>
                <Box gap={1}>
                  <Client module="./spinner.tsx" width={1} height={1} />
                  <Button plain label="▸ 下一步" />
                </Box>
                <Box gap={1}>
                  <Client module="./spinner.tsx" width={1} height={1} />
                  <Button plain label="▸ 下一步" />
                </Box>
                <Text color="#6E7787">
                  派工鎖定:
                  {blockedReason}
                </Text>
                <Box>
                  <Button plain label={`⇢ 改用 Claude 派工(${actionLabel})`} />
                </Box>
              </Box>
            </Box>
            <Box paddingLeft={8}>
              <Text color="#F0C674" wrap="wrap">
                {pendingConfirm}
              </Text>
            </Box>
            <Box gap={2}>
              <Box width={6} flexShrink={0}>
                <Text color="#6E7787">
                  執行者
                </Text>
              </Box>
              <Box columnGap={1} flexWrap="wrap" flexGrow={1} flexShrink={1}>
                <Box columnGap={1} flexWrap="wrap">
                  <Button plain label="[▸ 下一步]" />
                  <Button plain label="[▸ 下一步]" />
                  <Button plain label="[▸ 下一步]" />
                </Box>
                <Text color="#6E7787">
                  手動交接:面板不派工(CARD、驗證、關卡照常)
                </Text>
                <Text color="#F0C674" wrap="truncate-end">
                  Codex 未派工:
                  {reason}
                </Text>
              </Box>
            </Box>
          </Box>
          <Box flexDirection="column" marginTop={1}>
            <Text color="#6E7787" wrap="wrap">
              驗證指令
              :
              {verify}
            </Text>
            <Text color="#A6D189">
              ✓
              {" 最後驗證 "}
              {value}
              (
              未正常結束
              )
            </Text>
            <Text color="#F0C674">
              輸出已被執行器截斷,以下是擷取內容
            </Text>
            <Text color="#6E7787" wrap="truncate-end">
              {line}
            </Text>
            <Text color="#6E7787" wrap="truncate-end">
              {line2}
            </Text>
            <Text color="#6E7787" wrap="truncate-end">
              {line3}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="row" backgroundColor="#1C222B">
          <Box width={1} flexShrink={0} backgroundColor="#A6D189" />
          <Box flexDirection="column" flexGrow={1} flexShrink={1} paddingX={1}>
            <Box justifyContent="space-between" gap={1}>
              <Text bold color="#A6D189">
                ▸ 下一步
              </Text>
              <Box flexShrink={0} paddingX={1} backgroundColor="#22304A">
                <Box gap={1}>
                  <Client module="./spinner.tsx" width={1} height={1} />
                  <Button plain label="▸ 下一步" />
                </Box>
              </Box>
            </Box>
            <Text color="#CAD3E0" wrap="wrap">
              <Text bold color="#E5EAF0">
                {n}
              </Text>
              <Text color="#4A5260">
                {" "}
              </Text>
              <Text>
                {n2}
              </Text>
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box gap={1} height={1} overflow="hidden">
            <Box flexShrink={0}>
              <Text bold color="#E5EAF0">
                專案
              </Text>
            </Box>
            <Box flexGrow={1} flexShrink={1} minWidth={1} height={1} overflow="hidden">
              <Text color="#353D4A" wrap="truncate-end" />
            </Box>
            <Box flexShrink={0} gap={2}>
              <Box>
                <Text color="#4A5260">
                  {`${GLYPH} `}
                  <Text bold>
                    {c}
                  </Text>
                </Text>
              </Box>
              <Box>
                <Text color="#4A5260">
                  {`${GLYPH} `}
                  <Text bold>
                    {c2}
                  </Text>
                </Text>
              </Box>
              <Box>
                <Text color="#4A5260">
                  {`${GLYPH} `}
                  <Text bold>
                    {c3}
                  </Text>
                </Text>
              </Box>
            </Box>
          </Box>
          <Box gap={1} paddingRight={1}>
            <Box width={10}>
              <Text color="#4A5260">
                {" 狀態"}
              </Text>
            </Box>
            <Box>
              <Text color="#4A5260">
                名稱
              </Text>
            </Box>
            <Box flexGrow={1}>
              <Text color="#4A5260">
                項目
              </Text>
            </Box>
            <Box flexShrink={0}>
              <Text color="#4A5260">
                流程
              </Text>
            </Box>
            <Box flexShrink={0}>
              <Text color="#4A5260">
                Git
              </Text>
            </Box>
            <Box width={4} justifyContent="flex-end">
              <Text color="#4A5260">
                更新
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box gap={1} backgroundColor="#22304A">
              <Box width={10}>
                <Text bold>
                  {chipText}
                </Text>
              </Box>
              <Box>
                <Button plain label={`${project}`} />
              </Box>
              <Box flexGrow={1} flexShrink={1}>
                <Text color="#CAD3E0" wrap="wrap">
                  {item}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  <Text>
                    {t}
                  </Text>
                  <Text>
                    {t2}
                  </Text>
                  <Text>
                    {t3}
                  </Text>
                </Text>
              </Box>
              <Box flexShrink={0} overflow="hidden">
                <Text wrap="truncate-end" />
              </Box>
              <Box width={4} justifyContent="flex-end">
                <Text color="#6E7787">
                  {age}
                </Text>
              </Box>
            </Box>
            <Box gap={1} backgroundColor="#22304A">
              <Box width={10}>
                <Text bold>
                  {chipText2}
                </Text>
              </Box>
              <Box>
                <Button plain label={`${project}`} />
              </Box>
              <Box flexGrow={1} flexShrink={1}>
                <Text color="#CAD3E0" wrap="wrap">
                  {item2}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  <Text>
                    {t4}
                  </Text>
                  <Text>
                    {t5}
                  </Text>
                  <Text>
                    {t6}
                  </Text>
                </Text>
              </Box>
              <Box flexShrink={0} overflow="hidden">
                <Text wrap="truncate-end" />
              </Box>
              <Box width={4} justifyContent="flex-end">
                <Text color="#6E7787">
                  {age2}
                </Text>
              </Box>
            </Box>
            <Box gap={1} backgroundColor="#22304A">
              <Box width={10}>
                <Text bold>
                  {chipText3}
                </Text>
              </Box>
              <Box>
                <Button plain label={`${project}`} />
              </Box>
              <Box flexGrow={1} flexShrink={1}>
                <Text color="#CAD3E0" wrap="wrap">
                  {item3}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  <Text>
                    {t7}
                  </Text>
                  <Text>
                    {t8}
                  </Text>
                  <Text>
                    {t9}
                  </Text>
                </Text>
              </Box>
              <Box flexShrink={0} overflow="hidden">
                <Text wrap="truncate-end" />
              </Box>
              <Box width={4} justifyContent="flex-end">
                <Text color="#6E7787">
                  {age3}
                </Text>
              </Box>
            </Box>
          </Box>
          <Box flexDirection="column" borderStyle="round" borderColor="#8AADF4" paddingX={1} marginTop={1}>
            <Box justifyContent="space-between" gap={1}>
              <Box gap={1} flexShrink={1}>
                <Text bold color="#E5EAF0" wrap="truncate-end">
                  {name2}
                </Text>
              </Box>
              <Box gap={2} flexShrink={0}>
                <Button plain dimColor label="✕ 關閉" />
              </Box>
            </Box>
            <Box marginTop={1}>
              <Box flexDirection="column">
                <Box flexWrap="wrap">
                  <Text wrap="truncate-end">
                    <Text>
                      {" ─ "}
                    </Text>
                    <Text>
                      {STAGE_GLYPH4}
                      {" "}
                      {label4}
                    </Text>
                  </Text>
                  <Text wrap="truncate-end">
                    <Text>
                      {" ─ "}
                    </Text>
                    <Text>
                      {STAGE_GLYPH5}
                      {" "}
                      {label5}
                    </Text>
                  </Text>
                  <Text wrap="truncate-end">
                    <Text>
                      {" ─ "}
                    </Text>
                    <Text>
                      {STAGE_GLYPH6}
                      {" "}
                      {label6}
                    </Text>
                  </Text>
                </Box>
                <Text wrap="wrap">
                  {note2}
                </Text>
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Box flexDirection="column">
                <Box gap={1}>
                  <Box width={2} flexShrink={0}>
                    <Text color="#8BD5CA">
                      ◉
                    </Text>
                  </Box>
                  <Box flexGrow={1} flexShrink={1}>
                    <Text color="#E5EAF0" wrap="truncate-end">
                      {id}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text color="#6E7787">
                      {meta}
                    </Text>
                  </Box>
                </Box>
                <Text color="#6E7787" wrap="truncate-end">
                  {"   › "}
                  {last}
                </Text>
              </Box>
              <Box flexDirection="column">
                <Box gap={1}>
                  <Box width={2} flexShrink={0}>
                    <Text color="#8BD5CA">
                      ◉
                    </Text>
                  </Box>
                  <Box flexGrow={1} flexShrink={1}>
                    <Text color="#E5EAF0" wrap="truncate-end">
                      {id2}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text color="#6E7787">
                      {meta2}
                    </Text>
                  </Box>
                </Box>
                <Text color="#6E7787" wrap="truncate-end">
                  {"   › "}
                  {last2}
                </Text>
              </Box>
              <Box flexDirection="column">
                <Box gap={1}>
                  <Box width={2} flexShrink={0}>
                    <Text color="#8BD5CA">
                      ◉
                    </Text>
                  </Box>
                  <Box flexGrow={1} flexShrink={1}>
                    <Text color="#E5EAF0" wrap="truncate-end">
                      {id3}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text color="#6E7787">
                      {meta3}
                    </Text>
                  </Box>
                </Box>
                <Text color="#6E7787" wrap="truncate-end">
                  {"   › "}
                  {last3}
                </Text>
              </Box>
              <Box gap={2}>
                <Box width={6} flexShrink={0}>
                  <Text color="#6E7787">
                    狀態
                  </Text>
                </Box>
                <Box flexGrow={1} flexShrink={1} flexDirection="column">
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#CAD3E0" wrap="wrap">
                        {clause}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#CAD3E0" wrap="wrap">
                        {clause2}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#CAD3E0" wrap="wrap">
                        {clause3}
                      </Text>
                    </Box>
                  </Box>
                </Box>
              </Box>
              <Box gap={2}>
                <Box width={6} flexShrink={0}>
                  <Text color="#6E7787">
                    待決
                  </Text>
                </Box>
                <Box flexGrow={1} flexShrink={1}>
                  <Box flexDirection="column">
                    <Box flexDirection="column" marginTop={1}>
                      <Text bold color="#F0C674" wrap="wrap">
                        {`決策 ${i}1 `}
                        請選擇
                      </Text>
                      <Box paddingLeft={2}>
                        <Button plain label={`● ${key}) ${text}`} />
                      </Box>
                      <Box paddingLeft={2}>
                        <Button plain label={`● ${key}) ${text}`} />
                      </Box>
                      <Box paddingLeft={2}>
                        <Button plain label={`● ${key}) ${text}`} />
                      </Box>
                    </Box>
                    <Box flexDirection="column" marginTop={1}>
                      <Text bold color="#F0C674" wrap="wrap">
                        {`決策 ${i}1 `}
                        請選擇
                      </Text>
                      <Box paddingLeft={2}>
                        <Button plain label={`● ${key}) ${text}`} />
                      </Box>
                      <Box paddingLeft={2}>
                        <Button plain label={`● ${key}) ${text}`} />
                      </Box>
                      <Box paddingLeft={2}>
                        <Button plain label={`● ${key}) ${text}`} />
                      </Box>
                    </Box>
                    <Box flexDirection="column" marginTop={1}>
                      <Text bold color="#F0C674" wrap="wrap">
                        {`決策 ${i}1 `}
                        請選擇
                      </Text>
                      <Box paddingLeft={2}>
                        <Button plain label={`● ${key}) ${text}`} />
                      </Box>
                      <Box paddingLeft={2}>
                        <Button plain label={`● ${key}) ${text}`} />
                      </Box>
                      <Box paddingLeft={2}>
                        <Button plain label={`● ${key}) ${text}`} />
                      </Box>
                    </Box>
                    <Box marginTop={1} gap={2}>
                      <Button variant="primary" label={`✎ 填入決策:${answer}`} />
                      <Button plain dimColor label="清除選擇" />
                    </Box>
                  </Box>
                </Box>
              </Box>
              <Box gap={2}>
                <Box width={6} flexShrink={0}>
                  <Text color="#6E7787">
                    關卡
                  </Text>
                </Box>
                <Box flexGrow={1} flexShrink={1} flexDirection="column">
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#CA9EE6" wrap="wrap">
                        {clause4}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#CA9EE6" wrap="wrap">
                        {clause5}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#CA9EE6" wrap="wrap">
                        {clause6}
                      </Text>
                    </Box>
                  </Box>
                </Box>
              </Box>
              <Box gap={2}>
                <Box width={6} flexShrink={0}>
                  <Text color="#6E7787">
                    下一步
                  </Text>
                </Box>
                <Box flexGrow={1} flexShrink={1} flexDirection="column">
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#CAD3E0" wrap="wrap">
                        {clause7}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#CAD3E0" wrap="wrap">
                        {clause8}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#CAD3E0" wrap="wrap">
                        {clause9}
                      </Text>
                    </Box>
                  </Box>
                </Box>
              </Box>
              <Box gap={2}>
                <Box width={6} flexShrink={0}>
                  <Text color="#6E7787">
                    同步
                  </Text>
                </Box>
                <Box flexGrow={1} flexShrink={1} flexDirection="column">
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#8AADF4" wrap="wrap">
                        {clause10}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#8AADF4" wrap="wrap">
                        {clause11}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#8AADF4" wrap="wrap">
                        {clause12}
                      </Text>
                    </Box>
                  </Box>
                </Box>
              </Box>
              <Box gap={2}>
                <Box width={6} flexShrink={0}>
                  <Text color="#6E7787">
                    Git
                  </Text>
                </Box>
                <Box flexGrow={1} flexShrink={1}>
                  <Text color="#E78284" wrap="wrap">
                    {gitLine}
                  </Text>
                </Box>
                <Box flexShrink={0}>
                  <Button plain dimColor label="▾ 收起" />
                </Box>
              </Box>
              <Box flexDirection="column" borderStyle="round" borderColor="#4A5260" paddingX={1} marginLeft={8}>
                <Box justifyContent="space-between" gap={1}>
                  <Text color="#E78284" wrap="truncate-end">
                    讀取中…
                  </Text>
                  <Box flexShrink={0}>
                    <Button plain dimColor label="↻ 重讀" />
                  </Box>
                </Box>
                <Text color="#E78284">
                  {`衝突 ${length} 解決後再提交`}
                </Text>
                <Text color="#4A5260">
                  {`       …還有 ${n} 個`}
                </Text>
                <Text color="#A6D189">
                  {`已暫存 ${length} 下次 commit 會帶走`}
                </Text>
                <Text color="#4A5260">
                  {`       …還有 ${n} 個`}
                </Text>
                <Text color="#F0C674">
                  {`未暫存 ${length}`}
                </Text>
                <Text color="#4A5260">
                  {`       …還有 ${n} 個`}
                </Text>
                <Text color="#8AADF4">
                  {`未追蹤 ${length}`}
                </Text>
                <Text color="#4A5260">
                  {`       …還有 ${n} 個`}
                </Text>
                <Text color="#6E7787">
                  {`最新提交 ${hash} ${subject}(${agoText})`}
                </Text>
                <Text color="#4A5260">
                  {`       …還有 ${n} 個`}
                </Text>
                <Text color="#6E7787">
                  {`忽略 ${length}`}
                  <Text color="#4A5260">
                    {" .gitignore 排除,不會進版控"}
                  </Text>
                </Text>
                <Text color="#4A5260" wrap="wrap">
                  {`       ${ignored} …還有 ${length} 個`}
                </Text>
              </Box>
              <Box gap={2}>
                <Box width={6} flexShrink={0}>
                  <Text color="#6E7787">
                    Fetch
                  </Text>
                </Box>
                <Box flexGrow={1} flexShrink={1} flexDirection="column">
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#F0C674" wrap="wrap">
                        {clause13}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0}>
                      <Text color="#6E7787">
                        ·
                      </Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text color="#F0C674" wrap="wrap">
                        {clause14}
                      </Text>
                    </Box>
                  </Box>
                  <Box gap={1}>
                    <Box width={1} flexShrink={0} />
                  </Box>
                </Box>
              </Box>
            </Box>
          </Box>
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const name = '…'
    const actionLabel = '…'
    await $.ui.toast(`示範資料:不執行專案操作;/console refresh 回到實際資料。`)
    await $.ui.toast(`${name}:${actionLabel}…`)
    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/console-status/hooks/register.tsx lines 1939–2098 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const generation = dataGeneration
    const ui = $.ui.resolve(e) as any
    const { Box, Text, Button } = ui
    const demo = await demoEnabled($)
    const stored = await read($, snapshot)
    const s = demo && !stored?.demo ? demoSnapshot(await $.clock.now()) : stored
    // A pane left open across a reload into a light session gets no refresh, so say how to start one.
    if (s === null && !consoleActive) return <Text color={C.dim}>這個 session 沒有啟動主控台;輸入 /console refresh 開啟。</Text>
    if (s === null) return <Text color={C.dim}>讀取各專案狀態中…</Text>
    const detail = await read($, isDetail)
    const selectedName = await read($, selected)
    const sel = demo && !s.projects.some(project => project.name === selectedName) ? null : selectedName
    const cur = await read($, cursor)
    const feed = demo ? demoEvents(s.at) : await read($, feedAtom)
    const hov = await read($, hovered)
    const menu = await read($, menuFor)
    const openGit = demo ? null : await read($, gitOpen)
    const gitViewMap = demo ? {} : await read($, gitViews)
    const picks = await read($, decisionPicks)
    const refreshing = await read($, isRefreshing)
    const pending = await read($, pendingActions)
    const digests = demo ? {} : await read($, executorDigests)
    const confirmations = await read($, continueConfirmations)
    const verified = await read($, verificationResults)
    const trusted = await read($, trustedVerify)
    await read($, actionPulse) // redraws running action labels once a second
    const offers = demo ? {} : await read($, fallbackOffers)
    const syncs = demo ? {} : await read($, syncProgress)
    const version = await read($, updateInfo)
    const renderedAt = Object.keys(pending).length || Object.values(syncs).some(track => !isSyncEnded(track.stage)) ? await $.clock.now() : s.at
    const revision = await read($, dispatchRevision)
    // Drawing never touches the disk on its own: settings are re-read after a write (revision) or a refresh (s.at).
    const { config, dispatch } = demo
      ? { config: demoContext?.config ?? resolveConfig(options, '', '', '/tmp'), dispatch: demoContext?.dispatch ?? { settings: { executor: s.executor ?? 'claude', model: '', effort: '' }, models: [] } }
      : await renderDispatch($, options, `${revision}|${s.at}`)
    const picker = await read($, dispatchPicker)
    const togglePicker = (field: PickerField) => void update($, dispatchPicker, v => (v === field ? null : field))
    const choose = async (field: PickerField, value: string) => {
      if (field === 'sync') {
        try {
          const saved = await changeSync($, config, 'model', value, dispatch.settings.executor)
          await clearSyncModelFailures($)
          await update($, dispatchPicker, () => null)
          if (await demoEnabled($)) demoContext = { config, dispatch: await readDispatch($, config) }
          await update($, dispatchRevision, v => v + 1)
          $.ui.toast(syncSettingsText(saved).split('\n')[0]!)
        } catch (error) { $.ui.toast(`設定未儲存:${error instanceof Error ? error.message : String(error)}`) }
        return
      }
      try {
        const saved = await changeDispatch($, config, field, value)
        await update($, dispatchPicker, () => null)
        if (await demoEnabled($)) demoContext = { config, dispatch: await readDispatch($, config) }
        await update($, dispatchRevision, v => v + 1)
        if (field === 'executor') await refresh($, options, true)
        $.ui.toast(`派工設定已儲存:${saved.executor} · ${saved.model || '預設'} · ${saved.effort || '預設'}`)
      } catch (error) { $.ui.toast(`設定未儲存:${error instanceof Error ? error.message : String(error)}`) }
    }
    /**
     * Pick one project's executor ('' = inherit). The snapshot is patched at once so the label,
     * the actions and the dispatch guard all agree before the (slow) refresh comes back.
     */
    const chooseProjectExecutor = async (p: Project, value: '' | 'claude' | 'codex' | 'manual') => {
      if (await demoEnabled($)) { $.ui.toast('示範資料:不變更專案設定。'); return }
      try {
        const root = projectRoot(p.statusPath)
        const saved = await changeProjectDispatch($, config, root, 'executor', value)
        const eff = effectiveDispatch(saved, root, p.registryExecutor)
        await update($, snapshot, current => current && {
          ...current,
          projects: current.projects.map(item => item.statusPath === p.statusPath ? { ...item, executor: eff.executor, executorSource: eff.source } : item),
        })
        await update($, fallbackOffers, values => { const rest = { ...values }; delete rest[p.statusPath]; return rest })
        await update($, dispatchRevision, v => v + 1)
        $.ui.toast(`${p.name} 執行者:${eff.executor}(${SOURCE_LABEL[eff.source]})`)
        void refresh($, options, true)
      } catch (error) { $.ui.toast(`設定未儲存:${error instanceof Error ? error.message : String(error)}`) }
    }
    // '' is the executor's own default; a model set by /console model stays listed while it is chosen.
    const pickerValue = (field: PickerField): string => field === 'sync' ? dispatch.settings.sync?.[dispatch.settings.executor]?.model ?? '' : dispatch.settings[field] ?? ''
    const pickerChoices = (field: PickerField): string[] => {
      const current = pickerValue(field)
      if (field === 'sync') {
        const values = ['', ...dispatch.models.map(m => m.model)]
        return values.includes(current) ? values : [...values, current]
      }
      const values = field === 'executor' ? ['claude', 'codex']
        : field === 'model' ? ['', ...dispatch.models.map(m => m.model)]
        : ['', ...effortOptions(dispatch.settings.executor, dispatch.models, dispatch.settings.model)]
      return values.includes(current) ? values : [...values, current]
    }
    const codexShown = dispatch.settings.executor === 'codex' || !!s.codexInUse
    const n = next(s)
    const c = counts(s)
    const ctx = s.contextPercent
    // Every window the host reports gets a row and a hover tip of its own; nothing is cut off at two.
    const limits = s.limits ?? []
    for (const l of limits) if (!HELP['limit_' + l.kind]) HELP['limit_' + l.kind] = limitHelp(l.kind)
    const time = new Date(s.at).toTimeString().slice(0, 5)
    const health = codexHealth(s.codex)
    const width: number = Math.max(40, (e.props.bodyColumns ?? 80) - 1)
    const list = rows(s)
    const now = await $.clock.now()
    const showGit = s.projects.some(p => p.git)
    const W = { state: 10, project: projectColumnWidth(list.map(row => row.project)), age: 4, flow: width >= 64 ? 6 : 0, git: showGit && width >= 80 ? 7 : 0 }
    const badges = new Map(s.projects.map(p => [p.name, gitBadge(p.git, p.pr)]))
    const GIT_TONE: Record<string, string> = { red: C.red, amber: C.amber, blue: C.blue, teal: C.teal, green: C.green, dim: C.dim }
    const pipes = new Map(s.projects.map(p => [p.name, pipeline(p, verified[p.statusPath])]))
    const here = demo ? null : await focused($, options, s)

    const specs = list.map(r => ({
      id: r.full,
      shimmer: r.state === 'RUNNING',
      breathe: r.state === 'ACTION' ? [C.amberBg, '#443925', '#4D412B'] : r.state === 'GATE' ? [C.purpleBg, '#3D304B', '#463755'] : undefined,
      changedAt: s.projects.find(project => project.name === r.full)?.changedAt,
      cells: [
        { t: chipText(r.state), c: FG[r.state], bg: BG[r.state], b: r.state !== 'IDLE', w: W.state },
        { t: r.project, c: r.state === 'IDLE' ? C.dim : C.strong, w: W.project },
        { t: r.item, c: r.state === 'IDLE' ? C.dim : C.text },
        ...(W.flow ? [{ t: '', w: W.flow, parts: pipes.get(r.full) ? pipelineParts(pipes.get(r.full)!, PIPE) : [] }] : []),
        ...(W.git ? [{ t: badges.get(r.full)?.text ?? '', c: GIT_TONE[badges.get(r.full)?.tone ?? 'dim'], w: W.git }] : []),
        { t: r.age, c: C.dim, w: W.age, right: true },
      ],
    }))

    const rich = (e.surface === 'terminal' || e.surface === 'desktop') && Boolean(ui.Client) && !(await read($, isPlain))
    const table = rich
      ? (
        <ui.Client key="rows" module="./rows.tsx" width="100%"
          props={JSON.parse(JSON.stringify({ rows: specs, now, changed: ['#2C3B4B', '#24303D', '#1C252F'], selected: sel, cursor: cur, selectedBg: C.sel, hoverBg: C.hover, shimmer: SHIMMER }))} />
      )
      : (
        <Box flexDirection="column">
          {list.map(r => (
            <Box key={'row-' + r.project} gap={1} backgroundColor={sel === r.full ? C.sel : undefined}>
              <Box width={W.state}><Text bold color={FG[r.state]} backgroundColor={BG[r.state]}>{chipText(r.state)}</Text></Box>
              <Box width={W.project}>
                <Button key={'sel-' + r.project} plain label={r.project}
                  onPress={() => void update($, selected, v => (v === r.full ? null : r.full))} />
              </Box>
              <Box flexGrow={1} flexShrink={1}><Text color={C.text} wrap={detail ? 'wrap' : 'truncate-end'}>{r.item}</Text></Box>
              {W.flow > 0 && <Box width={W.flow} flexShrink={0}><Text>{(pipes.get(r.full) ? pipelineParts(pipes.get(r.full)!, PIPE) : []).map((part, index) => <Text key={'fp-' + index} color={part.c}>{part.t}</Text>)}</Text></Box>}
              {W.git > 0 && <Box width={W.git} flexShrink={0} overflow="hidden"><Text color={GIT_TONE[badges.get(r.full)?.tone ?? 'dim']} wrap="truncate-end">{badges.get(r.full)?.text ?? ''}</Text></Box>}
              <Box width={W.age} justifyContent="flex-end"><Text color={C.dim}>{r.age}</Text></Box>
            </Box>
          ))}
        </Box>
      )

    // Hidden line that appears while anything in the same hover scope is under the pointer.
    // Full, untruncated text of a row (the table cell is cut to fit).
    const fullItem = (full: string) => {
      const p = s.projects.find(x => x.name === full)
      if (!p) return ''
      if (!p.hasCard) return 'STATUS 卡不存在'
      if (hasAsk(p)) return askSummary(p.ask)
      if (parseGate(p.gate)) return `關卡:${p.gate}`
      const run = p.jobs.find(j => j.kind === 'running')
      if (run) return runLine(run, s.at)
plugins/console-status/hooks/pipeline-view.tsx lines 25–36 · Pane
export function pipelineLine(pl: Pipeline, palette: PipelinePalette, elements: any, key: string, opts: { noteless?: boolean } = {}) {
  const { Box, Text } = elements
  return <Box key={key} flexDirection="column">
    <Box flexWrap="wrap">
      {pl.stages.map((stage, index) => <Text key={key + '-' + stage.id} wrap="truncate-end">
        {index > 0 && <Text color={pl.stages[index - 1]!.status === 'done' ? palette.green : palette.faint}>{' ─ '}</Text>}
        <Text color={stageColor(stage, palette)} bold={stage.id === pl.current}>{STAGE_GLYPH[stage.status]} {stage.label}</Text>
      </Text>)}
    </Box>
    {!opts.noteless && pl.note && <Text color={pl.current ? stageColor(pl.stages.find(stage => stage.id === pl.current)!, palette) : palette.dim} wrap="wrap">{pl.note}</Text>}
  </Box>
}
Licence text (MIT)
MIT License

Copyright (c) 2026 SaM-runtime

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

networkruns programswrites filesenv varsdrives Claudetool callsrememberscalls tools

What its code shows

Read from the source at commit dddbbdb15f1c 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/console-status/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.27 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.plugins/console-status/hooks/register.tsx:1278 fetch(LATEST_MANIFEST_URL)
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.plugins/console-status/hooks/register.tsx:292 a program named at run time; plugins/console-status/hooks/register.tsx:490 a program named at run time; plugins/console-status/hooks/register.tsx:518 a program named at run time; plugins/console-status/hooks/register.tsx:537 a program named at run time; plugins/console-status/hooks/register.tsx:543 a program named at run time
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, 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: /reload-plugins
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.prompt.submit (as the person), adds command console
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: prompt.submit, classic.Stop, tool.call, command.run · shapes: prompt.compose, turn.step · reads: ui.message · also: session.start, turn.start, session.compact, turn.complete (+1) · timers: clock.after, 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: USERPROFILE, HOME, LOCALAPPDATA, TMPDIR, TEMP (+2); files: a path computed at run time, …/.git/FETCH_HEAD, its own folder/.claude-plugin/plugin.js…, …/.claude-plugin/plugin.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.files: a path computed at run time; the prompt box

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 SaM-runtime/claude-console
/plugin install console-status@claude-console
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (dddbbdb15f1c). 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/SaM-runtime/claude-console
git -C claude-console checkout dddbbdb15f1c7262e8b9e0ca98771265e956ac4a
claude plugin validate claude-console/plugins/console-status
claude --plugin-dir claude-console/plugins/console-status

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 "sam-runtime-console-status" 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/sam-runtime-console-status.svg)](https://modscode.com/claude-mods/mods/sam-runtime-console-status/)