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
- All modified files (added/modified/deleted/renamed)
- Click for line-by-line diff
- Stage/unstage, commit, push/pull, branch switching
- Create PR (opens GitHub/GitLab compare page)
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”:
- Agent fetches branch diff + uncommitted changes
- Calls the review model (read-only constraint)
- Outputs structured findings (P0-P3 priority)
- Gives ship / ship_with_fixes / block verdict
- 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:
- OAuth browser authorization
- Agent can operate PRs, Issues, and CI after login
- Check build status, merge PRs, create Issues, and more
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) |