code-intel-platform: Cursor rule for Windsurf

.windsurfrules

windsurfrules is a cursor rule for Windsurf from vohongtho/code-intel-platform. It costs 2,796 tokens per session, scanned A, a copy of code-intel, MIT.

A rule file that requires coding agents to use code-intel for code and symbol discovery instead of commands such as grep, find, or manually opening files. It also asks agents to warn when a change has many callers.

In plain words
What is it for?
Use it to enforce search, symbol inspection, and impact analysis before code changes, bug fixes, or reviews.
Why use it?
It encourages agents to understand code relationships before editing, which can reduce missed call sites and unexpected side effects. It also provides a consistent discovery process across coding agents.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

This is vohongtho/code-intel-platform's own configuration. It tells Windsurf how to work on code-intel-platform itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything code-intel-platform configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vohongtho/code-intel-platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vohongtho/code-intel-platform/main/.windsurfrules
Clone the repo
git clone --depth 1 https://github.com/vohongtho/code-intel-platform

Made for: Windsurf.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for windsurfrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/vohongtho/code-intel-platform/windsurfrules/github.svg)](https://agentmods.dev/rules/vohongtho/code-intel-platform/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/vohongtho/code-intel-platform/windsurfrules"><img src="https://agentmods.dev/badge/rules/vohongtho/code-intel-platform/windsurfrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for windsurfrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/vohongtho/code-intel-platform/windsurfrules"><img src="https://agentmods.dev/badge/rules/vohongtho/code-intel-platform/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,796 This file is loaded in full into every session.
When invoked 2,796 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 98% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02796 $0.02796
Opus 5.5 $0.01118 $0.01118
Sonnet 5.5 $0.00559 $0.00559
Haiku 4.5 $0.00280 $0.00280

Measured 1mo ago against content hash 91193f6933c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

windsurfrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

98% identical to code-intel — 26 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.windsurfrules · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Intelligence — Tool Policy

MANDATORY: Use code-intel before any code action

FORBIDDEN (never use for symbol/code discovery): grep, rg, find, cat, sed, ls

REQUIRED workflow:

code-intel search "<concept>"    # replaces grep/rg/find
code-intel inspect <symbol>      # replaces cat + manual reading
code-intel impact <symbol>       # replaces manual caller tracing

Rules:

  • NEVER open a file cold — always code-intel search first
  • NEVER use grep for symbols — use code-intel search instead
  • If impact shows ≥ 5 callers → warn user: HIGH blast radius

Code Intelligence — code-intel-platform

⚠ This section is auto-managed by code-intel analyze. Do not edit between the markers — your changes will be overwritten. Add your own notes below the <!-- code-intel:end --> marker.

FORBIDDEN: grep, rg, find, cat, sed, ls (for symbol/code discovery) REQUIRED BEFORE ANY CODE ACTION:

  1. code-intel search "" ← replaces grep/rg/find
  2. code-intel inspect ← replaces cat + manual file reading
  3. code-intel impact ← replaces manual caller tracing

Indexed: 6,254 nodes | 11,376 edges | 333 files | analyzed in 1.8s

Index stale? Re-run: code-intel analyze

Mandatory Rules — ALL Agents (Amp, Claude Code, Codex, Copilot, Cursor, Aider, Gemini, Kiro, Trae, Hermes, Factory, OpenCode, Pi, Antigravity, OpenClaw, and others)

These rules apply to every coding agent or AI assistant working in this repository.

Before Implementing Any Change

  1. Run code-intel search "<concept>" — find existing symbols related to the task.
  2. Run code-intel inspect <symbol> — understand callers, callees, and imports.
  3. Run code-intel impact <symbol> — check blast radius before touching anything.
  4. If impact shows ≥ 5 direct callers → warn the user: HIGH risk.

Read the full file on GitHub · 199 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 199 lines · 2,796 tokens per session scan A 91193f6933c4

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository vohongtho/code-intel-platform (3 stars, last pushed 16d ago), licensed MIT. It adds 2,796 tokens to every session, about $0.0112 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 98% identical to code-intel, differing in 26 lines, and is treated as a copy.