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/davis7dotsh/better-context/better_contextgit clone --depth 1 https://github.com/davis7dotsh/better-contextWhat 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.01939 | $0.01939 |
| Opus 5 | $0.00970 | $0.00970 |
| Sonnet 5 | $0.00388 | $0.00388 |
| Haiku 4.5 | $0.00194 | $0.00194 |
Grade A, and why
better_context 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.
How it starts
The opening of the file, as written. The whole thing — 236 lines — stays where its author put it; the contents beside it link to each section on GitHub.
btca – Better Context Agent
btca queries local clones of library/framework repositories to answer questions with up-to-date, source-first information. Use it instead of web searches when the user needs accurate, current details about technologies.
When to Use btca
- User asks "how does X work in Svelte 5?" or similar framework/library questions
- User needs current API behavior that may differ from your training data
- User explicitly says "use btca" or references a configured resource
- You need to verify syntax or patterns for a specific library version
Agent Behavior
- Prefer
btca askover the interactive TUI (agents can't operate TUIs reliably) - Ask for missing information – if the user wants to add/change resources or models but doesn't provide all required details, ask them before running commands
- Run
btca resourcesfirst if you're unsure which resources are available
- If unsure what's configured:
btca resources - If missing: add it with
btca add --name svelte --type git --url https://github.com/sveltejs/svelte --branch main
btca ask (Primary Command for Agents)
btca ask --resource <resource> --question '<question>'- For multiple resources:
btca ask --resource svelte --resource effect --question '<question>' - You can also use @mentions in the question:
btca ask --question 'How do @svelte stores work?'
| Flag | Required | Description |
|---|---|---|
-q, --question <text> |
Yes | The question to ask |
-r, --resource <name...> |
No | Resource(s) to search; repeatable. If omitted, uses all configured resources |
Features:
- Supports
@mentionsin the question:btca ask -q "@svelte @tailwind How do I style components?" - Combine
-rflags with@mentions; duplicates are deduplicated
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 · 236 lines · 1,939 tokens per session scan A 8bb1bdadb9ab
better_context is a cursor rule published in the GitHub repository davis7dotsh/better-context (1,157 stars, last pushed 4mo ago), licensed MIT. It adds 1,939 tokens to every session, about $0.0097 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
librechat-documentation
When updating the LibreChat config version (e.g., from v1.2.6 to v1.2.7), follow these steps.
cursorrules
DO NOT use Read File, grep, ripgrep, cat, find, or any filesystem search tool for code exploration. These tools exist in your IDE but they are WRONG for this codebase. You have MCP tools that are faster, smarter, and return ranked, contextual results.
team-brain
Team Brain sync mode — one start per ticket, then live merge-safe crew memory. Always-on when .team-brain exists or work mentions an initiative/Jira key.
repo-context-mcp
Route repo-context-mcp calls through context broker first.
engineer-brain
Your engineering brain context — always-on awareness of work patterns, career history, expertise, and current focus. Loaded automatically for personalized assistance.
pudo-understand
Use when inspecting an existing repo before changing files.