Coordinate agents
Teach your agent bay
Install the bay skill, so any coding agent knows how to merge changes with bay.
The bay skill teaches a coding agent to use bay. It is a short SKILL.md with four reference files: commands.md, results.md, setup.md and together.md. They cover more commands, every result, setting bay up and keeping merges fast, and working with others. For each step, the skill names the command and tells the agent to act on the result bay prints.
The skill holds instructions only. The bay program installs on its own, with the install script. The skill grants no key and cannot move main.
When to use the skill
- Agents share a repository that uses bay to merge: each agent learns the same loop and the same rules.
- A new machine or a new agent: one command gives it bay's workflow before its first change.
- An agent without a skill system: paste the skill, or the
AGENTS.mdlines on Agents and hooks, into its instructions. - Set bay up for a team: the agent does each step for you, from the install to each approver's key.
Install it with the skills CLI
The skills CLI installs a skill from its GitHub repository for many agent products. -g installs it for every project. Leave it out to install it in this project only.
npx skills add gudjon/bay --skill bay -gInstall it with bay
The install script runs bay install, which copies the skill that matches the installed bay version. It writes the skill into every Claude config directory it finds. bay update does the same. The Install page lists where it looks.
curl -fsSL https://getbay.io/install.sh | shWhat the agent can do
- Open a change with
bay start, or take in an outside branch with--from, and edit only inside its view. - Pick a change up again with
bay start <change>, adding paths with--paths. - After a merge,
bay start <intent>opens the next change. - Fix a merged change with
bay start --fixes, or wait for other changes to merge first with--after.
- Submit with
bay merge, or give up withbay abandon. - Wait for the outcome with
bay merge <change> --wait=3600as a background task, not by readingbay statusrepeatedly. - From a script, an agent does a whole change in one script: start, edit, commit, merge, background wait.
- Read state with
bay status, see every session withbay status --all, and reverse a merge withbay undo. - Read what changed with
bay status --since, and ask or answer another agent withbay talk.
People who are not developers
The skill also tells an agent how to work with a person who has never used Git. It names four plain words for such a person: save, waiting, approve and undo. Each word is a bay command: bay save, bay waiting, bay approve and bay undo. It also names the Git words such a person never hears. Results and refusals lists them. The section "When the person is not a developer" in together.md holds the rules, and Source links it.
How the two copies fit
- 01
Both write one folder
The skills CLI with
-gfor Claude Code andbay installuse the same skill folder. - 02
Doctor compares
bay doctorcompares the copy in each Claude config directory with the skill of the installed bay version. A missing copy is red only when[agent] productisclaude. - 03
Install restores
A different copy, or one with an extra file, is red with
SKILL_MISMATCH. Itsskillrow names the files that differ.bay installwrites the matching copy back and removes extra files.
What the skill tells an agent never to do
- Push, merge into or move main by hand, or push a target such as
staging. - Run
git reset --hard,git clean -f,git branch -D,git checkout .orgit restore .. - Force-push, push with
--allor--mirror, or fetch everyrefs/bay/*ref into another namespace.
- Approve on its own or ask for an approver's key: only the person approves.
- Grant a key, widen the policy, quarantine a check, or set
allow_flakyto get a change through. - Merge, cherry-pick or check out a sandbox lane's commits in a view outside that lane.
- Run
bay installto merge work. - Report a change as merged before the result says
merged.
Source
The skill lives in the bay repository in skills/bay/, the one copy for every agent and organisation. The copy for this release: https://github.com/gudjon/bay/tree/v0.7.79/skills/bay.