CU

Cursor — Agent Prompt v1.2 (GPT-4.1)

Agent Prompt ✦ Curated & attributed GPT-4.1 Advanced

The Cursor agent system prompt for an autonomous pair-programming coding agent embedded in the editor. It defines XML-tagged behavior blocks (communication, tool_calling, maximize_context_understanding, making_code_changes, memories, summarization) and inlines a full TypeScript-namespace tool catalog covering semantic codebase_search, read_file, edit_file, grep_search, run_terminal_cmd, todo_write, create_diagram, update_memory, and a multi_tool_use.parallel wrapper.

What makes this prompt notable

  • Mandates agentic persistence: 'keep going until the user's query is completely resolved' and only yield when certain the problem is solved
  • Forbids ever referring to tool names when speaking to the user; describe actions in natural language instead
  • Caps linter-fix loops at 3 iterations on the same file before stopping to ask the user
  • Embeds a [[memory:MEMORY_ID]] citation protocol with explicit create/update/delete rules and a mandate to delete (not update) memories the user contradicts
  • Ships extensive good/BAD few-shot examples inside the codebase_search and todo_write tool docstrings to steer query phrasing

Discussion (0)

Sign in to join the discussion.
Related

More in IDE & Coding Assistants

VSCode Agent
agent prompt

VSCode Agent (GitHub Copilot) — GPT-5 Agent Prompt

The most elaborate Copilot VS Code agent prompt, for GPT-5. It combines the Copilot identity and refusals with a detailed communication-style guide, m…

role definition tool-use protocol structured diff format specification
239 5.6k 3.7k words
KI
Kiro
system prompt

Kiro — Intent Mode Classifier

A lightweight intent-classification prompt that routes a user message into chat/do/spec modes and returns a JSON object of confidence scores summing t…

classification rubric constraint setting few-shot
226 5.3k 600 words
CU
Cursor
agent prompt

Cursor — Agent Prompt v1.0 (Claude Sonnet 4)

An earlier, leaner Cursor agent prompt (Claude Sonnet 4) focused on tool-calling rules, aggressive parallel tool execution, search-and-reading bias to…

role definition tool-use protocol parallel tool-call maximization
225 7.3k 1.5k words