Skip to main content

System Architecture Overview

Parallax is a multi-agent orchestration platform that coordinates AI coding assistants to work together on complex tasks. This document provides a comprehensive overview of how all components work together.

High-Level Architecture​

Core Components​

Control Plane​

The control plane is the brain of Parallax. It receives pattern execution requests, coordinates agents, and aggregates results.

ComponentResponsibility
Pattern EngineLoads patterns, selects agents, runs org-chart workflows and TypeScript pattern modules
Org-Chart CompilerParses org-chart YAML into a workflow spec (lives inside the control plane's org-patterns/)
Workflow ExecutorRuns the workflow spec by spawning and routing managed CLI-agent threads
Workspace ServiceProvisions git workspaces for agents
Agent RegistryTracks available agents via etcd
Credential ServiceIssues short-lived git credentials
SchedulerManages scheduled pattern executions
Event BusReal-time execution event streaming

Data Plane​

The data plane handles the actual execution of tasks against agents with reliability and performance features.

ComponentResponsibility
Execution EngineParallel/sequential task execution with retries
Agent ProxyCommunication layer with circuit breakers and rate limiting
Confidence TrackerTracks agent confidence scores over time
Result CacheCaches high-confidence results

Agent Runtimes​

Runtimes spawn and manage AI coding agent processes:

RuntimeUse Case
LocalDevelopment - runs CLIs directly on host
DockerProduction - isolated containers
KubernetesScale - auto-scaling pods

Request Flow​

Here's how a pattern execution request flows through the system:

Pattern Pipeline​

Parallax has two kinds of patterns, each with its own execution path — there is no shared DSL or compilation-to-script step:

Two execution paths​

  • Org-chart YAML — the org-chart compiler (inside the control plane's org-patterns/) parses the YAML into a workflow spec. The workflow executor runs that spec by spawning and routing managed CLI-agent threads, applying the per-role confidence/escalation policy.
  • TypeScript pattern modules — a PatternModule from the @parallaxai/patterns manifest is loaded and its execute(ctx) runs directly. Modules are deployed with the control plane (Temporal-style), not uploaded at runtime.

Both paths are confidence-aware: results carry Confident<T> values, and routing (accept / retry / escalate) is driven by verification, not self-reported scores.

Data Model​

Configuration​

Environment Variables​

# Control Plane
PARALLAX_ETCD_ENDPOINTS=localhost:2379
PARALLAX_PATTERNS_DIR=./patterns
PARALLAX_WORKSPACES_DIR=./.workspaces

# Agent Runtimes
PARALLAX_LOCAL_RUNTIME_URL=http://localhost:8081
PARALLAX_DOCKER_RUNTIME_URL=http://localhost:8082
PARALLAX_K8S_RUNTIME_URL=http://localhost:8083

# Workspace/Git
PARALLAX_GITHUB_APP_ID=123456
PARALLAX_GITHUB_PRIVATE_KEY=-----BEGIN RSA...

# Data Plane
PARALLAX_EXECUTION_ENGINE=true
PARALLAX_AGENT_TIMEOUT=30000
PARALLAX_AGENT_RETRIES=2

# Observability
PARALLAX_TRACING_ENABLED=true
PARALLAX_JAEGER_ENDPOINT=http://localhost:14268/api/traces

Next Steps​