CURSOR

CURSOR is a cursor rule for Cursor from bernierllc/agents-environment-config. It costs 1,122 tokens per session, scanned A, original, MIT.

A set of development rules and standards for Cursor, an AI coding assistant.

In plain words
What is it for?
It guides development tasks performed by the Cursor code agent.
Why use it?
It gives Cursor consistent instructions for how coding work should be carried out in a project.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/generate-agent-files.py.

Good fit It guides development tasks performed by the Cursor code agent.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/bernierllc/agents-environment-config
agentmods
npx agentmods add rules/bernierllc/agents-environment-config/cursor

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/bernierllc/agents-environment-config/cursor/github.svg)](https://agentmods.dev/rules/bernierllc/agents-environment-config/cursor)
Your own site
<a href="https://agentmods.dev/rules/bernierllc/agents-environment-config/cursor"><img src="https://agentmods.dev/badge/rules/bernierllc/agents-environment-config/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/bernierllc/agents-environment-config/cursor"><img src="https://agentmods.dev/badge/rules/bernierllc/agents-environment-config/cursor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,122 This file is loaded in full into every session.
When invoked 1,122 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.01122 $0.01122
Opus 5.5 $0.00449 $0.00449
Sonnet 5.5 $0.00224 $0.00224
Haiku 4.5 $0.00112 $0.00112

Measured 2mo ago against content hash 1b228f0e17e9, 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 2mo 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.

.cursor/rules/CURSOR.mdc · 114 lines

How it starts

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

Cursor Code Agent Instructions

🚨 Canonical Source: All project-specific standards live in AGENTINFO.md. Read/update that file first; this profile only highlights Cursor-specific reminders.

Maintaining AGENTINFO.md:

  • When project-specific processes, structure, or standards change, update AGENTINFO.md immediately
  • Mirror every expectation from AGENTINFO.md (project structure, build/test commands, coding style, testing guidance, commit/PR standards, security/config, documentation)
  • Keep responses crisp but cite AGENTINFO.md when referencing project rules so humans know the authoritative file
  • Do NOT duplicate project-specific information in this file or in .cursor/rules/ - keep it in AGENTINFO.md
  • If new constraints arise, edit AGENTINFO.md first—never duplicate details here

Overview

This file contains development rules and standards for the Cursor AI coding assistant. These instructions are generated from .cursor/rules/ and incorporate essential development principles, coding standards, and best practices. This file can be committed to git repositories so that anyone cloning the project will have consistent coding standards even without access to the global agents-environment-config repository.

Note: For detailed information and the latest updates, see the source rule files in .cursor/rules/ if available in this repository. For project-specific information, see AGENTINFO.md.

Cursor-Specific Guidelines

Rule Discovery

  • Cursor automatically discovers rules in .cursor/rules/ directories
  • Rules are applied from parent directories (global rules) and project-specific directories
  • Project-specific rules take precedence over global rules for conflicts
  • Rules use .mdc format with frontmatter metadata

Rule File Format

  • Use .mdc extension for all rule files
  • Include frontmatter with description, alwaysApply, and tags fields
  • Follow MECE (Mutually Exclusive, Collectively Exhaustive) structure
  • Keep rules focused and scoped by concern

Read the full file on GitHub · 114 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. 2mo ago Changed · -1 lines · -17 tokens per session 1b228f0e17e9
  2. 3mo ago First seen · 115 lines · 1,139 tokens per session scan A e6b5f19c7c8d

Subscribe to this mod's changes

CURSOR is a cursor rule published in the GitHub repository bernierllc/agents-environment-config (11 stars, last pushed yesterday), licensed MIT. It adds 1,122 tokens to every session, about $0.0045 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
CURSORbernierllc/agents-environment-configCursor rule11yesterdayMITA1,122Cursor
paperfitOpenRaiser/PaperFitCursor rule33726d agoMITA0Cursor
python-appiloveitaly/llm-ide-rulesCursor rule13yesterdayMITA2,047Cursor
pytest-integration-testsiloveitaly/llm-ide-rulesCursor rule13yesterdayMITA0Cursor
reactiloveitaly/llm-ide-rulesCursor rule13yesterdayMITA1,042Cursor
alembic-migrationsiloveitaly/llm-ide-rulesCursor rule13yesterdayMITA0Cursor
justfilesiloveitaly/llm-ide-rulesCursor rule13yesterdayMITA0Cursor