Repository navigation
Troubleshooting
-
Run
tripline versionin a new terminal. If you get "command not found", the binary isn't on yourPATH. Claude Code runs hooks with your normal shell environment. -
Check that
settings.jsonis valid JSON and that thePreToolUseentry sits under"hooks". -
Restart Claude Code after changing settings.
-
Test the hook by hand:
echo '{"transcript_path":"<path to any session .jsonl>","tool_name":"Bash","tool_input":{"command":"rm -rf ~"}}' | tripline hook echo $? # should print 2
On Windows, use a path like
C:/Users/me/.claude/projects/.../x.jsonl. Git Bash paths such as/c/Users/...don't work with a native binary, and tripline allows the call when it can't open the file.
Claude Code keeps sessions in ~/.claude/projects. If you set CLAUDE_CONFIG_DIR, tripline looks in $CLAUDE_CONFIG_DIR/projects instead. Use --dir to point it elsewhere.
- Run it from the project folder, or pass an absolute path.
- The file may have been changed through shell commands rather than edit tools. See the limits on Blame.
The Homebrew cask removes the quarantine flag for you. If you downloaded the binary by hand, run:
xattr -d com.apple.quarantine /usr/local/bin/tripline