Receber por email
← Voltar para o catálogo

claude-teams-brain

Persistent cross-session memory for Claude Code Agent Teams. Use when spawning agent teams, reviewing past work, or when context from previous sessions is needed. Auto-activates for agent team workflows.

27estrelas
Atualizado há 7 meses

Ver no GitHub ↗

Como adicionar

/plugin marketplace add Gr122lyBr/claude-teams-brain

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/claude-teams-brain-mrngjs5k/svg)](https://www.skillteca.com.br/skills/claude-teams-brain-mrngjs5k)
#ai

Skills relacionadas

Ver todas de DevOps e Infra →

Alerta por categoria

Receba novas skills de DevOps e Infra toda segunda

1 email curto, só com as skills novas de DevOps e Infra. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

claude-teams-brain Skill

What it does

claude-teams-brain automatically indexes everything Agent Teams produce — tasks completed, files touched, decisions made — and injects role-specific memory into each new teammate via SubagentStart hooks.

When to use

  • Always active during Agent Team sessions (hooks fire automatically)
  • Use /brain-status to see what's been indexed before starting a new team
  • Use /brain-query <role> to preview what context a new teammate would receive
  • Use /brain-runs to review past sessions

Plan mode for complex tasks

Before spawning a team, assess task complexity. Use plan mode when:

  • The task spans 3+ independent areas (backend, frontend, database, etc.)
  • Architecture or approach decisions need to be made before implementation
  • You need to identify which subtasks can run in parallel vs sequentially

Workflow:

  1. Enter plan mode with EnterPlanMode
  2. Break the task into subtasks — label each with a role name and mark dependencies
  3. Identify which subtasks have no dependencies → these can run in parallel
  4. Exit plan mode with ExitPlanMode, then spawn agents

Parallel agent spawning

Independent subtasks must be spawned in parallel — send multiple Task tool calls in a single message. Never wait for one agent to finish before starting another unrelated agent.

Spawn these three agents simultaneously in a single message:
- backend: implement REST endpoints for /users and /posts
- frontend: build the React components for the user profile page
- tests: write integration tests for the existing auth flow

Parallelism rules:

  • No dependency on each other → spawn in parallel (same message)
  • Depends on another agent's output → spawn sequentially after that agent completes
  • Agents share context via the brain KB — use index() to share findings across parallel agents

How to spawn a memory-aware Agent Team

When creating a team, the brain works automatically. Just spawn your team normally:

Create an agent team. Spawn three teammates:
- backend: implement the API endpoints
- frontend: build the React components
- tests: write integration tests

Each teammate automatically receives:

  1. Their past work history (tasks completed in this project)
  2. Key decisions the team has made across all sessions
  3. Files they've previously worked on
  4. Project conventions and rules

Tips for better memory

  • Use descriptive agent names matching their role (backend, database, security)
  • Let tasks complete naturally so the TaskCompleted hook fires and indexes the work
  • The brain gets richer every session — first run is cold, second run onwards gets context
  • Use /brain-remember <rule> to manually inject rules into every future teammate

What gets auto-indexed at session start

Every session, the brain automatically indexes into the KB:

  • CLAUDE.md — project instructions
  • Git log — last 20 commits
  • Directory tree — project structure
  • Config files — package.json, requirements.txt, go.mod, etc.
  • Convention files — CONVENTIONS.md, AGENTS.md, .cursorrules
  • Stack conventions — auto-detected and seeded on first session (Next.js, FastAPI, Go, etc.)

MCP Tools for teammates

Teammates have five MCP tools to keep output out of their context window:

| Tool | When to use | |------|-------------| | batch_execute | Default for shell commands. Run 2+ commands in one call; all output auto-indexed and searchable. Always include queries. | | search | Follow-up queries against already-indexed output — no commands re-run. | | index | Manually store findings or analysis for yourself and teammates. | | execute | Single command/script. Set intent for large output — auto-indexes instead of returning raw. | | stats | Check bytes indexed vs returned; verify context savings. |

Standard workflow for teammates

1. batch_execute(commands=[...], queries=["what I need to know"])
   → runs commands, indexes all output, returns search results

2. search(queries=["follow-up question"])
   → searches indexed KB without re-running anything

3. index(content="key finding", source="my-analysis")
   → saves conclusion for teammates to search

All teammates share the same session KB — one teammate's indexed output is searchable by others.

Example batch_execute call

{
  "commands": [
    {"label": "tests", "command": "npm test 2>&1"},
    {"label": "git-log", "command": "git log --oneline -20"},
    {"label": "deps", "command": "npm list --depth=0"}
  ],
  "queries": ["failing tests", "recent auth changes", "outdated packages"]
}

Memory location

All data stored locally at ~/.claude-teams-brain/projects/<project-hash>/brain.db Never sent anywhere. Fully offline. SQLite — inspectable with any SQLite viewer.

Resetting

Use /brain-clear to wipe memory for this project and start fresh.

Compartilhar X LinkedIn