Skip to content

Menu

Cline Cheat Sheet: Plan and Act, Rules, MCP, Checkpoints and CLI

Checked against Cline Cline extension v4.1.28 and CLI v3.0.76 (26 Nov 2026) on 28 November 2026. Each section links to the official docs it was checked against.

This sheet is for people running Cline, the open-source coding agent for VS Code that now also ships a terminal CLI. It matches extension v4.1.28 and CLI v3.0.76, both released 26 Nov 2026, and the docs at docs.cline.bot. Cline wasn't installed for this sheet, so rows are taken from the docs and not run.

When to use what

Start most tasks in Plan mode. It can read files and search but can't edit or run commands, so you get to argue about the approach before anything changes. Switch to Act once the plan looks right; the conversation carries over. If cost matters, the settings let you use a cheaper model for one mode and a stronger one for the other.

For project instructions, prefer .clinerules/ (or .cline/rules/) in the repo. Cline also picks up AGENTS.md, .cursorrules and .windsurfrules, so a team that already has one of those doesn't need to duplicate it. Use frontmatter paths: globs when a rule only matters for part of the codebase; the agent rules generator is a quick way to draft the text.

Be careful with auto-approve. The toggles are granular, so turn on reading and project edits first and leave "Execute all commands" off. The CLI is different: its help says a prompt runs in yolo mode by default, so pass --plan or --act when you want it to stop and ask. For MCP, write the JSON once with the MCP config generator; our Cline page covers pricing and providers.

Plan and Act are described at https://docs.cline.bot/core-workflows/plan-and-act and mentions at https://docs.cline.bot/core-workflows/working-with-files.

Plan mode

Read and discuss only; Cline can't modify files or run commands

From the docs, not run by us
Act mode

Lets Cline edit files and run commands to carry out the plan

From the docs, not run by us
/newtask

Start a new task that carries a distilled summary of the current one

From the docs, not run by us
/smol

Compress the history in place to save context (alias /compact)

Try it: Token CounterFrom the docs, not run by us
/newrule

Have Cline write a new rule file into .clinerules

Try it: AGENTS.md / CLAUDE.md GeneratorFrom the docs, not run by us
/deep-planning

Investigate, discuss, write implementation_plan.md, then open a task to implement it

From the docs, not run by us
/reportbug

Collect config, recent errors and system details for a bug report

From the docs, not run by us
@/src/app.ts

Add a file's contents to the message

From the docs, not run by us
@/src/components/

Add a folder's contents (note the trailing slash)

From the docs, not run by us

Workspace rules win over global ones on conflict. Workflows live in .cline/workflows/ or ~/.cline/workflows/ (see https://docs.cline.bot/getting-started/config).

.clinerules/

Workspace rules folder at the repo root; .cline/rules/ also works

Try it: AGENTS.md / CLAUDE.md GeneratorFrom the docs, not run by us
~/Documents/Cline/Rules

Global rules on macOS and Linux (Documents\Cline\Rules on Windows)

From the docs, not run by us
~/.agents/AGENTS.md

Global AGENTS.md; a project AGENTS.md at the root is read too

From the docs, not run by us
--- paths: - "src/api/**" ---

Frontmatter that makes a rule apply only when matching files are involved

From the docs, not run by us
.cursorrules / .windsurfrules

Picked up automatically, so existing rules from those editors carry over

From the docs, not run by us
.clineignore

gitignore-style list of files Cline shouldn't read; explicit @ mentions still bypass it

Try it: .gitignore GeneratorFrom the docs, not run by us

Checkpoints live in a shadow Git repo, separate from your own history. Auto-approve toggles are described at https://docs.cline.bot/features/auto-approve.

Compare

Open a diff of what changed since that step

From the docs, not run by us
Restore Files

Put the workspace back to the checkpoint and keep the conversation

From the docs, not run by us
Restore Task Only

Rewind the conversation but leave your files alone

From the docs, not run by us
Restore Files & Task

Roll back both files and conversation to that point

From the docs, not run by us
Settings > Features > YOLO Mode

Approve every action without asking; use only in a disposable environment

From the docs, not run by us

In VS Code, open the MCP Servers icon, then Configure, then "Configure MCP Servers" to edit the same mcpServers object.

"mcpServers": { "local": { "command": "node", "args": ["/path/server.js"], "disabled": false, "autoApprove": [] } }

Stdio server entry in the MCP settings JSON

Try it: MCP Config GeneratorFrom the docs, not run by us
"type": "streamableHttp", "url": "https://example.com/mcp"

Remote server; leave out type and Cline assumes legacy SSE

Try it: MCP Config ValidatorFrom the docs, not run by us
~/.cline/data/settings/cline_mcp_settings.json

Settings file the CLI uses; override with CLINE_MCP_SETTINGS_PATH

From the docs, not run by us
cline mcp add files --yes -- npx -y @modelcontextprotocol/server-filesystem .

Add a stdio server from the terminal

From the docs, not run by us
cline mcp add docs https://example.com/mcp --transport http --header "Authorization: Bearer TOKEN" --yes

Add a remote server with a header

From the docs, not run by us
cline mcp remove docs

Remove a server by name

From the docs, not run by us

In the TUI, Tab toggles Plan and Act and Shift+Tab toggles auto-approve all (https://docs.cline.bot/usage/tui).

npm i -g cline

Install the terminal version

From the docs, not run by us
cline auth -p anthropic -k "$ANTHROPIC_API_KEY" -m claude-sonnet-5-5

Save a provider, key and model

From the docs, not run by us
cline -p "plan the auth refactor"

Start in Plan mode instead of the default yolo run

From the docs, not run by us
cline --json "list TODO comments"

Emit machine-readable output

Try it: JSON FormatterFrom the docs, not run by us
cline -t 600 "run full test suite"

Stop the run after a timeout in seconds

From the docs, not run by us
cline -i

Open the full-screen TUI

From the docs, not run by us
cline --worktree "try the migration"

Work in a separate Git worktree

From the docs, not run by us
cline config rules

Print the rules Cline will load; also workflows, mcp, skills, hooks

From the docs, not run by us
cline doctor

Diagnose setup problems; cline doctor fix attempts repairs

From the docs, not run by us

Worked example: Plan in VS Code, then roll back a bad step

Add a rule so every task in the API folder follows your conventions:

---
paths:
  - "src/api/**"
---
Return errors as { error: { code, message } }. Never throw raw strings.

Save it as .clinerules/api-errors.md. Open Cline in Plan mode and ask:

@/src/api/orders.ts Make the error responses match our rule. Plan first.

Cline reads the file and the rule and proposes steps without editing anything. When you agree, switch to Act. After each step a checkpoint appears with Compare and Restore buttons. If one edit breaks something, choose Restore Files on the step before it: your files go back but the chat stays, so you can tell Cline what went wrong and let it try again.

Common mistakes

  • Running the CLI with a prompt and expecting it to ask before editing

    The CLI runs yolo by default with a prompt; add --plan or --act, or set --auto-approve false.

  • Leaving type out of a remote MCP entry

    Set "type": "streamableHttp", otherwise Cline falls back to legacy SSE and many servers won't connect.

  • Treating .clineignore as a way to hide secrets

    The docs say it's no security boundary; block reads with a PreToolUse hook and keep secrets out of the repo.

  • Choosing Restore Files & Task when only the code went wrong

    Use Restore Files so you keep the conversation and the context Cline already built.

  • Copying the same instructions into .clinerules and AGENTS.md

    Keep one source; Cline reads AGENTS.md, so shared rules can live there and Cline-only notes in .clinerules/.