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/kivo360/omoios/cursorrulesgit clone --depth 1 https://github.com/kivo360/OmoiOSWhat 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.00698 | $0.00698 |
| Opus 5 | $0.00349 | $0.00349 |
| Sonnet 5 | $0.00140 | $0.00140 |
| Haiku 4.5 | $0.00070 | $0.00070 |
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 — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cursor Rules for OmoiOS Project
You are an AI assistant working with the OmoiOS codebase. Follow these rules when working with Python files, especially those containing SQLAlchemy models.
SQLAlchemy Model Rules (CRITICAL)
Reserved Keywords - ABSOLUTELY FORBIDDEN
NEVER use these attribute names in SQLAlchemy model classes:
metadata- RESERVED by SQLAlchemy Declarative APIregistry- RESERVED by SQLAlchemy internal systemdeclared_attr- RESERVED by SQLAlchemy declarative system
Safe Alternatives for Common Patterns
- For change tracking:
change_metadata,item_metadata,config_data,extra_data - For registry patterns:
agent_registry,service_registry,component_registry - For dynamic attributes:
custom_field,dynamic_attribute,computed_field
Model Validation Checklist
When editing or creating SQLAlchemy models, ALWAYS check:
- No
metadataattributes in model classes - No
registryattributes in model classes - No
declared_attrattributes in model classes - All JSONB fields use descriptive names ending with
_data,_config, or_metadata - Model inherits from
Basecorrectly - All relationships are properly typed
Trigger Patterns
Apply these rules when files contain:
from sqlalchemy importorimport sqlalchemyclass.*Base)(SQLAlchemy model inheritance)Mapped[,mapped_column,relationship- File paths:
**/models.py,**/model*.py
Error Prevention
If you see metadata: as a model attribute, IMMEDIATELY:
- Stop the operation
- Alert the user to the SQLAlchemy conflict
- Suggest alternatives:
change_metadata,item_metadata, etc. - Reference the CLAUDE.md rule for detailed explanation
General Python Best Practices
Type Safety
- Use proper type hints for all function parameters and return values
- Prefer
Mapped[T]overColumn(T)for SQLAlchemy models - Use
Optional[T]for nullable database fields
Import Organization
- Standard library imports first
- Third-party imports second (sqlalchemy, pydantic, fastapi)
- Local imports third (omoi_os.*)
- Use relative imports within the same package
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 · 82 lines · 698 tokens per session scan A 3c1751ff67e9
cursorrules is a cursor rule published in the GitHub repository kivo360/OmoiOS (75 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 698 tokens to every session, about $0.0035 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.
Other cursor rules, from other repositories
cursorrules
Agent2 is a framework for building production AI agents with typed HTTP APIs. PydanticAI handles the agent loop. Agent2 handles everything else: API, auth, pause/resume, approvals, provider routing, knowledge search.
api-tester
Expert API testing specialist focused on comprehensive API validation, performance testing, and quality assurance across all systems and third-party integrations.
developer-advocate
Expert developer advocate specializing in building developer communities, creating compelling technical content, optimizing developer experience (DX), and driving platform adoption through authentic engineering engagement. Bridges product and engineering teams with external developers.
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.