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.
1Spec 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.
2Fix 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.
3Review 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