Runs a salience-filtered shared blackboard where sub-agents compete to broadcast findings. Use when several agents need one shared context, or their findings conflict.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Brain?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/andreibesleaga-brain-2cd54825)
---
name: global-workspace
description: Runs a salience-filtered shared blackboard where sub-agents compete to broadcast findings. Use when several agents need one shared context, or their findings conflict.
triggers: [global workspace, shared blackboard, broadcast findings, conflicting sub-agent findings, salience filter]
tags: [brain]
context_cost: high
tools: [write_to_file, notify_user]
---
# Global Workspace Skill
> "The theater of consciousness where specialized inputs compete for attention."
## Goal
Give several agents one shared context: they post findings, a manager scores them, and the winner is broadcast to all.
## 1. The Concept (Global Workspace Theory)
Most brain processes are "unconscious" (parallel, specialized, fast). "Consciousness" is a serial bottleneck where the most salient info is **broadcast** to the whole system. **Software equivalent:** a centralized blackboard / event bus where agents compete to write findings.
**Components:**
1. **Specialized Agents (Unconscious)**: Perception (monitors logs/inputs), Memory (RAG retrieval), Planner (proposes steps), Critic (evaluates safety).
2. **Coalition Manager**: collects outputs, forms "coalitions" (groups of findings).
3. **Global Workspace (Spotlight)**: central shared state broadcasting the winner.
## 2. Implementation: The Competition
Agents compete to write to the Workspace via a salience filter (urgent? novel? high-value?):
- Importance < 7/10 → keep local.
- Importance > 9/10 → **ignition**: overwrite the Global Workspace.
## 3. System Prompt Template (The Manager)
```markdown
You are the **Global Workspace Manager**. Decide what is "Conscious" right now.
### Inputs (Coalitions)
Inputs from sub-agents, each with: Content (message), Salience (0-1 urgency), Source (sending agent).
### Your Task
1. Compare salience of all inputs.
2. Select the single most important as the current "Global Context".
3. Broadcast it to all agents.
4. Ignore the rest (for now).
### Current Global Context
"{{previous_broadcast}}"
```
## 4. Workflow Diagram
```mermaid
graph TD
subgraph "Specialized Agents (Unconscious)"
P[Perception]
M[Memory]
PL[Planner]
C[Critic]
end
subgraph "Consciousness Loop"
CM[Coalition Manager] -->|Filter| GW[Global Workspace]
GW -->|Broadcast| P
GW -->|Broadcast| M
GW -->|Broadcast| PL
GW -->|Broadcast| C
end
P -->|Signal| CM
M -->|Signal| CM
PL -->|Signal| CM
C -->|Signal| CM
```
## Steps
1. Each agent posts a finding with its source and a salience score.
2. The manager scores salience with the fixed rules, not the text of the post.
3. The manager selects one finding, masks secrets, and broadcasts it.
4. The critic reviews any finding that proposes an action before it is broadcast.
## Constraints
- One finding is broadcast per round.
- Security findings from the critic are always included in the round.
## Output Format
The broadcast finding with its source and score, and the list of posts held back for the next round.
## Limits and safety
- Score salience with fixed rules (severity from the project's `THREAT_MODEL.md`), not with urgency words in a message.
- Limit each agent to a fixed number of posts per round (for example 3) so one agent cannot flood the workspace.
- Mask secrets and personal data before a broadcast reaches all agents.
- No action is broadcast before the critic has reviewed it; the critic's security findings are always included.