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/priyans-hu/tokenmeter/cursorrulesgit clone --depth 1 https://github.com/Priyans-hu/tokenmeterWhat 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.00303 | $0.00303 |
| Opus 5 | $0.00151 | $0.00151 |
| Sonnet 5 | $0.00061 | $0.00061 |
| Haiku 4.5 | $0.00030 | $0.00030 |
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
You are working on TokenMeter, a macOS menu bar app for tracking Claude Code usage.
Tech Stack
- Swift 5.9+, SwiftUI, macOS 14+
- Swift Package Manager (no Xcode project)
- Swift Concurrency (async/await, actors, @MainActor)
Build
cd TokenMeter && swift build -c release
Key Files
- TokenMeterApp.swift — MenuBarExtra app entry
- UsageViewModel.swift — @MainActor ObservableObject, state management
- Services/NativeUsageParser.swift — JSONL parser for ~/.claude/projects/
- Services/UsageAPIService.swift — Keychain reader + Anthropic API client
- Models/UsageSummary.swift — All data models and ClaudePlan enum
- Views/ — SwiftUI views (dashboard, rate limits, heatmap, charts, settings)
Patterns
- UsageAPIService is an actor (thread-safe)
- UsageViewModel is @MainActor (UI-bound)
- API + local JSONL parsing run concurrently via async let
- API data preferred for rate limits, local JSONL for costs/breakdowns
- UserDefaults for caching and settings persistence
- UNUserNotificationCenter for rate limit alerts
Guidelines
- Keep the app lightweight — it runs in the menu bar
- No Xcode project files — use SPM only
- macOS 14+ minimum (for MenuBarExtra)
- Verify changes compile: swift build -c release
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 · 32 lines · 303 tokens per session scan A 5b1552c1576c
cursorrules is a cursor rule published in the GitHub repository Priyans-hu/tokenmeter (5 stars, last pushed 5mo ago), licensed MIT. It adds 303 tokens to every session, about $0.0015 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-31.
Other cursor rules, from other repositories
ios-tracker-blocking-implementation
This document provides a comprehensive overview of how content blocking has been implemented on iOS to protect user privacy and block tracking attempts. Our implementation uses a dual-approach strategy that combines the efficiency of WebKit's native content blocking with the flexibility of JavaScript-based protection.
feature-flags-addition
Interactive pattern for adding feature flags to iOS and/or macOS with proper configuration.
design-system-designresourceskit
The DuckDuckGo iOS design system is implemented through DesignResourcesKit (DRK), a shared Swift package that contains our design tokens, type styles, colors, and design system elements.
pixel-definitions
Rules for creating and maintaining pixel definition JSON5 files that document pixels fired by the iOS and macOS apps.
anti-patterns
Example: See singleton-antipattern.swift.
browserserviceskit-integration
BrowserServicesKit is the core shared library providing essential browser functionality to both iOS and macOS DuckDuckGo applications. It ensures consistent behavior and code reuse across platforms while maintaining privacy as the primary focus.