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/airweave-ai/airweaveWrote 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/airweave-ai/airweave/connector-cursors)<a href="https://agentmods.dev/rules/airweave-ai/airweave/connector-cursors"><img src="https://agentmods.dev/badge/rules/airweave-ai/airweave/connector-cursors/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/airweave-ai/airweave/connector-cursors"><img src="https://agentmods.dev/badge/rules/airweave-ai/airweave/connector-cursors.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.01490 |
| Opus 5 | $0.00000 | $0.00745 |
| Sonnet 5 | $0.00000 | $0.00298 |
| Haiku 4.5 | $0.00000 | $0.00149 |
Grade A, and why
connector-cursors 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 10d 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 — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Connector Cursors - Typed Incremental Sync
Overview
Cursors enable incremental syncs by tracking progress between executions using typed Pydantic schemas. Instead of untyped dicts, each source defines a cursor schema with validated fields.
Architecture
Lifecycle
1. SyncFactory loads cursor from DB → instantiates typed Pydantic schema
2. Factory injects cursor into source via source.set_cursor()
3. Source reads cursor.data (dict), updates with cursor.update(**fields)
4. Orchestrator saves cursor.get() back to DB after sync
Key Components
- Cursor Schema (
platform/cursors/{source}.py): Pydantic model defining cursor structure - Runtime Cursor (
SyncCursor): Wrapper providingupdate()anddataAPI - Source Decorator:
cursor_class=MyCursorlinks source to schema (direct class reference, not string!)
Creating a Cursor Schema
Create a Pydantic model in platform/cursors/{source_name}.py:
from pydantic import Field
from ._base import BaseCursor
class GmailCursor(BaseCursor):
"""Gmail incremental sync cursor using history API."""
history_id: str = Field(default="", description="Gmail history ID")
Common patterns:
Single field (API token):
class GoogleDriveCursor(BaseCursor):
start_page_token: str = Field(default="", description="Drive Changes API token")
Multiple fields (per-resource):
class AirtableCursor(BaseCursor):
table_cursors: Dict[str, str] = Field(
default_factory=dict,
description="Per-table cursor values (table_id -> last_modified_time)"
)
Complex composite (metadata + per-resource):
class OutlookMailCursor(BaseCursor):
delta_link: Optional[str] = Field(None, description="Primary delta link")
folder_delta_links: Dict[str, str] = Field(default_factory=dict)
folder_names: Dict[str, str] = Field(default_factory=dict)
Using Cursors in Sources
1. Import and Register Cursor
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.
- 10d ago First seen · 241 lines · 1,490 tokens per session scan A ba9335e6f96b
connector-cursors is a cursor rule published in the GitHub repository airweave-ai/airweave (6,564 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,490 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-30.
Other cursor rules, from other repositories
gateway
Messenger gateway architecture, session store, and Telegram adapter conventions.
nestjs-best-practices
../../.claude/rules/nestjs-best-practices.md.
provider
The provider package defines the core interfaces and base classes that all AI providers must implement. It provides a unified abstraction layer for different AI services.
backend-rules
A Cursor rule named backend-rules covering backend development, project structure, technology choices, runtime environment, and main process. Cursor is a coding editor with rules that guide how an agent works in a project.
ddd-design-guide
Apply when designing or refactoring domain models, services, stores, or discussing DDD (Domain-Driven Design) architecture. Also apply when working on business logic layers, API modules, or planning domain boundaries and migrations.
external-control-api
A set of rules for the basic architecture and external contract of a control API. An API is a defined way for software systems to communicate.