-
Notifications
You must be signed in to change notification settings - Fork 336
Closed
Description
The rtk-rewrite.sh hook silently exits when jq is not installed on the system, causing rtk to appear as if it's working while all commands bypass the rewrite pipeline entirely.
Steps to Reproduce
- Install rtk (>= 0.23.0)
- Set up the Claude Code hook via rtk setup
- Do not have jq installed (or uninstall it)
- Run any command through Claude Code (e.g. git status)
- Expected: Some indication that the hook is not functioning
- Actual: Hook exits silently, commands run without rtk rewrite, and the user has no way of knowing
Root Cause
In rtk-rewrite.sh:
if ! command -v jq &>/dev/null; then
exit 0
fiThis exits cleanly with no warning.
Suggestions
A few possible approaches:
- Print a warning when jq is missing, similar to the version guard
- Check for jq during rtk setup and warn the user before installing the hook
- Remove the jq dependency entirely
Environment
- rtk 0.27.2
- macOS (Apple Silicon)
- Claude Code with PreToolUse hook
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels