Skip to content

fix: update outdated Claude Code CLI install instructions#1661

Open
withsivram wants to merge 1 commit intoeyaltoledano:mainfrom
withsivram:fix/outdated-install-instructions-1634
Open

fix: update outdated Claude Code CLI install instructions#1661
withsivram wants to merge 1 commit intoeyaltoledano:mainfrom
withsivram:fix/outdated-install-instructions-1634

Conversation

@withsivram
Copy link

@withsivram withsivram commented Mar 20, 2026

Summary

  • Replaces deprecated npm install -g @anthropic-ai/claude-code with the current official installer: curl -fsSL https://claude.ai/install.sh | sh
  • Updated in 3 files:
    • src/ai-providers/claude-code.js — warning message when CLI not detected
    • packages/tm-core/src/modules/loop/services/loop.service.ts — ENOENT error message
    • docs/examples/claude-code-usage.md — requirements/prerequisites section

Test plan

  • Verify warning/error messages display the correct install command when Claude Code CLI is not found
  • Confirm docs reflect current installation method

Fixes #1634

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated installation guidance for Claude CLI with a streamlined shell-based setup method for improved user experience.

…no#1634)

Replace `npm install -g @anthropic-ai/claude-code` with the current
native binary install method `curl -fsSL https://claude.ai/install.sh | sh`
in warning/error messages and documentation.

Affected files:
- src/ai-providers/claude-code.js: warn message when CLI not detected
- packages/tm-core/src/modules/loop/services/loop.service.ts: ENOENT error message
- docs/examples/claude-code-usage.md: requirements section

Fixes eyaltoledano#1634

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 20, 2026 16:33
@changeset-bot
Copy link

changeset-bot bot commented Mar 20, 2026

⚠️ No Changeset found

Latest commit: 1d5e802

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2c7ce224-f4d9-4024-9984-4afc847ec5ad

📥 Commits

Reviewing files that changed from the base of the PR and between 2d1211b and 1d5e802.

📒 Files selected for processing (3)
  • docs/examples/claude-code-usage.md
  • packages/tm-core/src/modules/loop/services/loop.service.ts
  • src/ai-providers/claude-code.js

📝 Walkthrough

Walkthrough

Updated installation instructions for Claude Code CLI across documentation and error messages. Replaced npm install -g @anthropic-ai/claude-code`` guidance with a shell script installer (curl -fsSL https://claude.ai/install.sh | sh) in three locations: documentation examples, provider validation warning, and loop service error message.

Changes

Cohort / File(s) Summary
Claude Code CLI Install Instructions
docs/examples/claude-code-usage.md, src/ai-providers/claude-code.js, packages/tm-core/src/modules/loop/services/loop.service.ts
Updated CLI installation guidance from npm-based (npm install -g @anthropic-ai/claude-code``) to shell script installer (`curl -fsSL https://claude.ai/install.sh

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • PR #1635: Applies identical install instruction updates to the same three files, replacing deprecated npm-based Claude Code CLI installation guidance with the current curl-based installer method.

Suggested reviewers

  • Crunchyman-ralph
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: updating deprecated npm install instructions to the current Claude Code CLI installer command across documentation and error messages.
Linked Issues check ✅ Passed The PR successfully addresses all coding requirements from issue #1634 by updating the deprecated install instructions in all three specified affected locations.
Out of Scope Changes check ✅ Passed All changes are directly scoped to updating Claude Code CLI install instructions in the three specified files; no unrelated modifications present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates user-facing Claude Code CLI installation guidance to reflect the current primary install method rather than the deprecated npm install -g @anthropic-ai/claude-code, aligning runtime messages and docs with the latest distribution approach.

Changes:

  • Updated Claude Code provider “CLI not detected” warning to show the new install command.
  • Updated Loop service ENOENT error message to show the new install command.
  • Updated the Claude Code usage docs requirements section to show the new install command and renumbered steps.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/ai-providers/claude-code.js Updates the warning shown when the Claude Code CLI is not found.
packages/tm-core/src/modules/loop/services/loop.service.ts Updates the ENOENT error message when the CLI executable is missing.
docs/examples/claude-code-usage.md Updates installation instructions in the example documentation requirements section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +62 to 65
1. Claude Code CLI must be installed and authenticated on your system:
```bash
npm install @anthropic-ai/claude-code
curl -fsSL https://claude.ai/install.sh | sh
```
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

The Requirements section now hard-codes a macOS/Linux-style curl ... | sh install command. Since installation is OS-dependent (and many users won’t have curl/sh available, e.g., Windows), consider changing this to a link to the official Claude Code installation docs and optionally listing the install script as one platform-specific option instead of the only instruction.

Copilot uses AI. Check for mistakes.
log(
'warn',
'Claude Code CLI not detected. Install it with: npm install -g @anthropic-ai/claude-code'
'Claude Code CLI not detected. Install it with: curl -fsSL https://claude.ai/install.sh | sh'
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

The warning message now tells users to run curl ... | sh, which is (1) not cross-platform (won’t work on Windows by default) and (2) a risky pattern to recommend in runtime logs. Consider pointing to the official Claude Code install docs URL (and optionally mentioning the install script as a macOS/Linux example) instead of embedding a pipe-to-shell command directly in the warning.

Suggested change
'Claude Code CLI not detected. Install it with: curl -fsSL https://claude.ai/install.sh | sh'
'Claude Code CLI not detected. Install it by following the instructions at https://docs.anthropic.com/claude-code/install (for macOS/Linux, you can use the install script described there).'

Copilot uses AI. Check for mistakes.
return sandbox
? 'Docker is not installed. Install Docker Desktop to use --sandbox mode.'
: 'Claude CLI is not installed. Install with: npm install -g @anthropic-ai/claude-code';
: 'Claude CLI is not installed. Install with: curl -fsSL https://claude.ai/install.sh | sh';
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

This error message embeds a curl ... | sh install command, which is not cross-platform and is a risky instruction to show in errors. Also, the wording says "Claude CLI" while other parts of the codebase refer to "Claude Code CLI"; using the more specific name would avoid confusion with other Claude-related CLIs. Prefer linking to the official install docs (and optionally include platform-specific install hints).

Suggested change
: 'Claude CLI is not installed. Install with: curl -fsSL https://claude.ai/install.sh | sh';
: 'Claude Code CLI is not installed. See https://docs.anthropic.com/claude/docs/claude-code-cli for installation instructions.';

Copilot uses AI. Check for mistakes.
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.

Outdated Claude Code CLI install instructions in warning/error messages

2 participants