Tuning agent behavior
Add optional instruction snippets that steer how coding agents amend, checkpoint, stack, publish, and recover work with GitButler.
Add these optional bullets under the same ## Version control section as the
baseline from
Getting started.
Use this page as a menu: copy only the policies you want for the repository and
agent you are using.
Amend local fixes into the right commits
Use this when you want the agent to fold follow-up fixes into unpublished local commits when the new change clearly belongs with that commit's intent. With GitButler, the agent can move the relevant change into the commit where it belongs.
You do not need to tell the agent which command to use. The GitButler skill
gives it the relevant operations. For background, see
but absorb and but amend.
Commit checkpoints after each completed turn
Use this when you want local savepoints while the agent works. The checkpoints do not need to be the final review history. Before review, you can ask the agent to tidy unpublished local history.
Create stacked pull requests
Use this when you want dependent work reviewed as stacked pull requests. This is useful when one agent session depends on another session's branch, or when an agent is working on a branch that sits at the bottom of a stack.
For background, see Stacked branches,
but move, and but pr.
Customize branch names
Use this when your team has a naming convention for branches the agent creates. This is only an example; replace the prefix and shape with your convention.
Customize commit messages
Use this when your team has a commit-message convention. This is only an example; replace it with your preferred style.
Publish when you say "ship it"
Use this when you want a short phrase to authorize the agent to finish the version-control work for its session. This commits, pushes, and creates or updates a pull request, so use it only when the agent is allowed to publish.
For background, see but push and
but pr.
Update from main automatically
Use this when your project moves quickly and you want the agent to keep its
workspace current with the target branch, usually main or master. The
GitButler command for this is but pull, which fetches the target branch and
rebases applied branches onto the new target commit. This is a preference: in
some repositories, you may want the agent to ask before updating.
Add the last bullet only if you want the agent to handle update conflicts.
You do not need to tell the agent which command to use. For background, see
but pull and but resolve.
Open draft pull requests by default
Use this when the agent is allowed to publish work, but you still want review to start in draft. Creating a draft pull request still publishes the branch.
Create a recovery point before large history edits
Use this when you want the agent to be more cautious before reorganizing several commits or branches.
For command details, see but oplog and
but undo.
Split unrelated hunks
Use this when agents tend to commit whole files even when one file contains separate changes.
Last updated on