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.
- 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.
Related agent uses
Connect a coding agent to an Excalidraw board
They hooked an installed coding agent to a live Excalidraw canvas so it could read the scene and edit the drawing directly.
Use parallel agents to build a database engine
They split a SQLite implementation across several coding agents working in separate branches, then merged the pieces after repeated test-and-fix loops.
Run a two-pass bug check before opening a PR
Use an agent to flag possible bugs first, then have it verify each one before any pull request is opened.
Build your own daily-use apps with an agent
A developer used coding agents to make personalized replacements for core tools, then waited a week before deciding whether each change should stick.
Auto-file Svelte mistakes as GitHub issues
They added an opt-in skill that turns concrete Svelte mistakes into draft or filed issues in the Svelte AI tools repo.
Have the agent interview you before it writes code
A developer uses an agent to clear up vague requirements, handle small implementation choices, and keep them learning while the code is being built.