ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 alexpeta

cockpit

Claude Code 프롬프트 위에 세션 모델, 컨텍스트 창, 속도 제한 창, 비용을 표시하고, 실행 중인 각 서브에이전트의 유형, 모델, builder 한도에 대한 도구 호출 수, 실행 시간, 작업을 한 줄씩 보여 주는 띠입니다.

번역 완료

이 mod 소개

cockpit은 Claude Code 프롬프트 위에 정보 띠를 추가합니다. 첫 번째 줄에는 세션 정보로 모델, 컨텍스트 창, 속도 제한 창, 비용을 표시하고, 그 아래에는 실행 중인 각 서브에이전트가 한 줄씩 표시되어 유형, 모델, builder 한도에 대한 도구 호출 수, 실행 시간, 작업을 보여 줍니다. 완료된 에이전트는 1분 동안 남아 체크 표시가 붙습니다.

설치 방법(컴퓨터마다 한 번, playbook을 clone한 곳에서 실행):

claude plugin marketplace add ~/Github/claude-playbook
claude plugin install cockpit@claude-playbook

Claude Code 2.1.287 이상이 필요하며 /plugin의 Installed 탭에서 끌 수 있습니다.

설계의 핵심은 한도를 강제하지 않고 미러링한다는 점입니다. builder 카운터는 CLAUDE_CALL_CAP_AGENTS、CLAUDE_CALL_CAP、CLAUDE_CALL_CAP_WARN_AT를 읽습니다(기본값은 builder、400、360)。경고 시 노란색으로, 한도에 도달하면 빨간색으로 바뀝니다. 이 mod는 읽기와 그리기만 하며 파일, 프로세스, 네트워크 호출을 사용하지 않고 도구 호출을 승인하거나 거부하지도 않습니다. 상태는 세션에만 존재하고 세션과 /clear가 끝나면 사라집니다. Claude Code가 보고하지 않은 값은 0 대신 비워 두며, 색상은 Claude Code 자체의 테마 키를 사용합니다. 표시 너비에 따라 세부 수준이 달라집니다. 130열 이상에서는 모든 미터와 컨텍스트 추이를 표시하고, 90열 이상에서는 컨텍스트와 builder 미터를 표시하며, 90열 미만에서는 숫자만 표시합니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add alexpeta/claude-playbook
claude plugin install cockpit
원문 / README

cockpit

A band above the Claude Code prompt. The first line is the session: its model, the context window, the rate-limit windows and what the session has cost. Under it, one row per live subagent: its type, its model, its tool calls (against the builder cap, for the builder type), how long it has run, and its task. A finished agent keeps its row for a minute, with a tick.

✻ Opus 5.5   ctx ━━━━━━━━━╸━━━━━━ 62% 124k/200k ▁▂▃▅▆   5h ━━━╸━━━━ 41% ↻2h10m   $3.10
  ├─ ⠹ builder  Opus 5.5   ━━━━━━━━╸━━━━━━━ 212/400     34m  slice-a
  └─ ✓ Explore  Haiku 4.5  17 calls                     <1m  list the decisions

Install

Once per machine, from the playbook's clone (the marketplace reads the plugin in place, so a git pull is the update, from the next session start):

claude plugin marketplace add ~/Github/claude-playbook
claude plugin install cockpit@claude-playbook

Mods need Claude Code 2.1.287 or later. Turn it off in /plugin, Installed tab.

What it reads, and what it never does

  • The cap is mirrored, not enforced. The builder count reads CLAUDE_CALL_CAP_AGENTS, CLAUDE_CALL_CAP and CLAUDE_CALL_CAP_WARN_AT with hooks/call-cap.py's defaults (builder, 400, 360): the band shows the count, the hook stops the build. The count turns from green to yellow at the warning and red at the cap.
  • It only reads and draws. claude plugin validate mods/cockpit lists its calls: the session's usage and model, the agent list, the clock, those three variables, its own state, and drawing. No file, process or network call, and it never approves or refuses a tool call.
  • Its state is session-local. The counts live in $.state and die with the session (and with /clear, after which the figures are read again). The durable record of a build is the call-cap hook's ledger.
  • A figure Claude Code does not report is left out, never zeroed: no context fill before the first response, no rate limits off a subscription. An agent that started before the band loaded is named with no model or count.
  • Colours are Claude Code's own theme keys (claude, permission, rate_limit_fill, success, warning, error, subtle, and the subagent palette), read off the 2.1.289 binary's theme tables, so the band follows the person's theme as /usage does.
  • Width decides the detail. From 130 columns: every meter and the context sparkline (the fill after each turn, so a compaction shows as a drop). From 90: the context and builder meters. Below 90: the numbers.

Develop

claude --plugin-dir mods/cockpit        # loads it for one session, reloads on save
claude plugin validate mods/cockpit
claude plugin test mods/cockpit         # 7 tests, terminal and desktop surfaces
tsc -p mods/cockpit                     # once Claude Code has loaded it: it writes the tsconfig

The tests were mutation-checked on 2026-10-04: twelve deliberate breaks (the count, the warning and cap thresholds, the finished-agent window, the context colour, the reset clock, the width tiers, the sparkline's scale and history, the capped type) each turned a test red.

동명의 다른 작품

비슷한 프로젝트