byt Code and GitHub
byt Code publishes your repo, opens pull requests and reads their checks with your GitHub account.
- If gh isn’t ready on your Mac, Ship offers Connect GitHub. In the Mac app, one click installs it if needed and signs you in.
- Type the code the app shows on GitHub’s page, and approve. No Terminal needed.
- Open a pull request shows exactly what goes to GitHub, as your own account, and opens it ready to merge.
- Its checks show as GitHub names them, read from your Mac. Merge merges it from your Mac, as GitHub’s rules allow.
When you press Open a pull request in a session’s Ship card, your Mac runs gh for you, signed in as you. Nothing of your GitHub sign-in reaches Llamabyt.
Open the session in the Llamabyt Mac app, on the Mac with the repo. When
ghisn’t ready, Ship shows Connect GitHub.Press Connect GitHub. If your Mac has no
gh, the app installs GitHub’s own first.The app shows a one-time code. Press Open GitHub, type the code on GitHub’s page, and approve.
The app says GitHub is connected. Press Open a pull request again.
Also let git push to github.com with this account is ticked by default. It lets Push sign in to GitHub with the same account. Leave it ticked unless you already push another way.
If a push says git couldn’t sign in, Push offers Let git push with your GitHub account. Press it, then press Push again.
In a browser, on your phone or on another Mac, Ship says to open Llamabyt on the Mac with the repo instead: signing in belongs to that Mac.
Settings → Macs & folders → This Mac has a GitHub row in the Mac app. It shows which gh byt Code uses and the account it’s signed in as (“Signed in as @ana on github.com”). Its ⋯ menu has:
- Use another account: sign in again in the browser. Sign out of GitHub in your browser first if it signs you straight back in as the same account.
- Switch to @…: when
ghalready knows another account on that host. - Let git push with this account, when git doesn’t push with it yet.
- Sign out:
ghforgets that account on this Mac, in Terminal too.
byt Code never switches accounts by itself. The pull request card names the account it will use before anything goes to GitHub.
When Llamabyt installed gh, Update gh shows in the GitHub row once GitHub publishes a newer one. If you installed gh yourself with Homebrew, byt Code uses yours while it’s new enough (2.40.0 or later), and brew upgrade gh updates it. If yours is too old, Use Llamabyt’s gh installs GitHub’s own beside it, signed in the same way.
A repo that’s only on your Mac says so under its name, with Publish to GitHub (also in its menu). The card shows:
- Name
- the folder’s name, made the way GitHub takes it. Change it if you like.
- Account
- the account
ghuses on github.com, or one of its organisations. - Private
- the repository is private. More offers Public, with a red line: anyone can see the code and its history.
- Save my work to GitHub after every turn
- on, each session’s work is saved to its own branch after every turn (Coding in byt Code says how). Only for private repos.
Press Publish: your Mac’s gh creates the repository, empty, and your Mac’s git sends the folder’s main there. When gh isn’t set up, the card shows Connect GitHub (in the Mac app, on the repo’s Mac). If the repository was made but sending didn’t work (usually git couldn’t sign in to GitHub), the card says so with Let git push with your GitHub account, and Try again sends it again to the same repository. A repo that already has its own remote is never published over it.
You can ask instead: tell your harness in a session (“publish this to GitHub, private”) or Dex-llama in a task or a DM (“publish my landing page repo”). Neither publishes: each leaves the same Publish to GitHub card for you (Dex’s shows under the repo and in your Inbox, with Dismiss), and nothing goes until you press Publish. Your Mac needs the Llamabyt app 0.14.0 or later to publish.
Your repo’s origin must be on GitHub: github.com, or your company’s GitHub Enterprise host. Connect GitHub offers the hosts your repos use. For a repo on GitLab, on Bitbucket or in a folder, Ship says pull requests from byt Code work with GitHub. Your Mac needs the Llamabyt app 0.13.0 or later to connect GitHub from the app, 0.12.0 for pull requests, and 0.15.0 to merge from Ship and open pull requests ready to merge.
If something isn’t ready, Ship says what, in plain words, with How to set it up to this page: gh missing, signed out or too old, or an account that can’t open pull requests in that repository.
Once it’s open, Ship shows the pull request’s checks as GitHub names them, read by your Mac: while a check runs it’s read again every 30 seconds, and Refresh reads it now. While your Mac sleeps, Ship shows the status it last read, with when, and updates when your Mac is back.
Merge, in the Llamabyt app on the Mac with the repo, opens a small card: Merge #12 into main?, with GitHub’s three ways to merge (Squash and merge, the default, Create a merge commit or Rebase and merge). Your Mac merges it with your own gh, only when you press Merge, and marks a draft ready for review first. GitHub’s rules for the repo decide: its required reviews and checks, and its branch protections. If GitHub says no, the card says why in plain words. After a merge, your folder takes the work as after a merge on GitHub. In a browser or on your phone, Ship says to open Llamabyt on your Mac, and Merge on GitHub opens the pull request on GitHub (in its app, if you have it) to merge it there. Work you haven’t pushed is only on your Mac: push it first.
Ask your harness to merge (“merge it”) and it leaves the same Merge #12 into main? card in the session; only your click merges.
With the Mac app 0.21.0 or later, Merge puts the pull request in its branch’s merge queue: one merge at a time per branch, for every session and project of yours in that repo. Before it merges, the branch takes in what merged before it, and its checks run again on that. When the base merged in cleanly, byt Code pushes the session’s own branch for you (never forced, never another branch); when it conflicts, Settle it has the session’s harness settle it in a turn. Database migrations with the same number as the base’s (Drizzle, or numbered files) are renumbered after the base’s the same way. Merge this first, Leave the queue and Try again are on the row.
Ship says which branch the session develops on and which it merges into (Change where it merges, before the pull request opens), and what merging there sets off: “Merging into main deploys to staging”. Hosts like Railway and Vercel deploy when a branch they watch changes, so a merge is the deploy. Branches and deploys (from Ship) lists where each branch deploys: Railway’s from your Railway pairing, and the rest you name. A branch that deploys to production, and every branch it doesn’t know until you press This is right, is merged only by your own click. The same page shows how the repo’s CI runs (byt Code starts it on each branch when it only runs by hand), the merge queues, every session’s branches, your rules for merges (When branches merge), and Promote to production: a pull request from the staging branch into the production one that only you merge. You choose where, per repo: here in byt Code after an approval box that says where each branch deploys (the default), or on GitHub yourself. Either way nothing promotes without your click.
More about GitHub and byt Code
- The Mac app downloads
ghfrom GitHub’s own releases and installs it only after checking that GitHub signed it and Apple notarized it. It keeps it in the app’s own folder, not where Terminal looks. - The one-time code comes from
ghon your Mac and shows only in the Mac app. It works once, for 15 minutes, and only with your approval on GitHub. - Llamabyt runs
ghwith GitHub’s telemetry off. - With Let git push, your Mac’s git settings (
~/.gitconfig) nameghas git’s sign-in for that host. - Llamabyt keeps the repository’s name, your last pushed commit, and the pull request’s number, link, state and checks as your Mac last read them, never your token.
- Fix this check, on a failed GitHub Actions check (paid plans), reads its log through
ghon your Mac and starts a turn to fix it: the log stays in that turn, and someone you shared the session with sees only the check’s name. Checks from other CI systems show their state only. - Your harness never gets
gh: asking to open or merge a pull request always asks, while readinggh’s sign-in, git’s saved sign-ins or GitHub’s API is refused. Its sandbox has no network. Asking it to publish only brings up the Publish to GitHub card. - Publishing reads your GitHub account’s number on your Mac, once, to use GitHub’s no-reply address for the repo’s saves (only where byt Code set the repo’s name and email); Llamabyt doesn’t keep it.
- Someone you shared a session with sees its pull request’s state and checks, never its buttons.
- Coders can still use Terminal:
gh auth login,gh auth statusandgh auth switchwork as ever, and share the same sign-in.
More in More
Ask Yarvi on Your Home, where the app opens: he answers from these articles, and can send your question to our team. Or write to us.