// Claude Code - AI编程助手
import { claude } from '@anthropic-ai/claude-code';

async function main() {
  const result = await claude.chat("帮我重构这个组件");
  console.log(result);
}

// 智能代码编辑
// 项目理解与探索  
// Git集成
// MCP协议支持
Revolutionary AI Programming Assistant

Claude Code
Complete Guide

Master everything about Anthropic's most powerful AI programming assistant.
Terminal Native • Project Aware • Natural Interaction • Security First

Terminal Native

Runs directly in command line without additional servers or complex setup

Project Aware

Automatically understands project structure and codebase context for intelligent editing

Natural Interaction

Program through natural language commands - simple and intuitive

Git Integration

Smart commit messages, PR creation, history search, and conflict resolution

Why Choose Claude Code?

The most advanced AI programming assistant with revolutionary capabilities that transform how you code

Intelligent Code Editing

Cross-file editing with full project context understanding

Project Understanding

Automatically analyzes codebase structure and relationships

Git Integration

Smart commits, PR creation, and conflict resolution

Extended Thinking

Deep reasoning for complex architectural decisions

MCP Integration

Connect to databases, APIs, and external services

Terminal Native

Runs directly in command line without complex setup

Get Started in Minutes

Three simple commands to start using Claude Code in your project

View complete installation guide
1

Install Claude Code

Install globally via npm

npm install -g @anthropic-ai/claude-code
2

Navigate to Project

Go to your project folder

cd your-project-directory
3

Start Claude Code

Launch and authenticate

claude

System Requirements

Operating System:

macOS 10.15+, Ubuntu 20.04+, Windows (WSL)

Software:

Node.js 18+, Git 2.23+

Hardware:

4GB RAM minimum

Ready to Transform Your Coding Experience?

Join thousands of developers already using Claude Code to build better software faster

Learning Resources

From official documentation to community tutorials, everything you need to master Claude Code is here

Ready to Start Your Claude Code Journey?

From installation to mastery, these resources will help you unlock the full potential of Claude Code