We should probably be measuring deployable merges to main. The math just doesn't work for pipeline based CI as you add more agents.
Three things matter.
1 -- How many non-conflicting changes can actually be made at one time (Fan Out)
2 -- How long a critical path takes
3 -- How many times you have to run that critical path. Most orgs run it 2-3x, once before the PR in the agent loop, once in CI, and another in the MQ
This is why most orgs cant get past about 12 PRs an hour.
jwilliams 3 days ago [-]
> 3 -- How many times you have to run that critical path. Most orgs run it 2-3x
This is the one we went after. Our agents have to run tsc, lint and the unit tests before they push (it's in a hook), and CI was then doing all three again from scratch. Now the agent records what it ran as a git trailer on the commit and the PR build skips those steps [1]. Anything headed to main still runs everything, so the trailer only has to be trusted on the intermediate pushes.
Builds went from ~10 minutes to 1.5 over a few weeks, and a good third/half of that was this change. It tends to compound too - getting the build time down led to lower contention, warmer caches, faster throughput. All the usual queuing theory stuff.
Clever use of a git trailer! This seems like a great middle ground to cut some CI minutes without the full rigor of a CI engine.
We love Buck2 and Bazel, from first principles. Unfortunately, the DX hurdles of making a codebase hermetic have prevented widespread adoption IMO.
jwilliams 3 days ago [-]
Thanks! We actually call it the poor-mans Bazel :)
Bnjoroge 2 days ago [-]
I experimented with something similar, but running the actual gha jobs locally. Were you doing any verification to ensure the agent actually run all tests? do you sitll run remote CI? how do you deal with side effects of work that integrates with other PRs in some way? Were you sandboxing them?
jwilliams 2 days ago [-]
We still run the lot on merge to main. But there are a lot of branch builds along the way. That’s where the savings come in.
colek42 2 days ago [-]
I love this. I'm thinking we could make a git trailer of the evidence oid we create -- would make the UX much better.
I maintain witness.dev (CNCF) and cilock.dev (Apache 2.0 open core) that builds provenance around SDLC (or ADLC steps). We are experimenting using this to just let the agents land code after they prove their testing. Right now we are expecting a 2x increase in throughput at the same amount of compute
dbworku 3 days ago [-]
Definitely agree that agent volume will push beyond pipelined CI. Most teams we’ve talked to are still working to get up to 100 PR/hour.
devkumardev2001 1 days ago [-]
Same test IDs on both runs is the right bar. I’d add one more check before calling a re-shard a win: Playwright shards by file, not by individual test. So equal file counts don’t mean equal workloads. One slow file can dominate a shard, and once it moves, another may become the bottleneck. Track the longest shard’s duration over time, not just the median.
On Bnjoroge’s question, compare the total test count in the merged report with npx playwright test --list on the same commit. That gives you a simple check that the expected tests are represented in the results.
Two lessons from running Playwright in Kubernetes: CPU throttling can cause timeouts that look like flaky tests, so monitor throttling before increasing retries. And keep flaky tests in a separate, non-blocking job rather than letting an optimizer remove them. Otherwise, you improve the metric without fixing the underlying issue.
Disclosure: I work on TestDino, a Playwright reporting tool.
marcos0811258 10 hours ago [-]
You're right that file-level sharding is the trap. Setting fullyParallel: true makes Playwright shard individual tests instead of whole files. It balances by test count, not runtime, so your longest-shard tracking still matters.
The totals check gets easier with the blob reporter: run each shard with reporter: 'blob', then npx playwright merge-reports --reporter html ./all-blob-reports. You get one report containing every shard's tests, so a mismatch against --list stands out.
On throttling, workers default to half the logical CPU cores, and the workers option also accepts a percentage. If the count the runner picks is above your CPU limit, timeouts follow. Set workers explicitly in the pod config.
emscb 3 days ago [-]
So the agent compares the changed workflow with the existing one and judges whether the speedup is significant. But a change that re-shards or skips tests would always look like a win on speed alone, wouldn't it? How do you check that such changes still catch the bugs the old workflow caught? I had the same worry when I trimmed our tests because CI was too slow.
yonasb 3 days ago [-]
Good question! In terms of the what counts as a win for our agents: speed alone isn't enough. A change only counts if the patched run and the unchanged run executed the same tests (same test IDs, same coverage).
Re-sharding is allowed because it only changes where tests run, not what runs. It has the same sort of parity check as other patches but it also has a cost check to make sure the change doesn't increase runner time by more than 5% by default. We added the cost check after seeing the agents crush wall clock while 10x'ing costs on some test :)
Judging whether or not a test should be trimmed isn't something our agents do yet, because as you alluded to, it's hard. But we're working on it! If you have any ideas or an approach that's worked for you, would love to hear it.
emscb 3 days ago [-]
When I trimmed my tests, I looked for ones that could be merged. Many unit tests shared the same setup and teardown, so when I merged their middle parts, that setup and teardown only had to run once. Even after merging, the tests still had to stay independent of execution order, so I checked that. In another case, some infrastructure checks were repeated across tests in one folder. For example, “the app needs environment variable A at startup” is already a test of its own, but every application-layer test also asserted it at the start. I kept that check in one place instead.
slaser79 2 days ago [-]
The parity check on test IDs plus the cost cap is a good deterministic checker. For trimming tests, where judgment comes in, I'd have a separate reviewer agent decide it and not the one that proposed the change.
bekacru 3 days ago [-]
Bereket from Better Auth - we've been on StarSling for about a year now, it's been such a hard a problem for us ot solve CI to the amount of PRs we get and continues need of optimization and faster runners, im so bullish!
yonasb 3 days ago [-]
Merging the runner migration was such a proud moment for us! So glad we've been able to take CI off your plate :)
ansh25lehri 1 days ago [-]
Interesting concept. Is there a plan to support Kubernetes-native CI like
Argo Workflows, or is GitHub Actions the focus for now?
Also, since some wins come from app code (like the better-auth fix), how do
you decide when a change outside the workflow/test files is in scope? Beyond
the test-parity check, is there a guardrail on how much business code the
agent can touch?
Shexfer 2 days ago [-]
The parity check — same test IDs, same coverage — answers the "re-sharding vs deleting tests" worry, but it still trusts the test set as the oracle. The failure I'd want guarded is a change that keeps the same tests but makes them faster by weakening what they assert: a looser timeout, a mocked dependency, a skipped setup.
Is the agent diffing the test bodies as well as the run results? A guard on test-file changes would make the speedup claim much easier to trust.
jstrasner 3 days ago [-]
So good! CI is still such a pain. Out of curiosity, do you use any open source harnesses under the hood or did you roll your own?
yonasb 3 days ago [-]
We use Mastra to run the agents in our CI harness. It's been great for being able to swap out models easily. More details here https://starsling.dev/blog/agent-loop.
codedrift_ 2 days ago [-]
In a former life, I ran platform teams and the CI speedups we fought for rarely lasted. A few months later someone adds a sleep to a test or a new job skips the cache, and the build is slow again.
How does StarSling handle that drift? Does the loop keep watching a workflow after a PR merges, and will it catch a regression on a win it already shipped?
yonasb 2 days ago [-]
That constant battle you're describing is exactly why having agents part of your hosted runners is valuable. Our agents continuously watch your telemetry, code changes, and runs to find more optimizations. When a PR merges, the agents will catch any regressions and open a fix or revert.
Given your past experience, is StarSling solving the drift issue the way you'd want it to be solved? Would love to hear any ideas you have for what the ideal solution would look like.
codedrift_ 21 hours ago [-]
I think it's solving some of it, yeah. Most teams never catch it at all, so something watching on merge is huge. About the only thing I'd really pine for is StarSling to also add in regression prevention.
If the cause of slowdown has a fix, we should be able to add pre-commit checks that prevent the bad behavior going forward. Otherwise I'm afraid it'll creep back in.
Good news though, you can verify that a code check StarSling writes prevents the regression since you've already got all the testing infra built. It's just anything that runs earlier in the process will be cheaper, predictable, and faster.
esafak 3 days ago [-]
As you note, we can do those optimizations ourselves. The kind of person looking for CI runners is likely doing that already. What I value is speed, cost, scheduling delay, reliability, observability, local reproducibility, not using YAML... There is a lot of value to provide but workflow optimization is not where I would look.
yonasb 3 days ago [-]
That's fair. At a certain point, once you value all of those things enough, you'll just move off of YAML entirely (we think of this as Level 4 of CI https://starsling.dev/blog/levels-of-ci#level-4). But I think there are a lot of people still trying to get the biggest gains with the least amount of effort. That's who we're going after first.
esafak 2 days ago [-]
Fair enough, brother. I am a fussy customer :) More power to you.
yonasb 2 days ago [-]
Ha, you're just further along the CI journey :)
Bnjoroge 3 days ago [-]
I think YAML used to matter more when humans were writing much of the code, but they matter alot less now, especially because you can already write much of your YAML workflows in high level code. It's still matters, but alot less than it used to or enough to be a pain. I agree with the rest of the concerns though.
yonasb 3 days ago [-]
Yeah YAML written by agents seems like it's gonna be around for a while. GitHub Actions has 90%+ market share for Claude recommendations: https://amplifying.ai/research/claude-code-picks/report#rank.... The problem is, nobody is going back to clean it up until it's a real bottleneck.
poxlr 2 days ago [-]
Curious how the inference cost of the agent loop compares to the CI minutes it saves. On a smaller repo I could see it eating most of the savings. Is there a repo size where it starts to clearly pay off?
So short answer is that usually the CI min savings our agent loop finds far outweigh our spend on the optimizations themselves on large repos. On smaller repos less so (I don't have a clear answer on exactly what size). But we also don't charge for optimizations (they're included in runner minutes which are priced the same as competitors) so it's more of an internal question for us we'll figure out as our business matures.
sochs 3 days ago [-]
Off topic but every time I read a name like "Star Sling" I get excited to see another space startup tackling a difficult challenge; and so when it turns out to be CI for agents, it's a letdown and an annoyance. Idk, this project seems cool, but maybe pick a less pretentious name.
yonasb 3 days ago [-]
We chose the name because our original inspiration was an agentic developer portal. So we thought Stargate + Dr. Strange's sling ring that opens portals was a cool mashup. Sorry to disappoint :(
brunoarueira 3 days ago [-]
Congrats on the launch! In the past pre-AI I did an improvement to the github actions pipeline from 20 minutes down to 6, it's a relief when you improve things like this and improve the team throughput!
dbworku 3 days ago [-]
Yeah it accelerates the whole team! If you remember, what was the biggest lever? We're always looking to expand the patterns in our /speed-up skill. :)
brunoarueira 3 hours ago [-]
If I recall correctly it wasn't any rocket science, just reconfigured the way docker multi stage was done and use github actions cache, to reuse it better
jbqueries 2 days ago [-]
An agent that opens PRs to speed up the CI for the PRs opened by agents. Ouroboros, now with per-second billing.
Actual problem tho, congrats on the launch!
yonasb 2 days ago [-]
Ha! Agents keep making CI slower, so we figured agents should be the ones making it faster again :)
MisterMunchkin 2 days ago [-]
What’s stopping Anthropic from just reading your agent logs and reproducing your product in 30 minutes?
dotmike 3 days ago [-]
Congrats on the launch! Will give it a run. Why is your CI fast? Curious to hear the technical details
dbworku 3 days ago [-]
Our primary difference is self-improving PRs from continuously analyzing the telemetry from your CI. Most folks just sell fast hardware and are happy to charge you for jobs that don't saturate the host.
In our examples with open-source repos above you'll see that most of speedups that lead to a 10X speedup come from code changes or optimizations.
d-sanoj 3 days ago [-]
Congrats on the launch. This seems interesting.
yonasb 3 days ago [-]
Thanks! If CI is on your priorities list, give us a shot.
tristenharr 3 days ago [-]
Hmm this is very interesting! Good idea.
yonasb 3 days ago [-]
Thanks! Give it a shot, let us know what you think :)
buildwrangler 3 days ago [-]
Congrats! I spent alot of time scaling really large and complex CI and integration testing builds so its great seeing a product that can help devs with this.
yonasb 3 days ago [-]
Thank you! Yeah most teams don't have someone with your experience so they end up with really inefficient GHA setups. Doing our best to help!
dbworku 3 days ago [-]
Thanks! It’s an unappreciated bottleneck so we feel your pain.
gkoberger 3 days ago [-]
Congrats on the launch! These benchmarks look really great, can't wait to start using this.
What are some of the most interesting things the AI has caught + fixed so far?
yonasb 3 days ago [-]
I was surprised that mature projects got some of the biggest wins. gogs is a 48K-star repo and one 20 line fix got it a 5x speedup:
Oof. It's hard to pick one! I like the subtle fixes like swapping sleeps in tests with DB readiness checks or pinpointing a single long running test causing a shard to run slow.
kinfish 3 days ago [-]
congrats on the launch!
yonasb 3 days ago [-]
Thank you!
Rendered at 14:53:10 GMT+0000 (Coordinated Universal Time) with Vercel.
Three things matter.
1 -- How many non-conflicting changes can actually be made at one time (Fan Out)
2 -- How long a critical path takes
3 -- How many times you have to run that critical path. Most orgs run it 2-3x, once before the PR in the agent loop, once in CI, and another in the MQ
This is why most orgs cant get past about 12 PRs an hour.
This is the one we went after. Our agents have to run tsc, lint and the unit tests before they push (it's in a hook), and CI was then doing all three again from scratch. Now the agent records what it ran as a git trailer on the commit and the PR build skips those steps [1]. Anything headed to main still runs everything, so the trailer only has to be trusted on the intermediate pushes.
Builds went from ~10 minutes to 1.5 over a few weeks, and a good third/half of that was this change. It tends to compound too - getting the build time down led to lower contention, warmer caches, faster throughput. All the usual queuing theory stuff.
[1] https://jonathannen.com/dont-run-it-twice/
We love Buck2 and Bazel, from first principles. Unfortunately, the DX hurdles of making a codebase hermetic have prevented widespread adoption IMO.
I maintain witness.dev (CNCF) and cilock.dev (Apache 2.0 open core) that builds provenance around SDLC (or ADLC steps). We are experimenting using this to just let the agents land code after they prove their testing. Right now we are expecting a 2x increase in throughput at the same amount of compute
On Bnjoroge’s question, compare the total test count in the merged report with npx playwright test --list on the same commit. That gives you a simple check that the expected tests are represented in the results.
Two lessons from running Playwright in Kubernetes: CPU throttling can cause timeouts that look like flaky tests, so monitor throttling before increasing retries. And keep flaky tests in a separate, non-blocking job rather than letting an optimizer remove them. Otherwise, you improve the metric without fixing the underlying issue.
Disclosure: I work on TestDino, a Playwright reporting tool.
The totals check gets easier with the blob reporter: run each shard with reporter: 'blob', then npx playwright merge-reports --reporter html ./all-blob-reports. You get one report containing every shard's tests, so a mismatch against --list stands out.
On throttling, workers default to half the logical CPU cores, and the workers option also accepts a percentage. If the count the runner picks is above your CPU limit, timeouts follow. Set workers explicitly in the pod config.
Re-sharding is allowed because it only changes where tests run, not what runs. It has the same sort of parity check as other patches but it also has a cost check to make sure the change doesn't increase runner time by more than 5% by default. We added the cost check after seeing the agents crush wall clock while 10x'ing costs on some test :)
Judging whether or not a test should be trimmed isn't something our agents do yet, because as you alluded to, it's hard. But we're working on it! If you have any ideas or an approach that's worked for you, would love to hear it.
Also, since some wins come from app code (like the better-auth fix), how do you decide when a change outside the workflow/test files is in scope? Beyond the test-parity check, is there a guardrail on how much business code the agent can touch?
Is the agent diffing the test bodies as well as the run results? A guard on test-file changes would make the speedup claim much easier to trust.
How does StarSling handle that drift? Does the loop keep watching a workflow after a PR merges, and will it catch a regression on a win it already shipped?
Given your past experience, is StarSling solving the drift issue the way you'd want it to be solved? Would love to hear any ideas you have for what the ideal solution would look like.
If the cause of slowdown has a fix, we should be able to add pre-commit checks that prevent the bad behavior going forward. Otherwise I'm afraid it'll creep back in.
Good news though, you can verify that a code check StarSling writes prevents the regression since you've already got all the testing infra built. It's just anything that runs earlier in the process will be cheaper, predictable, and faster.
So short answer is that usually the CI min savings our agent loop finds far outweigh our spend on the optimizations themselves on large repos. On smaller repos less so (I don't have a clear answer on exactly what size). But we also don't charge for optimizations (they're included in runner minutes which are priced the same as competitors) so it's more of an internal question for us we'll figure out as our business matures.
Actual problem tho, congrats on the launch!
In our examples with open-source repos above you'll see that most of speedups that lead to a 10X speedup come from code changes or optimizations.
What are some of the most interesting things the AI has caught + fixed so far?
https://github.com/starsling-demo-org/benchmark-gogs/blob/sh...