english_comments

A coding rule that requires comments and documentation strings to be written in English. Comments explain code to people, while documentation strings describe code for users and tools.

In plain words
What is it for?
Use it when writing or reviewing comments, documentation strings, TODO notes, configuration comments, or automated checks for non-English text.
Why use it?
It keeps the codebase’s explanatory text consistent and readable for an English-speaking development team.

Cursor rule for 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.

agentmods
npx agentmods add rules/modelengine-group/nexent/english_comments
Clone the repo
git clone --depth 1 https://github.com/ModelEngine-Group/nexent

Made for: Cursor.

Per session 238 This file is loaded in full into every session.
When invoked 238 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00238 $0.00238
Opus 5 $0.00119 $0.00119
Sonnet 5 $0.00048 $0.00048
Haiku 4.5 $0.00024 $0.00024

Measured 2d ago against content hash 58be03d0fce7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

english_comments 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 2d 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/english_comments.mdc · 37 lines

What it actually says

English-only Comments

  • All comments and docstrings must be written in clear, concise English.
  • Do not use non-English characters in comments (string literals may contain any language).
  • Use proper grammar and spelling; avoid ambiguous abbreviations.

Do

# Initialize cache for 60 seconds
self.cache_ttl = 60

Don't

# 初始化缓存 60 秒 - FORBIDDEN
# データキャッシュ60秒 - FORBIDDEN
# 데이터 캐시 60초 - FORBIDDEN

Scope

  • Docstrings, inline comments, TODO/FIXME/NOTE, header comments
  • Configuration comments in YAML/JSON and other config files

Validation Checklist

  • All comments are in English
  • Docstrings use proper English grammar
  • No non-Latin characters in comments (except inside strings)
  • Comments are clear and provide value

Optional Automation

  • Pre-commit hook to detect non-English comments
  • IDE extensions for real-time detection
  • CI checks for compliance
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. 2d ago First seen · 37 lines · 238 tokens per session scan A 58be03d0fce7

Subscribe to this mod's changes

english_comments is a cursor rule published in the GitHub repository ModelEngine-Group/nexent (5,841 stars, last pushed 3d ago), licensed MIT. It adds 238 tokens to every session, about $0.0012 per session on Opus 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-30.