Skip to content
Back to skills

Brain

ASecurity

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.

  • 24 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 14, 2026
ai-agentsgosecurity

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add andreibesleaga/GABBE --skill brain --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Brain?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Brain
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-brain-2cd54825/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-brain-2cd54825)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • README.md3.8 KB
  • active-inference.skill.md4.4 KB
  • brain-mode.skill.md8.5 KB
  • cognitive-architectures.skill.md3.3 KB
  • cognitive-testing.skill.md5.2 KB
  • consciousness-loop.skill.md3.8 KB
  • cost-benefit-router.skill.md6.2 KB
  • episodic-consolidation.skill.md3.6 KB
  • epistemology-knowledge.skill.md4 KB
  • global-workspace.skill.md3.8 KB
  • learning-adaptation.skill.md5.2 KB
  • loki-mode.skill.md15.9 KB
  • neuroscience-foundations.skill.md3.8 KB
  • scripts/active_inference_loop.py2.6 KB
  • scripts/cognition_test.py2.2 KB
  • scripts/global_workspace.py2.8 KB
  • self-improvement.skill.md5.7 KB
  • sensory-motor.skill.md4 KB
  • sequential-thinking.skill.md3.9 KB
  • working-memory.skill.md4.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.