Borrowing it
Nothing to install: this file belongs to MannanSaood/termi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/MannanSaood/termi/main/.cursorrulesgit clone --depth 1 https://github.com/MannanSaood/termiWrote 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/mannansaood/termi/cursorrules)<a href="https://agentmods.dev/rules/mannansaood/termi/cursorrules"><img src="https://agentmods.dev/badge/rules/mannansaood/termi/cursorrules/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/mannansaood/termi/cursorrules"><img src="https://agentmods.dev/badge/rules/mannansaood/termi/cursorrules.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.00922 | $0.00922 |
| Opus 5.5 | $0.00369 | $0.00369 |
| Sonnet 5.5 | $0.00184 | $0.00184 |
| Haiku 4.5 | $0.00092 | $0.00092 |
Grade A, and why
cursorrules 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.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Next-Gen Terminal Project Rules
Project Context
This is a cross-platform terminal emulator with:
- Rust core (PTY, VFS, ANSI parsing)
- Android: Kotlin + Jetpack Compose
- iOS (future): Swift + SwiftUI
- JNI/FFI bridges between native and platform code
Architecture
- Rust core is platform-agnostic
- Platform-specific code in android/ and ios/
- VFS abstracts over Android SAF and iOS file picker
- Session state tracks process lifecycle
Critical Safety Rules
JNI Safety (MANDATORY)
- NEVER use unwrap() in JNI boundary code
- ALWAYS check for JNI exceptions after call_method():
if env.exception_check().unwrap_or(false) {
env.exception_describe().ok();
env.exception_clear().ok();
return error_code;
}
- ALWAYS validate handles before dereferencing
- Use safe wrappers from rust/src/jni_safe.rs
- Return error codes, never panic across FFI
VFS Safety (MANDATORY)
- ALWAYS check capabilities before operations:
if !vfs.supports(path, VfsOperation::Chmod) {
// Handle gracefully
}
- Warn users about SAF limitations in UI
- Cache metadata to avoid slow ContentResolver calls
- Batch operations when possible
Session State (MANDATORY)
- Track session state everywhere (Active/Checkpointed/Restored/Failed)
- Checkpoint state periodically and on background
- Show state clearly in UI
- Design for "expect to die" not "hope to survive"
Code Style
- Rust: Follow rustfmt defaults
- Kotlin: Follow ktlint defaults
- Error handling: Use Result<T, E>, not panic
- Logging: Use log crate (Rust) and Timber (Android)
Documentation
- Reference docs/LIMITATIONS.md for constraints
- All public functions need doc comments
- Explain WHY not just WHAT in complex code
Testing
- Unit tests for all core logic
- JNI safety tests mandatory
- Test on Samsung/Xiaomi devices before claiming stability
When Suggesting Code
- Show complete examples with error handling
- Use safe patterns from jni_safe.rs
- Explain Android/iOS platform differences
- Point out performance implications
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 · 100 lines · 922 tokens per session scan A 15adc7dfef5a
cursorrules is a cursor rule published in the GitHub repository MannanSaood/termi (10 stars, last pushed yesterday), licensed MIT. It adds 922 tokens to every session, about $0.0037 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.
Other cursor rules, from other repositories
compose-coroutines
Compose scroll/coroutine patterns — prevent programmatic scroll from being mistaken for user scroll, cancellation-safe flag resets.
ios-viewmodel
ViewModels conform to ObservableObject and expose state via @Published properties.
android-viewmodel
Android ViewModel conventions — StateFlow, repository abstraction, coroutines, no LiveData.
shared-module
KMP shared module constraints — no platform imports in domain/, expect/actual conventions, pure Kotlin business logic.
cursorrules
You are a senior Android developer. Follow these rules strictly when writing or modifying Android/Kotlin code.
compose-core
Modern Android development rules: Kotlin 2.x with K2, Jetpack Compose, Material 3, state hoisting + StateFlow + collectAsStateWithLifecycle, Hilt with hiltViewModel(), type-safe Navigation Compose, KSP, Version Catalogs, Compose Compiler as Kotlin plugin.