Code and CI
GitHub and workspaces
Your review requests, issues and repositories, the checkouts on your machines, and handing an issue to an agent.
The GitHub page (⌃4) is built for one loop: see what needs you, hand an issue to an agent on one of your machines, and move on. It shows what’s waiting for you, your repositories, and where each one is checked out on your machines.
Sign in
Muxin uses the GitHub CLI’s login. If gh auth status works in your terminal, Muxin is already signed in. If not, Settings › GitHub › Sign in with GitHub runs the CLI’s browser sign-in for you. A GITHUB_TOKEN (or GH_TOKEN) in the environment works too.
Each machine has its own gh login, which agents there use for issues and pull requests. A machine’s page shows whether it’s signed in and can sign it in.
What needs you
The top of the page is your inbox:
- Waiting for your review: pull requests someone asked you to review.
- Assigned to you: open issues with your name on them.
- Your pull requests: the ones you opened that are still open.
Click any of them to read it in full: the description, the comments, and for a pull request its checks and reviews. ⌘⇧R syncs GitHub now.
Repositories
Below the inbox is every repository you own, collaborate on, or reach through your organizations. Open one for its open issues, pull requests and recent GitHub Actions runs.
- Favorites: star the repositories you work on and they stay at the top. Right-click a repository for Add to favorites.
- Forks: a fork sits under the repository it came from. An issue on a repository you can’t push to goes through your fork, and the agent is told to open its pull request against the original.
- Grouped or not: show one list, or group by owner (you, then your organizations, then repositories other people shared with you).
Checkouts on your machines
Muxin’s agent on each machine looks for git checkouts in your code folders (~/Developer, ~/code, ~/src and the like) and links them to their GitHub repository. A repository’s page lists where it’s checked out, with the branch, how many commits it’s ahead or behind, and any uncommitted files. Fetch, Pull and Push work from there.
To look in other folders, add them in Settings › General › Code folders.
Hand an issue to an agent
Every issue has Work on it with an agent; every pull request has Review with agent. Either opens a new session, with the issue’s link, title and description as the agent’s first message.
An issue also has Hand off in a box: an agent works on it by itself, in a container, and opens a pull request that closes it. See Boxes.
Where the agent works depends on what’s on your machines:
- A new worktree, when the repository is checked out on the machine (this computer first). The agent gets its own folder and branch, and your checkout stays as it is.
- A fresh clone, when Muxin finds no checkout in your code folders, or when you right-click a pull request and pick Review in a new workspace….
- The checkout itself, if you pick A folder under Where.
-
01
Pick an issue
Click Work on it with an agent, and pick the machine.
-
02
Its own branch
In a new worktree or a fresh clone. An issue gets a branch like
issue-910-content-excalidraw. -
03
The agent works there
It starts with the issue as its first message. Watch it from the sidebar.
-
04
You ship it
Read what it changed, then use Actions to commit and open the pull request.
See Agent sessions for following the agent once it’s running.
Workspaces
A workspace is a folder on one of your machines, kept for one task: a fresh git clone, or a worktree of a checkout that’s already there. The ones above are made for an issue; your AI agents make their own to run tests or try a change (with workspace_create, see MCP for your agents). The Boxes page lists them all, under Agents’ workspaces.
- Each one shows its machine, repository and branch, which agent made it, its last command with the exit code, and its folder.
- A git line shows its branch, what changed, and its pull request with the checks, like a session’s.
- A worktree shares its checkout’s history, so it’s ready in a moment. Several agents can each have one on the same repository. Deleting it removes the worktree and keeps its branch.
- When a worktree’s pull request is merged, its work is done. Clean up deletes it.
- Click one for its details, with New session (an agent or a shell in its folder), Open in editor, Copy shell command and Changes (its
git statusand the uncommitted diff). - New workspace makes one yourself: a machine, and a repository to clone if you want one. Private repositories clone with your
ghlogin. - A workspace runs directly on the machine, with its tools, or in a fresh Docker container of its own (the folder mounted at
/workspace), for untrusted code or a clean toolchain.
Workspaces stay until you delete them, with the bin on the page. Push anything worth keeping first.
Git on each machine
For an agent to commit and push on a machine, git there needs a name, an email and a way to reach GitHub. A machine’s page has a Git card that shows all three. When something’s missing, one click fixes it:
- Use my GitHub identity sets git’s name and email to your GitHub name and your private noreply address.
- Use the GitHub CLI runs
gh auth setup-git, so pushes use that machine’sghlogin.
Both change the machine’s global git config, so Muxin only does them when you click.
muxin git status beacon
muxin git setup beacon --identity --credentials
More than one account
Muxin uses one GitHub account at a time. Click your name at the top of the GitHub page to switch. The menu lists every account the GitHub CLI on this computer is signed in to, and each machine’s own gh login. Pick your work laptop’s login and Muxin shows that account’s repositories, inbox and runners; Fix with agent then prefers checkouts on that machine.
A token from another machine is fetched over ssh when needed and kept in memory only. Switching doesn’t change which account gh uses in your terminal. Add another account… runs gh auth login.
Permissions for organizations
Reading your repositories and issues needs only the default gh login. Watching an organization’s runners needs the admin:org permission. Settings › GitHub shows when it’s missing; Grant access runs this in a terminal and finishes in your browser:
gh auth refresh -h github.com -s admin:org
See GitHub Actions runners for what watching gives you.
From the command line
muxin github inbox # what needs you
muxin github repos # favorites first
muxin github repo acme/api # issues, PRs, runs, and where it's checked out
muxin github issue acme/api#632 # or the issue's URL
muxin github favorite acme/api # --remove to unstar
muxin github accounts
muxin github use work-login # or: --machine work-macbook
muxin checkouts --repo acme/api
muxin checkouts --machine beacon --path ~/code/api --git pull
muxin ws create --machine beacon --worktree-of ~/code/api --branch fix-login
muxin ws ls # with each one's branch and pull request