How piomin/ai-software-factory works
This repository deploys a Kubernetes/OpenShift software factory: GitHub issues and comments enter through Tekton Triggers, start one of three agent pipelines, and can produce a plan, code changes, a pull request, or a reply. Pipelines fetch skills, prepare a branch, run OpenCode against an in-cluster vLLM model, verify changes, and publish results. The graph follows documented event and pipeline flows; source excerpts were not provided, so relationships are evidenced by the README rather than inspected implementation details.
Main entry points: Dockerfile.opencode OpenCode agent · pipeline-issue-agent.yaml New issue flow · pipeline-issue-comment-agent.yaml Issue comment flow · pipeline-pr-comment-agent.yaml PR review flow
Components 21
Event intake
- Webhook route
tekton/route-new-issue.yaml - EventListener
tekton/eventlistener-new-issue.yaml - HMAC interceptor
tekton/eventlistener-new-issue.yaml - CEL filters
tekton/eventlistener-new-issue.yaml - Trigger bindings
tekton/triggerbinding-new-issue.yaml - Trigger templates
tekton/triggertemplate-new-issue.yaml
Agent workflows
- PipelineRun
tekton/triggertemplate-new-issue.yaml - New issue flow
tekton/pipeline-issue-agent.yaml - Issue comment flow
tekton/pipeline-issue-comment-agent.yaml - PR review flow
tekton/pipeline-pr-comment-agent.yaml - Fetch skills
tekton/task-fetch-skills.yaml - Build verification
tekton/task-verify-build.yaml - Failure reporting
tekton/task-report-failure.yaml
Agent and models
- OpenCode agent
agents/Dockerfile.opencode - Agent configuration
agents/configmap-agent-config.yaml - Qwen model serving
ai/deployment-qwen38-flash.yaml - Qwen coder serving
ai/deployment-qwen3-coder.yaml
Cluster access
- GitHub App credentials
secrets/secret-github-app.yaml - Webhook secret
secrets/secret-github-webhook-secret.yaml - Model hub token
secrets/secret-hf-token.yaml
Other components
- GitHub events
Connections 29
- GitHub events → Webhook route: sends webhook
README.md - Webhook route → EventListener: routes events
README.md - EventListener → HMAC interceptor: checks signature
README.md - EventListener → CEL filters: filters events
README.md - CEL filters → Trigger bindings: maps payload
README.md - Trigger bindings → Trigger templates: sets parameters
README.md - Trigger templates → PipelineRun: creates run
README.md - PipelineRun → New issue flow: starts pipeline
README.md - PipelineRun → Issue comment flow: starts pipeline
README.md - PipelineRun → PR review flow: starts pipeline
README.md - New issue flow → Fetch skills: fetches skills
README.md - Issue comment flow → Fetch skills: fetches skills
README.md - PR review flow → Fetch skills: fetches skills
README.md - New issue flow → OpenCode agent: runs agent
README.md - Issue comment flow → OpenCode agent: runs agent
README.md - PR review flow → OpenCode agent: runs agent
README.md - New issue flow → Build verification: verifies changes
README.md - Issue comment flow → Build verification: verifies changes
README.md - PR review flow → Build verification: verifies changes
README.md - OpenCode agent → Qwen model serving: requests inference
README.md - Agent configuration → OpenCode agent: configures agent
README.md - New issue flow → GitHub events: publishes PR and reply
README.md - Issue comment flow → GitHub events: publishes reply or PR
README.md - PR review flow → GitHub events: publishes reply or changes
README.md - EventListener → Webhook secret: checks secret
README.md - OpenCode agent → GitHub App credentials: gets installation token
README.md - Qwen model serving → Model hub token: authenticates model pull
README.md - OpenCode agent → Qwen coder serving: may use model
- New issue flow → Failure reporting: reports failure
README.md