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/teamshared-ai/teamshared-pluginWrote 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/teamshared-ai/teamshared-plugin/teamshared)<a href="https://agentmods.dev/rules/teamshared-ai/teamshared-plugin/teamshared"><img src="https://agentmods.dev/badge/rules/teamshared-ai/teamshared-plugin/teamshared/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/teamshared-ai/teamshared-plugin/teamshared"><img src="https://agentmods.dev/badge/rules/teamshared-ai/teamshared-plugin/teamshared.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.02515 | $0.02515 |
| Opus 5.5 | $0.01006 | $0.01006 |
| Sonnet 5.5 | $0.00503 | $0.00503 |
| Haiku 4.5 | $0.00251 | $0.00251 |
Grade A, and why
teamshared 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 15d 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 — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.
teamshared Memory Protocol
The teamshared MCP server is your durable brain across sessions and repos.
Authenticated identity sets write attribution; do not pass agent unless you
intentionally override it or narrow a read filter. On Cursor desktop, connect
with OAuth (Settings → Tools & MCP → Connect, email + OTP) — no API key in
mcp.json. Grok Bot iOS native Connect is unsupported; sign in from Desktop
Cursor instead. Cloud / Grok Bot agents inherit that account-level Connect;
the one-time setup is Settings → Tools & MCP → teamshared → Connect. Durable
backup if Connect does not follow the agent: one org tsk_ on the MCP
headers (Authorization: Bearer tsk_…), same as Codex. Do not call
mcp_auth as the first hop — it is a last-resort fallback after initialize
when the host has no token. Other harnesses use a tsk_* bearer. Point
humans at the console (/app) for sign-in, wiki, people, and keys.
Unsure which tool? Call memory_tools_catalog(need="<intent>") — do not scan
every MCP descriptor, and do not call scope="memory", tier="core" as the only
discovery path (that hides files and projects).
Staying current
On the first turn of a chat (or when the user asks about teamshared
versions), call version with this rule's frontmatter version (1.31.0) as
installed_rule_version, not every turn. If update_available: true, tell the
user to update the teamshared plugin (never write a local .cursor/rules/ copy;
non-plugin clients use rule_markdown). Never invent a version.
Every turn
Run in order:
memory_session_ensure(repo=..., topic=..., fresh=<first turn>, user=<request>)— recovers or rotates the session and appends the substantive user request.fresh=trueonly on the first turn of a new chat (or a clear mid-chat pivot). Bound work (console Chat bind, named work id, oragent_run_*context) → passwork_id=; else a named playbook →playbook_slug=. Omit both when unbound — never dump the playbook catalog. Adopt non-emptysoul(private human),agent_memory(org-shared Agent), andplaybook{name, description, body_md, slug}from the ensure payload.memory_recall(...)for keyword search (architecture, debugging, past work). Named playbook/skill/entity → get-by-name, not recall. Resume handoff:memory_changes_since(cursor=...)for durable deltas (opaque cursor); stillmemory_recallfor search. A recalled line cut off with…that matters →memory_get(ids=[<id from its [m:…] tag>]), not a new recall.- Do the work.
context_commit(summary=..., facts=[...], repo=..., github=..., close=<done?>)— last MCP call of the turn.close=truewhen the task is done or the user says goodbye (queues distillation). Adoptreopened: truesession ids.
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.
- 15d ago Changed · +1 lines · +36 tokens per session 250228e7f015
- 1mo ago Changed · -1 lines · -22 tokens per session 718825a0eaa2
- 1mo ago Changed · +2 lines · +39 tokens per session e3c9cf80c0dc
- 1mo ago Changed · +7 tokens per session 7a4ebee00170
- 1mo ago Changed · +12 lines · +257 tokens per session 4e3e4f061fc7
- 1mo ago Changed · +2 lines · +22 tokens per session bff265016615
- 1mo ago Changed · +7 lines · +138 tokens per session d7385ffadf0f
- 1mo ago Changed · +6 lines · +89 tokens per session 3c2daafb5853
- 1mo ago Changed · +3 lines · +76 tokens per session f03f542c58bb
- 1mo ago First seen · 160 lines · 1,873 tokens per session scan A de6bac5420e0
teamshared is a cursor rule published in the GitHub repository teamshared-ai/teamshared-plugin (0 stars, last pushed 16d ago), licensed MIT. It adds 2,515 tokens to every session, about $0.0101 per session on Opus 5.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
mempalace-recall-always
Always-on MemPalace recall — search the palace before answering about past work, people, projects, or prior decisions.
dreamd-recall
Search dreamd at the start of a task and quote a hit. Append when the user corrects you or states a decision.
session-memory
Use at conversation wrap-up or when the user explicitly indicates end-of-session — capture residual lessons not captured in-flight.
common_memory_bank
I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read…
self-improving-obsidian-llm-wiki
LLM Wiki OS operating rules.
memsprout
Cursor rule "memsprout" from memsprout/agents, covering using memsprout, search first, capturing, spaces and topics and files.