Overview

Overview is a cursor rule for Cursor from StratoKit/strato-db. It costs 855 tokens per session, scanned A, original, MIT.

A project reference document describing StratoDB, a database built on SQLite that stores document-like data and records changes as an ordered event history. It explains the main layers and concepts of the codebase.

In plain words
What is it for?
Use it when working on StratoDB's storage, event processing, document models, or SQLite-based architecture.
Why use it?
It gives an agent the background needed to understand the project's unusual database design before changing code.

Cursor rule for Cursor

Written for Cursor: installed under .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/stratokit/strato-db/overview
Clone the repo
git clone --depth 1 https://github.com/StratoKit/strato-db

Made for: Cursor.

Wrote 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.

agentmods badge for Overview

README.md
[![agentmods](https://agentmods.dev/badge/rules/stratokit/strato-db/overview.svg)](https://agentmods.dev/rules/stratokit/strato-db/overview)
Your own site
<a href="https://agentmods.dev/rules/stratokit/strato-db/overview"><img src="https://agentmods.dev/badge/rules/stratokit/strato-db/overview.svg" alt="Measured on agentmods" height="20"></a>
Per session 855 This file is loaded in full into every session.
When invoked 855 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.1 $0.00855 $0.00855
Opus 5 $0.00428 $0.00428
Sonnet 5 $0.00171 $0.00171
Haiku 4.5 $0.00085 $0.00085

Measured yesterday against content hash e04164311778, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Overview 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.

.cursor/rules/Overview.mdc · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

StratoDB Project Overview

Version: 3.11.0 (from package.json) Description: NoSQL-hybrid with Event Sourcing based on sqlite.

This document provides a high-level overview of the strato-db codebase, intended for AI agent understanding.

Core Concepts

StratoDB is a database system built on SQLite that combines features of NoSQL document stores with the principles of Event Sourcing.

  • Document Storage (JsonModel): Objects are stored in SQLite tables, often with a primary JSON blob column and potentially indexed virtual columns extracted from the JSON structure.
  • Event Sourcing (EventSourcingDB, ESModel, EventQueue): Changes to the database state are driven by a sequence of events recorded in a persistent queue (history table by default). Instead of direct mutation, operations generate events, which are then processed sequentially and atomically to update the database state.
  • Layered Architecture:
    • DB Module: Low-level SQLite interaction wrapper (Promises, prepared statements).
    • JsonModel Module: ORM-like layer for interacting with tables as document stores.
    • EventQueue Module: Persistent queue for storing and retrieving events.
    • EventSourcingDB Module: Orchestrates the event processing pipeline, applying events to ESModel instances.
    • ESModel Module: Connects JsonModel to the event sourcing system by translating operations into events and providing default event handlers.

Project Structure

.
├── .cursor/rules/         # AI-readable documentation (GENERATED)
│   ├── DB.mdc
│   ├── EventQueue.mdc
│   ├── EventSourcingDB.mdc
│   ├── JsonModel.mdc
│   └── Lib.mdc
├── src/
│   ├── DB/                # Core SQLite wrapper and abstractions
│   ├── EventQueue.js      # Event queue implementation
│   ├── EventSourcingDB/   # Event Sourcing orchestration and ESModel
│   ├── JsonModel/         # Document store ORM layer
│   ├── lib/               # Utility functions
│   └── index.js           # Main library export
├── dist/                  # Compiled output (JS)
├── types.d.ts             # Main TypeScript definition file
├── package.json           # Project metadata, dependencies, scripts
├── tsconfig.json          # TypeScript configuration
├── vite.config.ts         # Vite build/test configuration
├── Readme.md              # User-facing README
└── ... (config files, tests, etc.)

Read the full file on GitHub · 73 lines

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. yesterday First seen · 73 lines · 855 tokens per session scan A e04164311778

Subscribe to this mod's changes

Overview is a cursor rule published in the GitHub repository StratoKit/strato-db (14 stars, last pushed 6mo ago), licensed MIT. It adds 855 tokens to every session, about $0.0043 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-09-04.