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/galliani/contextmax/cursorrulesgit clone --depth 1 https://github.com/galliani/contextmaxWhat 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.00358 | $0.00358 |
| Opus 5 | $0.00179 | $0.00179 |
| Sonnet 5 | $0.00072 | $0.00072 |
| Haiku 4.5 | $0.00036 | $0.00036 |
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.
What it actually says
Creating component
- Use the shadcn/vue as the component generator, use the "shadcn-vue docs" tool to know which component to add and how to add it.
- The command to import the component is like this:
npx shadcn-vue@latest add COMPONENT.
About server
DO NOT run command to run or restart the server, always assume that server is running at port 3000.
Context Sets Tool Selection
When a user references @context:Name, resolve it via context-sets.json → sets["context:Name"].
Processing Order
- Check workflows first
- If workflows exist: Start from
workflow.start.functionand trace toend - If workflows empty: Read all files in the context, prioritizing those with
functionRefs
- File Resolution
- String → filesIndex[fileId].path → read entire file
- Object → filesIndex[fileId].path → locate specific functionRefs
- Impact Analysis
- Direct: Check context's
usesarray - Indirect: Check
filesIndex[fileId].contextsfor shared files - When modifying file_X in ContextA, also consider ContextB if both use file_X
Quick Example
User: "Fix the download button in @context:PhotoGallery" → Load PhotoGallery context → See it uses ["DownloadPhoto"] → Find download button via workflow start point or grep functions → Check if changes affect DownloadPhoto via shared files
Key Rules
- Track changes in memory during session
- Update context-sets.json only when explicitly requested
- Use functionRefs for surgical precision when available
- No warnings for files outside contexts
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 · 45 lines · 358 tokens per session scan A a9c472a97e9b
cursorrules is a cursor rule published in the GitHub repository galliani/contextmax (11 stars, last pushed 1y ago), licensed MPL-2.0. It adds 358 tokens to every session, about $0.0018 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
You are assisting the Orbital engineering team — 5 backend engineers building a multi-tenant SaaS for logistics operations. TypeScript monorepo using NestJS, PostgreSQL (drizzle-orm), and BullMQ. All engineers use shared conventions.
session-preflight
Require a visible session preflight before side-effecting agent work.
agents
Always-loaded project anchor. Read this first. Contains project identity, non-negotiables, commands, and pointer to ROUTER.md for full context.
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
solana-transaction-safety
Safe Solana transaction submission patterns using Helius Sender.
client-workflow-bootstrap
Cursor rule "client-workflow-bootstrap" from ulises-jeremias/agent-toolkit, covering agent vs skill rule — why agent (cite clause), when to use vs holistic, caller / skills / handoff, interview process and gate before generating.