ccdrawu


Language: English · 繁體中文
A sidebar and a status line for Claude Code. Usage limits, context, model, cost, git and session stats sit in a pane beside the transcript, so they no longer crowd the space under your prompt. Or, if you would rather have them under the prompt, in Claude Code's status line, laid out the way you pick.

What it shows
| Row | What it is |
|---|
| Pet | A pixel-art pet that keeps you company: see The pet |
| Model, Effort | The session's model, and the last request's effort level: green for low through red for max |
| Mode | The permission mode: auto, plan, accept edits, … |
| Context, Session, Weekly | How full the context window is, and your 5-hour and weekly plan limits with their reset countdowns. Bars turn green, yellow, peach, then red at 50%, 70% and 90% |
| Cost | What the session has cost so far |
| Uptime | How long the session has run, and how many prompts you sent |
| Cache | How much of the last request the prompt cache served |
| Compact | How many times the conversation was compacted |
| Tasks | Subagents running now, and the shells, monitors and workflows still running in the background when Claude last replied, a count per type: 2 agents|1 shell |
| Git, Path | The branch with its added and removed lines, and the working directory |
| Claude, ccdrawu | Your Claude Code version, with the newest release when one is out, and this drawer's version |
These start off; turn them on in ccdrawu:
| Row | What it is |
|---|
| Style | The output style set in /config |
| ID | The start of this session's id |
| Window | Tokens in the context window, out of its size: 420k / 1M |
| Spend | Where you go through a gateway with a spend limit: how much of it is used, and when it resets |
| Rate | What the session costs an hour so far |
| Tokens, Speed | Input, output and cache tokens of the conversation since the drawer loaded, and the last reply's output tokens a second |
| Skills | Skills run in this session, and the last one |
| Sync, Files, Commit, Repo | Commits ahead of and behind the upstream, files staged, changed and new, the short hash of HEAD, and origin's owner/repo with the worktree when you are in one; no upstream, no commits or no origin when there is none, and not a repo outside one |
| Directory | The working directory's own name, without the path to it: ccdrawu |
| Status | status.claude.com: all clear in green, an incident in peach or red |
A row you turned on is always there: it reads - until its value comes, or where there is none, as Spend without a spend limit.
The status line can show any of them but the pet: see The status line.
Install
Requirements
- Claude Code 2.1.287 or later
- Fullscreen rendering, for the drawer: run
/tui fullscreen once. Without it the pane sits above the prompt instead of beside the transcript (see Troubleshooting). The status line needs neither this nor a wide terminal
- A terminal wide enough for a sidebar: a pane opened on its own waits until the terminal is about 110–144 columns wide
- A Nerd Font as your terminal's font: the drawer's bars and the marks in the
ccdrawu command (which choice is picked, which items are ticked) are its icons. Without one, see Troubleshooting. Where an icon takes two cells in your terminal and the frames of ccdrawu come out crooked, set CCDRAWU__ICON_WIDTH and CCDRAWU__POWERLINE_WIDTH (1 or 2) for ccdrawu alone, or TERMINU__ICON_WIDTH and TERMINU__POWERLINE_WIDTH for the whole terminu family: set them once and every app of the family reads them. A family app that runs a program in its own terminal sets the two TERMINU__ variables for it
- A terminal at least 40 columns wide and 12 rows high for the
ccdrawu command, with truecolor (24-bit color): its colors are Catppuccin's, whose shades 256 colors can't tell apart
- The
ccdrawu command, to pick what the drawer and the status line show. Claude Code runs it for the status line, so it has to be on your PATH
- macOS, Linux or Windows (on Windows, tried in Windows Terminal: see Limitations)
Install ccdrawu
First the ccdrawu command:
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/vulcanshen/ccdrawu/main/install.sh | sh
# Homebrew (macOS / Linux)
brew install vulcanshen/tap/ccdrawu