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

clawd-buddy

속도 제한 사용량, 컨텍스트 채움 정도, 캐시 카운트다운, 현재 디렉터리와 git 상태를 보여 주는 작은 마스코트와 두 줄 상태 표시줄을 프롬프트 위에 추가하는 Claude Code 플러그인입니다.

prabowosd@prabowosd

prabowosd/clawd-buddy/tree/main/plugins/clawd-buddy

번역 완료

이 mod 소개

clawd-buddy는 프롬프트 위에 작은 마스코트와 2줄 상태 표시줄을 그리는 Claude Code 플러그인입니다. 왼쪽에는 5시간 및 7일 사용량 창, context 사용률, prompt cache 카운트다운, 현재 디렉터리와 그 디렉터리의 git 상태(브랜치, 스테이징됨, 수정됨, 추적되지 않음, 앞섬/뒤처짐, worktree 이름)를 표시하고, 오른쪽에는 Claude Code를 시작할 때와 같은 사분면 블록 문자와 24-bit 색상으로 그린 마스코트가 나타납니다. 마스코트는 유휴 상태에서 눈을 깜박이고 Claude가 작업할 때 손을 흔듭니다. 상태 표시줄은 높이가 3줄뿐이며 Claude Code가 설문을 표시하면 자리를 비켜 줍니다.

Claude Code에서 /plugin marketplace add prabowosd/clawd-buddy、/plugin install clawd-buddy@clawd-buddy、/reload-plugins를 실행해 설치하거나 clone 후 claude --plugin-dir plugins/clawd-buddy로 로컬에서 시험할 수 있습니다. Claude Code 2.1.289와 macOS 터미널에서 테스트되었습니다.

git 정보는 읽기 전용으로 읽습니다(git status --porcelain=v1 -b 및 git rev-parse, --no-optional-locks 사용, 네트워크에 접근하지 않음). 각 턴이 끝날 때와 30초마다 갱신하며 cache 카운트다운은 1시간 캐시를 전제로 합니다. Claude가 SendUserFile로 이미지를 보내면 지원되는 터미널(kitty, Ghostty)은 Image 창에 마지막 이미지를 표시하고, 다른 터미널은 기본 뷰어로 엽니다. MIT 라이선스로 배포됩니다.

설치

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

claude plugin marketplace add prabowosd/clawd-buddy
claude plugin install clawd-buddy
원문 / README

clawd-buddy

A small mascot and a two line status band above the Claude Code prompt.

The left side shows how much of your usage window is gone, how full the context is, how long the prompt cache stays warm, which directory you are in, and the git state of that directory. The right side is a small mascot that blinks while idle and waves while Claude works. It is three rows tall, so the band is three rows too.

5h ━━────  3%   7d ━─────  7%   ctx 30%   cache 59:12
~/www/app   main ~1 ?2 ↑1 wt:app-topic

The mascot is the same one Claude Code draws at startup, in quadrant-block characters and 24-bit colour, so there are no images and nothing to download.

Install

Inside Claude Code:

/plugin marketplace add prabowosd/clawd-buddy
/plugin install clawd-buddy@clawd-buddy
/reload-plugins

To try it without installing, clone the repo and start Claude Code with:

claude --plugin-dir plugins/clawd-buddy

It was built and tested on Claude Code 2.1.289, on macOS, in a terminal. The band is only drawn by Claude Code on the terminal and desktop surfaces.

What it shows

| Item | Meaning | | --- | --- | | model | The main loop's model, as /model shows it, in the mascot's colour on its own row under the directory and git state, then the context window and the effort level in grey: Opus 4.8 · 1M · high. The id is shortened, so claude-opus-4-8[1m] reads Opus 4.8, and a name that is no known family is cut at 28 characters. The effort shows after the first request of the session. A band with room for only two rows puts all of it at the end of the second row. | | 5h, 7d | Rate limit usage for the 5 hour and 7 day windows, as a bar and a percentage. Green below 70%, amber from 70%, red from 90%. A dash means Claude Code has not reported a value yet. | | ctx | Share of the context window in use, coloured the same way. | | cache | Countdown of the prompt cache. It restarts after each response and turns amber in the last minute. cold means it has expired or nothing has been sent yet. | | directory | The session directory, with your home folder shortened to ~. | | git | Branch, then ✓ when clean. Otherwise +n staged, ~n modified, ?n untracked, ↑n ahead and ↓n behind. Inside a linked worktree the worktree name follows as wt:name. |

The mascot has three moods: idle (blinks every couple of seconds), working (waves and shuffles its feet while a turn runs) and done (waves for three seconds after a turn finishes).

Behaviour worth knowing

  • The cache countdown assumes a 1 hour cache. There is no setting for the 5 minute cache yet.
  • Git is read with git status --porcelain=v1 -b and git rev-parse. Both are read only, --no-optional-locks keeps status from taking the index lock, and nothing touches the network. It refreshes when a turn ends and every 30 seconds, so a cd can take up to 30 seconds to show.
  • Outside a git repository only the directory is shown.
  • If the terminal gives the band less room than the mascot needs, only its top row is drawn.
  • The band steps aside while Claude Code is showing a survey.
  • The font needs the block elements and box drawing ranges (U+2580 and U+2500). Most terminal fonts have them.

Images

When Claude sends you an image with the SendUserFile tool (PNG, JPEG, GIF, WebP, HEIC, BMP or TIFF, at most five per call):

  • In a terminal that can draw pictures (kitty, Ghostty) the last image shows in an Image pane. A PNG is read as it is, anything else is converted once with sips into /tmp/clawd-buddy. Preview opens too, but only when Claude sent the file with display: render.
  • In any other terminal (Warp, iTerm, Terminal) every image opens in the default viewer with open, so on macOS it lands in Preview.

To force the pane in a terminal that is not guessed right, start Claude Code with CLAWD_BUDDY_IMAGES=pane. CLAWD_BUDDY_IMAGES=viewer always uses the default viewer.

Other files are left alone. If a viewer is missing or fails the file still reaches you and nothing is shown. Images are handled after the tool call succeeds. The pane needs a wide terminal to seat on its own, so on a narrow one it waits.

Layout

.claude-plugin/marketplace.json     marketplace entry
plugins/clawd-buddy/
  .claude-plugin/plugin.json        plugin manifest
  hooks/register.tsx                hooks, state and the band
  hooks/sprite.ts                   the mascot frames
  hooks/stats.ts                    bars, colours, the clock
  hooks/git.ts                      git and worktree parsing
  hooks/images.ts                   which sent files count as images
  hooks/*.test.ts                   tests
  types/index.d.ts                  state types

The mascot lives in sprite.ts as plain strings, one character per pixel, so changing it is a matter of editing a few rows.

Development

claude plugin validate .
claude plugin test plugins/clawd-buddy

For a live loop, keep the plugin in a folder Claude Code watches for mods and edit it while a session is open. It reloads when a turn ends.

License

MIT

비슷한 프로젝트