You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: standardize on claude-code-statusline and self-install (#39)
Makes `uvx claude-code-statusline install` a one-command, ai-rules-free
way to install the statusline and wire it into
`~/.claude/settings.json`.
The console command, its config dir, and the `settings.json` command
value were the lone `claude-statusline` outliers while the PyPI package
and import module are already `claude-code-statusline`, so `uvx
claude-code-statusline …` couldn't resolve. Standardizing on the single
name lets the one entry point resolve under `uvx`, and self-installing
on `install` keeps an ephemeral `uvx` run from leaving a dangling
command behind.
- Rename the sole console entry point and every `claude-statusline`
reference (source, scripts, docs, tests) to `claude-code-statusline`;
the config dir moves to `~/.config/claude-code-statusline/`.
- `install` now self-installs the tool via `uv tool`/`pipx` when the
command isn't already on `PATH`, then writes the `statusLine` config.
- Migrate an existing `~/.config/claude-statusline/config.yaml` on
`install`; `doctor` flags a stale command value and the README gains an
Upgrading note.
BREAKING CHANGE: users on the old `claude-statusline` command must
re-run `claude-code-statusline install` after upgrading (widget config
migrates automatically).
Related:
[ai-agent-rules#177](wpfleger96/ai-agent-rules#177)
2.**Context window priority** (Claude Code 2.0.70+): `context_window` field from payload takes priority over transcript parsing for token counts. Falls back to transcript if `context_window` missing/null. This is the authoritative source.
@@ -129,7 +129,7 @@ Fixtures in `tests/conftest.py`: `mock_stdin`, `sample_input_payload`, `basic_se
129
129
130
130
7.**Performance tests opt-in**: Excluded by default. Run with `uv run pytest -m performance`.
131
131
132
-
8.**Installation scripts handle both uv and pipx**: `scripts/install.sh` checks for uv first, falls back to pipx. Auto-configures Claude Code with `claude-statusline install --yes`.
132
+
8.**Installation scripts handle both uv and pipx**: `scripts/install.sh` checks for uv first, falls back to pipx. Auto-configures Claude Code with `claude-code-statusline install --yes`.
133
133
134
134
9.**Debug logging per-session**: Set `CLAUDE_CODE_STATUSLINE_DEBUG=1` → creates `logs/statusline_debug_<session_id>.log` with token breakdown, compact boundaries, parsing errors.
> **Upgrading from a version that used the `claude-statusline` command?** The command was renamed to `claude-code-statusline`. After upgrading, re-run `claude-code-statusline install` to update `~/.claude/settings.json` — your `~/.config` widget config is migrated automatically. If a stale `claude-statusline` command lingers on your `PATH`, run `uv tool uninstall claude-code-statusline` (or `pipx uninstall claude-code-statusline`) and reinstall.
If no config file exists, all default widgets are shown with built-in defaults. Create `~/.config/claude-statusline/config.yaml` to customize colors, ordering, or disable specific widgets.
169
+
If no config file exists, all default widgets are shown with built-in defaults. Create `~/.config/claude-code-statusline/config.yaml` to customize colors, ordering, or disable specific widgets.
160
170
161
171
## Features
162
172
163
173
### Customizable Widget System
164
-
- **Configurable Layout**: Customize which widgets appear and in what order via `~/.config/claude-statusline/config.yaml`
174
+
- **Configurable Layout**: Customize which widgets appear and in what order via `~/.config/claude-code-statusline/config.yaml`
165
175
- **Built-in Widgets**: 14 widgets including model, directory, git status, context, cost, session info
166
176
- **Flexible Styling**: Per-widget color customization and bold formatting
167
177
- **Automatic Fallback**: Missing config uses sensible defaults with all widgets enabled
@@ -341,14 +351,14 @@ Debug logs are written to **per-session files** in the `logs/` directory:
0 commit comments