Sightdeck AIAgentic Studio

User Guide

Git client

The Git view is a git client built into Sightdeck. You see what your agents committed, write your own commits, move branches between your computer and the remote, and resolve conflicts, all next to the tasks that caused them.

What you get

  • Your local branches, remote branches, tags and submodules in one sidebar.
  • A History with a commit graph. A commit whose subject starts with a task key shows that task.
  • A Working Copy with a commit composer: stage files, write a message (or let AI suggest one) and commit.
  • Fetch, Pull, Push and Stash one click away.
  • Publishing a local branch by dropping it on a remote.
  • A pull request right after a push, when GitHub is connected.
  • A merge editor for conflicts, with Resolve with AI.

Open the Git view

Pick a project and click Git in the view switcher, right next to Code. The button is only active when the project folder is inside a git repository. Until then it is greyed out, and its tooltip says that this project is not inside a git repository. Run git init in the project folder to change that.

The Git button also shows how many files are changed and whether there are commits to push or to pull, so you see it from any view.

The sidebar

  • Workspace: Working Copy (your uncommitted changes), History, Stashes and Pull Requests.
    Sightdeck AI Git view: the sidebar with Working Copy, History, Stashes, Pull Requests, Branches and Remotes on the left, the history with its commit graph in the middle, and the details of the selected commit on the right
    The Git view: sidebar, history with graph, commit details.
  • Branches: your local branches. Each one says which remote branch it tracks (Tracks origin/main), how far it is ahead or behind, or that it is Not published yet. Double-click a branch to check it out. Right-click it for more, such as a new branch, rename, merge, rebase, compare, delete, or tracking an upstream branch.
  • Remotes: every remote with its branches. Double-click a remote branch to check it out as a local branch. Add remote… connects another copy of the repository, such as a fork.
  • Tags and Submodules, when the repository has them.

Drag a branch onto the branch you have checked out to merge it in. Hold Option (Alt) while you drop to rebase your branch onto it instead.

History and the commit graph

The History lists the commits of the current branch, newest first. A graph on the left draws how branches split and merge. Switch to All branches to see every branch at once. Search by commit message, author, hash or task. Click a commit to see what it changed. If its subject starts with a task key such as ACME-21:, the task is shown, and one click opens it.

Right-click a commit for actions like Create branch here…, Create tag here…, cherry-pick, Revert this commit or a reset. Each one tells you first what it will do.

Commit your changes

Open Working Copy. The commit composer sits at the top, the changed files below it.

  1. Stage what belongs in the commit: tick single files, or click Stage all. You can also stage a single change, or selected lines of a file.
  2. Write a Commit subject. The field starts empty. The button next to it suggests a message from the staged changes: it reads the diff, fills in subject and description, and commits nothing.
  3. Add a Description if the change needs one.
  4. Click Commit. Hold Option (Alt) and the button turns into Amend, which changes the last commit instead.

What you typed stays when you switch to another view and back. If an agent is still writing one of the changed files, a warning above the composer tells you. When that file is staged, the commit would take a half-written file.

Fetch, pull, push and stash

  • Fetch asks every remote what is new, without changing your branch.
  • Pull brings the new commits of the remote branch into yours. If both sides have new commits, Sightdeck asks how to bring them together. Conflicts are never resolved on their own.
  • Push asks first, in a small dialog, and sends your commits to the remote. It can push all tags along, and it offers a force push that only replaces the remote branch if nobody else pushed in the meantime.
  • Stash in the composer puts all your changes aside, under a name if you like. In Stashes you Apply, Apply and remove or Drop a stash.

A small badge tells you where your branch stands: Up to date, ↑2 to push, ↓3 to pull, Diverged or Not published. Git settings… sets how this project pulls (fast-forward only, merge or rebase), whether to fetch in the background every few minutes, and whether local changes are stashed for pull and checkout and put back afterwards.

Publish a local branch

A branch you created on your computer is not on the remote yet. To publish it, drag it from Branches and drop it on a remote under Remotes. A pop-up asks for:

  • Remote: where it goes, preset to the remote you dropped it on.
  • Remote branch: the name of the new branch there, preset to the local name. If that name is already taken on the remote, pick another.

Click Publish. From then on your local branch tracks the new remote branch, so Push and Pull know where to go.

Pull requests after a push

Pull requests need GitHub. Connect GitHub under Settings → Integrations, or sign in with gh auth login in a terminal. Without either, Sightdeck offers to open the pull request on GitHub instead.

After a push, a banner says Pushed. If the branch has no pull request yet, it offers Create pull request. The dialog fills in the target branch, a title (taken from the task when the branch belongs to one) and a description. Write with AI writes the description for you, and Create as draft keeps it a work in progress. If a pull request is already open for the branch, the banner says so and offers Show pull request.

The Push menu also has Push & create pull request, which needs no dialog, and Push & review pull request…, which opens the dialog prefilled.

Two project settings decide the details. Open Edit project → Git:

  • Default pull request target: the branch new pull requests go into. It works with or without feature branches.
  • After the first push of a branch: Ask (the banner offers a pull request), Create pull request automatically, or Do nothing.

Pull Requests in the sidebar lists the open pull requests of the repository with their checks.

Resolve conflicts

When a merge, rebase, cherry-pick or pull stops on conflicts, the Working Copy lists the conflicted files on top under Conflicts, highlighted so you cannot miss them. Click a conflicted file and the merge editor opens right away.

  • Left and right are the two sides, for example Current and Incoming in a merge. The middle is the result that gets saved.
    Sightdeck AI merge editor: the current side on the left, the incoming side on the right and the result in the middle, with one resolved and one open conflict, the Whole file and Only conflicts switch and the Resolve with AI button
    The merge editor: both sides left and right, the result in the middle.
  • An open conflict says The decision is still missing here. Take the left side, the right side, Both in either order, or Write it yourself.
  • Whole file shows the full file around the conflicts. Only conflicts folds the unchanged lines away.
  • A ring in the header counts the resolved conflicts. Numbered dots jump to each one, and a strip on the right shows where the open ones are. Alt+↑/↓ jumps between conflicts, Esc closes.
  • Resolve with AI goes over the whole file and fills every open conflict, each with a short note why. Ask AI on a single conflict does just that one. Nothing is saved until you have checked it and clicked Save and mark as resolved.

When the last conflict is resolved, finish the merge with a commit, or continue the rebase. You can also abort it from the Working Copy.

When you leave the Git tab

A push can take a while. You do not have to wait for it: switch to another view and keep working. When the push ends, the AI Buddy tells you in its chat, for example Branch feature/acme-21 is pushed. It has no pull request yet., with a button to create the pull request. If the push failed, it says so and offers to open the Git tab.

Example: from a new branch to a pull request

Tobias finished ACME-21 on the local branch feature/acme-21 in acme-shop. You want it on GitHub as a pull request into develop.

  1. In Edit project → Git, set Default pull request target to develop. You only do this once.
  2. Open Git → Working Copy, click Stage all, type ACME-21: Add the gift wrap step as the subject and click Commit.
  3. Drag feature/acme-21 from Branches onto origin under Remotes. Keep the name and click Publish.
  4. The banner says Pushed. and offers Create pull request. Click it, check the title, let Write with AI draft the description, and create it.
  5. Later, Lena's work lands in develop first, and your pull stops on a conflict in config/shipping.json. Click the file, click Resolve with AI, check that both entries are kept, and click Save and mark as resolved.

Related