repository prebake for agent runtimes - #4070
Conversation
Soffi AI SummaryThis PR introduces a repository pre-bake system for agent runtimes, allowing AI coding agent pods to start with pre-cloned Git repositories already available — eliminating the cold-clone latency that would otherwise occur at agent startup. The core idea is to build an OCI image containing pre-cloned repositories and a
ChangesRepository pre-bake for agent runtimes
Updated: 2026-08-31 08:21 UTC |
Greptile SummaryThe PR adds OCI-backed repository prebaking for agent runtimes, allowing pods to copy matching repositories locally and expose other prebaked repositories as context.
Confidence Score: 4/5The requested-branch fallback should be fixed before merging because it can silently run an agent against the wrong checkout and pull-request base. A failed fetch or checkout on the new prebake path is converted to success, after which downstream configuration and prompts proceed as though the requested branch had been honored. Files Needing Attention: go/deployment-operator/pkg/agentrun-harness/environment/environment.go
|
| Filename | Overview |
|---|---|
| go/deployment-operator/pkg/agentrun-harness/environment/environment.go | Adds prebake copying and safe-directory setup, but silently continues on an explicitly requested branch when fetch or checkout fails. |
| go/deployment-operator/pkg/agentrun-harness/prebake/prebake.go | Implements manifest loading, path confinement, repository listing, and normalized URL matching with appropriate fallback behavior. |
| go/deployment-operator/internal/controller/agentrun_pod.go | Adds the repository image volume and read-only mounts to the intended agent-run containers. |
| go/deployment-operator/dockerfiles/repository-prebake/prebake.sh | Builds validated prebake layouts and sanitizes embedded HTTPS credentials before storing remotes and manifest entries. |
| go/deployment-operator/pkg/agentrun-harness/tool/v1/tool.go | Supplies available prebaked repositories to system prompt templates while tolerating missing or invalid manifests. |
Reviews (1): Last reviewed commit: "repository prebake for agent runtimes" | Re-trigger Greptile
…pository-prebake-for-agent-runtimes
…pository-prebake-for-agent-runtimes
Test Plan
Test environment: https://console.your-env.onplural.sh/
Checklist
Plural Flow: console