Skip to content

Agent Autocomplete, Hooks, and Team Rules

Autocomplete for Agent

When writing prompts, autocomplete suggestions will appear based on recent changes. Tab to accept suggestions and attach files to context.

Hooks (beta)

You can now observe, control, and extend the Agent loop using custom scripts. Hooks give you a way to customize and influence Agent behavior at runtime.

Use Hooks to audit Agent usage, block commands, or redact secrets from context. It's still in beta and we'd love to hear your feedback.

Team rules

Teams can now define and share global rules from the dashboard that will be applied to all projects. We’ve also shipped team rules for Bugbot, so behavior is consistent across repos.

Generate shareable deeplinks for reusable prompts. Useful for setup instructions in documentation, team resources, and sharing workflows. See our documentation for how to create them.

Sandboxed terminals

Commands now execute in a secure, sandboxed environment. If you’re on allowlist mode, non-allowlisted commands will automatically run in a sandbox with read/write access to your workspace and no internet access.

If a command fails and we detect the sandbox was the cause, you’ll be prompted to retry outside of the sandbox.

Monitor Agents from menubar

Quickly check the status of Cursor Agents right from your menubar.

Image file support for Agent

Agent can now read image files directly from your workspace and include them in context. Previously, only pasted images were supported.

Slash commands, summarization, and improved Agent terminal

Custom slash commands

You can now create reusable prompts and quickly share them with your team. Commands are stored in .cursor/commands/[command].md. Run them by typing / in the Agent input and selecting the command from the dropdown menu.

We’ve been using them for running linters, fixing compile errors, and creating PRs with detailed descriptions and conventional commits.

Summarization triggers

Cursor automatically summarizes long conversation for you when reaching the context window limit. You can now summarize context on-demand with the /summarize slash command. This can be useful when you don't want to create a new chat, but want to free up space in the context window.

MCP Resources support

We’ve added support for MCP Resources. Resources allow servers to share data that provides context to language models, such as files, database schemas, or application-specific information.

Additionally, interpolated variables are now supported for MCP. This enables using environment variables in strings when defining configuration for MCP servers.

Improved terminal for Agent

When Agent decides to create a terminal to run shell commands, we’ve dramatically improved the stability and reliability of the environment.

This solves known issues around terminal commands hanging and not properly exiting when completing tasks, as well as improving the SSH experience.

We’ve also polished the terminal UI, made it faster to run, and added OS notifications when shell commands require user approval.

Linear integration, improved Agent terminal, and OS notifications

Run Agents in Linear

You can now start Background Agents directly from Linear. Delegate tasks to Cursor without leaving your issue. We’ve written a longer blog post with more details.

Improved review flow in Agent terminal

The terminal now opens on the left with a clear backdrop and border animation to highlight when it’s blocking. Rejecting auto-focuses the input so you can respond immediately.

OS notifications from Agent

Get native OS notifications when an agent run finishes or when input is required, for example approving a command that is not allowlisted. Enable from Settings.

Agent completed system notification.

Support for MCP elicitation

Cursor now supports MCP elicitation, a new feature in the MCP spec that allows servers to request structured input from users, such as a user preference or configuration choice. Requests are defined with JSON schemas, giving servers validated responses while ensuring users stay in control of what they share.

Improved Agent tools, steerability, and usage visibility

More Agent steerability

Sending messages while Cursor is working now does a better job of steering the agent. Messages will run at the next ideal time, usually after a tool call, versus waiting until the generation completes. ⌥+Enter (Alt+Enter on Windows) will queue messages like before and ⌘+Enter (Ctrl+Enter on Windows) will interrupt the agent to send the message immediately. The default behavior can be changed in Cursor Settings → Chat → Queue messages.

Improved Agent tools

Agents are significantly improved when operating across large codebases. Context selection is more relevant, token use is more efficient, and edit quality is higher:

  • Read file: Now reads full files when appropriate and the 2MB cap is removed.
  • List: Can now explore full directory trees in one call, with metadata like file counts and types.
  • Grep: Improved matching with less noise.
  • Codebase Search: Better ranking and indexing, leading to more relevant context.
  • Web Search: Tuned for smaller, more relevant responses using a lightweight native model.

Separate models per Agent

You can now assign a different model to each Agent in separate tabs and editors. Forking an Agent preserves the selected model.

Usage and pricing visibility

Usage stats are now visible in Chat. You can see your usage either all time, or when you’ve exceeded 50% of your plan’s quota.

This summary can be toggled in Settings. Team and Enterprise users will have access to the usage summary in September.

Usage visibility

Compact chat mode

Compact mode hides tool icons, collapses diffs by default, and auto-hides the input when idle. This can be useful for long sessions with many tool calls, terminals, and diffs. You can toggle compact mode on from settings.

Compact Mode on
Compact Mode off

GitHub support for Background Agents

Agents can now be used directly inside GitHub pull requests. Tag @Cursor and the Agent will read the prompt, apply the fix, and push a commit.

Background Agent will keep you updated on status with a comment and todos.

You can now inspect and manage all Agents from the left sidebar, both foreground and background. Peek into remote machines to see Background Agent working by clicking on one in the sidebar.

Faster Background Agent startup

We’ve put a lot of effort into improving Background Agents and they are now twice as fast to start.

Background Agents start much faster

Shared terminal with Agent, context usage in chat, and faster edits

Share terminal with Agent

Agents can now use your native terminal. A new terminal will be created when needed and runs in the background if one isn’t already open. Click Focus to bring it up front where you can see Agent commands and also take over.

View context usage in Chat

At the end of a conversation you can now see how much of the context window is used.

Context Usage

Faster edits

Agent edits are now faster by lazy loading linter errors. Search & Replace edit latency has been reduced by 25% and Apply edits by almost 11%.

Agent edits are now faster by lazy loading linter errors