Ir para o conteúdo

Lição 26 · Projects and Reference

Cursor Glossary and Cheat Sheet

A quick Cursor reference: main shortcuts, modes, slash commands, configuration files, a task prompt template, a safety checklist and a glossary of terms.

Keep this page as your quick reference. Shortcuts, file names and features were checked against official documentation in December 2026, during the rename to Grok Build. If your app behaves differently, check its keyboard shortcut list and the current documentation.

Keyboard shortcuts

On a Mac, use Cmd where this table says Ctrl. Extensions and custom keybindings can change these.

Action Shortcut
Open or close the agent panel Ctrl+I
Rotate agent modes Shift+Tab
Add the selection to an agent chat Ctrl+L or Ctrl+K
Add selected code as context Ctrl+Shift+L
Send immediately while the agent works Ctrl+Enter
Cancel generation Ctrl+Shift+Backspace
Cycle models Ctrl+/
App settings for AI features Ctrl+Shift+J
Command palette Ctrl+Shift+P
Accept a Tab suggestion Tab
Reject a Tab suggestion Esc
Accept the next word Ctrl+Right Arrow

Modes

Mode Use it to
Agent Make changes and run commands
Ask Explore and explain without edits
Plan Research and design before building
Debug Find root causes with runtime evidence
Custom Keep a skill active for a session

Slash commands

Command Purpose
/create-rule, /create-skill Create a rule or skill
/create-subagent, /create-hook Create a subagent or hook
/worktree, /apply-worktree, /delete-worktree Work in an isolated checkout
/best-of-n Compare several models
/agent-review, /review-bugbot, /review-security Review changes
/split-to-prs Split a large change
/side Open a side chat

Configuration files

Path Purpose
AGENTS.md Plain Markdown project instructions
.cursor/rules/*.mdc Project rules
.cursor/skills/<name>/SKILL.md Skills
.cursor/agents/*.md Custom subagents
.cursor/hooks.json Hooks
.cursor/mcp.json MCP servers
.cursor/permissions.json Allowlists and Auto-review guidance
.cursor/worktrees.json Worktree setup
.cursor/environment.json Cloud agent environment
.cursor/config/bugbot.yaml Bugbot settings
.cursorignore Paths to keep from the agent, Tab and mentions

Task template

TEXT
Goal:
Context: (@files, an example to follow, the full error message)
Constraints: (what must not change)
Done when: (tests or checks)
Stop and ask me if:

Check a task before you send it

This real script reminds you of the key parts.

Python A quick task checklist

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.

A tiny task does not need all five parts, but the checklist is useful for larger ones.

Safety checklist

TEXT
Before
[ ] Work is committed
[ ] No production secrets or real customer data within reach
[ ] Run mode and allowlists are what you expect
[ ] New MCP servers, skills, hooks and plugins have been reviewed

During
[ ] Read commands and tool arguments before approving
[ ] Stop runs that go off track

After
[ ] Read the whole diff, tests first
[ ] Run tests, type checker and linter yourself or in CI
[ ] Check new dependencies and new files
[ ] A person approves before merge and deploy

Which tool should you use?

Quick choices

Small edit Tab or a selection
Question Ask mode
Big change Plan, then Agent
Mystery bug Debug mode
1 / 2

Glossary

Term Meaning
Agent A model that works in a loop with tools toward a goal
Agents Window The desktop interface for running and managing agents
Allowlist Actions that may run without approval
Auto A setting that picks the model for you
Auto-review A run mode that uses a classifier for some calls; not a security boundary
Bugbot The pull request review feature
Checkpoint A local snapshot of files that you can restore; separate from Git
Cloud agent An agent that runs on a remote virtual machine
Context The information the model receives for a request
Context window The limit on that information; older parts may be summarized
Grok Build The product's new name, announced November 30, 2026
Hallucination Confident output that is false, such as an invented function
Hook Your own program, run at set points in the agent's work
MCP Model Context Protocol, a standard for connecting tools and data
Privacy Mode A setting that stops your code from being used for training
Prompt injection Untrusted text that tries to give a model new instructions
Rule Written guidance added to the agent's context
Sandbox A restricted environment for running commands
Skill A folder with SKILL.md that describes a reusable procedure
Subagent A helper with its own context that returns a result
Tab The editor's AI completion feature
Token A small piece of text used to measure model input and output
Worktree An extra Git checkout of the same repository

Where to go next

When something goes wrong

Problem First things to try
The agent cannot find a file Check ignore files, reindex, attach it with @
Answers ignore your conventions Check the rule type and globs, or attach an example
Tab is distracting or silent Check the Tab status indicator and file type settings
Terminal behaves oddly Check for CI=1 effects and a complex shell theme
An MCP server fails Read the MCP Logs in the Output panel
You need to undo agent edits Restore a checkpoint, or use Git
A guide shows an old shortcut Check the shortcut list in your version

If you report a bad response to support, the troubleshooting guide describes copying its request ID from the response menu. Remove private code and data from anything you post in a public forum.

Habits worth keeping

  • Commit before large tasks.
  • Give one task per chat.
  • Say how the result will be checked.
  • Read the diff before you trust the summary.
  • Keep people responsible for merges, deployments and data changes.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. Which file holds project MCP servers?

    Project servers are configured in .cursor/mcp.json.
  2. 2. Which shortcut rotates agent modes?

    Shift+Tab rotates between the modes from the chat input.
  3. 3. What is a checkpoint not a replacement for?

    Checkpoints are local file snapshots, separate from Git.

Summary

  • Use these tables for shortcuts, modes, commands and files.
  • Send larger tasks with a goal, context, limits, a check and a stop condition.
  • Follow the safety checklist before, during and after agent work.
  • Verify product details against the current official documentation.

Next: Back to the Cursor tutorial

Seu progresso fica salvo neste navegador. Não precisa de conta.