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/ragavrida/agentsmcp/agentmailboxgit clone --depth 1 https://github.com/RagavRida/agentsmcpWhat 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.00912 | $0.00912 |
| Opus 5 | $0.00456 | $0.00456 |
| Sonnet 5 | $0.00182 | $0.00182 |
| Haiku 4.5 | $0.00091 | $0.00091 |
Grade A, and why
agentmailbox 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AgentMailbox Context Sync
You have access to AgentMailbox via MCP tools. Use these tools to maintain persistent context across sessions and coordinate with other agents.
RULE #1: Memory First — ALWAYS
When a user gives you ANY query or task:
- IMMEDIATELY call
agentsmcp_context_briefingwith the user's query as thetaskparameter - Read the returned briefing — it contains relevant files, symbols, decisions, tasks, and relationships from the persistent memory
- If the briefing returns results, USE THEM as your starting context instead of reading raw files
- Only fall back to
grep/view_file/read_filewhen the briefing returns empty results for what you need
This single rule eliminates 95% of wasted input tokens.
On Session Start
Always check for unread messages at the beginning of a session:
- Call
agentsmcp_receiveto get unread messages - If messages exist, summarize the context for the user
- If a relevant thread exists, call
agentsmcp_syncwith the threadId
Context Lookup Priority (use in order)
When you need information about the codebase:
agentsmcp_context_briefing— one-shot task briefing (graph + index combined)agentsmcp_get_index— look up a specific file/symbol by key (200 tokens vs reading full file)agentsmcp_search_index— keyword search across all indexed entries (replaces grep)agentsmcp_query_graph— relationship traversal (find connected files/symbols/decisions)- LAST RESORT:
grep/view_file— only when memory has no entry
During Work — Record Progress
When the user makes important decisions or completes significant tasks:
- Call
agentsmcp_sendto record the decision/progress to the thread - Include structured data:
decisions,filesChanged,status,openQuestions - Include a
contextSnapshotwith the current state
After Modifying Files — Update Memory
When you finish working on a file:
- Call
agentsmcp_upsert_indexwith:key:"file:relative/path.ts"category:"file"summary: ~200-token summary of what the file does, its exports, key functionsmetadata:{ lines, exports, imports, dependencies }
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.
- 2d ago First seen · 102 lines · 912 tokens per session scan A 11ea4a93bfdb
agentmailbox is a cursor rule published in the GitHub repository RagavRida/agentsmcp (1 stars, last pushed 1mo ago), licensed MIT. It adds 912 tokens to every session, about $0.0046 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
token-efficiency
Token efficiency rules - eliminate waste in AI output, enforce read-before-write, prevent iteration cycles.
cursorrules
AgentAnycast is a decentralized P2P runtime for the A2A (Agent-to-Agent) protocol.
gps-skin-ui
/Users/theodoreaddo/.cursor/rules/gps-skin-ui.mdc.
orchestrator-main
Rules for the main orchestrator agent in multi-agent workflows.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.