Show HN: Optio – Orchestrate AI coding agents in K8s to go from ticket to PR
TL;DR Highlight
A Kubernetes-based workflow automation tool where an AI agent writes code from GitHub Issues or Linear tickets, automatically fixes CI failures, incorporates review comments, and merges PRs — all without human intervention. It stands out for fully automating the entire ticket-to-PR cycle.
Who Should Read
DevOps or platform engineers looking to integrate AI coding agents into their team's development workflow. Particularly suited for teams running Kubernetes infrastructure who want to automate repetitive coding tasks.
Core Mechanics
- Optio accepts tasks via three methods — GitHub Issues, Linear tickets, or manual input — and for each task, provisions an isolated Kubernetes Pod and runs an AI agent (Claude Code or OpenAI Codex) inside it.
- The 'feedback loop' is the core feature, going beyond simple code generation. If CI fails, the agent is automatically resumed with the failure context; if a reviewer requests changes, the agent reads the review comments and pushes fix commits.
- Once all checks pass, the PR is squash merged and the issue is automatically closed. The goal is full automation from 'task description to merge complete' without anyone needing to click a PR button.
- Each task runs in an isolated git worktree, allowing multiple tasks to run in parallel simultaneously. A dashboard provides real-time visibility into the number of running agents, Pod status, costs, and recent activity.
- The task detail view offers live streaming of agent output, pipeline progress, PR tracking, and per-task cost analysis, providing operational visibility.
- A Helm chart is included for deployment to Kubernetes clusters, and a docker-compose.yml is also provided for running in local development environments. The project uses a pnpm + Turborepo monorepo structure with separate API, web, and agent components.
- It is open source (MIT license), and the repository includes files like CLAUDE.md and CONTRIBUTING.md that provide context for AI agents to work with. It has currently received 366 stars on GitHub.
Evidence
- "Skepticism that 'it won't work properly without human oversight' was raised in multiple comments. There were observations that AI can only work in the right direction from GitHub Issues alone for the simplest tickets, and opinions that LLMs should be used more for communicating design/architecture decisions to humans than for code generation. Parallel execution conflicts were raised as a practical concern — what happens when agent A is working on a PR modifying shared/utils.py and agent B receives a ticket that also needs the same file? Questions arose about whether the orchestrator performs dependency analysis upfront or handles it as a merge conflict, but no clear answer was given. Real-world experience with retry token costs was shared: a developer building a similar system noted that excessive token consumption during agent retries was their biggest challenge, and asked how Optio handles this — they use checkpoints to roll back to previous states on failure. Some felt burdened by Kubernetes being a hard requirement, with opinions that K8s should be one option rather than central to agent setup. As an alternative, 'GitHub Actions + @claude mention' was mentioned as a way to achieve similar results more cheaply. There was also direct criticism asking 'what stops it from spitting out garbage that breaks the codebase,' with responses suggesting 'you should want to review agent output.' Practical questions also followed about MCP (Model Context Protocol) support, sandboxed multi-tenant isolation, and whether Pods are scoped per repo or per task."
How to Apply
- "Teams managing backlogs with Linear or GitHub Issues can start by connecting repetitive, clearly-specified tickets (e.g., adding a specific API endpoint, fixing type errors, improving test coverage) to Optio and experimenting with the automation pipeline. It's best to initially focus on verifying that the CI auto-fix loop works correctly. To try it without K8s, you can first run it locally using the docker-compose.yml included in the repo. Referencing .env.example to configure your Claude or OpenAI API key and GitHub token lets you test the full workflow in a local environment. For production deployment, use the Helm chart in the helm/optio directory to deploy to an existing K8s cluster. However, in a multi-tenant environment, you should first verify that sandbox isolation between Pods is sufficient — the community has noted that this is not yet clearly documented. To reduce the risk of conflicts when running parallel agents that modify the same files, it is safer to initially run only tasks involving independent modules or files in parallel, and establish a task assignment strategy that runs tasks touching shared utilities sequentially."
Code Example
# Run locally
git clone https://github.com/jonwiggins/optio
cd optio
cp .env.example .env
# Set ANTHROPIC_API_KEY, GITHUB_TOKEN, etc. in .env
docker-compose up
# Deploy to K8s with Helm
helm install optio ./helm/optio \
--set env.ANTHROPIC_API_KEY=<your-key> \
--set env.GITHUB_TOKEN=<your-token>Terminology
Related Papers
Show HN: OpenKnowledge – open source AI-first alternative to Obsidian/Notion
Git 기반 동기화와 Claude/Codex/Cursor 연동을 내장한 로컬 우선 마크다운 에디터로, AI 에이전트의 두 번째 뇌(LLM Wiki)로 활용할 수 있는 오픈소스 도구다.
The Unfireable Safety Kernel: Execution-Time AI Alignment for AI Agents and Other Escapable AI Systems
AI 에이전트가 자신의 안전장치를 우회할 수 없도록, 에이전트 프로세스 바깥에 수학적으로 증명된 강제 통제 게이트를 배치하는 아키텍처
RubyLLM: A Ruby framework for all major AI providers
OpenAI, Claude, Gemini 등 주요 AI 프로바이더를 단일 인터페이스로 통합한 Ruby 프레임워크로, Rails 통합과 에이전트 기능까지 지원해 Ruby 개발자가 AI 기능을 빠르게 붙일 수 있다.
Qwen-AgentWorld: Language World Models for General Agents
Alibaba Qwen 팀이 AI 에이전트가 행동 결과를 미리 시뮬레이션할 수 있는 'Language World Model'을 공개했다. 에이전트 훈련과 실행 경로 검증에 새로운 패러다임을 제시하는 연구다.
SHERLOC: Structured Diagnostic Localization for Code Repair Agents
버그 위치만 알려주는 게 아니라 '왜, 어떻게 고쳐야 하는지'까지 진단 리포트를 생성해서 코드 수정 에이전트의 성능을 높이는 training-free 프레임워크
Show HN: peerd – AI agent harness that runs entirely in your browser
백엔드 서버 없이 Chrome/Firefox 확장 프로그램으로만 동작하는 AI 에이전트 실행 환경으로, 브라우저 탭을 직접 조작하고 WASM Linux VM까지 구동할 수 있어 프라이버시와 보안을 동시에 챙길 수 있다.