Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions docs/examples/claude-code-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,15 @@ task-master set-status --id=task-001 --status=in-progress

## Requirements

1. Claude Code CLI must be installed and authenticated on your system
2. Install the optional `@anthropic-ai/claude-code` package if you enable this provider:
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
```
Comment on lines +62 to 65
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.
3. Run Claude Code for the first time and authenticate with your Anthropic account:
2. Run Claude Code for the first time and authenticate with your Anthropic account:
```bash
claude
```
4. No API key is required in your environment variables or MCP configuration
3. No API key is required in your environment variables or MCP configuration

## Advanced Settings

Expand Down
2 changes: 1 addition & 1 deletion packages/tm-core/src/modules/loop/services/loop.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ Loop iteration ${iteration} of ${config.iterations}${tagInfo}`;
if (error.code === 'ENOENT') {
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.
}

if (error.code === 'EACCES') {
Expand Down
2 changes: 1 addition & 1 deletion src/ai-providers/claude-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class ClaudeCodeProvider extends BaseAIProvider {
_claudeCliAvailable = false;
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.
);
} finally {
_claudeCliChecked = true;
Expand Down
Loading