Skip to content

feat(glyph): add claude-pace statusline for Claude Code#426

Merged
stackptr merged 2 commits intomainfrom
feat/glyph-claude-pace-statusline
Apr 7, 2026
Merged

feat(glyph): add claude-pace statusline for Claude Code#426
stackptr merged 2 commits intomainfrom
feat/glyph-claude-pace-statusline

Conversation

@stackptr
Copy link
Copy Markdown
Owner

@stackptr stackptr commented Apr 6, 2026

Summary

  • Packages claude-pace v0.7.3 as a custom Nix derivation (packages/claude-pace/package.nix), wrapped with jq, git, and curl in PATH via makeWrapper
  • Exposes it via overlays/custom-packages.nix as pkgs.claude-pace
  • Configures it as the Claude Code statusline via programs.claude-code.settings.statusLine
  • Sets CLAUDE_PACE_API_FALLBACK=0 in programs.zsh.sessionVariables to disable OAuth API fallback (rate limits come from stdin on CC >= 2.1.80, making the fallback unnecessary)

Statusline output (two lines):

Sonnet ◑  │  rc (main) 2f +18 -4
░░░░░░░░░░  3% 200K  │  5h 12% ⇣3%  2h   7d 41%  3d

Line 1: model + effort indicator | project + branch + git diff stats
Line 2: context progress bar | 5h used% + pace delta (⇡/⇣) + reset countdown, 7d used% + countdown

Test plan

  • nix-flake build nixosConfigurations.glyph.config.system.build.toplevel
  • Switch and verify statusline appears in Claude Code
  • Confirm $2.70 cost fallback no longer appears (replaced by rate limit data)

🤖 Generated with Claude Code

stackptr and others added 2 commits April 6, 2026 16:37
Packages claude-pace (v0.7.3) as a custom Nix derivation and configures
it as the Claude Code statusline. Displays model, project, git branch/diff
stats, and 5h/7d rate limit usage with pace delta and reset countdown.

Sets CLAUDE_PACE_API_FALLBACK=0 to disable OAuth API fallback since rate
limits are available directly from stdin on Claude Code >= 2.1.80.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@stackptr stackptr enabled auto-merge (squash) April 7, 2026 00:03
@stackptr stackptr merged commit b2881a6 into main Apr 7, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant