Status line setup doesn't check for required dependencies (e.g. jq)
Resolved 💬 2 comments Opened Feb 24, 2026 by jpdborgna Closed Mar 25, 2026
Description
When using /statusline to configure a status line, Claude Code generates a shell script that depends on jq for JSON parsing. If jq is not installed on the system, the status line silently fails with no error output — it just doesn't render.
Steps to Reproduce
- Use
/statuslineto set up a status line (e.g. "show model name and context percentage with a progress bar") - Claude Code generates a bash script that uses
jqto parse the JSON piped via stdin - If
jqis not installed, the status line silently produces no output - No warning or error is surfaced to the user
Additional Context
When asking Claude Code to debug the broken status line, it also failed to identify the missing dependency as the root cause — it attempted various fixes to the script logic without checking whether jq was actually available on the system.
Suggestion
- The
/statuslinesetup could check if required tools (jq, etc.) are installed before generating a script that depends on them - Alternatively, generate scripts that use built-in tools (e.g. pure bash/python parsing) or fall back gracefully
- Surface stderr from the status line command so failures aren't completely silent
Environment
- Platform: WSL2 (Debian) on Linux
- Shell: bash
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