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.
npx agentmods add rules/sandraschi/devices-mcp/cursorrulesgit clone --depth 1 https://github.com/sandraschi/devices-mcpWhat 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 | $0.00720 | $0.00720 |
| Opus 5 | $0.00360 | $0.00360 |
| Sonnet 5 | $0.00144 | $0.00144 |
| Haiku 4.5 | $0.00072 | $0.00072 |
Grade C, and why
cursorrules scanned grade C with 1 finding 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 yesterday.
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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- `rm -rf` (use `Remove-Item -Recurse -Force`) How it starts
The opening of the file, as written. The whole thing โ 84 lines โ stays where its author put it; the contents beside it link to each section on GitHub.
Cursor Rules: devices-mcp
Read at: Cursor IDE workspace open + each new chat session
Proof of read: hi! (acknowledged)
๐จ CRITICAL: No Unicode Emojis (Crash Prevention)
DEADLY EMOJIS (NEVER USE):
- ๐ (partypopper) - causes immediate crashes
- ๐ (trophy) - system instability
- ๐ (rocket) - serialization failures
- Any Unicode emoji in Python/PS1/logger contexts
STRICT BAN in these file types:
- Python files (.py) - All Unicode emojis forbidden
- PowerShell scripts (.ps1) - All Unicode emojis forbidden
- Logger messages -
logger.info("๐ Started")โlogger.info("STARTED")
FORBIDDEN contexts:
- Logger messages (
logger.info("๐ Started")) - causes crashes and restart loops - API parameters - serialization failures
- MCP responses - client crashes
- Error messages - encoding failures
- Variable names, function names, comments
โ ALLOWED in HTML for pretty UI:
- Emojis can be used in HTML templates and UI strings
- Web dashboard displays and user-facing content
- README.md and documentation files
โ SAFE alternatives:
- ASCII text only: "Process started" instead of "๐ Started"
- NO Unicode emojis in Python/PS1/logger contexts EVER
๐ง CRITICAL: No Linux Syntax in PowerShell Chats
๐ซ FORBIDDEN in PowerShell environments:
&&(command chaining)||(logical OR)|(pipes);(command separators)&(background)mkdir -p(useNew-Item -ItemType Directory -Force)ls -la(useGet-ChildItem)rm -rf(useRemove-Item -Recurse -Force)
โ REQUIRED PowerShell syntax:
# Directory operations
New-Item -ItemType Directory -Force -Path "folder"
Get-ChildItem -Recurse
Remove-Item -Recurse -Force "folder"
# Command separation (one per line)
command1
if ($?) { command2 }
# Virtual environment
build_venv\Scripts\activate
Rule enforcement: Any output with Linux syntax or Unicode emojis will be rejected.
๐ช CRITICAL: Windows-Only Repository Rules
๐ซ ABSOLUTE BAN on Unix/Linux assumptions:
- This is a Windows-only MCP server - no Linux support
- .exe files are Windows executables - they don't run on Linux
- No Unix shell scripts (.sh) - pointless and confusing for Windows-only project
- No cross-platform wrappers - repository integrates with Windows hardware only
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.
- yesterday First seen ยท 84 lines ยท 720 tokens per session scan C 40d61066a71b
cursorrules is a cursor rule published in the GitHub repository sandraschi/devices-mcp (2 stars, last pushed 15d ago), licensed MIT. It adds 720 tokens to every session, about $0.0036 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
typescript
Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.
coolify-ai-docs
Master reference to all Coolify AI documentation in .ai/ directory.
python_lib
Tips and guidelines specific to the development of the Streamlit Python library, not applicable to scripts and e2e tests.
specs
This directory contains product and tech specs for Streamlit features.