Docs menu

Getting started Your first project

Your first project

This page takes one repository from a new install to its first finished ticket, in seven steps. It uses the dashboard, the Simple template and a runtime on the host. Each step links to the page with the details.

Before you start

You need:

  • A machine that runs Docker and Docker Compose.
  • A person who owns the GitHub organization of the repository. They create the GitHub App in step 2.
  • An Anthropic API key.

Use a repository where a test change does no harm. This page uses GitHub. For GitLab, see Connect a GitLab project.

1. Start Factorial

  1. Run the two commands of Quick setup.
  2. Open http://localhost:8000/factorial/ and push Create an account. The first account becomes the owner.

2. Create the GitHub App

Do the steps of GitHub App until you have the private key. Install the App on your repository only. Keep the App ID and the private key file.

Keep the webhook of the App off. GitHub cannot reach a local install, and Factorial reads GitHub every 30 seconds without it.

3. Create a runtime

An install that lets anyone create an organization offers only the cloud sandbox. Runtimes tells you how to set one up.

An agent on the host can read the keys of Factorial. Use the host for a trial, and move to a cloud sandbox before real work.

Factorial does not let you create a project until a runtime has its key. Until then, Projects shows Set up a runtime first.

  1. Open Runtimes and push Create runtime.
  2. For CLI, choose Claude Code. For Authentication, choose API key.
  3. Paste your Anthropic API key in the field below the cards. To try the key, push Test key.
  4. For Sandbox, choose On the host.
  5. Keep the suggested Name and Slug.
  6. Push Create runtime.

4. Create the project

  1. Open Projects and push Create project.
  2. Enter a Name.
  3. Under Git source, keep GitHub as the Repository host.
  4. For Connect with, choose GitHub App.
  5. Paste the App ID and the Private key. Leave Webhook secret empty.
  6. Push List repositories, and choose your repository in Repository.
  7. Push Create project.

Factorial creates the project, connects it to GitHub, and opens Initialize project. The project takes its tickets from the issues of this repository. To change the connection later, open Git source under Project settings.

5. Initialize the project

Initialize project does the rest of the setup for you. It shows the five steps that it does, and then does them in one run.

  1. Under Choose a template, select Simple template. The page shows its process and its agents.
  2. Beside Choose a template, make sure that the runtime list shows the runtime of step 3. With one runtime, the page chooses it for you.
  3. Push Initialize project.

The page then shows each step as it runs. Keep the page open until the run ends, in about a minute:

  1. Create the factorial branch. The config of the project lives on this branch, apart from your code.
  2. Add the Simple process. Factorial commits the process primary and its agents, with your runtime, and syncs them. primary becomes the default process, which an issue uses when it names no process. An agent writes a spec for each ticket, and a second agent builds it.
  3. Enable the runtime. A runtime on the host needs nothing here.
  4. Create the ticket labels. These are the labels that the process uses.
  5. Activate the project. From now on, Factorial admits matching issues and runs agents, which spend tokens.

When every step is done, the page shows You're all set. To stop new tickets later, push Pause admission on the project.

If a step fails, the run stops there. The page shows the error, and marks the steps after it Not run. Push Open the project, and do those steps yourself. Connect a repository shows how.

6. File your first issue

  1. On You're all set, push Open an issue on GitHub. GitHub opens a new issue with the label factorial:new.
  2. Ask for a small change, for example Add a --version flag.
  3. Assign the issue to yourself. The assignee decides the gates.
  4. Submit the issue.

Within about 30 seconds, the label changes to factorial:plan. To see the ticket, push Go to the project. The ticket shows on the Tickets page.

To file an issue later, open it in GitHub and add the label factorial:new yourself.

7. Decide the gates

The primary process has four steps: plan, spec review, build and code review. You approve the spec in the dashboard and then in GitHub. Then you approve the code in GitHub.

When the plan agent pushes the spec, the ticket page shows Waiting for your review:

  1. Push Open files, and read the spec.
  2. Push Approve Output. To ask for changes, push Open terminal and answer the agent.

The ticket then waits at the spec pull request, and the ticket page shows Waiting for a review:

  1. Open the pull request from the ticket page.
  2. In GitHub, submit a review with Approve. To send the spec back, choose Request changes and write what must change.

Factorial merges the spec and starts the build. The ticket stops again at the code pull request. Decide it the same way, in GitHub. Factorial then merges the code and labels the issue factorial:done.

When something stops

What you seeWhat to do
Initialize project stops at a stepRead the error on the page. Push Open the project, and do the steps that show Not run
Activate project is not offeredPush View pending configuration step. It opens the first blocker
The issue does not become a ticketOpen Tickets and choose Admission. It shows what the issue waits for
The ticket has factorial:blockedRead the message on the ticket page. Fix the cause, then remove the label

Tickets and gates explains every label, and how to stop or resume a run.

Before you use a real repository

The steps above are enough for a trial. Do these before agents work on a repository that matters.

TaskWhyWhere
Protect the default branchAfter the gate, it is the second control on what reaches the branchThe Git source page shows a gh command for a repository admin. Name your CI job verify first, or the rule stops every merge
Protect the factorial branchIt stops a force push or a deletion of the configThe Process page shows a gh command for a repository admin
Make the process wait for CINo step of the template checks that the tests of the repository passedAdd a check step with ci_green: Processes. See What CI needs
Move to a cloud sandboxAn agent in a sandbox cannot read the keys of FactorialRuntimes
Add your teamThe process sends the gates to the assignee of the issueName your reviewers in roles: Processes. Invite people to the dashboard: Accounts and access
Turn on the webhookFactorial reacts to GitHub at once, not every 30 seconds. It needs a public addressGitHub App

For the rest, Connect a repository has every setting and the API calls. Agents changes what the agents do, and Previews lets reviewers open the running app at a gate.