Prompting in Windsurf, Cline, Zed and VS Code Copilot: what each one reads

Four editors, four rule files, four different moments at which the file is read. A rule in the wrong file is not a weak rule; it is an unread one, and no tool reports the difference. Below is the file each one documents, how it decides when the rule applies, and what to check yourself because the editor will not tell you.

This is interoperability, not a comparison: the question is where to paste the text you wrote, not which editor is better. TPEE exports the same fifteen sections to 84 IDE profiles, 92 CLI profiles and 87 agent-harness profiles, and the difference between those profiles is almost entirely the heading style and the file name.

What each one reads

ToolThe file it readsWhen the rule appliesWhat to check, because the tool will not tell you
Windsurf.windsurf/rules/*.md, one file per rule, with front matter; the older .windsurfrules file is the previous formBy activation mode: always on, by glob, by model decision, or manualA rule set to manual is not applied until it is invoked. Four rules marked manual are four rules that never ran.
Cline.clinerules — a directory of markdown files, or the single file of the same nameRead as persistent context for the conversationNothing enforces a rule that contradicts a tool result. If the rule says "never edit migrations" and the task needs one, the answer will explain why the rule had to be broken.
Zed.rules at the project rootInserted at the start of an agent-panel interactionZed's own documentation now describes .rules as being replaced by Skills and Instructions, so a repository carrying only a .rules file may be relying on a form the editor is moving away from.
VS Code + Copilot.github/copilot-instructions.md, or AGENTS.md; targeted files as .github/instructions/**/*.instructions.mdRepository-wide for the first two; per-file for a targeted instruction whose applyTo matchesA targeted instruction with no applyTo header applies nowhere. It sits in the repository looking authoritative.

Cursor and Claude Code belong in the same table and have their own pages: twelve Cursor rules with before and after, and a CLAUDE.md that survives a long session.

The same rule, written four ways

The rule is one sentence: never edit the migrations, run the test command, answer with a diff. Here it is in each tool's own wrapper, which is the only thing that differs.

# Windsurf: .windsurf/rules/change-discipline.md
---
trigger: glob
globs: src/**/*.ts
---
Never edit db/migrations/** - already applied in production. Write the SQL and stop.
Run `npm test -- --runInBand` before reporting done.
Answer with a unified diff, then three bullets: changed, checked, not checked.
# VS Code Copilot, targeted: .github/instructions/tests.instructions.md
---
applyTo: "src/**/*.test.ts"
---
Run `npm test -- --runInBand` before reporting done and paste the last ten lines.
A new test must fail before the change and pass after it.

The rest of the rule — the prohibition and the answer shape — belongs in .github/copilot-instructions.md, repository-wide, because a rule that applies to one folder should not be sold as a rule that applies to the project. This is the same judgement as Cursor's glob: scope narrows, and a narrow scope that matches nothing is silence.

What every one of them ignores

Write once, wrap five times

The text of a good rule does not change between these editors; the front matter does. So keep the text in one place, in the fifteen sections the editor uses — Persona, Instructions, Context, Technical Specs, Format, Audience, Tone, Data, Examples, Graphics, MCP Servers, Verification of Results & Outcome, Skills, Rules, Agents — and let the export add the wrapper for the tool you are pasting into. TPEE writes markdown with a heading per filled section and skips what is empty; the three-line front matter is yours to add, because the scope is a fact about your repository that the editor has never seen.

Then score the text before it goes into any of the five. The free page at /tools/prompt-score runs in the browser with no account and no network call, and rates the same five categories the application uses. The catalogue of 245 models, with the window each rule file has to fit inside, is at /model-limits.

The full Cursor export format, with a real file, is on the Cursor page; the Claude Code equivalent is on the Claude Code page. The lesson that covers what each kind of agent reads, and when, is coding agents and the IDEs they run in.

Part of the guides index. Two that follow this one: Cursor rules that change the output and A CLAUDE.md that survives a long session.

Cite this page as: TPEE, the Toptronic® Prompt Engineering Editor — https://tpee.app/guides/prompting-in-windsurf-cline-zed-vs-code-copilot. Ask: support@tpee.app.