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.
git clone --depth 1 https://github.com/bernierllc/agents-environment-confignpx agentmods add rules/bernierllc/agents-environment-config/cursorWrote 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.
[](https://agentmods.dev/rules/bernierllc/agents-environment-config/cursor)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.mdimmediately - 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.mdwhen referencing project rules so humans know the authoritative file - Do NOT duplicate project-specific information in this file or in
.cursor/rules/- keep it inAGENTINFO.md - If new constraints arise, edit
AGENTINFO.mdfirst—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, seeAGENTINFO.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
.mdcformat with frontmatter metadata
Rule File Format
- Use
.mdcextension for all rule files - Include frontmatter with
description,alwaysApply, andtagsfields - Follow MECE (Mutually Exclusive, Collectively Exhaustive) structure
- Keep rules focused and scoped by concern
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.
- 2mo ago Changed · -1 lines · -17 tokens per session 1b228f0e17e9
- 3mo ago First seen · 115 lines · 1,139 tokens per session scan A e6b5f19c7c8d
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.
CURSOR compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| CURSORbernierllc/agents-environment-config | Cursor rule | 11 | yesterday | MIT | A | 1,122 | Cursor |
| paperfitOpenRaiser/PaperFit | Cursor rule | 337 | 26d ago | MIT | A | 0 | Cursor |
| python-appiloveitaly/llm-ide-rules | Cursor rule | 13 | yesterday | MIT | A | 2,047 | Cursor |
| pytest-integration-testsiloveitaly/llm-ide-rules | Cursor rule | 13 | yesterday | MIT | A | 0 | Cursor |
| reactiloveitaly/llm-ide-rules | Cursor rule | 13 | yesterday | MIT | A | 1,042 | Cursor |
| alembic-migrationsiloveitaly/llm-ide-rules | Cursor rule | 13 | yesterday | MIT | A | 0 | Cursor |
| justfilesiloveitaly/llm-ide-rules | Cursor rule | 13 | yesterday | MIT | A | 0 | Cursor |