Git and GitHub
iolys can inspect your repository, prepare commits, and work with GitHub pull requests through managed command tools. You describe the outcome; the agent uses the available commands under your selected permissions.
Set up the repository
Open a solution in a Git repository. Git must be available; iolys can use Git on PATH or the Git installation bundled with Visual Studio.
For GitHub, open Settings > GitHub under Integrations, install the managed CLI when prompted, and connect your account in the browser. See GitHub setup. A separate system gh installation does not replace the managed CLI.
Open Tools and Skills > Tools > Run CLI commands > Integrations to check Git and GitHub read/write rights. A custom agent also needs the relevant tool and integration permissions. Plan accepts recognized managed reads; switch to Agent for repository changes.
Inspect before changing
Start with a focused request:
Inspect the current branch, staged and unstaged changes, and recent commits.
Explain which changes belong to the CSV export task and propose a commit message.
Managed reads include status, diff, history, branch listings, and supported GitHub queries. For an existing pull request, ask:
Review the current branch's pull request and its checks. Explain any failing
checks and identify the files involved.
GitHub operations are scoped to the command's repository context. By default, this is the workspace's configured repository. To work in another repository, use run_cli with its folder as workdir and approve access when prompted; see Run commands in another folder. An explicit repository or pull request URL must match that target repository. Folder approval does not grant repository-write permission.
Commit and publish deliberately
First review the file changes and relevant tests. Inspect the staged diff too: a Git commit includes the entire index, including work staged before this task.
When ready, give an explicit instruction naming the intended branch and destination. For example, adapted to your repository:
Commit the reviewed CSV export changes with the message "Add CSV export".
Push feature/csv-export to origin, then create a draft pull request targeting
main. Describe the behavior change and the tests run.
Creating a pull request does not itself push the branch. Specify both actions when you want both. The agent's available operations and any approval prompts still apply to your request.
Ordinary Git and GitHub writes share a repository-scoped grant. Prompts can offer Approve once, Allow repository writes for this session, or Reject. Review the scope before granting continuing access. Merging a pull request requires a separate confirmation of its exact head, even when ordinary writes have been approved.
Amend the last commit
In Agent mode, ask to amend the last commit after reviewing the staged changes. For example:
Amend the last commit's message to "Handle cancellation in the API client".
Keep its files unchanged and do not push.
The managed git commit --amend -m ... operation can reuse the repository-write session grant. A message-only amendment does not require staged changes; when changes are staged, an amendment includes them. The approval prompt identifies the HEAD being amended. Additional options such as --reset-author require exact approval.
Delete a remote branch
Name the remote and branch explicitly when asking for deletion:
Delete the remote branch feature/csv-export from origin.
Managed Git supports git push origin --delete feature/csv-export, the -d form, and the :branch deletion refspec. Each invocation requires exact approval, even with a repository-write session grant or Full Access. Use Agent mode for this operation.
Force pushes, forced deletions, prune pushes, and mirror pushes remain refused by the managed integration.
Handle command failures
Git hooks and configured commit signing remain enabled. If a commit fails, read the reported cause and correct it before retrying. An unrecognized command option can require exact approval instead of inheriting the permission for a simpler command.
Use parallel workspaces for independent branches and permissions to review or revoke grants. The tool reference explains managed command execution and its boundaries.