The one I'd add to the list: a rule for when a worktree goes away. With an agent in every tree, cleanup becomes its own risk. In my setup an agent removes its own tree only when a script proves it's clean and its work is on the remote. Anything the script can't prove stays. Another agent's tree waits until I have read the list and said yes.
The flaky test is where I drew a line too. When a test fails and then passes on a second try, my push goes through, but the test is printed as FLAKY and filed as work for the agent that owns it. If the branch itself changed that test, there's no second try: it gets fixed in that task. And no agent approves a merge in my repo; I merge every pull request myself. A fix that rewrites a timer to quiet a test would land in front of me before main.
Same shape in my repo, minus the simulator. One week I counted whole-suite runs: 400 of 704 were started by helper agents, 83% of all suite time, and no rule had asked for any of them. Now a helper runs only the tests of what it changed, and the full suite runs once, at the push. Two suites side by side also failed tests that pass alone, so each Mac takes one test run at a time per half of the code, behind a lock. The model wasn't the slow part for me either.
The CI bill is why I took CI out of my repo. GitHub Actions ran three macOS jobs on every push and every pull request, and one day came to about 1,750 billed minutes for a one-developer repo. Now a hook runs the suite on my Mac before each push, and records each pass keyed on the files its tests read. A change that touches only docs runs nothing. The cost moved from the bill to my Mac's time, which has its own queue. I'd like to know if anyone found a middle that holds up at agent PR rates.
This is great -- hopefully it's available outside of team and enterprise, and without usage based pricing.
Over time, we've been able to build in the workflows and skills into Zeus Mode (https://t.co/DzqrJLvLI7) to automate pre/post PR work too. /code-reviews happens before PR is cut. merge and test failures on git come back to the agent session that issued the PR (Zeus monitors and messages the sessions), and agent sessions then fix them.
Introducing Claude Ship! 🚀 Claude can take a PR through review, fixes and an approval decision based on your team's policy.
If you've ever opened a PR, you know the flow: You open a PR and move on to your next task, then you get the review and you go back and fix something and you wait for the review to rerun and then you have to go find an approver. That's how it's designed to work: Most teams want a human to approve changes, and if you're writing code line by line, that's feasible. But many developers are already writing code with agents.
As the Claude Code team, we write most of our code with Claude. But we wanted post-PR to move just as quickly as the pre-PR part. Claude Ship evaluates your PRs, works on fixes, and determines when they can be merged based on policies that you define for your team. It is comprised of three components: Code Review (generally available): Performs a multi-faceted, in-depth review of a PR against your codebase. It collects findings, adversarially verifies them, classifies them, and posts comments on your PR.
You select from a tiered review depth for each repo: Quick, Standard, or Deep.
PR Steward (beta): Works to keep a PR green by responding to failing CI checks, merge conflicts, and comments from Code Review, other review tools, or reviewers. After every push it posts comments detailing what it did and how to revert those actions. You direct it with Claude comments or stop to have it step back. PR Steward is not designed to approve or merge PRs.
Claude Approvals (beta): Applies a policy that your team writes as a file in the repo. You can think of it as a smarter CODEOWNERS that approves routine changes autonomously if your policy allows it, or asks for human approval in specific situations. Claude can take into account Code Review findings and your own natural language classifiers. For most teams, we recommend starting in observe-only mode to gain confidence before enabling it as a required check in your branch protection configuration.
You can use Claude Ship in two ways: As a developer, upgrade your local CLI to the latest version of Claude Code and type /ship when you're ready to push a change.
Claude pushes the change, creates the PR, reviews it, and responds to feedback or failing checks. Whether the change can be merged is determined by your permissions and your repo's branch protection rules. As an admin or engineering lead, you can enable Claude Ship on a repo-by-repo basis and have it run automatically across your team's PRs. You turn on Code Review and PR Steward per repo, and Claude Approvals starts when a connected repo has a policy file on the default branch. You can leverage your existing branch protection and required checks.
You decide what review depth to use, when reviews run, and your spend limits, enabling a gradual rollout and pace of adoption.
Claude Ship is available for repos on GitHub on the Team and Enterprise plans. Costs are billed by tokens and will vary based on the number of PRs it touches, the review depth, and the effort put in by PR Steward. As an admin, you can set spend limits for Code Review and PR Steward.
Hope it's useful!
Something similar has been on my mind lately and I've seen come up in conversations.
When the barrier to build disappear, we have to get much better at making choices in *what* we should build.
Our time is the most precious commodity.
But how do we get better at making these choices? We need to give ourselves time. This must not be rushed.
And it is so hard to do that with actually exploring, and getting others to push back on you, or to push you sideways.
Because building is so easy to do, there is a huge draw to just start building. When building took forever, it was a reasonable thing to do -- start building, and you'll learn along the way. now learning doesn't happen while you build.
So we must take the effort to put the learning ahead of the build.
a place to capture what code doesn't. every claude code/codex session takes its learnings that may not be obvious from code, and captures them along side. keep it brief, not a single file to avoid merge conflicts, and use checkpoints to combine these learnings files into indexed learnings. builds you a second brain as you work.
And they're getting good at seeing what other agents are doing what at the same time.
I still find a use for keeping a broader context that spans several agent sessions, so each session has the context it needs for its task.
but i am no more the messenger. agents talk to agents.
No agent grading its own work is the rule I'd keep if I could keep only one. On my project a second agent whose only job is to break the change reads every pull request before I do, and every new test has to be shown failing on the old code first. Before that, an agent would happily write a test that passed no matter what. Each task also gets one 'done when' line before any code, close to their sprint contract.
Increasingly I find that the PRs can be auto-merged, if there's good CI/CD process in place. More I can take myself out of the loop, higher the velocity I get.
The place I need to be in the loop is where I matter: most of it is in the early stages of deciding what should be done, how (to some extent), and when. Once that is done, most of the rest happens on my own.
Noise is the part I fought too.
The AI reviewers going back and forth with the coder is how I started. I learnt the hard way that this process led to the agents going down a rabbit hole pretty quickly. It wasn't clear to me that a draconian limit of 3 or any other number works.
here's what has helped me improve that process significantly:
(a) separate the coding agent from planning agent. i have a project manager that handles all the decision making at the "project" level -- essentially with a broader scope that any one task.
(b) work ("project") is broken into smaller "work items" that a worker agent works on.
(c) each worker agent spins up a sub-agent to do the review, including a "break-it" pass. However, and this was key: this worker agent *cannot* expand the scope of its task without asking the project manager. The project manager makes that decision, and it will add additional tasks to the project, and determine if they go in the project or not, and which milestone they must be for.
This makes sure that work continues to move forward *and* the quality of the product is high.
Zeus Mode comes built in with the project manager agent and a coordinator agent that runs the worker agents and talks to the PM.
I have found the path to scaling oneself is to find ways to move up the ladder and stop having to think or worry in terms of agent sessions.
What Zeus Mode (https://t.co/DzqrJLvdSz) does is to let me operate at a higher abstraction. I run projects, I deal with the project managers. they deal with the agents.
I run anywhere from 10-20 agents at any time in parallel. My typical set up is through Zeus Mode:
* all coding work is done in tandem by a project manager and an agent coordinator running side by side
* project manager lays out the tasks and assigns them to the agents
* coordinator kicks of agents and monitors them, surfaces any questions to project manager, who decides, or if needed asks me on the Zeus Mode app
* project manager makes all decisions in the scope of the project, and each agent sessions only works within the scope of the task assigned to it. so if an agent wants to expand teh scope, it puts that to the project manager
My decision making is elevated to higher order, and I can run multiple projects in parallel, easier to context switch.
@trq212@__alpoge__@jarredsumner Indeed. The difference in people who can harness these tools effectively, and those who can't is stark.
Have to admit though, the resources at hand for @__alpoge__ isn't the same for everyone else.
@k4k0ch I use headless chrome to render in the right width. It won't open a window narrower than about 500 px. To get 390 or 360, the page goes in an iframe of that width inside a wrapper page, and the screenshot is cropped to it. also have a script to draw screenshots from fixtures.
@justinhammon_ this is a great setup -- thank you for sharing. I have something similar in Zeus Mode, where I get curated action cards in the app for me to post on the blog, Reddit, X, etc..
@Radoslav_Sandov@maomao000211 Close to what I run, break-it pass included. The collisions that hurt me weren't code, they were shared files every agent appends to, like numbered decision records. Now each agent writes its own new file and my release agent numbers them all at release. The conflicts stopped.
@theomlondhe I often have 10+ sessions running: a coordinator agent starts each worker in its own worktree. The shared stuff is what bites. A cleanup hook in one of my repos once deleted uncommitted files. Now nothing removes a worktree unless a script proves it's pushed and clean.