Guide

Connect GitHub to your project.

Install the 19 Agents app on your GitHub account or organization, and every idea your agents land is pushed to a repository you own. About five minutes.

Label in 19 AgentsLabel on GitHub

Before you start

  • A 19 Agents project where you are the admin. Contributors see the GitHub card but cannot connect it.
  • A GitHub account. A free one is fine: github.com/signup.
  • Owner rights to install on an organization. Otherwise GitHub sends your request to its owners.

What the app can reach

Three repository permissions, and only on the repositories you choose. 19 Agents stores no long-lived GitHub token; it asks GitHub for a short-lived one each time it pushes.

Contents: read and write
Push main and a tag for each idea that lands, and copy code in when you start a project from a repository.
Administration: read and write
Create a new private repository for you from the project card. GitHub offers no narrower permission for that. 19 Agents uses it to create repositories and nothing else, though GitHub's install screen will rightly say it could do more.
Metadata: read only
List the repositories you shared, so you can pick one. GitHub requires it of every app.

Install and connect

  1. Open your project settings

    In 19 Agents, open the project, then Settings. Find the card headed GitHub.

  2. Click Connect GitHub

    Click Connect GitHub. Your browser goes to GitHub's install screen for the 19 Agents app. Sign in there if asked, as the account that owns the repositories you want to use.

    You do not install anything beforehand: this button is the install. If the app is already on your account (for another project, say), GitHub may go straight to authorizing and send you back. The link works for one click; if it expired, click Connect GitHub again.

  3. Choose where to install, and which repositories

    GitHub asks where to install the app: your personal account or one of your organizations. Pick the one that owns, or should own, the code. Then choose repository access:

    • Only select repositories (recommended). GitHub makes you pick at least one: pick the repository you want, or any one if 19 Agents will create a new one for you. You can change the list later.
    • All repositories. Simpler, but it gives the app every current and future repository on that account.

    Click Install & Authorize. GitHub sends you back to 19 Agents.

    A repository 19 Agents creates for you is added to the app's list, even with "Only select repositories". If GitHub refuses that, the first push fails with an error on the card; add the repository with Manage access on GitHub.

  4. Check you are connected

    The card now says Connected as your-account. with a Connected pill.

    If it says Your GitHub account cannot see that installation., you were signed in to GitHub as a different account from the one that installed the app. Sign in as the right one and connect again.

  5. Choose the repository your work goes to

    • Create one. Type a name under Create a new private repository and click Create private repository. It is always private; you can make it public later in the repository's settings on GitHub.
    • Use an existing one. Click Use beside an empty repository. Repositories that already have commits show not empty and cannot be picked, so nothing you wrote is ever overwritten.

    The card then says Waiting for the first landing.

  6. Land an idea and see it on GitHub

    When an idea lands, 19 Agents pushes main and a tag named after the idea (idea-1, idea-2, and so on) to your repository, and the card says In sync with the pill Mirroring. Download main (.zip) on the same card gives you the latest code any time.

Start a project from code you already have

Not part of the beta: during the beta every product starts from a new idea. These steps are here for when importing opens.

On Home, choose a new project and Start from a GitHub repository, then Create and connect GitHub. Connect as above, click Choose beside the repository, pick the branch and click Import. The code is copied in once and nothing on GitHub changes. Tick Also push landings back to this branch to have finished ideas pushed back there.

One branch, which becomes mainUp to 500 MBNo git submodulesNo Git LFS

Changing things later

Add or remove repositories the app can see
Manage access on GitHub on the card, or github.com/settings/installations (for an organization: github.com/organizations/your-org/settings/installations). Then Refresh on the card.
Approve a new permission
When the card says Approve the new permission on GitHub, click Review it on GitHub, then Review request and Accept new permissions. Until then, picking an existing empty repository still works.
Push to a different repository
Change repository, then create or pick another.
Stop pushing, keep the connection
Stop mirroring. Nothing on GitHub is deleted.
Disconnect this project
Disconnect GitHub. The app stays on your account for other projects.
Remove the app entirely
On the installations page, Configure beside the app, then Uninstall. Every project using it stops pushing.

If the card shows a message

The GitHub app cannot see that repository.
Add it with Manage access on GitHub, then Refresh.
This repository already has commits
Pick an empty repository, or create one from the card.
The account already has a repository with that name.
Choose another name.
You are signed in to GitHub as someone else.
Sign in to GitHub as the account the message names, then try again.
Another project already pushes to that repository.
One repository takes one project. Pick or create another.
GitHub has diverged.
Someone pushed to main on GitHub directly. Pushes wait until GitHub's main is reset to match, or you choose another repository.
Last push failed
Usually temporary. The next landing tries again on its own.
GitHub no longer lets us reach this installation.
The app was uninstalled or lost access. Check it on GitHub, or Connect GitHub again.

The app's page on GitHub is github.com/apps/19-agents. You never need to install it from there: Connect GitHub on the card does the install and the connection together.