Install the CodeRabbit CLI and link it as cr - #215
Merged
Merged
Conversation
The homebrew cask links only `coderabbit`. PostHog's reviewing-with-coderabbit skill calls `cr`, so link that name into ~/.local/bin, which zshenv puts on PATH in every shell context. Claude-Session: https://claude.ai/code/session_011M4DkeAnSqEYd7RDxiaGFQ
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The change is straightforward and low-risk, with only a minor maintainability nit noted.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
This PR updates the dotfiles Homebrew bootstrap script to ensure the CodeRabbit CLI is available outside the PostHog flox environment by installing the coderabbit cask and providing a stable cr alias via ~/.local/bin/cr.
Changes:
- Install the
coderabbitHomebrew cask as part ofhomebrew/install.sh. - Create/overwrite
~/.local/bin/cras a symlink to$(brew --prefix)/bin/coderabbitwhen present.
| File | Description |
|---|---|
| homebrew/install.sh | Installs CodeRabbit and adds a cr symlink in ~/.local/bin for agent-friendly PATH resolution. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
haacked
marked this pull request as ready for review
September 21, 2026 23:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

PostHog's
reviewing-with-coderabbitskill runs a CodeRabbit pass over the branch beforegh pr create, but the binary only existed inside the posthog flox env at~/.config/posthog/tools/coderabbit/<version>/coderabbit. Agents running outside that env reported the CLI as missing and opened PRs without a local review pass.coderabbithomebrew cask.~/.local/bin/cr. The cask links onlycoderabbit, and the skill callscr.~/.local/binis the right home for the link:zshenv.symlinkputs it on PATH in every shell context, while~/.dotfiles/binis added inzshrc, which the non-interactivezsh -lcthat coding agents shell out through never sources.The link points at
$(brew --prefix)/bin/coderabbitrather than whatevercoderabbitPATH resolves to. Run from an activated posthog shell the latter is the worktree venv copy, which would leave a dangling link once that worktree is removed.Two versions coexist after this. Flox pins 0.7.6 inside the posthog env and that copy wins there; brew tracks latest, currently 0.7.8, everywhere else.
Test plan
brew install --cask coderabbitlinks/opt/homebrew/bin/coderabbit, andcoderabbit --versionprints 0.7.8./bin/zsh -lc 'command -v cr'prints/Users/haacked/.local/bin/cr, the path PostHog Desktop agents search.cr auth status --agentreturns one JSON line and opens no browser.https://claude.ai/code/session_011M4DkeAnSqEYd7RDxiaGFQ