Repositories
A Workstation can hold copies of your Git repositories, so its agents read, run and change your code, runbooks or data. VirtuAI fetches each repository for the Workstation: the Workstation itself never holds a Git credential.
Repositories are added on a Workstation’s card under Build > Sandboxes. Adding, updating and removing them requires sandboxes.manage.
How it works
Section titled “How it works”- One commit, pinned. When you add a repository, VirtuAI resolves the branch or tag to a commit and delivers that commit’s files, without the Git history. Nothing changes until an admin approves an update.
- No restart. The Workstation gets the files in a moment, and again whenever it restarts. Copies an agent changed are kept; see Updates.
- Where the agent finds it. Each repository is in the folder
repos/<name>. In a shared Workstation each conversation gets its own copy. - No Git credentials in the Workstation. Cloning or pulling a private repository with
gitfrom inside the Workstation fails by design. The agent is told so, and that the fix is an admin adding the repository here.
Supported hosts: GitHub (github.com), GitLab (gitlab.com or your own GitLab, by its address) and Bitbucket (bitbucket.org).
Add a repository
Section titled “Add a repository”- On the Workstation’s card, select Add a repository.
- Enter the repository’s address, for example
https://github.com/your-org/your-repo. - Optionally enter a Branch or tag (default) and a Subfolder (optional) to deliver only part of the repository.
- Pick how VirtuAI reads it:
- No token (public, or connected GitHub) for a public repository, or a private GitHub repository on an account connected through the GitHub App.
- A token you saved before, or + Add a read-only token… to save one.
- Select Add. The card shows Repository added; the Workstation gets it in a moment.
Each repository on the card shows its branch, its commit, when it was fetched and whether it is in the Workstation, delivering… or not delivered (hover for the reason).
Read-only tokens
Section titled “Read-only tokens”For a private repository on GitLab or Bitbucket, or on GitHub without the GitHub App, save a read-only token: a host (for example gitlab.com), a Name and the token. VirtuAI keeps it encrypted, never shows it again, and uses it only on its own servers to fetch. It never reaches a sandbox. Tokens are saved for the workspace, so other Workstations can use them too.
Updates
Section titled “Updates”VirtuAI checks every few hours whether a repository has a newer commit. When it does, the card shows Update available with the new commit. To check now, select the refresh button (Check for updates); if nothing changed, it says Already at the newest commit.
Nothing moves on its own. Selecting the notice opens Update name?, which lists the files added, modified and removed. Review them, because agents will work with these files, then select Approve and update. Who approved which commit is recorded in the activity log.
Updating never throws away an agent’s work:
- Every copy the agent hasn’t changed moves to the new commit.
- A copy the agent changed keeps its commit and its edits. A
.virtuai-updatefile in it names the newer commit that is waiting, and the agent is told how to take it: propose its changes first, so they live on in the pull request, then delete the copy, and the next delivery brings the newer commit. - A proposal from a copy that stayed behind is compared with the commit the agent edited, so it never undoes what came in between.
Remove takes a repository out of the Workstation. A copy the agent changed is left in place.
Private GitHub repositories
Section titled “Private GitHub repositories”Instead of pasting tokens, connect your GitHub organization once through the VirtuAI GitHub App:
- On Build > Sandboxes (or Build > Skills), find the GitHub card and select Connect GitHub.
- On GitHub, install the app on your organization or account and choose which repositories it may read.
- GitHub sends you back to VirtuAI, and the card lists the account and its repositories. Add an account connects another one; Disconnect removes one.
From then on, private repositories and skills on those accounts need no token. For each fetch, VirtuAI uses a short-lived, read-only token for that one repository, on its own servers.
Connecting and disconnecting GitHub requires settings.manage. The GitHub card appears only when your VirtuAI installation has the GitHub App set up.
Agents propose changes as pull requests
Section titled “Agents propose changes as pull requests”For a GitHub repository, an admin can let agents send their changes back for review:
- On the Workstation’s card, tick Agents may propose changes (virtuai/… branch and pull request) under the repository.
- On GitHub, the VirtuAI GitHub App needs Contents and Pull requests set to read and write, accepted by the installation’s owner. Until then the agent is told exactly that when it tries.
The agent then edits its copy in the Workstation and asks VirtuAI to propose the changes. VirtuAI:
- compares the copy with the pinned commit and takes only what changed, honoring the repository’s
.gitignore; - commits it to a branch of its own,
virtuai/<repository>-<conversation>, created from the repository’s branch, or from the default branch when the repository is pinned to a tag; - opens a pull request for your team to review. Proposing again in the same conversation adds to the same branch and pull request.
It never writes to the default branch and never force-pushes. The token used is valid for one repository and one hour, and stays on VirtuAI’s servers. Each proposal is recorded in the activity log.
A proposal can contain up to 300 changed files and 20 MB. Only agents in a Workstation with at least one such repository get this ability, and only for those repositories. GitLab and Bitbucket repositories stay read-only.
Limits
Section titled “Limits”| Limit | Value |
|---|---|
| One repository, or the subfolder you add | 200 MB and 20,000 files unpacked, and 60 MB once VirtuAI compresses it. For a larger repository, add only the Subfolder (optional) you need. |
| One proposed change | 300 files, 20 MB |
| Checks for updates | About every 6 hours, when someone opens the page |
