Skip to content
BENIBIX Learn

GitHub Copilot and Cline

Level 3 · AI in the code editor

Two ways to bring AI into the editor you use now. GitHub Copilot suggests code as you type. Cline plans first and asks before each change.

Course contentsLesson 6 of 10

After this lesson you can

  • Explain how code completion works
  • Say why Cline plans before it acts
  • Read AI code before you keep it

11 mincovers 4 glossary entries

Worth reading first: Cursor and AI Code Editors

How an AI add-on works inside the editor you use

You do not have to change editors to code with AI. GitHub Copilot and Cline both add AI to the editor you already use, such as Visual Studio Code. Copilot came out in 2021, and its free plan gives 2,000 code completions a month. Cline is free and open source, and you pay for the model you connect it to.

Copilot's first trick is code completion. As you type, it guesses the next lines and shows them in grey. Press Tab to keep them, or keep typing to ignore them. It reads the code around where you are typing, so a clear name and a short comment get far better guesses.

It does more now. You can chat with it about your code, or let its agent change many files and run the tests. On GitHub itself, you can hand it a task, and its agent works on its own copy of the code. When it is done, it opens a pull request for you to review.

The free plan suits trying it out, and Copilot Pro costs $10 a month for more use. It works in Visual Studio Code, the JetBrains editors and others. It shares a name with Microsoft Copilot, the chat app. They have the same owner, but they do different jobs.

Cline is a coding agent that lives in a side panel of your editor. It works in two steps, plan and act. First it reads your code, asks questions and writes a plan, without touching a file. When you agree with the plan, you switch it to act, and it carries the plan out.

By default, every file edit and every terminal command waits for your yes. That is slower, and that is the point: you see each change before it lands. An auto-approve switch lets it run without stopping. Turn it on only after you have watched a few runs and know what it tends to do.

The common mistake with both tools is to keep code because it looks right. A suggestion can run, pass a quick glance and still hide a bug or a security hole. Read each one as you would read a stranger's code, and run the tests before you trust it.

Which one to pick

  1. 1

    Pick GitHub Copilot

    When you want help as you type, and your team already keeps its code on GitHub.

  2. 2

    Pick Cline

    When you want an agent that shows its plan and asks before each step, with a model you choose.

Copilot helps in three ways. It shows a grey guess as you type. It chats about the code. And its agent opens a pull request.

Worked example

Emma lets Cline add a dark mode

Emma asks Cline for a dark mode. First, it lists 5 files it wants to change and asks whether the logo should change colour too.

She says no to the logo and switches Cline to act. Cline asks before each of the 4 edits, and she says yes to all four. The job takes 12 minutes, and her logo file is untouched.

The words for this lesson4

Check yourself

What does Cline do before it changes a file?

Finished this lesson?

Marking it complete also marks its 4 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.