Source Control

Git integration, branches, and the agents panel

Overview

Agentastic includes comprehensive Git integration for managing your repositories directly from the editor.

Source Control Navigator

Open the Source Control Navigator from the left sidebar to see:

  • Changes - Modified, staged, and untracked files
  • Branches - Local and remote branches
  • Stashes - Saved work in progress
  • Remotes - Connected remote repositories

Basic Operations

Viewing Changes

  • Files with changes show status indicators in the Navigator
  • Click a changed file to view the diff
  • Staged and unstaged changes are shown separately

Staging & Committing

  1. Select files to stage in the Source Control Navigator
  2. Enter a commit message
  3. Click Commit or press Cmd+Enter

Branch Management

ActionHow To
Create BranchClick + in Branches section
Switch BranchDouble-click a branch
Merge BranchRight-click > Merge into current
Delete BranchRight-click > Delete

Agents Panel

Agentastic has first-class support for git worktrees via the Agents panel, allowing you to work on multiple branches simultaneously.

What are Agents?

Agents use git worktrees to let you check out multiple branches at once, each in its own directory. This is useful for:

  • Reviewing PRs while working on features
  • Quick bug fixes without stashing
  • Comparing implementations across branches
  • Running AI coding agents in isolated environments

Navigating Agents

ActionShortcut
Next AgentCmd+Option+Down
Previous AgentCmd+Option+Up

Managing Agents

Access agent management in Settings > Agents:

  • View all agents for the current repository
  • Create new agents
  • Switch between agents
  • Remove unused agents

Diff Viewer

The diff viewer shows changes with syntax highlighting:

  • Green - Added lines
  • Red - Removed lines
  • Navigate between changes with the diff controls

Stashing

Save work in progress without committing:

  1. Right-click in Source Control Navigator
  2. Select Stash Changes
  3. Enter an optional stash message

Apply stashes from the Stashes section of the Navigator.

Remote Operations

ActionDescription
FetchDownload remote changes
PullFetch and merge remote changes
PushUpload local commits to remote

Access these from the Source Control Navigator toolbar or the Source Control menu.