Sign inSign up

pjjt/claude-statusline-kit

By pjjt

Updated about 2 months ago

Sandbox Kit
0

117

pjjt/claude-statusline-kit repository overview

Digest

sha256:ad544e55379f…

Size

2.7 kB

Pushed

about 2 months ago


No spec available
This tag doesn't have an sbx-kit specification.

claude-statusline-kit

A mixin kit that adds a rich status line to Claude Code running inside a Docker sandbox.

What it does

Installs jq and configures Claude Code's statusLine setting to run a shell script on every prompt. The default script displays:

  • Sandbox indicator[📦 sandbox-name] when running inside an sbx sandbox (IS_SANDBOX=1)
  • user@host:cwd — coloured green/blue, matching a standard bash prompt
  • Model name — the active Claude model in magenta, with any parenthetical suffix stripped
  • Context window usage — tokens used vs. total size with colour-coded urgency:
    • green below 50 %
    • yellow from 50–79 %
    • red at 80 %+

Example output:

[📦 my-sandbox] agent@my-sandbox:/workspace [Sonnet 4.6] 42k/200k (21%)

Customising the status line

The install step writes the default script to ~/.claude/statusline-default.sh. To override it, create ~/.claude/statusline.sh — the kit's command checks for that file first and falls back to the default.

Files installed

Kit pathSandbox path
files/home/.claude/statusline-default.sh~/.claude/statusline-default.sh

Requirements

  • Debian/Ubuntu-based sandbox image (uses apt-get to install jq)
  • Claude Code settings file at ~/.claude/settings.json must exist before install runs