Skip to content

feat: repo field, base_agent inheritance, and inference warning#78

Merged
robbycochran merged 3 commits into
mainfrom
rc-agent-features
Jun 17, 2026
Merged

feat: repo field, base_agent inheritance, and inference warning#78
robbycochran merged 3 commits into
mainfrom
rc-agent-features

Conversation

@robbycochran

Copy link
Copy Markdown
Collaborator

Summary

Three new agent config features that were added after PR #77 merged.

  • repo — clone a git repo outside the sandbox (--depth 1) and upload to /sandbox/<repo-name>. Git credentials never enter the sandbox.
  • base_agent — inherit providers, env, and payloads from a base agent config. base_agent: default resolves agent-default.yaml. Providers and env merge additively; scalar fields from the overlay win.
  • Inference provider warning — warns during apply when no inference provider is configured for claude/opencode entrypoints, preventing the cryptic "Not logged in" error.
  • Makefiletest-local builds sandbox image automatically; test-remote pushes automatically.
  • README — testing section, repo clone flow, getting results out of sandboxes.

Example: 4-line task config

name: reviewer
base_agent: default
repo: https://github.com/stackrox/collector
task: "identify the highest-priority C++ remediation"

Test plan

  • make test — 5/5 packages pass
  • make test-suite — 23/23 pass
  • TestMergeOver — base_agent merge semantics
  • make test-local — full e2e

- repo: clone a git repo outside the sandbox and upload it (--depth 1,
  git credentials never enter the sandbox)
- base_agent: inherit providers, env, payloads from a base config.
  Providers and env merge additively; scalar fields overlay wins.
- Warn during apply when no inference provider is configured for
  claude/opencode entrypoints
- Makefile: test-local builds image automatically, test-remote pushes
- README: testing section, repo clone flow, getting results out
Clone now uses --recurse-submodules --shallow-submodules by default.
New repo_ref field specifies a branch, tag, or ref to clone (passed
as --branch to git clone). Defaults to HEAD when omitted.
@robbycochran robbycochran merged commit c92422d into main Jun 17, 2026
5 of 6 checks passed
@robbycochran robbycochran deleted the rc-agent-features branch June 17, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant