Skip to content
Open the app

GitHub ​

Connect GitHub so that events in your repositories reach Kadmo and your agents can work in them. The Kadmo AI GitHub App is how GitHub reaches Kadmo: comments, reviews, labels, pull requests and CI results arrive as events your automation rules act on. This page covers the App and its install, an install made before you have a Kadmo account, what Kadmo sets up for a trial that starts from GitHub, the rules it adds, QA on a pull request's preview, what leaves GitHub and what Kadmo keeps, and how to unlink or uninstall it. The personal access token, the other way to connect GitHub, is under Code hosting.

The Kadmo AI GitHub App ​

The GitHub card on the Integrations page holds the App, and optionally a personal access token.

  • Install sends an admin to GitHub to pick an organization or a personal account and All repositories or Only select repositories. The App requests read access to metadata, Actions, Checks and commit statuses and write access to contents, issues and pull requests. Actions and Checks are what lets a rule start when CI finishes; when the App asks for more, an organization owner approves the request on GitHub, and the card says permissions update pending until they do (see When CI finishes).
  • With no personal access token connected, your agents clone and push with the App: each takes a short-lived token of the installation, narrowed to the repositories of its workspaces that the installation covers. The card's The fleet pushes as names the App's bot. While a token is connected, agents push with the token instead.
  • The New mention rule link opens the automations form filled in, and saves nothing until you save it.
  • The connected GitHub identity is the fleet's actor, and its own comments never trigger rules. Connect a dedicated agent user if you want mentions from your own account to be acted on.

For most accounts an install wires the events and nothing else: no repository is attached and nothing runs until you write a rule. A trial that Kadmo sets up is the exception (What Kadmo sets up for a trial).

An install from GitHub ​

The App can also be installed from its page on GitHub, github.com/apps/kadmo-ai, or from GitHub Marketplace. GitHub then sends the browser back to Kadmo with the installation's number, which anyone could type, so Kadmo links nothing on that number alone.

Without a Kadmo account ​

Where Kadmo takes trials from GitHub, a person with no Kadmo session who installs the App comes back to the app's trial page, which reads One step left and Kadmo AI is installed on GitHub. Before that:

  • Kadmo reads the new installation through the App itself, once: its owner, whether it is an organization or a personal account, which repositories it covers and what it grants. You are asked for nothing and no GitHub token of yours is involved.
  • Only a fresh installation counts: one GitHub made within the 15 minutes before you came back.
  • Kadmo keeps the installation for this browser for seven days: the owner's GitHub id and the installation's number. Nothing else is kept, and no account, credit, machine or reading of code starts.

Sign up on the trial page in the same browser within those seven days (Start with an install). The trial page says, under its buttons, Once your trial starts, Kadmo clones the repositories you selected and reads them to learn your code.

Where Kadmo takes no trials from GitHub, or the installation is not fresh, the browser goes to the sign-in instead. The installation waits there for seven days, and an admin who signs in on that browser comes back to the confirm card, which asks which account it joins.

Either way, the App stays installed on GitHub until you uninstall it there.

GitHub's proof ​

An installation that came without Kadmo's own link joins an account only once GitHub confirms that the person who signed in can reach it. Right after a sign-up from the trial page this starts by itself; otherwise the confirm card's button starts it.

  1. GitHub asks you to authorise Kadmo AI. The authorisation asks for no scope.
  2. Kadmo reads your GitHub login and id and the installations of the App you can reach, then revokes the authorisation at GitHub. Your token is never stored.
  3. The installation joins the account when it is among those you can reach. Anyone with access to one of its repositories can reach it.

The linked installation keeps the GitHub login and id that proved it. An install started with Install on the card needs no proof: the link it carries is bound to your account for ten minutes. An installation another account holds is refused, and the refusal names that account.

What Kadmo sets up for a trial ​

