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/jondoescoding/jondoescoding-coding-rulesWrote 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/jondoescoding/jondoescoding-coding-rules/redis_rate_limiting)<a href="https://agentmods.dev/rules/jondoescoding/jondoescoding-coding-rules/redis_rate_limiting"><img src="https://agentmods.dev/badge/rules/jondoescoding/jondoescoding-coding-rules/redis_rate_limiting/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/jondoescoding/jondoescoding-coding-rules/redis_rate_limiting"><img src="https://agentmods.dev/badge/rules/jondoescoding/jondoescoding-coding-rules/redis_rate_limiting.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.00015 | $0.06308 |
| Opus 5.5 | $0.00006 | $0.02523 |
| Sonnet 5.5 | $0.00003 | $0.01262 |
| Haiku 4.5 | $0.00002 | $0.00631 |
Grade A, and why
redis_rate_limiting scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
import urllib.parse How it starts
The opening of the file, as written. The whole thing — 840 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Redis Rate Limiting Implementation Guide
This rule provides a comprehensive guide for implementing Redis-based rate limiting across platforms, with specific focus on Redis Cloud authentication and FastAPI integration.
📚 BEGINNER'S GUIDE: Understanding Rate Limiting Components
What is Rate Limiting? (Start Here!)
Rate limiting is like a bouncer at a club - it controls how many people (API requests) can enter in a given time period. If too many people try to enter at once, the bouncer says "slow down, wait your turn!"
Why do we need it?
- Prevents server overload (like too many people in a small room)
- Protects against abuse (stops bad actors from spamming your API)
- Controls costs (many cloud services charge per request)
- Ensures fair usage (everyone gets a turn)
What is Redis? (The Memory Keeper)
Redis is like a super-fast notepad that lives in your computer's memory. Instead of writing things down on slow paper (hard disk), Redis writes in fast memory (RAM).
Why Redis for Rate Limiting?
- Speed: Faster than a database for simple counting
- Atomic Operations: Can count requests safely even with multiple users
- Expiration: Can automatically forget old counts (like a self-erasing notepad)
- Shared: Multiple servers can use the same Redis instance
What is Resend? (The Email Messenger)
Resend is like a professional postal service for emails. Instead of using your personal email to send notifications, Resend ensures your emails actually reach people's inboxes (not spam folders).
Why Resend for Notifications?
- Deliverability: Emails actually reach recipients
- Professional: Looks official and trustworthy
- Tracking: You can see if emails were delivered
- Templates: Can send beautiful HTML emails
What is FastAPI? (The Web Server Framework)
FastAPI is like a restaurant system that takes orders (API requests), processes them in the kitchen (your code), and serves the results back to customers (API responses).
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.
- 1mo ago First seen · 840 lines · 15 tokens per session scan A 9d50369de208
redis_rate_limiting is a cursor rule published in the GitHub repository jondoescoding/jondoescoding-coding-rules (2 stars, last pushed 2mo ago), licensed MIT. It adds 15 tokens to every session and 6,308 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
module-state-ownership
Module-state ownership & caches built from hot-reloading settings — How mutable module-scope state is owned here, and what caching anything derived from settings() obliges. Canonical file is .agents/rules/module-state-ownership.md.
performance-optimization
A set of Django performance rules for database queries, caching, background work, and static files. Django is a Python web framework.
using-archipy-adapters
Using and writing adapters in ArchiPy apps — extras, ports, test fakes, boundary errors.
services
Mono repo for Draft'n run source code.
full-stack-ship-discipline
Require frontend changes and their DB/RPC/RLS/storage/secret dependencies to ship and be remotely verified together. Apply when implementing code that reads or writes backend state. Do not apply to plan- or present-then-stop audits; production data mutation still requires confirmation.
supabase
Supabase patterns and conventions for this project.