Repository buttons and setup
Give a repository one-click buttons for the commands you run all the time, and a setup step that runs on every new branch.
Add a button
Section titled “Add a button”-
Hover the repository’s name in the sidebar and click the gear. Repo settings opens.


-
Under commands/, click New command. Type the button’s name, for example
Run dev server, and press Enter.

-
The new script opens in the editor. Below the first lines, add the command to run, such as
yarn dev. Press ⌘S to save, then Esc twice to close the editor and Repo settings.

The
# name:line is the button’s label. An# icon:line, like# icon: Play, picks its icon. -
The button appears next to the view tabs, in every session of this repository.


-
Click it. A terminal tab named after the button opens and runs the command.


Run a setup step on every new branch
Section titled “Run a setup step on every new branch”-
In Repo settings, click worktree_after.sh under Setup, then click Create script.


-
The script opens in the editor with common setup steps, all turned off. Remove the
#in front of the lines you need, or add your own, like installing dependencies. Press ⌘S to save.

-
Open a new branch. Before its session opens, the script runs in the new branch’s folder, and Open branch shows what it prints.


- Buttons and the setup script are saved in the repository’s
.claudiofolder. Commit it, and your teammates get them too. - To change a button later, open Repo settings, click it under commands/ and click Edit.