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.
git clone --depth 1 https://github.com/inboxpraveen/Minimize-Cursor-CostWrote 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/inboxpraveen/minimize-cursor-cost/java-kotlin)<a href="https://agentmods.dev/rules/inboxpraveen/minimize-cursor-cost/java-kotlin"><img src="https://agentmods.dev/badge/rules/inboxpraveen/minimize-cursor-cost/java-kotlin/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/inboxpraveen/minimize-cursor-cost/java-kotlin"><img src="https://agentmods.dev/badge/rules/inboxpraveen/minimize-cursor-cost/java-kotlin.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.00000 | $0.00476 |
| Opus 5.5 | $0.00000 | $0.00190 |
| Sonnet 5.5 | $0.00000 | $0.00095 |
| Haiku 4.5 | $0.00000 | $0.00048 |
Grade A, and why
java-kotlin 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 1mo 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.
What it actually says
Java / Kotlin Rules
Style
- Match existing formatter: Google Java Format / ktlint / detekt — don't reformat unrelated lines.
- Match existing nullability convention:
@Nullable/@NonNull(Java) or platform/nullable types (Kotlin). - Match existing access modifier defaults (e.g.,
internalvspublicin Kotlin modules).
Output
- Single method change → show only that method.
- Class change → show only the changed members. Use
// ... rest of class unchanged. - Don't reprint imports unless adding new ones.
Imports
- Show only new imports.
- No wildcard imports unless the file already uses them.
Kotlin-Specific
- Don't convert Java-style code to idiomatic Kotlin unless asked.
- Don't add
data class/sealed classrefactors as a side-effect. - Match existing scope-function preference (
let,apply,also) — don't add them speculatively. - Don't introduce coroutines into a non-coroutine codebase.
Java-Specific
- Don't add
var(Java 10+) unless surrounding code uses it. - Don't add
recordtypes unless the codebase already has them. - Don't add
Optional<T>unless surrounding code uses it.
Android-Specific (when paths include android/, app/src/, *Activity.kt, etc.)
- Match existing UI framework: View XML, Jetpack Compose, or both — don't mix in a file.
- Don't add a new dependency injection framework if Hilt/Koin/manual is in use.
- Don't add new Gradle plugins without flagging.
Testing
- Match existing test framework: JUnit 4 / JUnit 5 / Kotest. Don't switch.
- Match existing mocking lib: Mockito / MockK. Don't introduce a new one.
Never
- Don't change
finalmodifiers unless asked. - Don't add Lombok annotations to a non-Lombok project.
- Don't refactor builder patterns unless asked.
- Don't introduce reactive streams (RxJava/Reactor/Flow) where there are none.
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.
- 1mo ago First seen · 48 lines · 0 tokens per session scan A 9dd1ac7356dc
java-kotlin is a cursor rule published in the GitHub repository inboxpraveen/Minimize-Cursor-Cost (10 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 476 tokens. 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.
Other cursor rules, from other repositories
kotlin
Kotlin: coroutines, null safety, idiomatic patterns.
swift
Swift patterns: SwiftUI, actors, async/await, value types.
android
Coding rules for native Android applications, including Kotlin, Jetpack Compose, and common application architecture patterns. Android is Google’s mobile operating system; Kotlin is a programming language commonly used for it, and Jetpack Compose is a toolkit for building screens.
kotlin
A set of Kotlin coding rules covering basic principles, naming, function design, classes, and data structures.
android_bak
A set of conventions and recommended practices for native Android development using Kotlin, Java, and Jetpack Compose, Android's toolkit for building user interfaces.
python
A set of rules for native Android development, including Kotlin, Jetpack Compose, and architecture patterns. Kotlin is a programming language, and Jetpack Compose is Android’s toolkit for building interfaces in code.