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/mannansaood/termi/cursorrulesgit clone --depth 1 https://github.com/MannanSaood/termiWhat 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.00922 | $0.00922 |
| Opus 5 | $0.00461 | $0.00461 |
| Sonnet 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 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.
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.
- yesterday First seen · 100 lines · 922 tokens per session scan A 15adc7dfef5a
cursorrules is a cursor rule published in the GitHub repository MannanSaood/termi (8 stars, last pushed yesterday), licensed MIT. It adds 922 tokens to every session, about $0.0046 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-31.
Other cursor rules, from other repositories
cursorrules
You are an expert in SceneView, the #1 open-source 3D & AR SDK for Android and iOS.
compose-accessibility
Compose accessibility rules for TalkBack — icons, headings, Canvas, live regions, focus, modals, and attribute preservation.
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.
compose-ui
Compose UI conventions — Material 3, recomposition optimization, Compose-only UI, theming.
android-viewmodel
Android ViewModel conventions — StateFlow, repository abstraction, coroutines, no LiveData.