DISCOVER THE FUTURE OF AI AGENTSarrow_forward

GitCortex

calendar_todayAdded Feb 25, 2026
categoryAgent & Tooling
codeOpen Source
TypeScriptWorkflow AutomationRustMulti-Agent SystemAI AgentsAgent FrameworkCLIAgent & ToolingDeveloper Tools & CodingAutomation, Workflow & RPA

AI-driven multi-terminal task orchestration platform enabling cross-CLI multi-agent collaboration, automatic Git branch management, and complex task loop execution

GitCortex Project Details#

Project Overview#

GitCortex is an AI-driven multi-terminal task orchestration platform enabling cross-CLI multi-agent collaboration, automatic Git branch management, and complex task loop execution.

Core Problem Solved#

When collaborating across multiple CLI tools (Claude Code, Gemini CLI, Codex, etc.) in AI programming workflows, challenges include difficult task orchestration, hard-to-track progress, chaotic branch management, and complex result merging. GitCortex coordinates multiple Terminal execution units through a unified Orchestrator (Main Agent), achieving monitorable, replayable, and recoverable closed-loop task management.

Capability Boundaries#

  • Supported Range: Multiple AI CLI tools (Claude Code, Gemini CLI, Codex, Amp, Cursor Agent, Qwen Code, GitHub Copilot, Droid, Opencode)
  • Data Model: Three-layer complete persistence (Workflow → WorkflowTask → Terminal)
  • Execution Mode: Multi-Task parallel, Terminal serial within Task
  • Event Mechanism: Git commits and message bus event-driven, non-polling

Core Capabilities & Features#

Task Orchestration & Scheduling#

FeatureDescription
Main Agent CoordinationAI-driven central controller for task distribution, progress monitoring, result review
Multi-task ParallelismMultiple Tasks execute simultaneously, each with independent Git branch
In-task Serial ExecutionTerminals execute in sequence (coding → review → fix)
Event-drivenProgress via Git commits and message bus events, reducing polling

Git Integration#

FeatureDescription
Automatic Branch ManagementEach Task corresponds to an independent Git branch
Merge ManagementGlobal Merge Terminal unifies merging to target branch
GitWatcher ServiceMonitors .git/refs/heads changes, triggers events

CLI & Model Support#

FeatureDescription
Multi-CLI SupportClaude Code, Gemini CLI, Codex, Amp, Cursor Agent, Qwen Code, GitHub Copilot, Droid, Opencode
cc-switch IntegrationOne-click model configuration switch for any CLI
Multi-model SupportClaude, Gemini, OpenAI, etc.

Architecture Design#

Architecture Diagram#

╔═══════════════════════════════════════════════════════════════════╗
║                     Orchestrator (Main Agent)                      ║
║      User Config: API Type + Base URL + API Key + Model           ║
╚═══════════════════════════════════════════════════════════════════╝
         │                      │                      │
         ▼                      ▼                      ▼
  ┌─────────────┐       ┌─────────────┐       ┌─────────────┐
  │   Task 1    │       │   Task 2    │       │   Task 3    │
  │ branch:login│       │ branch:i18n │       │ branch:theme│
  └─────────────┘       └─────────────┘       └─────────────┘
                              │
                              ▼
                    [ Global Merge Terminal ]
                              │
                              ▼
                          [ main ]

Core Service Modules#

ServiceResponsibility
OrchestratorAgentMain Agent for task distribution, progress monitoring, result review
MessageBusCross-terminal message routing
TerminalLauncherTerminal process startup and management
GitWatcherMonitors Git events
CCSwitchServiceModel configuration switching

Three-layer Data Model#

LayerDescription
WorkflowTop-level container with multiple Tasks, Orchestrator and Merge Terminal config
WorkflowTaskMid-level unit, each Task has one Git branch with multiple Terminals
TerminalBottom-level execution unit, bound to specific CLI type and model config

Typical Use Cases#

ScenarioDescription
Cross-CLI Multi-Agent CollaborationClaude Code main dev + Codex audit/fix + Gemini CLI docs/testing
Same CLI Multi-Model CollaborationFrontend with glm-4.7, backend with claude-opus-4.6, review with gpt-5.3-codex-xhigh
Complex Task LoopTerminal A implement → Terminal B review/test → Terminal C audit → Merge Terminal combine

Installation & Deployment#

Prerequisites#

ToolVersion Requirement
Rustnightly-2025-12-04
Node.js>= 18 (20 recommended)
pnpm10.13.1
SQLite3.x

Quick Start#

# Clone repository
git clone https://github.com/huanchong-99/GitCortex
cd GitCortex

# Install dependencies
pnpm install

# Set encryption key (required, 32 characters)
export GITCORTEX_ENCRYPTION_KEY="12345678901234567890123456789012"

# Build backend
cargo build --release

# Start development server
pnpm run dev

Access: Frontend http://localhost:23457, Backend API http://localhost:23456/api

Environment Variables#

VariableRequiredDescription
GITCORTEX_ENCRYPTION_KEY32-character encryption key
BACKEND_PORTBackend port (default 23456)
HOSTListen address (default 127.0.0.1)
GITCORTEX_API_TOKENAPI Bearer authentication

Related Projects

View All arrow_forward

STAY UPDATED

Get the latest AI tools and trends delivered straight to your inbox. No spam, just intelligence.

rocket_launch