cursor

cursor is a cursor rule for Cursor from iolairus/borderlint. It costs 645 tokens per session, scanned A, original, MIT.

A Cursor rule that checks where an AI service, software package, or model comes from before it is added to a project.

In plain words
What is it for?
Use it when adding AI software, service URLs, or model IDs to check data location, legal control, and model origin.
Why use it?
It helps prevent code from sending data to an unapproved country, provider, or model. It also prompts a human decision before the change is committed.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when adding AI software, service URLs, or model IDs to check data location, legal control, and model origin.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/iolairus/borderlint/cursor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/iolairus/borderlint

Made for: Cursor.

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 cursor

README.md
[![agentmods](https://agentmods.dev/badge/rules/iolairus/borderlint/cursor/github.svg)](https://agentmods.dev/rules/iolairus/borderlint/cursor)
Your own site
<a href="https://agentmods.dev/rules/iolairus/borderlint/cursor"><img src="https://agentmods.dev/badge/rules/iolairus/borderlint/cursor/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 cursor

Your own site · 80×15
<a href="https://agentmods.dev/rules/iolairus/borderlint/cursor"><img src="https://agentmods.dev/badge/rules/iolairus/borderlint/cursor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 645 This file is loaded in full into every session.
When invoked 645 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 original No closer match found 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.00645 $0.00645
Opus 5.5 $0.00258 $0.00258
Sonnet 5.5 $0.00129 $0.00129
Haiku 4.5 $0.00064 $0.00064

Measured 3d ago against content hash aa077712cb9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursor 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 3d 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.

integrations/cursor.mdc · 38 lines

What it actually says

borderlint checks residency (where AI data goes), sovereignty (which government may compel the provider to disclose it), and provenance (who developed the model weights).

  1. Install this rule. Save this file as .cursor/rules/borderlint.mdc in your project.
  2. Identify every AI change before making it. This includes:
    • An AI SDK import, such as openai, anthropic, or langchain.
    • An AI endpoint or provider URL, including an OpenAI-compatible base_url.
    • A model identifier from Bedrock, Hugging Face, Ollama, or another provider.
    • An LLM endpoint in configuration or .env.
    • A Model Context Protocol (MCP) server under mcpServers (VS Code: servers) in .mcp.json, claude_desktop_config.json, .cursor/mcp.json, or .vscode/mcp.json, using either a remote url or stdio command and args.
  3. Run a baseline scan before editing. If the project has a residency policy, find its path in the project or CI configuration and run: borderlint scan . --policy <project-policy-path> --classification <the project's data class>. Otherwise, run inventory mode: borderlint scan ..
  4. Make the change, then scan again before committing. Run the same command after editing so borderlint can detect the flows introduced by your change.
  5. Compare the results and report changes before committing. If the addition introduces a flow whose jurisdiction is not local, or a provider or router that resolves to unknown, name it in the conversation. Include the provider, residency jurisdiction, sovereignty bloc, and provenance bloc when a model ID is involved. Let the human decide whether to proceed.
  6. Record every accepted flow. Add an inline waiver on the finding's line using the file's comment syntax and a genuine justification: # borderlint: allow <justification> or // borderlint: allow <justification>. borderlint ignores waivers without a justification. Waivers cannot override provider or model denies.
  7. Understand the two enforcement checks. The pre-commit hook enforces its configured policy scan and honours justified waivers. The CI AI data-flow software bill of materials (SBOM) diff check is independent: it ignores policy allow-lists and waivers and exits 1 for every added non-local provider/jurisdiction pair, including unknown, that is absent from the baseline. It does not fail for every new endpoint or model. To accept such a pair, review and update the baseline. Discuss the flow when you make the decision, not after the build fails.
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. 3d ago Changed · +6 lines · +163 tokens per session aa077712cb9d
  2. 18d ago Changed · +7 lines · +148 tokens per session 8d3c0a884ee9
  3. 3mo ago First seen · 25 lines · 334 tokens per session scan A 704c5b6ff094

Subscribe to this mod's changes

cursor is a cursor rule published in the GitHub repository iolairus/borderlint (10 stars, last pushed 4d ago), licensed MIT. It adds 645 tokens to every session, about $0.0026 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

cursor compared with cursor rules from other repositories

cursor next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursoriolairus/borderlintCursor rule104d agoMITA645Cursor
legal-advisorgalyarderlabs/galyarder-frameworkCursor rule3013d agoMITA29Cursor
ponytailDietrichGebert/ponytailCursor rule204k10d agoMITA604Cursor
angular-20angular/angularCursor rule102kyesterdayMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor