跳到正文

第 1 课 · Getting Started

What Is Cursor? The AI Code Editor

Learn what the Cursor AI code editor is, why it is now called Grok Build, who this tutorial is for, what you need, what runs here and how the course works.

Cursor is a code editor with AI built into it. It looks and works much like Visual Studio Code, and it adds three things: smart completions while you type, a chat that can read your project, and an agent that can search files, edit them and run commands for you.

This tutorial teaches you to use those features well: how to give the AI the right information, how to limit what it may do, and how to check its work before you trust it. It is an independent tutorial. It is not made, endorsed or sponsored by the company that makes the product or by any model provider.

The product has a new name. On November 30, 2026, the vendor announced that Cursor is now Grok Build: the Cursor desktop app is called the Grok Build desktop app, and a terminal tool of the same family is its companion. This tutorial keeps the familiar name Cursor. When official pages say "Grok Build desktop app" or "Agents Window", they are usually talking about the product you learn here. The announcement says the core experience works as before, and file names such as .cursor/rules and .cursorignore still appear in the official documentation as of December 2026.

Who this tutorial is for

You will get the most from it if you:

  • Can read and write simple code in at least one language. The examples are mostly Python. If you are new, start with the Python tutorial.
  • Know the basic idea of a Git commit. See the Git tutorial if you do not.
  • Want a repeatable way of working, not a list of tricks.

You do not need to know how language models work. If you are curious, Large Language Models explains them.

The three ways Cursor helps

Three kinds of help

Tab Suggests your next edit
Ask Explains, changes nothing
Agent Edits and runs commands

More power needs more checking

1 / 2

The further you move from Tab to Agent, the more the tool does on its own, and the more carefully you need to review the result. A completion may be one line that you read before accepting. An agent task can touch twenty files.

What you need

  • A computer with macOS, Windows or Linux. The installation lesson lists the versions.
  • An account with the vendor. There is a free plan with limited usage; plans are covered in models, plans and usage.
  • Git installed, so you can always return to a known good state.
  • A small practice project. Never learn a new agent tool on code you cannot afford to break.

What this tutorial can and cannot run

This website cannot run Cursor. It is a desktop application that talks to hosted AI models, and nothing here calls those services. So the tutorial works like this:

Item How you see it
Settings, config files, prompts, commands Read-only blocks you can copy into your own project
Ideas behind a feature, such as matching rules or permissions Small Python programs whose titles start with "Stand-in:"
Ordinary Python code you would write or review Real, runnable examples

A stand-in is a simplified program written for this course. It helps you understand a concept. It is not how the product is implemented, and its output is never real product output.

Here is a first one. It shows how the amount of checking grows with the size of a task.

Python Stand-in: how much review does each task need?

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The numbers are invented. The point is the pattern: more files, more lines and more actions mean more checking.

How facts are handled

AI products change quickly, and this one changed its name just before this tutorial was written. Product facts here were checked against the vendor's official documentation in December 2026. Menus, shortcuts, model names, prices and limits can change after that. When your screen differs from the text, trust the current official documentation. In December 2026, several documentation addresses under cursor.com forwarded to the new Grok Build documentation. The lasting skills are the workflows: scope a task, give context, limit permissions, review and test.

Course map

Part one: working with code

Getting started
Tab and edits
Chat and context
Agent mode
1 / 3

Read the lessons in order. Each one builds on the earlier ones, and the final chapter puts everything together in two projects.

A mindset that saves you trouble

Treat the AI as a very fast new teammate who has not seen your project before. It can produce good work, and it can also produce confident mistakes. It does not know your unwritten team habits. It may invent a function that does not exist, or change a test so that it passes. The lesson on hallucinations, bias and safety explains why.

So keep three rules from day one:

  1. Commit your work before you give the agent a large task.
  2. Read every change before you keep it.
  3. Never paste passwords, API keys or customer data into a prompt.

What you will be able to do

By the end, you should be able to take a small task from idea to commit with the AI as a helper, explain which data and actions you allowed, and show evidence that the result works. You will also know when not to use the agent: a two-character fix is often faster by hand, and a decision about security or customer data belongs to people.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What happened to the Cursor name in late 2026?

    The November 30, 2026 announcement renamed the Cursor desktop app to the Grok Build desktop app. Many file names still use the cursor name.
  2. 2. What is a stand-in example in this tutorial?

    This site cannot run the product, so stand-ins are hand-written programs that only imitate an idea.
  3. 3. Which kind of help usually needs the most review?

    More files and actions mean more ways to go wrong, so check more carefully.
  4. 4. What should you do before giving the agent a large task?

    A commit gives you a known good state to return to.

Summary

  • Cursor is an AI code editor; as of November 30, 2026 the vendor calls it Grok Build.
  • It helps in three ways: Tab completions, read-only questions and agent tasks.
  • This site cannot run the product; blocks titled "Stand-in:" only illustrate concepts.
  • The tutorial is independent, and product details were checked in December 2026.
  • Commit often, review every change and keep secrets out of prompts.

Next: Install and Set Up Cursor

你的学习进度保存在此浏览器中,无需账号。