claude-code@stable 2.1.74 (new cask)#255221
Conversation
bevanjkay
left a comment
There was a problem hiding this comment.
Thanks @chwiese - I do agree that if both casks are required we should probably set the "versioned" to @stable like you have here.
This is based on my understanding that the installation link provided on the Claude Code website points you to the "latest" branch - if i'm incorrect on this, then we should have claude-code track whatever that version is, and have the opposite in the @suffix cask.
Thanks for reviewing this @bevanjkay. The official install script at https://claude.ai/install.sh does indeed default to the |
|
I'm ok with including this, although the docs generally suggest the primary cask should track the I'll leave this open for now to let any other maintainers weigh in or merge as they see fit. |
|
Based on the discussion above, I had another look at claude codes default behaviour. It enables auto-updating by default and the official installer script runs Arguably the |
|
Reverting to draft to discuss one open question before this is ready to merge. Background: @bevanjkay's comment about Homebrew detection prompted a deeper look at the Claude Code source. The binary does indeed detect Homebrew installations by checking for However, There's a further wrinkle: the notification message itself hardcodes The question is how to handle
Or is the status quo (no special handling) acceptable, given that the notification message is already broken for |
If anything the second option would be the best here. It may effect the notifications for users to We can't do anything about the in-app upgrade showing I also think keeping |
|
Added a |
it is a terminal app and there is brew upgrade claude-code pop up in the corner indicating the needed upgrade. |
chenrui333
left a comment
There was a problem hiding this comment.
I am on the fence of including this, users like me using claude code does not care stable and don't know what that means. (I would suggest making an issue to discuss first)
I think it's fine to discuss here, we don't need a separate issue. Not every user needs to us the |
|
I'm not convinced this is necessary. Is there really a meaningful difference between the two channels given how quickly Claude Code is released? I use Claude Code regularly and wasn't even aware of this split. I'd want to see actual user demand before adding an additional cask. |
I think that is exactly the point here, it is released quite quickly so there is a second branch that aims to provide a more stable experience for the end-user. |
|
From the Claude Code documentation:
(emphasis mine) Especially for users who have deeply integrated Claude Code into their workflows, working without the risk of regressions is valuable. npm breaks out the number of downloads per tag and while the power of the default (and is evident from comments on this PR, awareness) work in favour of the |
|
The regression protection argument is thin. I also think Anthropic's channel naming is confusing here. Having a |
Strongly agreed. |
After making any changes to a cask, existing or new, verify:
brew audit --cask --online claude-code@stableis error-free.brew style --fix claude-code@stablereports no offenses.Additionally, if adding a new cask:
brew audit --cask --new claude-code@stableworked successfully.HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask claude-code@stableworked successfully.brew uninstall --cask claude-code@stableworked successfully.Claude Code distributes binaries via two channels:
stableandlatest. The existingclaude-codecask currently trackslatest(2.1.81); this new cask tracksstable(2.1.74).A note on channel semantics: strictly speaking, Acceptable Casks policy favours tracking stable releases, which would suggest
claude-codeitself should track thestablechannel and aclaude-code@latestcask could offer the cutting-edge builds. However, renaming the existing cask's channel felt too far-reaching as a first contribution, so I'm starting by adding thestablechannel as a new cask and leaving that broader question to the maintainers' discretion.claude-code-releases/stable) returns a different version thanlatest(2.1.74 vs 2.1.81), the livecheck regex matches the version format, all four checksums against downloaded binaries, and thezapstanza paths against a live Claude Code installation on macOS 15.