v5.2.0
What's Changed
New Features
- Plugin system for custom segments: Extend the statusline with custom segments by dropping
.pyfiles into plugin directories (.claude/statusline/project-level,~/.claude/statusline/global). Each plugin definesregister(api)to register segments viaapi.add_segment(). The API providesfg(),bg(),text_color(),RESET, andBOLDfor themed ANSI output. Plugin errors are silently ignored. See README for a full example.
Improvements
- Raw JSON input from Claude Code now available to segment renderers via
ctx["data"](enables access tosession_id,cwd, and other fields) - Code style cleanup and formatting improvements
Full Changelog: v5.1.0...v5.2.0