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

Cockpit

Claude Code용 실시간 계기판 mod로, 컨텍스트 채움 정도, 속도 제한, 비용, 하위 에이전트, 도구 호출, 변경된 파일, 테스트 실행을 표시하며, 위험한 명령과 비밀 파일 편집 전에 확인을 요청하는 가드를 추가합니다.

d
drkokorev@drkokorev

drkokorev/cockpit-for-claude/tree/main/plugins/cockpit

번역 완료

이 mod 소개

Cockpit은 의존성이 없는 단일 hooks 모듈로 구현된 Claude Code mod입니다. 컨텍스트 사용량, 속도 제한, 비용, 하위 에이전트 활동, 도구 호출 횟수와 소요 시간, git의 변경된 파일, 테스트 실행을 다루는 실시간 패널과 상태 밴드를 렌더링하며, 각 섹션은 세부 정보를 위해 펼칠 수 있습니다. 또한 위험한 Bash 명령과 비밀 파일 편집을 가로채고 Claude Code 자체 대화 상자에서 확인을 요청하는 가드를 추가합니다. 이 mod는 네트워크 요청을 하지 않습니다. 변경 파일 및 diff 보기를 위해 로컬 git 명령만 실행하고, 파일 내용은 클릭할 때만 읽으며, 내보내기 시 단일 .cockpit/cockpit-report.md 파일을 작성합니다. 슬래시 명령에는 /cockpit, /cockpit-report, /cockpit-export, /cockpit-budget, /cockpit-guard, /cockpit-cache, /cockpit-demo가 포함됩니다. Claude Code v2.1.287 이상이 필요하며 터미널과 데스크톱 앱의 Code 탭 모두에서 작동합니다.

설치

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

claude plugin marketplace add drkokorev/cockpit-for-claude
claude plugin install cockpit@cockpit-for-claude
원문 / README

Cockpit

A live instrument panel for Claude Code, built as a mod: context fill, rate limits, cost, subagents, tool calls, changed files and test runs, each section opening to its details, plus a guard that asks before risky commands and edits to secrets files.

Works in the Claude Code terminal and the Claude desktop app (Code tab). Requires Claude Code v2.1.287 or later.

  • /cockpit opens the panel
  • /cockpit-demo fills it with sample data (/cockpit-demo off restores yours)
  • /cockpit-report, /cockpit-export, /cockpit-budget, /cockpit-guard, /cockpit-cache

What it runs, reads, writes and sends

Cockpit is one hooks module, hooks/register.tsx, readable TypeScript with no dependencies.

Sends: nothing. Cockpit makes no network requests and does not send the conversation, files or any other data anywhere. Everything it reads is shown in your own Claude Code window and stays on your machine.

Programs it starts, and why. Only git, only in your project, only to show changed files:

  • git diff --numstat HEAD (or git diff --numstat) and git ls-files --others --exclude-standard: the list of changed and new files with +/- line counts, refreshed after an edit and after each turn
  • git rev-parse --show-toplevel and git diff --unified=1 --no-color [HEAD] -- <file>: the diff of one file, only when you click that file in the Files section. <file> is the path git itself listed

What it reads. Through the Claude Code mods API: the session's usage figures (context, rate limits, cost), the tool calls Claude makes and their results (to count calls, time them, size their output and spot loops), the subagent list, and the model's turns. From disk: the contents of a new file only when you click it in Files. It never reads secrets files (.env*, keys, credentials) and shows "contents not read" for them instead.

What it writes. One file, .cockpit/cockpit-report.md in the session's working directory, only when you run /cockpit-export or press Export; each export replaces it. It never writes build, settings, start-up or instruction files. All-time totals (session, turn and tool-call counts, spend) are kept in the plugin's own store on your machine; session data lives in memory and ends with the session.

Slash commands it runs itself. One: /compact, and only when you press the Compact now button (shown when the context is over 70% and Claude is idle).

Commands it adds. /cockpit, /cockpit-report, /cockpit-export, /cockpit-budget, /cockpit-guard, /cockpit-cache, /cockpit-demo.

Events it hooks. tool.call: counts and times each call; for a risky Bash command or an edit to a secrets file it asks you first in Claude Code's own question dialog and refuses the call only if you block it. It never changes a call's input or result. session.compact: reads the result of a compaction to count it and show tokens before and after; it never changes the compaction. It also listens to session.start, session.measure, turn.start, turn.step and turn.complete to read figures, and draws its panel and band with ui.render.

About "download-and-run" patterns in the source. The text curl … | sh appears in register.tsx only as one of the guard's detection rules: Cockpit stops such a command and asks you. Cockpit itself never downloads or runs anything.

Full documentation, screenshots and the changelog: https://github.com/drkokorev/cockpit-for-claude

배지 받기

내 프로젝트인가요? 이 배지를 README나 웹사이트에 넣으면 이 페이지로 연결됩니다.

Featured on ClaudeMods
크기
테마
Markdown
HTML

동명의 다른 작품

비슷한 프로젝트