AgentXFlow
Coordinates multiple AI agents working on the same Git repository by providing isolated worktrees, write scope locks, mutation auditing, and a serialized 3-way merge queue.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AgentXFlowCreate an isolated worktree for the agent to fix the login bug"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentXFlow
AgentXFlow is an authoritative local desktop application and coordination daemon that lets multiple AI coding agents work on the same Git repository simultaneously without merge conflicts, file overwrites, or broken builds.
Developed by harlixay7 • Viducia
Quick Setup with an AI Agent
You can give this repository URL directly to your AI coding assistant (Claude Code, Cursor, Antigravity, or Codex CLI) and prompt:
Clone https://github.com/harlixay7/AgentXFlow.git, read AGENT_SETUP.md, run setup.bat, and start the app with run.bat.The AI agent will read AGENT_SETUP.md, verify the toolchain, install dependencies, validate the test suites, and boot the coordinator.
Related MCP server: lockstep-mcp
The Problem
When multiple AI agents (like Claude Code, Cursor, Antigravity, or Codex CLI) work on the same codebase at the same time:
They write to the same working directory and overwrite each other's changes.
They generate git branch conflicts that require manual resolution.
They claim tasks are completed in chat without actually running builds or test suites.
Concurrent merges into
mainbreak the build because changes were tested against outdated base commits.
How AgentXFlow Solves This
AgentXFlow acts as an authoritative coordinator running on your machine:
Isolated Git Worktrees: When an agent claims a task, AgentXFlow creates a private Git worktree on disk at
.agentxflow/worktrees/task-<id>. Agents never touch your active checkout or themainbranch directly.Write Scope Locks: Agents must declare which files they plan to edit using glob patterns (e.g.
src/auth/**). If two agents request overlapping files, the collision is detected and blocked.Mutation Auditing: On task submission, AgentXFlow runs
git diff --name-only <base_sha>inside the worktree. Any unreserved file edits trigger a scope violation and reject the task.Authoritative Verification: AgentXFlow runs the test suite itself inside the worktree. An agent cannot mark a task done by claiming it in chat; it must pass the coordinator's automated checks.
Serialized Merge Queue: Verified tasks enter a FIFO merge queue. AgentXFlow simulates a 3-way merge and runs tests inside a hidden integration worktree before committing to
main.Masterplan Execution Hub: Drop in an unformatted master plan of any length. The first connected agent normalizes the specification into structured steps (from
UNSORTEDtoRESORTED). Subsequent agents claim progressive chunks (with anti-hoarding limits) and execute in sequence.
Architecture
+---------------------------------------------------------------+
| AI Agents |
| Antigravity Claude Code CLI Cursor Codex CLI |
+---------------------------------------------------------------+
|
| (HTTP JSON-RPC / MCP)
v
+---------------------------------------------------------------+
| AgentXFlow Coordinator |
| - Masterplan Hub (Unsorted -> Resorted decomposition engine)|
| - SQLite Database (Tasks, Agents, Leases, Proof Bundles) |
| - Scope Engine (Glob lease manager & git diff auditor) |
| - Verification Engine (Independent test runner) |
| - Merge Engine (Serialized FIFO 3-way integration) |
+---------------------------------------------------------------+
| | |
v v v
Worktree #1 Worktree #2 Integration Worktree
(task-auth branch) (task-db branch) (merges to main)Getting Started
Prerequisites
Node.js 20 or higher
Rust 1.80 or higher (
cargoandrustc)Git CLI
1-Click Setup (Windows)
Double-click setup.bat (or run .\setup.bat in terminal). This automated script:
Checks for Node.js, Git CLI, and Rust compiler.
Installs missing npm dependencies.
Builds and type-checks the React frontend.
Checks Rust backend compilation.
Run the App
On Windows: Double-click
run.batOr via terminal:
npm run tauri devBuild Production Binary
npm run tauri buildFreeing Disk Space
During development, the Rust compiler stores debug symbols in src-tauri/target/. You can safely clean these temporary build files anytime without losing source code or database records:
cd src-tauri
cargo cleanRunning Tests
AgentXFlow includes full unit and integration test suites:
# Run all backend unit tests
cargo test --manifest-path src-tauri/Cargo.toml
# Run the masterplan decomposition and chunk claiming test
cargo test --test masterplan_test --manifest-path src-tauri/Cargo.toml
# Run the live HTTP MCP network test
cargo test --test mcp_e2e_test --manifest-path src-tauri/Cargo.toml
# Run the 3-agent concurrent collaboration test
cargo test --test multi_agent_concurrent_test --manifest-path src-tauri/Cargo.toml
# Type check frontend
npm run buildConnecting Coding Agents
AgentXFlow runs a local Model Context Protocol (MCP) server on http://127.0.0.1:7890/mcp.
OpenCode (.mcp.json)
Add this to your project repository:
{
"mcpServers": {
"agentxflow": {
"url": "http://127.0.0.1:7890/mcp",
"transport": "http",
"headers": {
"Authorization": "Bearer axf_sec_v2_live_token_7890"
}
}
}
}Claude Code & Codex CLI
Connect via HTTP streamable transport:
Server URL:
http://127.0.0.1:7890/mcpHeader:
Authorization: Bearer axf_sec_v2_live_token_7890
Antigravity
The coordinator skill specification is located at SKILL.md.
MCP Tool Reference
Tool | Parameters | Description |
|
| Register an agent session and declare its tool capabilities. |
|
| Keep session lease and file locks active. |
|
| Inspect masterplan state, raw text, and decomposition instructions. |
|
| Query plan progress stats and step states. |
|
| Normalize raw masterplan text into structured execution steps. |
|
| Claim next batch of steps (capped by limit) and cut a Git worktree. |
|
| List tasks in the backlog or ready queue. |
|
| Get task prompt, acceptance criteria, and worktree path. |
|
| Claim a task and create an isolated Git worktree on disk. |
|
| Fetch contract hash and project architectural rules. |
|
| Lock file globs (e.g. |
|
| Release held write locks back to the pool. |
|
| Mark a required task step complete with test output. |
|
| List blocker tasks that must finish before this task starts. |
|
| Submit task; coordinator runs tests and checks git diff. |
|
| Check queue position for pending branch merges. |
Codebase Layout
src-tauri/src/core/: Coordinator engine, state machines, and Tauri IPC commands.src-tauri/src/mcp/: Axum HTTP MCP server implementation (2026-07-28 protocol).src-tauri/src/scope/: Glob pattern collision detection and git diff mutation auditor.src-tauri/src/verification/: Server-side test runner and SHA-256 proof bundle generator.src-tauri/src/merge/: Serialized 3-way merge engine inside isolated integration worktree.src-tauri/src/db/: SQLite database pool, 24 tables with strict foreign keys, and WAL mode.src/: React 19 workbench user interface.
Author & Organization
Created and developed by harlixay7 • Viducia.
License
MIT (LICENSE)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA git worktree manager that enables AI agents to work on different branches simultaneously with automatic coordination, locking, and merge management. Supports creating, managing, and merging git worktrees with setup automation and conflict resolution.86MIT
- Alicense-qualityCmaintenanceEnables multiple AI agents like Claude and Codex to coordinate on the same project through shared tasks, file locks, and a real-time dashboard, preventing conflicts and streamlining collaborative development.91MIT
- AlicenseAqualityBmaintenanceEnables multiple AI agents to collaborate on the same git repository by coordinating work via a shared claims branch, detecting file conflicts before they happen.9PolyForm Noncommercial 1.0.0
- Alicense-qualityAmaintenanceCoordinates parallel AI coding agents by providing task ownership, scoped file locks, handoffs, and verification workflows.MIT
Related MCP Connectors
Coding agents from Claude Code, Cursor and Codex claim jobs and lock files on one shared board.
The team layer for AI coding agents: shared contracts, collision alerts, E2EE sessions.
Git-backed platform for skills, tools, and context for AI agents
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/harlixay7/AgentXFlow'
If you have feedback or need assistance with the MCP directory API, please join our Discord server