Trunk-based by design
This page explains why kebbie lands a task by rebasing its commits onto the default branch and pushing them there, with no pull request and no merge, and what takes the pull request's place.
Short branches drift less
With several Claude sessions working at once, branches multiply fast. Every hour a branch stays open, the default branch moves under it, and the next task to land has more to reconcile. Pull requests make that worse: each one waits for a reviewer, and each wait lets the branches drift further apart.
So kebbie keeps branches short. A task is meant to finish, land and free its worktree.
The rebase is part of the push
kebbie push rebases the task onto the remote's default branch first, so what you push is exactly what you read, on top of what everyone else has pushed. However far behind the task is, that rebase is part of the push.
- A push runs no test and checks no test run: the task's tests and lint ran before its ready report, and CI tests what lands. A clean rebase goes out at once, also when the commits it goes over changed files the task changes too. A run before a clean rebase still counts for the next ready report, as a review's approval does.
- That is also why a lint red on code the task only brought from an older main, which main has fixed since, does not hold its ready report: CI lints the code that lands.
- When the rebase stops on a git error rather than a conflict, such as a hook staging files while it replays commits, kebbie aborts it and tries again twice with hooks off. When it still fails, the push says so in one line, and git's own words go to a file the notice names.
- When the rebase conflicts, kebbie aborts it, leaves the worktree as it was, and hands the conflict to the task's Claude, which knows the change best. Once it resolves the conflict and reports ready, the resolved commits go out after their rules check, with no test run first.
- When the rebase stops only on
CHANGES.md, where every task adds its line at the top of the same list, kebbie keeps both sides' lines and goes on. It stays a conflict when a side changed or removed a line already there, when the merge would repeat a heading, or when another file conflicts too.
One push line per repo
When several tasks of one repo touch the same files, every landing changes what the next one rebases onto. Rebasing them all ahead of time only multiplies that: each landing undoes the rebases done before it, and every task goes back to its Claude again.
So each repo has one push line, kept by the keeper. A push you or the lead asks for joins the end of it, and the board says its place: pushing for you · 2nd in line after Billing totals. Repos have lines of their own and never wait for each other.
One push goes ahead of the rest: the fix of a red default branch. When CI blames a task's own push for turning main red, kebbie hands that task the failing log, and once its fix is in the line it goes first, before a head that is already waiting. Every push behind a red main waits on that fix anyway, since its lint and tests go green only with it. A red the task only inherited from another push, a red on another branch, or one you dismissed changes nothing in the order.
Only the head is fetched and rebased, onto origin's default branch, never the local one, and only when its turn comes. Tasks not in the line are left alone.
The line waits for its head, up to a point
- When the head rebases cleanly and the overlap rules pass, kebbie pushes it and takes the next.
- When its rebase goes over the task's own files or conflicts, the head goes to its Claude and keeps its place while the line waits for it. The pushes behind it would otherwise rebase onto a default branch that is about to move again.
- After 30 minutes without a ready report while another push waits behind it, a head whose Claude is on it goes behind the pushes that wait, with its push kept: it needs no new push, and goes out when its turn comes again. Its Claude is on it while herdr reports it working, or for 2 hours after it reported
workingorblocked, as when it waits for its turn on a machine or a simulator the lead hands out. Only time as the head counts toward the 30 minutes of a push its Claude has. The 2 hours count from the report. The fix of a red main keeps its place instead. - At once on a needs-you report, or after 30 minutes when its Claude stopped without a ready report or its new commits were not approved while another push waits, the head leaves the line with the reason, and the next push goes on. It waits for you under Needs you, or, under your push permission, under Going out for kebbie to push again on its next ready report, up to 3 times; the fourth time it waits for you. Alone in the line, it keeps its place while its Claude is on it, and leaves after 30 minutes only when its Claude stopped without a ready report.
- While CI is red on the default branch, every push of the repo waits in the line except the fix: the push of the task kebbie sent the failing log, or of the task the lead started to fix it (
kebbie ci fixer) when that task had ended. The board saysheld while CI is red on main from <task>. The rest go on once a push on top of the red commit, or a re-run of the red one, passes CI: the fix's own push and a re-run still hold them while their CI runs, so a red main never gathers more red runs. The task that pushed the red run being done or dropped never ends the hold: kebbie tells the lead to start a fix task and name it, and only CI green over the red commit, or your dismissal, lets the rest go. Once the last red run of the repo ends, kebbie tells every open task of the repo whose latest report isblockedthat main is green again, or that you dismissed it, with the commit, so a task waiting for the fix goes on. A push that lands with its CI green, or with no CI watched, tells those blocked tasks it landed, for a task that waits on it. - A head that the fix of a red main went ahead of keeps its place, second now. Once the fix is out, kebbie tells its Claude to rebase onto it and check again, and its 30 minutes count from then.
- While the head's build waits in the machine's build queue or runs in a build slot, as its tests do in the background after its Claude's turn ended, it keeps its place, and its 30 minutes count from when that wait or build ended. A build that has held its slot for 2 hours no longer counts. It goes before other tasks in the build queue.
A long task can follow main
A task that lives longer, such as a refactor under way while others land, can follow main instead of waiting for its push. Switch it on with u on the board or kebbie follow <name> on. The keeper then rebases it each time main moves, whenever its Claude sits idle with its work committed. While the task waits on you, with an open question or under Needs you, it is left as it is, so the code under your answer does not move; it follows main again once the task moves on.
- Clean rebases happen quietly.
- When main's new commits touch the task's own files, its Claude runs their tests.
- A conflict goes to its Claude once, like any other.
The task stays close to main the whole time, so its push holds no surprises. For a single catch-up, e on the board rebases now.
The result on the default branch is a straight line of commits, each written to stand on its own.
What replaces the pull request
A pull request does three jobs: it shows you the change, it gets a second opinion, and it gates the merge. kebbie does each of them where you already are.
| Job | In kebbie |
|---|---|
| Seeing the change | The review split shows the task's diff next to its Claude, and your comments go straight into Claude's input. The push window shows the sign-off card and every commit message before anything is pushed. |
| A second opinion | A read-only reviewer checks every ready task's commits against your rules skill. An assessor judges whether the work needs the reviewer gate too, where an independent, read-only Claude must pass the current code. See The review gate. |
| The gate | Tasks cannot push. You push, or kebbie or the lead pushes a task you gave push permission for. See The trust boundary. |
The gate is the push itself, so nothing waits on a web page.
Each commit stands on its own
Without a merge to group them, each commit on the default branch is read on its own. So kebbie leaves commit style to a skill (task.rules_skill) that the task follows, the reviewer checks, and kebbie tidy and the push window's edit and squash keys help you fix. The default, kebbie:work-rules, asks for one logical change per commit with a body that says why, each commit green and safe to deploy on its own, preparatory commits first, the change itself after them and a risky step last and alone, so each commit can go out as soon as you accept it. Replace it with your own team's rules.
CI after the push
Without a pull request, the default branch is where CI runs. A task is finished when its commits are on the default branch and CI passes them, not before.
When origin is on GitHub and gh is logged in, kebbie watches the workflow runs for the pushed commit and keeps the task open, with its worktree and its Claude, under CI running.
- Once every run is green, it closes the task as done. A task that named a check for after its push (a deploy that should now answer differently) runs it first, in the same session, and closes once it holds; a failed check waits for you under Needs you with what failed. The check is the task's work, so its report keeps your next step to what only you can do.
- A cancelled run is no failure, and its Claude is sent nothing. When a newer push on main still runs that workflow, as a concurrency cancel leaves it, the task stays under CI running and follows the newer run. When the repo names its deploy hours as
ci.deploy_windowand the run was cancelled while they were shut, the task stays under CI running and kebbie re-runs it once they open. Otherwise the watch ends and the task moves to Needs you asCI cancelled, whereGruns it again andCdismisses it. A later run of that workflow on main that passes, on a commit holding the pushed one, closes the task as done either way. - When a run fails, the task moves to Needs you and its Claude gets the failing job's log, so the session that wrote the change fixes it while it still knows the change. The fix is a new commit and a normal push, and that push is watched in turn.
The keeper watches CI
The keeper does the watching, every 30 seconds (an open board does with [keeper] enabled = false). The watch is kept in the state directory, so it picks up again after a restart. Set [ci] watch = false for a repo whose CI says nothing useful, and its tasks close right after the push. See kebbie ci.
Some repos are tried on local main
Some repos are run from their main checkout: kebbie itself when you run it from your own clone, or an app whose dev setup lives there. A task's worktree is the wrong place to try those, so a repo can opt in to staging with worktree.stage_on_main.
kebbie try, or M on the board, puts a ready task's commits on the main checkout's local default branch, unpushed. Several tasks stack there in the order you staged them. You try them together, as they will land, and push main yourself once it is right. See Try a task before pushing.
Staging stays a straight line
Staging stays inside the trunk-based model rather than beside it:
- The commits are cherry-picked, not merged, so main stays a straight line.
- A staged task never goes through the push line, since it goes out with main.
- It stays open until its commits are on origin, so the keeper closes it like any other landed task.
Two limits keep your own work safe. kebbie never rewrites a commit of yours on local main, so it refuses to put a task on or take one off while one sits there. A stage that conflicts leaves main exactly as it was and hands the rebase to the task's Claude.
Dependent work waits instead of stacking
Sometimes one change has to land before another can start: an API field before the page that shows it. kebbie does not stack the second branch on the first. Stacked, the second task would carry the first one's commits through its own review and push, and every rewrite of the first (a review fix, a tidy, a rebase) would leave the second conflicting with code it never wrote.
Instead the second task waits, and starts from the default branch once the first has landed there:
kebbie start web-billing "<prompt>" --repo web --after billing@api
While it waits it has no worktree, Space or Claude, only its place under Queued on the board. See kebbie after.
A queued task starts once the first is done
kebbie counts the first task as finished when it has ended as done.
- In a repo where kebbie watches CI, a task closes as done only once CI is green for what it pushed, so the second task starts on a default branch CI has passed.
- If you close the first task as done while its CI still runs, kebbie keeps watching that CI for the waiting task and starts it on green.
- A task closed by
kebbie routine okcounts as done too. - Without CI, the first task's commits on the default branch are enough.
- A task that lands no commits, such as an investigation that ends with a report, is finished when it ends as done.
Anything else is your call
While the first task is still open, the second one waits quietly, whatever holds the first up: CI running or red, a review, a conflict its Claude is resolving. Those are the first task's business.
The second one does not start, and does not go away either, when the first task is dropped or reset, is closed as done while its CI is red, or disappears without ending as done. It moves to Needs you with the reason. Dropping the first often means the approach changed, not that the second is unwanted, so whether it starts anyway or goes is your call.
A task can land in parts
A task does not have to land all at once. kebbie push --through <sha>, or p in the push window, pushes the commits up to one and keeps the task open, without touching its worktree: the task's Claude rebases onto the new default branch itself, when its work in progress is committed. With subtasks, p pushes the accepted run: the commits from the top of the branch whose subtasks you accepted. A long task can land its safe first subtasks while it keeps working. See Push part of a task.
You can still open a pull request
Some repos require one. kebbie does not open it for you, but nothing stops you:
Push the task's branch yourself from the main checkout:
git -C ~/code/app push origin billingOpen the pull request as usual.
Once it has merged,
kebbie donecloses the task, because every change on the branch is on the default branch.