Work as a team
For several people using the factory on one repository, and for anyone joining a repository someone has set up already, or working from another machine. At the end each person works as themselves, on the same version.
A team
- Each person signs in as themselves. A teammate who clones the repository needs their own sign-ins to the code host's command-line tool and to the coding agent (What you need says how to check each). A ticket system with a token of its own for each person, such as Jira, is planned. Tokens and secrets says who handles each token.
- A person's own session acts as that person. A commit made by a
teammate's session goes out under that teammate's account. On your own
account, a cloud build acts as the one account that owns its token:
yours, or an account you create for the team's builds
(Secrets). In an organization whose
owner has run
factory init --org, a cloud build acts as the organization's own App (Tokens and secrets). - Anyone who can write to the repository is obeyed. A session takes instructions from a review or a comment by an account with write access, and from nobody else. There is nothing to list: give a teammate write access, and their reviews are answered.
- Each person installs the factory once, on their own machine, as Install shows. A machine without it is told so when a session starts.
- One version for everyone. The repository names the version, in
.claude/factory.lock, and each person'sfactorycommand runs that one. After an update merges, each person pulls, and nobody installs the factory again: the command downloads the new version the first time it runs. - One session per ticket. A session claims a ticket before it starts, and a second one is told who holds it.
- Only labeled tickets are the factory's. A teammate who works a ticket by hand removes the factory label first, and the factory leaves its card where they put it (Which tickets are the factory's).
- One person merges updates. An update changes the instructions everyone's sessions follow, so it always waits for a person. Updating describes it.
- Check your coding agent's plan. Read its terms to see that it covers the way your team would use the factory, including builds that run without anyone watching: nobody has tested that it does (What nobody has tested).
Joining a repository that is already set up
Clone it, and with the factory command
installed on your machine, run in your
checkout:
factory doctorYour sessions use your own sign-ins to the code host and the coding agent, and the repository's settings and secrets are already there, so there is nothing to set up.
It worked when factory doctor shows ✓ on every line, or - for a
part that is off.
In a session on another machine
-
Install the factory there, as Install shows:
npm install -g @davidbyoung/software-factoryA session your coding agent's vendor hosts starts without the factory, and its hooks stop the session's commands until it is there. Put that command in the setup of the environment the session runs in (Limitations).
-
Sign in to the code host's command-line tool and to the coding agent, as What you need says.
It worked when factory, run there, prints the list of its
commands, and each check in What you need
passes.