Kadmo sets up a trial that has no agent and no repository of its own (the workspace's own Kadmo Git repository does not count), while Kadmo takes trials from GitHub. It does not matter whether the sign-up came with the install, came before it, or the account was opened for you. A GitHub owner that already had a trial with another account is not set up a second time. Once set up, Kadmo keeps setting the account up, for a later installation or repository, until the trial ends.

For such an account, the link starts five things: the repositories are attached, what each is built with is read, a machine that fits is launched, Skill Discovery is switched on and three rules are added. Every other account keeps the card as it is, and an event from a repository no workspace has is skipped.

Which repositories ​

The installation's repositories become git projects of the account's first workspace, at the link:

The installationAttached at the link
Only select repositoriesThe selected repositories that are neither archived nor disabled, forks included, most recently pushed first, up to a limit for the trial
All repositoriesA few of those pushed to most recently, without archived or disabled repositories and without forks. The others are attached with their first pull request

Each repository gets its own folder, named after it, or after its owner and its name where that name is taken. Afterwards:

  • A repository added to a selected installation is attached while the limit allows. One taken out of it is detached, unless an admin changed its project since or something else of the account still uses it.
  • A pull request, a review or a comment in a repository the installation covers and no workspace has attaches it, and the rule goes on. Over the limit, the rule's log says repository_limit and names the repository. A rule is still needed: an account with no GitHub rule hears nothing.
  • Detaching a repository is final for Kadmo: it never attaches it again, also when a pull request names it, until an admin attaches it by hand. An admin attaches more by hand, with no limit.

What each repository is built with ​

Kadmo reads each repository it attached once, through the App, so that the machine fits it:

  • its languages, by their share of the code;
  • the names of the files and folders at its root and one level below;
  • the contents of the files among them that pin a toolchain's version: package.json (its engines and packageManager), .nvmrc, .tool-versions, global.json, a .csproj, .fsproj or Directory.Build.props, a Gradle build file, pyproject.toml, go.mod, Cargo.toml, Gemfile, composer.json and a compose file.

Of a Dockerfile, a .sln, mix.exs, requirements*.txt, a lockfile, Gradle's settings files, an Android manifest, a Podfile or an Xcode project, only the name counts. Nothing else is read, the calls one read makes to GitHub are capped, and no file's content is kept. Kadmo keeps what it derives: the languages, the package managers, the toolchains with their pinned versions, whether there is a Dockerfile or a compose file, the compose file's service names and whether one of them is Postgres, and whether the repository is an Android or an iOS app.

The workspace's Git projects shows it as one line under the project's name, with when it was read. A repository is read again when it was pushed to since, and an admin reads it again with Read again. A repository with none of these files, or one that cannot be read, shows No toolchain pins found, and the machine is then the default one.

The machine, and the code on it ​

Once the first repository is attached, Kadmo launches one Kadmo-hosted agent for the account, trial-agent, with the roles Software Engineer, QA Engineer and Skill Discovery. It runs on Kadmo's models, never on an agent app subscription of the account's, and it is billed to the account's credit like any hosted agent. A machine is launched once: an account that has an agent, or had one, gets none.

The machine is launched to fit what the repositories are built with, in the wizard's own profiles and components (Create an agent):

The repositories haveThe machine gets
A .NET projectThe SWE .NET profile in place of SWE Full Stack
A mix.exsThe Elixir component
A Dockerfile or a compose fileThe Docker component, and at least 4 GB of memory
A compose service that names PostgresThe PostgreSQL client component
More than one repositoryAt least 4 GB of memory
An Android or an iOS appNothing more: the Android SDK needs a larger machine than a trial's, and an iOS app cannot be built on the agent. A warning under the project's line on the workspace says so
Other toolchains, such as Python, Java, Go, Rust, Ruby, PHP or a pinned Node versionNo component: the pinned versions are handed to the agent, which sets the toolchain up as the work asks

A repository attached later adds only the components the machine lacks. One that needs another profile reads needs a rebuild to fit on its line, and Kadmo never rebuilds the machine by itself.

The machine clones the attached repositories with their whole history, so the commit history, with its authors' names and e-mail addresses, is on the machine. Nothing is cloned or read before the trial has started. Where agents run is on Where an agent can run.

Skill Discovery ​

Skill Discovery is the role that reads your code and writes what it learns into your account's skill pack.

  • Its budget and model. At every trial's start, whatever the way in, Kadmo gives the Skill Discovery role a budget in total on the account's first workspace, and a Kadmo model. Both are marked as set by Kadmo: on Guardrails, the budget's dialog reads Skill Discovery in Dev Workspace · Set by Kadmo. Kadmo writes only what nobody has decided yet, so a change of yours is never written over.
  • Switched on. Once the first repository is attached, Kadmo switches Auto-discovery on for that workspace at a low Target confidence, unless the workspace already has Auto-discovery settings. At that target every run reads the code and the documents only: it starts no product, opens no browser, writes no role guide, and publishes after each module it fills.
  • What it writes, and where. _skill.md files with their confidence, published to your account's pack repository, which Kadmo hosts. The runs read your code on Kadmo's models.
  • Change it or stop it. On the workspace's edit page, Auto-discovery: untick Enabled on dispatch to stop it, or change Target confidence and Max dispatches. The budget is changed or removed on Guardrails, and the role's model on Capabilities › Roles.

The rules it adds ​

For an installation of a trial Kadmo set up, Kadmo writes three rules, once, and switches them on:

Review new pull requestsWhen Kadmo is namedQA when a preview is ready
EventsPR opened, PR ready for reviewComment addedPreview ready
Who starts itA person with write access (owner, member or collaborator), not your agents, and no pull request from a forkA collaborator or better who names the App's handleA preview of an open pull request's latest commit, outside production, where the pull request's author has write access and it is not from a fork
What it runsThe workflow Review PR (comments only): one review with comments on the pull request's lines, which pushes, merges and approves nothing. Start immediately is off, and it runs on the plan's default modelIt continues the session that wrote the pull request, or starts the workflow Implement Fix + PR, and reacts to the comment to say it was seenThe workflow QA on the pull request's preview: it tests what the pull request changes in the browser on the preview, with the screen recorded, and pushes nothing. Start immediately is off, and it runs on the plan's default model
How oftenAt most three runs on one pull request in 24 hours—At most three runs on one pull request in 24 hours

While the account is on its trial, its GitHub rules also start a limited number of automatic runs a day; a run over it is skipped, and the rule's log says daily_runs.

They are ordinary rules: change, switch off or delete them on Automations (Switch off or delete). A rule you deleted or switched off is not written again, and a rule that already does the same work counts, so nothing is added beside it. The rules name no repository, so one set covers every installation of the account. After an Unlink, a new link writes them again, unless an equivalent rule is still there. Every other account gets none of them. The other rules Kadmo writes are on Rules Kadmo creates for you.

QA on a preview, and the check run Kadmo QA ​

QA starts when a hosting provider, such as Vercel or Netlify, reports to GitHub that a preview of a pull request is deployed. GitHub sends that only where the installation grants the App Deployments: read and the deployment status event, which an organization owner approves on GitHub when the App asks for them. Until then the rule's row on Automations carries the chip Waits for GitHub, and QA starts nothing.

  • What counts as a preview. A deployment GitHub reports as a success, outside production, with a public web address, for the latest commit of an open pull request of this repository. A draft pull request's preview counts too.
  • What the run does. The agent reads the pull request, opens the preview in the browser on its machine and tests what the change gives a visitor, with the screen recorded (Screen recording). It never runs the pull request's code, types no credential a page offers, and writes nothing on GitHub. It ends with PASS, FAIL, NOTHING_TO_TEST or BLOCKED.
  • Kadmo's answer. A check run Kadmo QA on the deployed commit, in progress while the job runs and closed with its result, where the installation grants Checks: write; and one comment with the verdict, the report, the job's link and the recording's link. Without that permission the comment stands alone. PASS closes the check as a success and FAIL as a failure; every other ending is neutral. A failed check blocks a merge only where the repository made Kadmo QA a required check.
  • The recording. Its link opens only for a signed-in member of your account, since the video shows the agent's whole desktop and a comment on a public repository is public. While the machine cannot record yet, the run goes without a recording, and the comment says so.
  • When no preview comes. A pull request that was reviewed and is still open an hour later, with no preview seen, gets one comment from the App: QA runs when a preview is deployed, and how to switch it off. It is written only while a rule listens to Preview ready and the installation lets GitHub send previews.

What leaves GitHub, and what Kadmo keeps ​

WhenRead from GitHubKept
An install without a Kadmo accountThe installation, once, through the App: its owner, its type, which repositories it covers and what it grantsThe owner's GitHub id and the installation's number, for this browser, for seven days. For an installation on a personal account, the owner's id is the installer's own
An install from GitHub MarketplaceThe purchase GitHub sends for the listingThe GitHub account's id, type and login, the plan, and the id and login of the person who installed it, without the delivery's e-mail addresses. Kept with no end today, also after the account is deleted
GitHub's proofYour GitHub login and id, and the installations of the App you can reachThe login and id, on the installation, until Unlink or the account is deleted. No token
The linkThe installation and its repositoriesThe installation, and for each repository its id, its name, its default branch, when it was last pushed to, and whether it is archived, disabled or a fork
The attach, for a trial Kadmo set upEach attached repository, once: its languages, the names of the files and folders at its root and one level below, and the contents of the files that pin a toolchain's version (What each repository is built with)What Kadmo derived: the languages, the package managers, the toolchains with their pinned versions, the Dockerfile and compose facts, and the Android and iOS marks. No file's content. Until the repository is detached or the account is deleted
EventsEach delivery of the App's events, and the pull request a CI event or a preview namesThe delivery in the webhook log (Settings › Logs), and the work a rule starts, with the account's other work
A previewThe deployment's status, with the preview's address, its environment, the app that deployed it and its commitThe delivery in the webhook log, and the address in the job it starts
A trial Kadmo set upThe attached repositories, cloned with their history onto the trial's machine, and read by Skill DiscoveryThe clones on the machine, until it is deleted. What Skill Discovery wrote, in the account's skill pack
A QA runThe pull request, read by the agent, and the preview, opened in the browser on its machineThe job with its report and its screen recording, with the account's other work. On GitHub: the check run Kadmo QA and one comment
A trial's start—That the GitHub owner had a trial: its id. Kept after the account is deleted, so the owner starts no second trial

Kadmo's privacy policy says how Kadmo handles personal data.

  • Unlink on the card removes the link. Tick Also uninstall from GitHub to remove the App from the organization too; without the tick the App stays installed on GitHub and stops reaching this account. Unlinking detaches no repository: the workspaces keep their projects.
  • Uninstalling on GitHub stops the events and the App's pushes at once. The card then reads removed on and the organization's name.
  • Deleting the Kadmo account deletes the link and the workspaces' projects with the account (Delete account), but leaves the App installed on GitHub. Uninstall it on GitHub, in the organization's or account's settings under its installed GitHub Apps.

Troubleshooting ​

Message or symptomWhat it meansFix
A rule's log says repository_limitThe trial has attached as many repositories as it may, and the event came from another one.Attach the repository by hand, or detach one you do not need.
A rule's log says daily_runsThe trial's GitHub rules started all the automatic runs they may today (UTC).Start the work by hand, or wait for the next day.
A rule's log says run_budgetThe rule started all its runs on this pull request in 24 hours.Start the work by hand, or raise Runs per pull request in 24 hours on the rule.
GitHub says the account you signed in with there has no access to this installation, so nothing was connected.GitHub does not list the installation among those your GitHub account can reach.If the organization uses SAML single sign-on, sign in to it on GitHub first. With more than one GitHub account, pick the one that installed the App when you try again.
permissions update pending on the cardThe App asks for a permission the organization has not approved.An organization owner approves the request on GitHub (When CI finishes).
The rule QA when a preview is ready carries Waits for GitHubThe installation has not granted the App read access to deployments, or the deployment status event.When the App asks for them, an organization owner approves the request on GitHub, and the card reads permissions update pending until then. Before the App asks there is nothing to approve, and QA starts nothing.
QA answered with a comment and no check runThe installation has not granted the App write access to checks.The same: an organization owner approves the App's request on GitHub once the App asks for it.
Read again says This repository is not connected through the GitHub App, so its stack cannot be readAn admin attached the project by hand, or pointed it at another repository. Kadmo reads only the repositories it attached through the App.Nothing to do: the project keeps the line it has, or none.