Getting Started
Lab
Dashboard
For Developers
URL: /dashboard/integration/github/edit
Ability: ai.revise
Entitlement (Lab ship/import): github_import
GitHub in Krikkit covers four things:
@Deep42Bot authorship on Ship (not a GitHub App)There is no GitHub App in the product path. Commits are authored as a normal GitHub user (the machine user), the same model as Anthropic’s @claude. Push and PR creation always use the connected human’s OAuth token. Ships go to customer-owned repositories, not the platform operator’s account.
| Setting | Where it lives | Notes |
|---|---|---|
| OAuth client ID | Integration → GitHub, or GITHUB_OAUTH_CLIENT_ID | Same app for Lab + social login |
| OAuth client secret | Integration → GitHub, or GITHUB_OAUTH_CLIENT_SECRET | Stored encrypted in workspace DB when saved in UI |
| Callback | {APP_URL}/lab/vcs/github/return | Must match the OAuth app exactly |
| Import max archive size / max files | Integration → GitHub → Import limits | Applied when Lab downloads a repo archive |
| Enable PR pipeline | Integration → GitHub → PR Pipeline | Default on |
| Feature branch prefix |
Google sign-in is a separate OAuth client at /dashboard/integration/google_oauth/edit (callback {APP_URL}/auth/google/callback). It is not part of GitHub.
Do this once per Krikkit install (or once per environment: staging / production).
Krikkit Labhttps://app.example.comhttps://app.example.com/lab/vcs/github/return
Replace the host with your real APP_URL. No trailing slash mismatch./dashboard/integration/github/edit).You can also set env vars instead of (or as defaults before) the UI:
GITHUB_OAUTH_CLIENT_ID=
GITHUB_OAUTH_CLIENT_SECRET=
Workspace DB values from the Integration screen take precedence when present.
Users need a connected GitHub identity for private import, link, push, and Ship.
Option A — Lab
{APP_URL}/lab/vcs/github/return.Option B — Settings
Option C — Continue with GitHub
Signing up or logging in with GitHub uses the same OAuth client. After signup, the identity stays linked under Applications so Lab push keeps working.
Public HTTPS repo URL import can work without OAuth. Private repos and push/Ship always need a connected account.
QUEUE_CONNECTION=database or Redis — not sync.| Action | Where |
|---|---|
| Link project to a repo | Project GitHub panel / GitHub desk |
| Push | GitHub desk → Push (AI can suggest an editable commit message) |
| Create PR after push | Create Pull Request (editable title & description) |
| Ship as Pull Request | Top bar / GitHub desk → Ship as Pull Request |
| Disconnect | Project GitHub panel |
When the PR pipeline is enabled:
base_tree style) so files outside the ship set stay intact.Co-authored-by: linked human.Empty repositories: the first Ship may push an initial commit only; Ship again to open the PR.
If Block direct push to default branch is on, Lab refuses Push to main/master/default and tells the user to use Ship as Pull Request.
Anthropic’s Claude Code appears on GitHub as a normal user @claude in Contributors, not as Something[bot] from a GitHub App. Krikkit uses the same pattern:
| Piece | Role |
|---|---|
Machine user (e.g. @Deep42Bot) | Commit author name + noreply email → clickable Contributors entry |
| Connected human | OAuth token for API push/PR; listed as Co-authored-by |
| Commit bot PAT | Only for accepting collaborator invites on private customer repos |
Why a collaborator invite on private repos?
GitHub only shows a clickable @user in Contributors when that user is known to the repo (public contribution graph rules aside, private repos need membership). Lab invites the bot with push permission using the human’s token, then accepts with the bot PAT so operators do not chase invite emails.
Tenancy: repositories belong to customers. The platform operator configures OAuth + bot credentials once. Chris (or any operator) does not need to be a collaborator on every customer repo and does not manually accept invites.
Do this once for the product.
Deep42Bot).{numeric_id}+{login}@users.noreply.github.com
Example shape: 355959690+Deep42Bot@users.noreply.github.com.lab@… string that is not a real user’s noreply breaks the clickable Contributors link.repo (classic) so the bot can list and accept repository invitations on private repos.Deep42Bot or Krikkit Lab)Deep42Bot)id+login@users.noreply.github.com from step 5 aboveAfter this, new Ships attribute commits to that @login. Older commits keep whatever author they already had.
If login is left empty, Krikkit may derive it from the noreply local-part (id+Deep42Bot → Deep42Bot). Prefer setting login explicitly.
@Deep42Bot (or your login), not a bare email string and not App[bot].Protected paths are glob lists. Matching workspace files are never written on Push/Ship. Configure defaults on the Integration page; a project can add more globs.
Feature branch prefix defaults to krikkit. Keep it short and URL-safe.
Block direct push to default branch is for teams that want every Lab change to land as a PR.
PR attribution footer appends a short “Shipped from Krikkit Lab” line to PR bodies when enabled.
APP_URL=https://app.example.com
GITHUB_OAUTH_CLIENT_ID=
GITHUB_OAUTH_CLIENT_SECRET=
QUEUE_CONNECTION=database
Checklist before first production Ship:
APP_URL (https, no www mismatch)repo scope) for private customer reposCallback in the GitHub OAuth app must be exactly {APP_URL}/lab/vcs/github/return. Check APP_URL, reverse proxy HTTPS, and trailing paths.
id+login@users.noreply.github.com from GitHub → Settings → Emails.{app_id}+{slug}[bot]@users.noreply.github.com) — that path was removed on purpose.repo scope).push, then accepts with the bot PAT. If accept fails, rotate the PAT and save again under Commit bot PAT.Protected path globs matched everything. Narrow the globs on Integration → GitHub or on the project remote settings.
GitHub import and some desk jobs need a real queue. QUEUE_CONNECTION=sync is not enough for production Lab GitHub flows.
| PR Pipeline |
Default krikkit → branches like krikkit/… |
| Block direct push to default branch | PR Pipeline | Forces Ship as Pull Request |
| Protected paths | PR Pipeline (workspace + optional per-project) | Globs Lab never overwrites |
| PR attribution footer | PR Pipeline | Appends “Shipped from Krikkit Lab” to PR bodies |
| Commit bot name | PR Pipeline | Display name on commits (e.g. Deep42Bot) |
| Commit bot login | PR Pipeline | @login of the machine user (e.g. Deep42Bot) |
| Commit bot email | PR Pipeline | That user’s id+login@users.noreply.github.com |
| Commit bot PAT | PR Pipeline | Machine-user PAT (repo scope) for private-repo invite accept |