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 modeRead and discuss only; Cline can't modify files or run commands
Act modeLets Cline edit files and run commands to carry out the plan
/newtaskStart a new task that carries a distilled summary of the current one
/smolCompress the history in place to save context (alias /compact)
/newruleHave Cline write a new rule file into .clinerules
/deep-planningInvestigate, discuss, write implementation_plan.md, then open a task to implement it
/reportbugCollect config, recent errors and system details for a bug report
@/src/app.tsAdd a file's contents to the message
@/src/components/Add a folder's contents (note the trailing slash)
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
~/Documents/Cline/RulesGlobal rules on macOS and Linux (Documents\Cline\Rules on Windows)
~/.agents/AGENTS.mdGlobal AGENTS.md; a project AGENTS.md at the root is read too
---
paths:
- "src/api/**"
---Frontmatter that makes a rule apply only when matching files are involved
.cursorrules / .windsurfrulesPicked up automatically, so existing rules from those editors carry over
.clineignoregitignore-style list of files Cline shouldn't read; explicit @ mentions still bypass it
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.
CompareOpen a diff of what changed since that step
Restore FilesPut the workspace back to the checkpoint and keep the conversation
Restore Task OnlyRewind the conversation but leave your files alone
Restore Files & TaskRoll back both files and conversation to that point
Settings > Features > YOLO ModeApprove every action without asking; use only in a disposable environment
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
"type": "streamableHttp", "url": "https://example.com/mcp"Remote server; leave out type and Cline assumes legacy SSE
~/.cline/data/settings/cline_mcp_settings.jsonSettings file the CLI uses; override with CLINE_MCP_SETTINGS_PATH
cline mcp add files --yes -- npx -y @modelcontextprotocol/server-filesystem .Add a stdio server from the terminal
cline mcp add docs https://example.com/mcp --transport http --header "Authorization: Bearer TOKEN" --yesAdd a remote server with a header
cline mcp remove docsRemove a server by name
In the TUI, Tab toggles Plan and Act and Shift+Tab toggles auto-approve all (https://docs.cline.bot/usage/tui).
npm i -g clineInstall the terminal version
cline auth -p anthropic -k "$ANTHROPIC_API_KEY" -m claude-sonnet-5-5Save a provider, key and model
cline -p "plan the auth refactor"Start in Plan mode instead of the default yolo run
cline --json "list TODO comments"Emit machine-readable output
cline -t 600 "run full test suite"Stop the run after a timeout in seconds
cline -iOpen the full-screen TUI
cline --worktree "try the migration"Work in a separate Git worktree
cline config rulesPrint the rules Cline will load; also workflows, mcp, skills, hooks
cline doctorDiagnose setup problems; cline doctor fix attempts repairs
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
--planor--act, or set--auto-approve false.Leaving
typeout of a remote MCP entrySet
"type": "streamableHttp", otherwise Cline falls back to legacy SSE and many servers won't connect.Treating
.clineignoreas a way to hide secretsThe 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
.clinerulesandAGENTS.mdKeep one source; Cline reads AGENTS.md, so shared rules can live there and Cline-only notes in
.clinerules/.
Related cheat sheets
Sources
- https://docs.cline.bot/core-workflows/plan-and-act
- https://docs.cline.bot/core-workflows/using-commands
- https://docs.cline.bot/customization/cline-rules
- https://docs.cline.bot/core-workflows/checkpoints
- https://docs.cline.bot/mcp/mcp-overview
- https://docs.cline.bot/cli/cli-reference
- https://docs.cline.bot/usage/tui
- https://github.com/cline/cline/blob/main/CHANGELOG.md
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.