Run a coding agent in your own CI

Let "Implement with agent" start your own coding agent in GitHub Actions, GitLab CI or Azure Pipelines, with your own AI key.

In short

Connect your CI once as an agent pipeline. On an approved Change, "Implement with agent" then starts your own workflow with the Change's brief; a coding agent writes the code with your AI key, and the workflow opens a pull request. {{brand}} follows the run and the pull request on the Change, and approves nothing.

Before you start

Give the start-only token

  1. GitHub Actions: make a fine-grained token for this repository alone with Actions (read and write) and Metadata (read) - nothing else. "Open the token page" fills these in.
  2. GitLab CI: in the project, Settings › CI/CD › "Pipeline trigger tokens", add one. Choose the GitLab connection that follows the pipeline.
  3. Azure Pipelines: make a personal access token with only Build (Read & execute), and give the pipeline's id.
  4. Paste the token, the repository and the workflow, and press "Check this step". A token that can reach your code is refused.

Check and use

  1. Press "Run the full check" and "Finish". The pipeline shows under "Agent pipelines".
  2. In a design, open an approved Change, make its card with "Implement", then choose "Run in your CI". The Change shows the run: started, running, the pull request, its checks, merged.

If a step fails

Good to know

Related