Optio: Orchestrating AI Coding Agents in Kubernetes from Ticket to PR

✍️ OpenClawRadar📅 Published: March 26, 2026🔗 Source
Optio: Orchestrating AI Coding Agents in Kubernetes from Ticket to PR
Ad

Optio is an open-source orchestration system for AI coding agents that manages the complete workflow from task intake to merged pull request without requiring constant human supervision. Built with Fastify, Next.js, BullMQ, and Drizzle on Postgres, it ships with a Helm chart for production deployment.

How It Works

The system follows a three-stage pipeline:

  • Intake – Pulls tasks from GitHub Issues, Linear, or manual creation
  • Execution – Spins up isolated Kubernetes pods per repo, runs Claude Code or Codex in git worktrees
  • PR Monitoring – Watches CI checks, review status, and merge readiness every 30 seconds

The key differentiator is the feedback loop. When CI breaks, Optio feeds the failure back to the agent. When a reviewer requests changes, the comments become the agent's next prompt. It continues until the PR merges or you manually stop it.

Ad

Architecture and Features

Optio uses a pod-per-repo architecture with one long-lived Kubernetes pod per repository. Each pod maintains git worktree isolation for multiple concurrent tasks. The system includes:

  • Self-healing – Auto-resumes the agent on CI failures, merge conflicts, or reviewer change requests
  • Completion automation – Squash-merges the PR and closes the linked issue when all checks pass
  • Per-repo configuration – Model selection, prompt templates, container images, concurrency limits, and setup commands tunable per repository
  • Code review agent – Automatically launches a review agent as a subtask with separate prompt and model
  • Real-time dashboard – Live log streaming, pipeline progress, cost analytics, and cluster health monitoring

Technical Implementation

The architecture consists of three main components:

  • Web UI (Next.js on port 3100) with dashboard, task management, and live streaming
  • API Server (Fastify) with workers for task queue, PR watcher, health monitoring, and ticket sync
  • Kubernetes cluster with repo pods containing multiple worktrees running AI agents

Services include repo pool management, review agent execution, and authentication/secrets handling, all backed by Postgres for tasks, logs, and events.

📖 Read the full source: HN AI Agents

Ad

👀 See Also

Custom Voice Extraction Process for Claude Code with Template
Tools

Custom Voice Extraction Process for Claude Code with Template

A developer shares a three-pass extraction process to create a custom voice skill for Claude Code, resulting in a 510-line SKILL.md file with ban lists for LLM-isms, anti-performative rules, and format-specific voice modes. The open-source template works with any language using 10+ writing samples.

OpenClawRadar
Statespace: Build Interactive Web Apps for OpenClaw Agents with Markdown
Tools

Statespace: Build Interactive Web Apps for OpenClaw Agents with Markdown

Statespace is a free, open-source framework for building and sharing AI-friendly web apps that OpenClaw agents can navigate and interact with using pure Markdown. It allows you to define tools, components, and instructions in Markdown files that agents access over HTTP.

OpenClawRadar
Sgai: Goal-Driven Multi-Agent Software Development Tool
Tools

Sgai: Goal-Driven Multi-Agent Software Development Tool

Sgai is an open-source Go tool that coordinates AI agents to execute software goals defined in GOAL.md files. It decomposes goals into DAG workflows, runs tests for completion gates, and operates locally with a web dashboard for monitoring.

OpenClawRadar
TradesMCP: Open Source MCP Server for Contractor License Verification and Construction Data
Tools

TradesMCP: Open Source MCP Server for Contractor License Verification and Construction Data

TradesMCP is an open source Model Context Protocol server that provides Claude with access to real contractor license data, building permits, material pricing, and labor rates. The tool correctly verified an active California contractor license where ChatGPT returned incorrect information.

OpenClawRadar