Use an agent to open PRs that speed up CI

A CI agent reviewed workflows and opened PRs that reduced test time and cost, while a human approved each change before merge.

Done with Custom agent· Intermediate

What they did
They installed the StarSling GitHub App and pointed their workflows at its runners by changing a single runs-on line. After that, the agent read the repo’s workflow files, job history, logs, and machine data, then drafted PRs that adjusted caching, split tests across runners, ran tasks in parallel, and changed work order. A person checked each PR and merged the ones they wanted.
How it went
Mastra’s slowest test workflow dropped from 29m56s to 5m06s. Better Auth’s E2E suite fell from 2m22s to 1m04s, and Partcl said one agent-made PR made its Rust tests about twice as fast. Some of those gains came from the faster runners themselves, not only the code changes.
Tips
Use this mainly for repos with clear CI bottlenecks and enough run history to compare. Keep a human in the loop for every PR, especially before anything that could affect deployments or secrets.

Try it yourself with Codex

Review the CI workflows in [repo or org] and identify the slowest or most costly jobs using recent run data from [CI provider]. For the top [number] candidates, propose and implement changes such as cache improvements, test sharding, parallel jobs, or removing redundant steps. Create one draft PR per change with a short explanation and any before/after timing estimate you can infer. Pause and ask for my approval before any merge, release, deployment, secret change, payment, or other irreversible action. If a step is unclear, ask me before proceeding.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.