Skip to content

Components

Detailed breakdown of each system component.

API Server

The API Server is the central hub that manages all data and orchestrates the development pipeline.

Key Services

ServiceResponsibility
PollingOrchestratorTask scheduling, dispatch, reconciliation
AgentGatewayAgent protocol abstraction and routing
WorkflowPolicyManagerWORKFLOW.md lifecycle management
BuildTestRunnerBuild/lint/test execution (local or Docker)
GateScoreCalculator6-dimension quality scoring
GitManagerBranch, commit, PR management
RuntimeRegistryDaemon registration and selection
PlanGeneratorAI-powered plan creation
EventBusRedis Streams event publishing

API Routes

PrefixResource
/api/v1/authAuthentication (login, register)
/api/v1/workspacesWorkspace CRUD + members
/api/v1/projectsProject CRUD
/api/v1/requirementsRequirement CRUD + AI analysis
/api/v1/plansPlan generation + approval
/api/v1/executionsExecution lifecycle
/api/v1/gatesQuality gate review
/api/v1/runtimesDaemon registration + task dispatch
/api/v1/budgetBudget queries
/api/v1/workflowsWorkflow policy management

Runtime Daemon

The daemon is a standalone Python process that runs on developer machines.

Subcomponents

ComponentRole
AgentDiscoveryScans PATH for AI agent CLIs
WorkspaceManagerCreates git worktrees per task
ProcessManagerManages agent subprocess lifecycle
HeartbeatServicePeriodic health reporting
TaskPollerPolls server for assigned tasks
ProgressReporterReports progress and completion

Agent Support

AgentInvoke ModeCompatibility
Claude Codeprint mode (stdin→stdout)L3 (full)
Codexexec mode (JSON)L3 (full)
OpenCoderun mode (JSON)L2
Gemini-p prompt modeL1
HermesCLIL1

Task Lifecycle (Daemon Side)

  1. Poll server for assigned tasks
  2. Prepare workspace (clone/worktree)
  3. Execute agent with rich prompt
  4. Collect git diff stats
  5. Auto-commit and push changes
  6. Report completion with metrics

Frontend

React 19 single-page application with Ant Design.

Pages

PagePurpose
ProjectsProject management
RequirementsRequirement CRUD + AI analysis
Board5-column Kanban board
ExecutionsPipeline visualization
GatesQuality gate review
WorkflowWORKFLOW.md editor
BudgetUsage tracking
RuntimesDaemon monitoring
SettingsConfiguration

Forgexa — AI Software Factory