Xcode Coding Intelligence — Message Action

Chat Prompt ✦ Curated & attributed Intro

The generic free-form chat template for Xcode's coding intelligence. It injects filename, full file contents, and the selected Swift code, then passes through the user's raw {{message}} as the instruction, making it the open-ended variant behind the fixed-purpose actions.

What makes this prompt notable

  • Acts as the pass-through template where the user's arbitrary {{message}} becomes the instruction, unlike the fixed-task action prompts
  • Always supplies both whole-file context and the highlighted selection so ad-hoc questions are grounded in the editor state
35 words · 235 chars
The user is curently inside this file: {{filename}}
The contents are below:
```swift:{{filename}}
{{filecontent}}
```

The user has selected the following code from that file:
```swift
{{selected}}
```

The user has asked:
{{message}}

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