---
layout: single
title:  "Cline: 自主编程助手"
date:   2025-02-22 10:00:00 +0800
categories: [AI 与大模型, 编程开发]
tags: [Cline, Agent, Ollama, LLM, GitHubCopilot, Cline AICodingAssistant]
---

## 开发

### 克隆仓库

```bash
git clone https://github.com/cline/cline.git
```

### 打开项目

```bash
code cline
```

### 安装依赖

```bash
npm run install:all
```

### 安装 [esbuild problem matchers 扩展](https://marketplace.visualstudio.com/items?itemName=connor4312.esbuild-problem-matchers)

如果构建项目时遇到问题，请安装 esbuild problem matchers 扩展。

```bash
Activating task providers npm
错误: problemMatcher 引用无效: $esbuild-watch
```

### 启动

打开 `运行和调试` 侧边栏，运行 `Run Extension`，或者按 `F5` 键启动调试，打开一个新的 VSCode 窗口，加载扩展。


## 配置

### 配置模型 Ollama

![](/images/2025/Cline/Setting-Ollama.png)


## 智能体编码
### 查看 issue
![](/images/2025/Cline/issue-list.png)

### 显示 issue
![](/images/2025/Cline/issue-view.png)

### 创建分支
![](/images/2025/Cline/new-branch_fix-issue-1.png)

### 修复 issue
![](/images/2025/Cline/fix-issue-1.png)

### 运行 RAGFlowAssistant
![](/images/2025/Cline/run-RAGFlowAssistant.png)

### 安装 GitHub MCP Server
![](/images/2025/Cline/install-mcp-github-server.png)
