brainregion
BrainRegion is an AI collaboration infrastructure designed for review, consultation, planning, and memory.
Install / Use
claude mcp add fanghaoling -- npx -y github:fanghaoling/brainregionIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of brainregion
brainregion scores 71/100 on our quality scale, 866th of 939 AI & Machine Learning skills we index.
Its MCP Server is 61 KB long, well organised into 35 sections with 46 code examples: long enough that it reads more like full documentation than a focused instruction file, which agents can find harder to follow.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 3 months ago, so brainregion is actively maintained.
- Our last check on 2026-08-12 found the source still online.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
brainregion compared with similar skills
All 4 of these similar skills score higher than brainregion; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| brainregion (this skill)by fanghaoling | 71 | 3 | 3mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 106.6k | 5d ago | CLAUDE.md |
| taste-skillby Leonxlnx | 100 | 106.0k | today | CLAUDE.md |
| claude-memby thedotmack | 100 | 105.3k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 89.0k | 4d ago | CLAUDE.md |
Frequently asked questions
- How do I install brainregion?
- Run
claude mcp add fanghaoling -- npx -y github:fanghaoling/brainregion. The install tabs above show the steps for each supported agent. - Which AI agents does brainregion work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is brainregion safe to use?
- It is Apache-2.0-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is brainregion still maintained?
- The repository was last updated about 3 months ago, so brainregion is actively maintained.
Skill content
View source on GitHub脑区 BrainRegion
BrainRegion is AI collaboration infrastructure for review, consultation, planning, and memory.
This project was formerly design-review-mcp. The internal Python package has moved to brainregion, while the old
CLI command aliases remain available during the rename.
The current MCP server and CLI can fan out a plan, source change, or document to multiple LLM reviewer roles, retrieve project-specific knowledge, normalize duplicate findings, and return consensus-oriented reports that are easier to act on. It also includes external consultation tools for asking another expert model when the main assistant is stuck.
The core pipeline is project-agnostic. Project-specific behavior lives in adapters, so the default experience stays useful for general product, architecture, code, and document design reviews. Optional adapters can add domain knowledge without changing the core pipeline.
Highlights
- Review plans, code, Markdown, ADRs, RFCs, and config documents.
- Use reviewer roles such as
planner,safety,architecture,performance,feasibility, andvisionary. - Run one model or a panel of models, including official LiteLLM providers and OpenAI/Anthropic-compatible gateways.
- Retrieve framework and project-local knowledge before review.
- Normalize findings into canonical buckets and separate consensus, majority, and individual issues.
- Render JSON, Markdown, and SARIF output.
- Track review memory with
mark_findingso accepted/rejected findings can influence later confidence calibration. - Ask external consultant models with
consult_problemand record useful advice withmark_advice. - Generate executable task plans with
plan_task, then review the plan before implementation. - Route a goal/problem to likely Brain Regions with
route_regionsas a local, deterministic precursor to context scheduling. - Suggest explicit manual next steps with
suggest_workflowwithout auto-calling tools or models. - Inspect model routing with
list_model_routesso bare model names and endpoint-backed models are not confused. - Attach model profile metadata such as
cheap,fast,flagship,sleep, orawakefor preflight visibility. - Recommend a model panel with
suggest_panelfrom profile tags and cost/speed/quality scores without calling models. - Plan auditable Skill/Region wakes with
plan_region_activation, including hard prerequisites, deny conditions, and bounded context requests. - Merge defaults from builtin values, global config, project config, environment variables, and explicit call arguments.
Architecture
Most pieces are swappable. Adapter-specific behavior stays out of core/.
| Layer | Contract | Default implementation |
|---|---|---|
| ModelBackend | async complete(...) | LiteLLMBackend |
| KnowledgeProvider | retrieve/list_cases/add_case | YamlKnowledgeProvider |
| ProjectAdapter | read_context/version/convention + reviewers/knowledge | GenericAdapter, optional domain adapters |
| ReportRenderer | render(ReviewReport) | Markdown / JSON / SARIF renderers |
| Stage | process(ctx) -> ctx | retrieve, context, prompt, review, parse, normalize, consensus, score |
Adding another project type should usually mean adding a new adapter package, not changing the core pipeline.
Review Pipeline
ReviewDocument
-> RetrieveStage
-> ContextStage
-> PromptStage
-> ReviewStage # fan-out across panel x dimensions
-> ParseStage
-> NormalizeStage # canonical finding buckets
-> ConsensusStage
-> ScoreStage
-> ReviewReport
The pipeline is designed to reduce "confident but unsupported" feedback:
- Findings need evidence quotes.
- Knowledge retrieval can inject project gotchas and version-specific cases.
- Reviewer prompts are role-specific.
- Canonical normalization reduces duplicate phrasing across models.
- Calibrated confidence combines model agreement, severity, retrieval hits, and review memory.
External Consultation
consult_problem is for moments when the main assistant is stuck, uncertain, repeatedly debugging the same issue, or
needs another expert perspective. It does not execute commands or edit files; it returns structured advice, hypotheses,
next experiments, risks, and a recommended plan.
consult_problem(
problem="FlowField updates occasionally deadlock",
context="Unity ECS project; double buffering and JobHandle.CombineDependencies were already tried.",
logs="Occasionally stalls near CompleteDependency()",
attempts=["double buffering", "combined JobHandle dependencies"],
mode="architecture",
)
Common modes:
debugging: root-cause diagnosis.architecture: boundaries, state flow, and maintainability.performance: latency, throughput, token/API cost.simplicity: YAGNI and smaller MVP slices.game_design: gameplay and player experience.challenge: adversarial challenge to the current thinking.planning: task decomposition, risks, and acceptance criteria.
Recommended config:
{
"consult_panel": ["modelbridge_openai/gpt-5.4-mini"],
"consult_consultants": ["debugger", "critic"],
"consult_max_cost_usd": 0.03,
"consult_max_input_chars": 24000
}
If consult_panel is not configured, consultation falls back to panel. For day-to-day use, keep a cheaper/faster
consult panel so one consultation does not expand the full review panel.
consult_problem returns a consultation_id, and each item in individual has a stable advice id. Mark useful or
unhelpful advice with Advice Memory:
mark_advice(
advice_id="consult-abc123-0",
consultation_id="consult-abc123",
decision="accepted",
reason="identified the real race condition",
outcome="added the suggested minimal reproduction test",
)
decision is one of accepted, rejected, partial, or unknown. The database stores advice metadata and user
feedback, not the original prompt, problem text, or full advice body.
Planning
plan_task turns a goal into a structured, reviewable implementation plan. It is intentionally a thin Planner MVP:
it does not execute commands, does not edit files, and does not run a multi-model debate. It tries the configured model
panel in order and returns the first parseable plan.
plan_task(
goal="Add a Planner MVP to BrainRegion",
context="Python MCP server with existing consult_problem and review_plan tools.",
constraints=[
"Do not auto-execute tasks.",
"Reuse existing budget and input guardrails.",
],
success_criteria=[
"The MCP tool returns milestones, tasks, risks, acceptance criteria, and tests.",
"Unit tests cover parsing and routing.",
],
)
Recommended flow:
Goal -> plan_task -> review_plan -> implement -> review_code -> mark_finding / mark_advice
Optional config:
{
"planner_panel": ["modelbridge_openai/gpt-5.4-mini"],
"planner_max_cost_usd": 0.03,
"planner_max_input_chars": 24000
}
If planner_panel is not configured, planning falls back to consult_panel, then panel.
Brain Regions
route_regions is the first small step toward region-based context scheduling. It is deliberately local and
deterministic: it does not call models, read memory, or trigger review/consult/planner tools. It only ranks static
region definitions by explicit triggers and returns an activation trace.
route_regions(
goal="Optimize a Unity ECS FlowField system that allocates too much memory",
files={
"Assets/Scripts/FlowFieldSystem.cs": "...",
},
top_k=3,
)
Example result shape:
{
"selected": [
{"id": "unity_ecs", "score": 4, "matched_triggers": [...]},
{"id": "performance", "score": 4, "matched_triggers": [...]}
],
"trace": {
"strategy": "deterministic_keyword_v1",
"input": {"file_contents_used": false}
}
}
Built-in regions currently include planning, review, debugging, performance, security, memory, research,
and unity_ecs. This tool is advisory; future schedulers must explicitly decide whether to consume its result.
Structured Activation Contracts
plan_region_activation is the next deterministic layer after candidate routing. Existing Skill manifests may declare an activation contract with positive signals, deny conditions, required tools/capabilities, context selectors, and budgets. Manifests without a contract remain inert.
plan_region_activation(
task_intents=["diagnose_failure"],
events=["test_failed"],
available_tools=["git"],
max_regions=2,
max_context_tokens=2000,
)
The result records every Skill as wake, skip, or defer. A wake includes a bounded context_request; a skip includes the failed prerequisite or deny reason. Defer is reserved for a future cheap semantic gate. The hard gate itself never calls a model, retrieves memory, or executes a tool.
load_region_context consumes the same hard-gate plan and materializes only activated provider Skills into
short-lived ContextBlock values:
load_region_context(
query="Why did the parser keep failing after several repair attempts?",
events=["repeated_attempt_failed"],
scope_regions=["debugging"],
max_context_tokens=2000,
)
Provider failures are isolated, and both block count and estimated tokens are bounded. Advisory/action Skills remain visible in the activation trace but are not executed by this call. Retrieval does not call a model, write memory, or retain the returned context in the runtime.
Cognitive Workspace Delivery
stage_region_context loads activated provider context into a process-local task workspace and returns only a
delivery receipt. Region-private block contents are not included in the staging result:
stage_region_context(
task_id="parser-debug",
query="Repeated parser failures after several repair attempts",
events=["repeated_attempt_failed"],
audience="region",
target_region="debugging",
ttl_steps=3,
)
workspace_context provides four lifecycle operations through one MCP tool:
read: main consumers seemain + shared; region consumers seetheir region + shared.inspect: returns delivery metadata and evidence references without context contents.advance: decrements explicit task-step TTL and unloads expired entries.clear: unloads every workspace entry for one task.
The workspace stores evidence and structured task context, not model chain of thought. It is an architectural routing boundary rather than an authorization boundary; process restart also clears it. Read operations apply a fresh block and estimated-token budget before returning context.
Region Status and Escalation
A successful stage now records a RegionContextReceipt containing observable retrieval state: provider outcomes,
block/token counts, evidence references, removed stale candidates, conflicts, and selector coverage. Coverage remains
unverified until a provider explicitly confirms selectors; retrieval success is not treated as proof that a model
understands the task.
Experts publish structured reports through the existing workspace tool:
workspace_context(
task_id="parser-debug",
operation="publish_report",
report={
"region": "debugging",
"state": "needs_decision",
"summary": "Historical constraints change the parser design.",
"evidence_refs": ["memory:id:exp-parser"],
"context_state": "ready",
"decision_scope": "architecture",
"risk": "medium",
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
106.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
taste-skill
106.0kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
claude-mem
105.3kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
89.0kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
