Brain Bridge
<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
Scored across 8 tools
Each tool targets a distinct resource and action: conversations, artifacts, shared notes, and delegated tasks. No two tools overlap in purpose, making selection unambiguous.
All tools follow a consistent verb_noun pattern (e.g., list_conversations, read_artifact, delegate_task). This predictability aids agent comprehension and selection.
With 8 tools, the server is well-scoped. It covers the core domains (conversations, artifacts, notes, tasks) without unnecessary bloat or sparse coverage.
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).