Cline

Open-source coding agent for VS Code, JetBrains, the terminal and desktop, with any model and MCP support

CLIEditors’ pickHigh risk

cline/cline

Install

npm i -g cline

CLI for the terminal and CI

This is third-party code. Review the repository files before installing.

What it does

Cline reads the project structure, makes coordinated edits across files and watches linter and compiler errors. It runs terminal commands; in Plan mode it explores code and proposes a plan, and in Act mode it executes with approval for each action. It supports .clinerules rules, skills, MCP servers, multi-agent teams, scheduled runs and connections to Slack, Telegram and Discord. The headless CLI fits CI/CD.

Who it is for. Developers who want an agent in their editor or terminal with a choice of model provider.

Good fit when

  • You want an agent inside VS Code or JetBrains that asks before each edit
  • You need local models via Ollama or LM Studio
  • You run the agent in CI using headless mode with JSON output
  • You need recurring cron jobs, such as a summary of open PRs

Not a fit when

  • You need a fully open-source JetBrains client: that plugin is not open-sourced
  • You cannot pay for provider tokens and have no local model

Example request

In Plan mode, study the project and propose how to add authentication with tests, then implement it after I approve

Limitations

Quality and cost depend on the chosen model. The JetBrains plugin is not open source. The VS Code extension is being migrated to the new repository layout.

How to disable. Disable or remove the extension in VS Code or JetBrains; remove the CLI with npm uninstall -g cline.

Security check

  • The agent runs terminal commands and edits files
  • Messaging integrations use bot tokens
  • Code is sent to the chosen model provider

README in short

Cline is an open-source coding agent available as a CLI, desktop app, VS Code extension, JetBrains plugin and SDK. The README covers project-wide edits, command execution, Plan and Act modes, rules and skills. It also describes plugins and MCP, multi-agent teams, schedules, messaging integrations and headless mode for CI. The project is Apache 2.0 licensed.

SKILL.md

---
name: create-pull-request
description: Create a GitHub pull request following project conventions. Use when the user asks to create a PR, submit changes for review, or open a pull request. Handles commit analysis, branch management, and PR creation using the gh CLI tool.
---

# Create Pull Request

This skill guides you through creating a well-structured GitHub pull request that follows project conventions and best practices.

## Prerequisites Check

Before proceeding, verify the following:

### 1. Check if `gh` CLI is installed

```bash
gh --version
```

If not installed, inform the user:
> The GitHub CLI (`gh`) is required but not installed. Please install it:
> - macOS: `brew install gh`
> - Other: https://cli.github.com/

### 2. Check if authenticated with GitHub

```bash
gh auth status
```

If not authenticated, guide the user to run `gh auth login`.

### 3. Verify clean working directory

```bash
git status
```

If there are uncommitted changes, ask the user whether to:
- Commit them as part of this PR
- Stash them temporarily
- Discard them (with caution)

## Gather Context

### 1. Identify the current branch

```bash
git branch --show-current
```

Ensure you're not on `main` or `master`. If so, ask the user to create or switch to a feature branch.

FAQ

Which models are supported?

Anthropic, OpenAI, Google, OpenRouter, AWS Bedrock, Azure, Vertex, Cerebras, Groq, Ollama, LM Studio and any OpenAI-compatible API.

Can I embed the Cline engine in my own app?

Yes, via the SDK: npm install @cline/sdk.

Editors’ pick

A self-improving agent from Nous Research with a TUI, messaging gateway, cron jobs and skills it writes itself

CLIHigh risk245.5K
Editors’ pick

Anthropic's coding agent for the terminal, IDE and GitHub: understands your codebase, runs tasks and handles git

CLIHigh risk145K
Editors’ pick

OpenAI's coding agent that runs locally in your terminal, with IDE and desktop versions

CLIHigh risk124.1K
Editors’ pick

Google's open-source terminal agent on Gemini models: code work, shell, web search and MCP

CLIHigh risk107K