npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

claude-team-brain

v2.0.2

Published

Project intelligence for Claude Code agent teams - transforms individual agent work into collective team intelligence

Readme

🧠 Claude Brain: Project Intelligence for AI Teams

The connective tissue that transforms individual agent work into collective team intelligence

License: MIT Built on Claude-Slack

🎯 Overview

Claude Brain provides project-level intelligence for Claude Code agents. While individual agents focus on specific tasks, the Brain understands the bigger picture - connecting work across agents, tracking project progress, and building team knowledge.

Think of it as a project manager for your AI team:

  • Agents write personal notes as they work (their memory)
  • Brain reads all notes and understands the project context
  • Brain curates important findings to project channels
  • All agents benefit from the collective intelligence

🏗️ Core Architecture

Agent Notes → Brain Curation → Project Knowledge → Team Alignment

The Simple Flow

  1. Agents Work: Each agent maintains personal notes about their work
  2. Brain Observes: When tasks complete, Brain reviews the work in context
  3. Brain Connects: Brain understands how this work relates to the project
  4. Brain Shares: Curated insights go to project channels for all agents

💡 Key Concepts

Agent Notes (Personal Memory)

Every agent has a personal notes channel where they document:

  • What they tried
  • What worked or didn't work
  • Decisions they made
  • Patterns they noticed

Brain Agent (Project Intelligence)

A specialized agent that:

  • Reads ALL agents' notes
  • Understands project goals and context
  • Connects work across different agents
  • Curates knowledge to project channels

Project Channels (Shared Knowledge)

Curated channels maintained by Brain:

  • project-status: Current state and progress
  • project-solutions: Verified fixes and approaches
  • project-decisions: Architectural choices made
  • project-patterns: Recurring themes and learnings

🚀 Installation

Claude Brain requires Claude-Slack for the messaging infrastructure.

# One-command install via npx
npx claude-team-brain

# Or clone and install manually
git clone https://github.com/theo-nash/claude-brain.git
cd claude-brain
python3 install.py

The installer will:

  1. Install claude-slack if needed (check separately)
  2. Set up the Brain meta-agent daemon
  3. Configure hooks for automatic reflection enforcement and curation
  4. Install channel definitions for claude-slack
  5. Initialize the Brain's knowledge base
  6. NEW: Add reflection guidelines to all agents automatically

Project channels are automatically created by claude-slack on session start, ensuring consistent structure across all agents.

📝 Automatic Reflection Guidance

Starting with v2.0, Claude Brain automatically teaches all agents how to write good reflections:

  • On session start, reflection guidelines are added to each agent's .md file
  • Agents learn the proper template and best practices
  • Ensures high-quality reflections for Brain analysis
  • Only added once per agent (idempotent)

🔄 How It Works

During Agent Work

# Agent writes naturally to personal notes
write_note("""
Fixed the database timeout issue by increasing pool size to 50.
This resolved the errors we were seeing under load.
Response time improved from 5s to 0.5s.
""")

After Task Completion

# Brain automatically reviews (via SubagentStop hook)
brain_prompt = """
Review backend-engineer's recent work:
- They fixed database timeouts
- Also check what frontend-dev and test-writer have been doing
- Consider current sprint goals

Update project channels with connected insights.
"""

Brain's Curation

# Brain writes to project channels
send_channel_message("project-status", """
✅ Performance issues resolved through coordinated effort:
- Backend: Fixed root cause with connection pooling
- Frontend: Added caching to reduce load
- Tests: Confirmed 1000 concurrent users supported
Sprint goal achieved!
""")

Next Agent Spawns

# New agent gets project context
context = get_messages("project-status")  # Current state
context += get_messages("project-solutions")  # Known fixes
context += search_my_notes(task_keywords)  # Personal history

# Agent starts with full context!

🎨 Example Workflow

1. FRONTEND-DEV works on API optimization
   → Writes note: "Added Redis caching, 40% faster"

2. BACKEND-ENGINEER fixes timeouts
   → Writes note: "Increased pool size to 50, fixed timeouts"

3. BRAIN sees the connection
   → "Both are part of performance improvements!"
   → Updates project-status with unified view
   → Creates project-pattern about coordinated optimization

4. NEW-AGENT joins to help
   → Immediately sees: "Team is optimizing performance"
   → Knows: "Redis caching and connection pooling already done"
   → Can contribute without duplicating work

🔒 Reflection Enforcement

Claude Brain ensures quality reflections through two mechanisms:

1. Automatic Guidance (SessionStart Hook)

  • Adds reflection templates to all agent .md files
  • Teaches agents what makes a good reflection
  • Provides examples and best practices
  • Only added once per agent (checks for existing guidance)

2. Reflection Blocking (SubagentStop Hook)

  • Detects when tasks complete without reflections
  • Blocks agent from continuing until reflection is written
  • Provides the exact template to use
  • Ensures no knowledge is lost

This combination guarantees high-quality reflections for the Brain to analyze.

🧠 The Brain Agent

The Brain is not complex infrastructure - it's just another agent with special responsibilities:

Role: Project Intelligence
Reads: All agents' notes, project history, current goals
Writes: Project channels (status, solutions, patterns)
Triggers: After each task completion (SubagentStop)
Focus: Connect dots that individual agents can't see

Brain's Unique Perspective

| Regular Agent | Brain Agent | |--------------|------------| | "Fix this timeout" | "Three agents hit timeouts - systemic issue" | | "I added caching" | "Caching + pooling = coordinated performance fix" | | "Tests pass now" | "Sprint goal achieved through team effort" | | "This worked for me" | "This is now a team best practice" |

📚 Documentation

🔧 Configuration

# ~/.claude/claude-brain/config.yaml
brain:
  trigger: "SubagentStop"  # When to activate Brain
  context_window: 20       # Recent notes to review
  
channels:
  project:
    - project-status
    - project-solutions
    - project-decisions
    - project-patterns
  
curation:
  min_task_duration: 5    # Minutes before curation
  include_file_context: true
  breadcrumb_format: "agent:timestamp"

🤝 How It's Different

Traditional Approach: Complex pattern recognition, confidence scoring, synthesis pipelines

Claude Brain: Simple curation by an intelligent agent who understands context

| Complex System | Claude Brain | |----------------|--------------| | Pattern extraction algorithms | Brain reads and understands | | Confidence scoring | Brain judges importance | | Synthesis pipelines | Brain connects dots | | Validation workflows | Brain verifies through context |

🎯 Benefits

  • No Knowledge Loss: Every agent's learning persists
  • Team Coordination: Everyone knows what others are doing
  • Project Alignment: Work stays focused on goals
  • Emergent Intelligence: Patterns visible only at project level
  • Natural Workflow: Agents just write notes naturally

📄 License

MIT - See LICENSE

🙏 Credits

Built on top of Claude-Slack.

Claude Brain transforms isolated agent work into coordinated team intelligence.