Skip to content

feat/batch-changes: support codingAgent steps in batch exec (codingAgent v1 MVP 2/3)#1325

Draft
taras-yemets wants to merge 1 commit into
mainfrom
ty/batch-changes-codingagent-mvp
Draft

feat/batch-changes: support codingAgent steps in batch exec (codingAgent v1 MVP 2/3)#1325
taras-yemets wants to merge 1 commit into
mainfrom
ty/batch-changes-codingagent-mvp

Conversation

@taras-yemets
Copy link
Copy Markdown

Vendors lib/batches/codingagent + lib/batches/codex from sourcegraph/sourcegraph, teaches src batch exec to render codingAgent steps via the agent registry, and forwards SRC_BATCHES_MODEL_PROVIDER_TOKEN + SRC_BATCHES_JOB_ID into the user container so the agent CLI can reach the server's model-provider proxy.

Also: adds v3 image: alias on Step and minimum schema additions so src batch validate / apply accepts v3 codingAgent specs locally.

Part 2 of 3 of the codingAgent-on-SSBCv1 demo/MVP. Pairs with:

  • monorepo: sourcegraph/sourcegraph#12701 (lib relocation, source of vendored code)
  • monorepo: sourcegraph/sourcegraph#12702 (server wiring + drop v2-only gate)

Not for merge as-is — vendored copy of lib is hand-synced; a real release would replace this with a clean sync workflow + version bump.

Vendors lib/batches/codingagent + lib/batches/codex from sourcegraph/
sourcegraph, adds the v3 codingAgent step + image alias to the spec
+ schema, and rewrites step.Run via codingagent.RenderRunCommand
when step.CodingAgent is set. SRC_BATCHES_MODEL_PROVIDER_TOKEN and
SRC_BATCHES_JOB_ID are forwarded from src's own env into the user
container so the agent CLI can reach the server's model-provider
proxy.

Demo/MVP for v1 codingAgent support. Not for merge as-is.
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