coding brokers writing most, if not all, of the code that’s used for various functions, the bottleneck has moved from writing code to different duties associated to coding.
One of many principal different bottlenecks is reviewing the output of code, i.e., going via the applying to evaluate the updates which have been added to make sure the brand new code really does what it’s speculated to do. Nevertheless, one other job that I’ve seen is turning into an increasing number of of a bottleneck is CI/CD and dealing with GitHub and deployments.
That is positively a difficulty I’ve struggled with personally. When I’ve a whole lot of brokers working in parallel making an attempt to get the code into improvement or manufacturing on the identical time, it may be a problem to make all of the brokers work successfully with one another. On this article, I’ll cowl the methods that I take advantage of to successfully work with a number of brokers in parallel in relation to merging and deploying code to manufacturing.

Why CI/CD has turn into a bottleneck
CI/CD stands for steady integration and steady supply. It principally refers back to the pipeline you may have from after you’ve written the code and also you need to deploy the code. So, this contains working a whole lot of checks, for instance, merging the code right into a improvement department or a principal department, and deploying the code.
You’ll be able to think about that beforehand 80% of a coder’s time was spent writing the precise code, just because writing a whole lot of code takes a whole lot of time.
Nevertheless, now this has utterly shifted as a result of code could be written tremendous rapidly now that we have now coding brokers to put in writing all of the code for us. And the bottleneck has moved to different duties inside software program engineering. These are duties corresponding to:
- CI/CD
- Human testing
- Organizing and planning duties to be finished
That is positively a development. Bottlenecks shifting round to completely different duties is quite common as soon as duties turn into extra optimized, such because the writing of code being optimized by coding brokers. Nevertheless, now that the bottleneck has moved to, for instance, CI/CD points, we have to discover methods to attenuate that bottleneck and enhance pace in order that we will take advantage of out of those coding brokers.
So, the straightforward purpose CI/CD has turn into a bottleneck is simply that different components of programming have turn into simpler. And the explanation you must care about it’s naturally that CI/CD now takes a good portion of a software program engineer’s time.
Tips on how to optimize CI/CD with coding brokers
Now I’ll begin discussing completely different methods that I take advantage of to optimize CI/CD with Claude Code. I’ll cowl the primary methods in several subsections beneath.
Automating code evaluations
The very first thing I’ll cowl with CI/CD optimization is that code evaluations must be automated. I’d argue that usually you do not want a human evaluate when merging stuff to a dev surroundings. That is just because a dev surroundings is supposed for testing in a whole lot of circumstances, and for my part, code that has been written by a coding agent corresponding to Claude Code and reviewed by a coding agent corresponding to Codex is much less prone to include bugs than if a human had finished your entire factor.
That is based mostly on experiences from once I’ve written code in manufacturing settings and from quantitative numbers that I’ve seen on the variety of bugs from manufacturing settings. For confidentiality causes, I can’t share these precise numbers, however you’ll simply should belief me that that is the case.
Operating all the pieces in parallel
The second level I wish to cowl might be apparent to a whole lot of you. However you must, in fact, run all the pieces in parallel that may be run in parallel. For instance, you may run checks and code evaluations in parallel, and all of your checks must be run in parallel. Now, this would possibly sound very apparent, however should you ask your coding agent proper now to look via your CI/CD pipeline and see if something could be optimized via parallelization, there’s a reasonably important probability for lots of you that one thing could be made much more efficient with a easy repair.
I simply urge you proper now to run the next immediate to attempt to optimize your CI/CD pipeline, which could prevent important time. It is because you would possibly save one or two minutes per run of the CI/CD pipeline. For instance, with checks, these checks is perhaps run a median of two to a few instances per PR, and also you would possibly create 30 PRs per day. From the numbers, you may simply see that this may prevent a considerable amount of time over time.
Look via our CI/CD pipeline and see if something could be optimized
via parallelization. If there are checks or code evaluations that may be
run in parallel, I would really like you to replace the pipeline to do that in
parallel so long as it would not impression any of the standard of the CI/CD
pipeline.
Snapshot the dev department to merge to principal
One other approach I lately needed to implement is snapshotting the dev department earlier than taking it to prod. A difficulty I began experiencing an increasing number of was that once I needed to do a launch PR from dev, dev continuously moved, as a result of I had a lot code entering into dev continuously. When I’ve round 20-30 PRs entering into dev per day, the department, in fact, strikes very constantly, and it’s onerous to have a static department to take to manufacturing that has additionally been examined with a human evaluate.
Thus, I began implementing what I name a snapshot dev department to take into prod. This principally implies that every time I need to take dev into manufacturing, I take a snapshot of dev, take it to a brand new department, and take that department via Codex evaluations in order that I can evaluate all code going to manufacturing directly. The code has, in fact, additionally been reviewed when going into dev, however all of the code was not reviewed collectively. After which I take this snapshot department into manufacturing when it’s prepared. This enables dev to constantly replace after the snapshot has been finished, in order that the opposite brokers can nonetheless proceed their work even whereas code is being pulled into manufacturing.
And I discovered that this method labored very well straight away, and it’s a easy change you may implement proper now with a single Claude Code immediate.
Always optimize
The final approach I need to cowl is that you must continuously optimize your CI/CD pipeline. I counsel that you simply, not less than on a weekly foundation, do a evaluate along with your coding agent, for instance, your Claude Code or Codex, and evaluate your CI/CD pipeline given all of the code that has been merged within the final week. This may assist you to uncover bottlenecks within the CI/CD pipeline. For instance, if code evaluations are taking too lengthy, if the Vercel deploys are failing usually, and so forth.
I urge you additionally to not solely let an agent totally autonomously look into the CI/CD pipeline and optimize it, however so that you can perceive what’s happening within the CI/CD pipeline, make the coding agent clarify it to you so that you perceive the way it works and the way it may be optimized, after which have the agent implement the optimization methods. That is vital as a result of I’ve skilled that brokers generally make sub-optimal choices, and having a very good understanding of the pipeline your self lets you assist the brokers make the optimum choices to maximise the effectiveness of your CI/CD pipeline over time.
Conclusion
On this article, I mentioned deploy code successfully. Deploying code has turn into fairly completely different now that we produce a lot extra code and due to coding brokers. Whereas a earlier bottleneck was to put in writing the code itself, bottlenecks have now shifted from writing the code to different software program engineering duties, corresponding to deploying the code and the CI/CD pipeline. I feel you must constantly be optimizing your pipeline to ensure it really works as successfully as doable, which is able to prevent a considerable amount of time when you may have many brokers working in parallel in the identical repository.
👉 My free eBook and Webinar:
🚀 10x Your Engineering with LLMs (Free 3-Day Electronic mail Course)
📚 Get my free Imaginative and prescient Language Fashions book
💻 My webinar on Imaginative and prescient Language Fashions
👉 Discover me on socials:
💌 Substack

