Git Workflow | LanMate User Guide
Using the Qianxin edition of LanMate?View Qianxin Edition User Guide

Git Workflow

LanMate provides full Git integration for any task session whose working directory is a Git repository. A non-repository workspace shows no Git entries; initialize the directory as a repository first.

Branches

Agent-created branches default to the lanmate/ prefix (configurable in settings).

Create a new branch and fix this bug

Commits

Commit the recent changes with a conventional message

Agent generates compliant commit messages (customizable guidance in settings).

Review Panel

Right panel “Review” tab (when reviewing code changes):

Changes View

History View

Commit history graph: branch topology visualized, with each row showing the short hash, branch/tag badges, title, and relative time. 200 entries load initially, and “Load more” goes up to 1000.

AI Code Review

Click “AI Review”:

  1. Agent fetches branch diff + uncommitted changes
  2. Calls the review model (read-only constraint)
  3. Outputs structured findings (P0-P3 priority)
  4. Gives ship / ship_with_fixes / block verdict
  5. Findings can be sent back to the dev session as follow-ups

Diff View

The view menu at the top-right of the review panel has three toggles:

Toggle Description
Wrap lines Fold long lines
Hide whitespace Ignore whitespace differences such as indentation and trailing spaces
Unified / split Single-column diff, or side-by-side comparison

Desktop only; HarmonyOS has no Git capability, and the review entry reports it as unavailable.

Worktree Isolation

Parallel tasks stay out of each other’s way: switch the composer to “New worktree” and the task runs in a dedicated Git worktree, merged back into the base branch via AI Merge when done. See Git Worktrees.

GitHub Integration

Settings > Git > GitHub Connect:

Settings

Setting Default
Branch prefix lanmate/
PR merge method merge
Force push Off (uses --force-with-lease when on)
Draft PR On
Commit message guide Empty (customizable)