Component
Documentation
Describe the feature
Provide an optional onboarding flow—CLI command, one-shot agent task, or deterministic static analyzer—that inspects a GitHub repository and produces suggested environment configuration: Dockerfile fragments, Dev Container starter files, install/build/test commands, and Blueprint-ready hints derived from existing repo signals (CI workflows, package manifests, CONTRIBUTING.md, .tool-versions, mise.toml, etc.).
Output is advisory: operators review and commit the generated files; the platform does not silently mutate customer repos. This complements the platform default image and per-repo overrides defined in the repo-defined environments feature—it lowers the barrier from "default works poorly" to "repo has a checked-in spec" without manual Dockerfile authoring.
Use case
I'm always frustrated when onboarding a new repo to ABCA requires guessing which Node version, system packages, or setup commands the agent needs. Repo owners often already encode this in GitHub Actions and READMEs but not in a form the compute layer consumes. An assisted scan would bootstrap devcontainer.json, Dockerfile additions, or Blueprint documentation snippets so the first real task succeeds without trial-and-error submissions.
Proposed solution
- Signal inventory — Define a fixed set of inputs the scanner reads (non-exhaustive):
.github/workflows/*, package.json, pyproject.toml, go.mod, mise.toml, .nvmrc, Dockerfile*, existing devcontainer.json, AGENTS.md, CI install/build/test steps.
- Deterministic pass (phase 1) — Pure TypeScript or Python module that emits a structured report: detected languages, inferred versions, suggested base image family, recommended
postCreateCommand / test command, gaps vs platform default image. No LLM required for v1.
- Assisted pass (phase 2, optional) — Repo-less or repo-backed workflow (
knowledge/* or dedicated onboarding workflow) that drafts devcontainer.json and a short operator checklist from the inventory + platform docs. Human approves before merge.
- CLI entrypoint —
bgagent repo analyze --repo owner/name [--output dir] writes suggestions to stdout or a local directory (not auto-committed to the customer repo).
- Blueprint hook (phase 2) — Optional flag on Blueprint deploy: run analyzer once, surface warnings in deploy output if repo lacks manifest and default image likely insufficient (e.g. Rust repo detected, no
cargo in default image).
- Docs — Onboarding guide section: "Start with default → analyze → commit spec → enable override."
Acceptance criteria
Other information
- Depends on / pairs with: repo-defined environments issue (default + override hierarchy must exist before generated specs are consumed at runtime).
- Related roadmap: Dynamic onboarding artifacts (broader context attachments; this issue is narrowly scoped to environment/toolchain discovery).
- Related design:
docs/design/REPO_ONBOARDING.md, docs/design/COMPUTE.md.
- Deliberately separate from runtime image build: analysis can ship first as DX-only; image resolution ships in the sibling feature.
- Alternatives considered: manual docs only (slow adoption); mandatory manifest at onboarding (too high a bar for first task).
Acknowledgements
Component
Documentation
Describe the feature
Provide an optional onboarding flow—CLI command, one-shot agent task, or deterministic static analyzer—that inspects a GitHub repository and produces suggested environment configuration: Dockerfile fragments, Dev Container starter files, install/build/test commands, and Blueprint-ready hints derived from existing repo signals (CI workflows, package manifests,
CONTRIBUTING.md,.tool-versions,mise.toml, etc.).Output is advisory: operators review and commit the generated files; the platform does not silently mutate customer repos. This complements the platform default image and per-repo overrides defined in the repo-defined environments feature—it lowers the barrier from "default works poorly" to "repo has a checked-in spec" without manual Dockerfile authoring.
Use case
I'm always frustrated when onboarding a new repo to ABCA requires guessing which Node version, system packages, or setup commands the agent needs. Repo owners often already encode this in GitHub Actions and READMEs but not in a form the compute layer consumes. An assisted scan would bootstrap
devcontainer.json, Dockerfile additions, or Blueprint documentation snippets so the first real task succeeds without trial-and-error submissions.Proposed solution
.github/workflows/*,package.json,pyproject.toml,go.mod,mise.toml,.nvmrc,Dockerfile*, existingdevcontainer.json,AGENTS.md, CI install/build/test steps.postCreateCommand/ test command, gaps vs platform default image. No LLM required for v1.knowledge/*or dedicated onboarding workflow) that draftsdevcontainer.jsonand a short operator checklist from the inventory + platform docs. Human approves before merge.bgagent repo analyze --repo owner/name [--output dir]writes suggestions to stdout or a local directory (not auto-committed to the customer repo).cargoin default image).Acceptance criteria
compute.imageoverrides.Other information
docs/design/REPO_ONBOARDING.md,docs/design/COMPUTE.md.Acknowledgements