Agentic SDK pipeline · real runs

Describe an API change. Get a released SDK and working apps.

An issue describes a change to GP API. Agents update the OpenAPI spec, a gate checks it, and APIMatic releases the TypeScript SDK, the Context Plugin and the developer portal. Then the apps built on the SDK update themselves, proven against the live GP sandbox.

The agents

Three AI agents, each with one job

All three run on a free model, @cf/deepseek-ai/deepseek-v4.1-flash-1017 on Cloudflare Workers AI. They only read the text they're given and answer with JSON. None of them gets a token, network access or a shell: a script checks the answer and the workflow applies it.

Spec agent

gpx-spec · spec-agent.yml
Starts when
An issue gets the spec-change label, or the gate sends a PR back with new validation errors (up to 3 rounds).
Reads
The issue, plus only the parts of the 6.5 MB GP API spec and the portal guides that the issue names.
Answers with
JSON Patch operations for the spec, exact guide edits, a release label (patch, minor or major) and a summary that becomes the release notes.
Checked by
A script that keeps every edit inside the spec and guides, then the spec gate: APIMatic validation (no new errors) and oasdiff, which overrides a label that's too low.

Fix agent

gpx-consumers-typescript · sdk-update.yml
Starts when
A new SDK version breaks an app's typecheck, build, tests or the live GP sandbox smoke test.
Reads
The failure output, the files it points at, the SDK release notes, and the Context Plugin's SDK map pages for the operations those files call.
Answers with
Exact edits to app source, one app at a time, with notes on why. Up to 3 tries per app.
Checked by
A script that allows edits only in app source and rejects invented defaults like ?? 0, then every check runs again. It's pushed only if they all pass.

Review agent

gpx-consumers-typescript · sdk-update.yml
Starts when
An SDK update PR changes app code, whether the fix agent or a person made the change.
Reads
The code change (lockfiles left out) and the SDK release notes.
Answers with
approve or request_changes, with specific comments, posted on the PR.
Checked by
The workflow's own checks on scope, weakened tests and invented defaults. A request for changes, or any major update, waits for a person.
Also in the pipeline, but not AI: APIMatic CLI validates the spec and generates the SDK, Context Plugin and portal oasdiff decides the lowest allowed release label Renovate opens the SDK update in the apps GitHub Actions runs every step and applies the agents' answers
Replay

Pick a change and watch it run

Every step below is captured from the pipeline's real GitHub runs: the issue, the agent's diff, the gate's checks, the release, and the app update. The repositories are private, so the evidence is copied into this page.

How it works

Four stages, each with its own check

1

The spec agent

Reads the issue, finds the parts of the 6.5 MB GP API spec it names, and proposes a JSON Patch plus any guide edits and a release label. It never runs code and never sees a token.

2

The spec gate

Runs apimatic api validate on main and on the PR: no new errors allowed. oasdiff sets the lowest allowed release label and raises the agent's if it's too low. Major changes wait for a person.

3

The release

APIMatic generates, tests and publishes the TypeScript SDK to npm, regenerates the Context Plugin, rebuilds the developer portal, and tags the version.

4

The apps

Renovate opens the SDK update. Every app builds and runs its tests and a live GP sandbox smoke test. If one breaks, a fix agent repairs it using the SDK map, and a review agent checks the fix.

The agents run on a free model (Cloudflare Workers AI). They answer with JSON only; the workflows decide what to apply, and every change goes through the same checks a person's would.

Where a person steps in

Automatic by default, a person for anything risky

Run history

Every SDK version the pipeline shipped