Skip to main content
Glama
0xlicy
by 0xlicy
README.md
<p align="center">
  <h1 align="center">🧠 Brain Bridge</h1>
  <p align="center">
    <strong>Multi-conversation collaboration for <a href="https://github.com/google-deepmind/antigravity">Antigravity</a></strong>
  </p>
  <p align="center">
    An MCP Server + VS Code Extension that enables cross-conversation memory, task delegation, and parallel workflow orchestration.
  </p>
  <p align="center">
    <a href="./README_CN.md">πŸ“– δΈ­ζ–‡ζ–‡ζ‘£</a> β€’
    <a href="#quick-start">Quick Start</a> β€’
    <a href="#mcp-tools-reference">MCP Tools</a> β€’
    <a href="#license">License</a>
  </p>
</p>

---

## ✨ Features

### πŸ”Œ MCP Server
- **Cross-conversation artifact access** β€” Read, list, and search artifacts across all Antigravity conversations
- **Shared notes** β€” Write notes accessible by any conversation (`_shared/` directory)
- **Task delegation** β€” Spawn headless child conversations to parallelize complex work
- **Task monitoring** β€” Check status, results, and manage delegated sub-tasks

### πŸ–₯️ VS Code Extension
- **Sidebar UI** β€” Dedicated activity bar panel with three views:
  - πŸ“‹ **Delegated Tasks** β€” Real-time task status with inline actions (check result, focus, cancel)
  - πŸ’¬ **Conversations** β€” Browse all Antigravity conversations and their artifacts
  - πŸ“ **Shared Notes** β€” View notes written by any conversation
- **One-click delegation** β€” Delegate tasks from the command palette or status bar
- **Auto-refresh** β€” Tasks update automatically every 5 seconds
- **File watcher** β€” Instant pickup of MCP-delegated tasks

## πŸ—οΈ Architecture

```
brain-bridge/
β”œβ”€β”€ src/                    # MCP Server (TypeScript)
β”‚   └── index.ts            # Server with 8 MCP tools
β”œβ”€β”€ ext/                    # VS Code Extension
β”‚   └── src/
β”‚       β”œβ”€β”€ extension.ts        # Extension entry point
β”‚       β”œβ”€β”€ task-delegation.ts  # Task delegation manager
β”‚       └── task-tree-provider.ts # TreeView data providers
β”œβ”€β”€ .agents/                # Agent skills
β”‚   └── skills/parallel-delegation/
β”œβ”€β”€ test/                   # Test suite
└── package.json
```

**Data directory:** `~/.gemini/antigravity/brain/`
- `<uuid>/` β€” Conversation artifacts (task.md, implementation_plan.md, etc.)
- `_shared/` β€” Cross-conversation shared notes
- `_tasks/` β€” Delegated task state files

## πŸš€ Quick Start

### Prerequisites

- **Node.js** β‰₯ 18
- **Antigravity** (or any MCP-compatible IDE)

### 1. Install the MCP Server

```bash
# Clone the repository
git clone https://github.com/0xlicy/antigravity-brain-bridge.git
cd antigravity-brain-bridge

# Install dependencies & build
npm install
npm run build
```

### 2. Configure MCP

Add the following to your MCP client configuration (e.g., Antigravity settings):

```json
{
  "mcpServers": {
    "brain-bridge": {
      "command": "node",
      "args": ["/absolute/path/to/antigravity-brain-bridge/dist/index.js"]
    }
  }
}
```

> **Tip:** Replace `/absolute/path/to/` with the actual path where you cloned the repo.

### 3. Install the VS Code Extension (Optional)

```bash
cd ext

# Install dependencies & build
npm install
npm run build

# Package and install
npm run package
# Then install the generated .vsix file in Antigravity / VS Code
```

### 4. Verify

Once configured, you can use the MCP tools in any conversation:

```
# List all conversations
β†’ list_conversations

# Search across all artifacts
β†’ search_artifacts(query: "authentication")

# Delegate a task to a child conversation
β†’ delegate_task(task: "Write unit tests for the auth module")
```

## πŸ“– MCP Tools Reference

| Tool | Description |
|------|-------------|
| `list_conversations` | List all Antigravity conversations with summaries |
| `list_artifacts` | List artifact files in a specific conversation |
| `read_artifact` | Read the full content of a conversation artifact |
| `search_artifacts` | Full-text search across all artifacts |
| `write_shared_note` | Write a note to the shared `_shared/` directory |
| `delegate_task` | Delegate a task to a new child conversation |
| `check_task_result` | Check the status and result of a delegated task |
| `list_delegated_tasks` | List all delegated tasks with optional status filter |

## πŸ› οΈ Development

```bash
# Build the MCP server
npm run build

# Run the MCP server
npm start

# Run tests
npm test
```

**Extension development:**

```bash
cd ext

# Watch mode (rebuild on changes)
npm run dev

# Package into .vsix
npm run package
```

## 🀝 Contributing

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

## πŸ“„ License

This project is licensed under the MIT License β€” see the [LICENSE](./LICENSE) file for details.

TDQS

A3.9/5.0

Scored across 8 tools

Disambiguation5/5

Each tool targets a distinct resource and action: conversations, artifacts, shared notes, and delegated tasks. No two tools overlap in purpose, making selection unambiguous.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern (e.g., list_conversations, read_artifact, delegate_task). This predictability aids agent comprehension and selection.

Tool Count5/5

With 8 tools, the server is well-scoped. It covers the core domains (conversations, artifacts, notes, tasks) without unnecessary bloat or sparse coverage.

Completeness3/5

The tool set covers list/read/search for artifacts and task delegation, but lacks conversation detail reading, artifact writing, shared note reading, and task cancellation. These gaps create potential dead ends (e.g., writing a note with no way to read it).

Maintenance

ActivityInactive
ResponsivenessNo issues