cursor

cursor is a cursor rule for Cursor from omtodkar/librarian. It costs 227 tokens per session, scanned A, a copy of librarian, MIT.

A project rule for Librarian, a tool that searches a codebase by meaning and maps connections between code and documentation.

In plain words
What is it for?
Use it to search topics, get a briefing on how something works, inspect related code, trace paths between components, and orient yourself with a graph report.
Why use it?
It helps you find relevant information without guessing filenames or reading files one by one.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to search topics, get a briefing on how something works, inspect related code, trace paths between components, and orient yourself with a graph report.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/omtodkar/librarian/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.

Clone the repo
git clone --depth 1 https://github.com/omtodkar/librarian

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 cursor

README.md
[![agentmods](https://agentmods.dev/badge/rules/omtodkar/librarian/cursor/github.svg)](https://agentmods.dev/rules/omtodkar/librarian/cursor)
Your own site
<a href="https://agentmods.dev/rules/omtodkar/librarian/cursor"><img src="https://agentmods.dev/badge/rules/omtodkar/librarian/cursor/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.

agentmods 80×15 button for cursor

Your own site · 80×15
<a href="https://agentmods.dev/rules/omtodkar/librarian/cursor"><img src="https://agentmods.dev/badge/rules/omtodkar/librarian/cursor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 227 This file is loaded in full into every session.
When invoked 227 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00227 $0.00227
Opus 5.5 $0.00091 $0.00091
Sonnet 5.5 $0.00045 $0.00045
Haiku 4.5 $0.00023 $0.00023

Measured 1mo ago against content hash b6446b7a7a3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

Origin

This is a copy

100% identical to librarian — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

internal/install/templates/pointers/cursor.mdc · 29 lines

What it actually says

Librarian

This project uses Librarian for semantic search and graph-based code navigation. State lives in .librarian/.

When to use Librarian

Before grep, find, or opening files at random, try:

  • librarian search "<topic>" — semantic search over docs + code
  • librarian context "<topic>" — deep briefing: related docs + code refs
  • librarian neighbors <node> — what does X connect to?
  • librarian path <from> <to> — how do these pieces relate?

For architecture or "how does X work" questions, librarian context returns a curated briefing — faster and denser than reading files one by one.

Graph report

.librarian/out/GRAPH_REPORT.md is a topology snapshot. Read it first when orienting in an unfamiliar area of the codebase.

See .librarian/rules.md for the authoritative guidance.

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. 1mo ago First seen · 29 lines · 227 tokens per session scan A b6446b7a7a3a

Subscribe to this mod's changes

cursor is a cursor rule published in the GitHub repository omtodkar/librarian (3 stars, last pushed 5mo ago), licensed MIT. It adds 227 tokens to every session, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to librarian, differing in 0 lines, and is treated as a copy.