AgentBraid
A local-first MCP orchestration server that uses Codex as lead planner and Antigravity as host to delegate and review bounded tasks with Git integration and persistent SQLite state.
README
AgentBraid
Braid multiple agents into one accountable workflow.
AgentBraid is a local-first MCP orchestration server that uses Codex as the lead planner and integrator while an MCP host can execute specialist tasks. The first public alpha is designed for Antigravity as the user-facing host and Codex CLI as the background engineering worker.
[!WARNING] AgentBraid is pre-release software. MCP contracts and persisted state may change before 1.0.
Why AgentBraid?
- Keep one accountable Codex lead for planning, routing, integration, and review.
- Delegate bounded tasks to the active MCP host without launching or impersonating that host.
- Isolate mutating Codex work in Git worktrees and integrate verified commits in DAG order.
- Record task decisions, retries, reviews, and outcomes in local SQLite state.
- Reuse each provider through its documented client and the user's own authorization.
Architecture
flowchart LR
user["User"] --> host["Antigravity CLI<br/>official MCP host"]
host <-->|"workspace MCP over stdio"| braid["AgentBraid"]
braid --> codex["Codex CLI<br/>lead and workers"]
braid --> state["SQLite state<br/>outside repository"]
braid --> git["Git integration branch<br/>and isolated worktrees"]
host -->|"claimed host task"| git
AgentBraid never launches agy, reads Antigravity credentials, or proxies Google account
access. See docs/provider-policy.md and
docs/security-boundaries.md for the supported boundary.
The detailed component and sequence diagrams are in ARCHITECTURE.md.
Quick start
Prerequisites:
- Python 3.11+
- Git 2.35+
- Codex CLI on
PATH, signed in withcodex login - Antigravity CLI signed in with the user's own account
- A clean target Git repository
git clone https://github.com/xuu33030/agentbraid.git
cd agentbraid
python -m venv .venv
source .venv/bin/activate
python -m pip install .
cd /path/to/your/git-repository
agentbraid doctor .
agentbraid init .
agy
On Windows PowerShell, activate with .venv\Scripts\Activate.ps1 and use a Windows path for
the target repository. Keep the virtual environment: the generated MCP configuration records its
absolute Python interpreter.
Inside Antigravity, use /mcp to confirm the agentbraid server is connected, /skills to
confirm the workspace skill is loaded, then start with a bounded goal such as:
/agentbraid Add a tested health endpoint. Do not change authentication, push, or deploy.
agentbraid init writes .agents/mcp_config.json and
.agents/skills/agentbraid/SKILL.md. AgentBraid produces a reviewed local integration branch;
updating the current branch remains a separate, explicit apply_run action.
For complete platform instructions and the MCP tool sequence, read
docs/getting-started.md and
docs/host-walkthrough.md.
Documentation
docs/getting-started.md: installation, workspace setup, and first rundocs/host-walkthrough.md: host task protocol and MCP tool referencedocs/sample-run.md: redacted, schema-valid run transcriptdocs/troubleshooting.md: common setup, task, Git, and quota failuresARCHITECTURE.md: components, lifecycle, trust boundaries, and diagramsdocs/routing.md: deterministic assignment policydocs/worktrees.md: isolation, integration, review, and local apply
Development status
The v0.1.0 Alpha roadmap tracks public implementation work. Contributions are
welcome through issue-first pull requests; see CONTRIBUTING.md.
Security and provider terms
- Never commit provider credentials, model transcripts, or AgentBraid runtime databases.
- Every user must authenticate directly with each provider and follow its current terms.
- AgentBraid does not bypass quotas, share subscriptions, or expose a provider login to others.
- Model output is untrusted until project validation and review pass.
Report vulnerabilities privately using SECURITY.md.
License
Licensed under the Apache License 2.0.
AgentBraid is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by OpenAI or Google.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.