Help us improve
Share bugs, ideas, or general feedback.
npx claudepluginhub manavarya09/team-brainGit-native shared AI memory for teams. Record lessons, decisions, and conventions that auto-generate CLAUDE.md, .cursorrules, and AGENTS.md. Your AI remembers what your team learned.
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
No description available.
Code intelligence powered by a knowledge graph — execution flows, blast radius, and semantic search
Share bugs, ideas, or general feedback.
Git-native shared AI memory for teams.
Your teammate debugged that issue yesterday. Your team decided on REST over GraphQL last month. Your codebase has conventions that every AI session ignores.
Team Brain fixes this. Record lessons, decisions, and conventions once — they're automatically loaded into every Claude Code session, for every team member. No servers. No accounts. Just git.
AI coding agents are single-player:
.then() anywayCLAUDE.md exists, but it's manually maintained and nobody updates it.
Team Brain stores team knowledge in .team-brain/ and auto-generates a BRAIN.md that Claude reads every session. Commit it to git. Everyone on the team gets the same context.
.team-brain/
├── BRAIN.md # Auto-generated, Claude reads this
├── conventions/
│ └── always-use-async-await.md
├── decisions/
│ └── 001-rest-over-graphql.md
├── lessons/
│ └── 2026-03-30-stripe-webhook-retry.md
└── knowledge/
└── api-rate-limits.md
/team-brain learn Stripe webhooks retry 3 times with exponential backoff
Claude captures the context from your current conversation, creates a structured entry, and regenerates BRAIN.md.
/team-brain decide Use REST over GraphQL for public API
Creates an Architecture Decision Record with Context, Decision, and Consequences sections.
/team-brain convention Always use async/await, never .then() chains
Conventions get highest priority in BRAIN.md — Claude sees them first.
/team-brain recall stripe webhooks
Keyword + fuzzy search across all entries. Returns the most relevant matches with context snippets.
/team-brain onboard
Generates a comprehensive onboarding guide from all team brain entries — conventions, decisions, lessons, and project knowledge in one document.
/team-brain sync # Regenerate BRAIN.md
/team-brain sync cursorrules # Also generate .cursorrules (for Cursor)
/team-brain sync agents # Also generate AGENTS.md (universal standard)
Team Brain includes a SessionStart hook that automatically loads context at the beginning of every Claude Code session. If any entries are newer than BRAIN.md, it regenerates automatically.
git clone https://github.com/Manavarya09/team-brain.git ~/.claude/plugins/team-brain
Add to ~/.claude/settings.json:
{
"hooks": {
"SessionStart": [
{
"hooks": [{
"type": "command",
"command": "bash ~/.claude/plugins/team-brain/hooks/load-brain.sh"
}]
}
]
}
}
/team-brain init
This creates .team-brain/ in your repo root. Commit it to git.
# Initialize team brain in your project
/team-brain init
# Add your first convention
/team-brain convention Use TypeScript strict mode everywhere
# Record a lesson from today's debugging
/team-brain learn React useEffect cleanup runs on unmount AND re-render
# Record an architecture decision
/team-brain decide Use Zod for runtime validation at API boundaries
# Commit and push so teammates get the context
git add .team-brain/ && git commit -m "team-brain: add initial conventions and decisions"
git push
# Pull latest team brain entries
git pull
# Context loads automatically on next Claude Code session
# Or manually sync:
/team-brain sync
/team-brain recall validation # Search for entries about validation
/team-brain recall # Show recent entries
/team-brain status # Show stats and contributor info
Every entry is a markdown file with YAML frontmatter:
---
title: Stripe webhooks retry 3 times with exponential backoff
type: lesson
author: manavarya
date: 2026-03-30
tags: [stripe, webhooks, payments]
status: active
---
## Context
Spent 2 hours debugging why payment confirmations were duplicated.
## Detail
Stripe retries failed webhook deliveries 3 times over 24 hours.
Our handler wasn't idempotent, causing duplicate order processing.
Fixed by checking idempotency key before processing.
## Related
- PR #47: Add idempotency check to webhook handler