Skip to content

Conversation

@jeanlaurent
Copy link
Member

Adds a one-line installer for Linux users similar to Homebrew and Claude Code's installation experience.

Before: Linux users had to manually download binaries, chmod, rename, and configure PATH.

After: Single command installation with automatic setup and verification.

@jeanlaurent jeanlaurent requested a review from a team as a code owner January 31, 2026 09:08
Signed-off-by: Jean-Laurent de Morlhon <[email protected]>
Comment on lines +118 to +120
# Make executable
chmod +x "$tmp_file"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do this with install later.

Suggested change
# Make executable
chmod +x "$tmp_file"

Comment on lines +143 to +144
sudo mv "$tmp_file" "$target_path"
sudo chmod +x "$target_path"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sudo mv "$tmp_file" "$target_path"
sudo chmod +x "$target_path"
sudo install -m 755 "$tmp_file" "$target_path"

sudo mv "$tmp_file" "$target_path"
sudo chmod +x "$target_path"
else
mv "$tmp_file" "$target_path"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mv "$tmp_file" "$target_path"
install -m 755 "$tmp_file" "$target_path"

Copy link
Contributor

@krissetto krissetto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably check for the existence of curl as well, as folks end ip using convenience scripts like this in ci like environments where curl presence is not always a given


# Try using gh CLI first if available
if command -v gh &> /dev/null; then
gh release list --repo "$REPO" --limit 1 --json tagName --jq '.[0].tagName' 2>/dev/null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think we need both options here, i'd just go straight to the rest api unless there are other reasons for using gh

print_msg "$YELLOW" " 2. Use Homebrew: brew install cagent"
exit 1
;;
MINGW*|MSYS*|CYGWIN*)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: harmless, i don't think many windows users will try to run a bash script called install-linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants