Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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. Install from the [official docs](https://docs.anthropic.com/en/docs/claude-code/overview) or run:
```bash
npm install @anthropic-ai/claude-code
curl -fsSL https://claude.ai/install.sh | bash
```
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 it from: https://docs.anthropic.com/en/docs/claude-code/overview';
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.

if (error.code === 'EACCES') {
Expand Down
4 changes: 2 additions & 2 deletions 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 from: https://docs.anthropic.com/en/docs/claude-code/overview'
);
} finally {
_claudeCliChecked = true;
Expand Down Expand Up @@ -147,7 +147,7 @@ export class ClaudeCodeProvider extends BaseAIProvider {
const code = error?.code;
if (code === 'ENOENT' || /claude/i.test(msg)) {
const enhancedError = new Error(
`Claude Code CLI not available. Please install Claude Code CLI first. Original error: ${error.message}`
`Claude Code CLI not available. Install it from: https://docs.anthropic.com/en/docs/claude-code/overview - Original error: ${error.message}`
);
enhancedError.cause = error;
this.handleError('Claude Code CLI initialization', enhancedError);
Expand Down