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/Hrithik-Gavankar/brainstackWrote 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/hrithik-gavankar/brainstack/team-brain)<a href="https://agentmods.dev/rules/hrithik-gavankar/brainstack/team-brain"><img src="https://agentmods.dev/badge/rules/hrithik-gavankar/brainstack/team-brain/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/hrithik-gavankar/brainstack/team-brain"><img src="https://agentmods.dev/badge/rules/hrithik-gavankar/brainstack/team-brain.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.01131 | $0.01131 |
| Opus 5.5 | $0.00452 | $0.00452 |
| Sonnet 5.5 | $0.00226 | $0.00226 |
| Haiku 4.5 | $0.00113 | $0.00113 |
Grade A, and why
team-brain 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 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.
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 — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Team Brain — sync mode (mandatory)
If this workspace has .team-brain/ or the user is working on a shared Jira initiative / spike / epic, treat Team Brain as the crew’s shared memory.
Personal BRAIN.md / engineer-brain stay private — never upload those.
Compliance check (MCP-first, soft gate)
Policy: stronger_prompts (not a hard CLI block). Agents must follow it; humans may still use the CLI offline.
EACH TURN on a known Jira key
→ prefer MCP: sync_status / compliance / prepare_research
→ if compliance.agent_action is set → do that BEFORE deep research or ending the turn
→ research_ok must be true before digging into the codebase
(start loads context; else prepare_research / recall)
→ after durable findings → remember(source_ref) in the same turn
CLI mirror:
bash <brainstack>/core/scripts/team-brain-api.sh compliance <JIRA-KEY>
bash <brainstack>/core/scripts/team-brain-api.sh sync-status <JIRA-KEY>
Human entry (one manual step)
When the user starts team work on a ticket — including phrases like:
I'm starting on YOU_JIRA_TICKET_HERE — start Team Brain sync.
I'm starting on YOU_JIRA_TICKET_HERE — start Team Brain sync, summarize crew memory, then help me.
/team-brain start YOU_JIRA_TICKET_HERE
Wake Team Brain sync for YOU_JIRA_TICKET_HERE and continue.
Stop Team Brain sync for YOU_JIRA_TICKET_HERE.
…run the matching command (start / wake / stop):
bash <brainstack>/core/scripts/team-brain-api.sh start <JIRA-KEY>
That loads crew memory into .team-brain/cache/<KEY>.json and starts background pull.
Then you MUST:
- Read the cache /
sync-status(checkcompliance.research_ok) - Summarize crew knowledge (2–5 bullets)
- Only then dig into the codebase
While sync mode is active
EACH TURN on this key
→ touch <KEY> (keeps sync awake)
→ prefer cache; recall / prepare_research if topic-specific search needed
AFTER durable finding
→ remember with stable source_ref (KEY#slug)
→ identical body = no-op; same source_ref + new body = UPDATE (merge)
→ never invent a second row for the same topic slug
→ body style: natural prefer/avoid guidance — never TODO/NO-TODO dumps
ON HUMAN CORRECTION (bad research / wrong sync summary)
→ treat as ground truth; do not argue
→ correct(source_ref, corrected_body) or re-remember same source_ref → UPDATE
→ optional learning at source_ref/learning (was wrong → prefer …)
→ prior body archived; history/restore for soft rollback if needed
→ delete(source_ref) to tombstone poisoned context (member/admin only)
→ redundant_candidate on remember → recall + same source_ref, or queue for admin (pending approve <pending-id>)
LONG SESSION (do not spam every turn)
→ after a long research block, OR about every 8–10 turns on this key
→ quiet recall / prepare_research (or summarize notify/<KEY>.json if updated)
→ optional once-per-spike: suggest background `watch <KEY> &` (poll or --push)
→ at most one soft nudge per stretch — never nag every turn
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 Changed · +2 lines · +76 tokens per session 456f71679e92
- 1mo ago First seen · 111 lines · 1,055 tokens per session scan A de412cc7d061
team-brain is a cursor rule published in the GitHub repository Hrithik-Gavankar/brainstack (24 stars, last pushed 19d ago), licensed MIT. It adds 1,131 tokens to every session, about $0.0045 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
project-memory
This rule guides recording project events and decisions in projectmem.
decision-logger
Two-layer memory architecture for board meeting decisions. Manages raw transcripts (Layer 1) and approved decisions (Layer 2). Use when logging decisions after a board meeting, reviewing past decisions with /cs:decisions, or checking overdue action items with /cs:review. Invoked automatically by the board-meeting…
jarvis-agent-rules
MCP server jarvis: notes, Jira, knowledge graph, sessions, preferences.
project-with-reflect
Use project-with-reflect persistent project memory and reflection workflow.
checkpoint
Persistent memory archival — save discoveries to prevent amnesia across sessions.
state-memory-mcp
This project tracks workflow state, tasks, design decisions, and blockers using state-memory-mcp with project slug "webcrypt".