← Plugins

Better Git

Inspect Git commit graphs, branches, and file diffs in Paseo workspaces, with staging, remote sync, and AI-assisted commits, cleanup, and conflict resolution.

$ clisbot plugin add stevezheng/better-git
Report a bug
stevezhengGit0installs2af1024761c1Source
Better Git screenshot 1

Better Git adds a Git panel to Paseo workspaces and the Explorer. It displays uncommitted changes, branch lists, and commit graphs, and lets you inspect per-file diffs, compare commits, manage branches, sync with remotes, and use AI models to draft commit messages, flag files to clean up before committing, and assist with merge conflict resolution.

When opened, the panel reads Git history and working-tree state from the workspace's daemon host and watches workspace files and Git metadata to refresh automatically. AI actions run through a temporary background Paseo agent using the model you choose on that host, then archive the temporary agent when finished.

Setup

  • Requires Paseo 0.18.1 or later with plugins enabled on the daemon host that owns the workspace.
  • Requires git on the daemon host's PATH inside a Git-backed workspace.
  • For remote workspaces, install the plugin on the corresponding remote host.
  • AI features (commit message drafting, pre-commit cleanup analysis, and merge conflict resolution) require at least one ready agent provider and model on that host.
  • Open Better Git from a workspace's new-tab menu or from the Explorer panel menu.

Capabilities

  • Commit graph and history: Browse commit history by current branch, all branches, or a previewed branch, filter commits by keyword or file path, inspect commit details, and compare two commits.
  • File diffs: View unified and side-by-side diffs for committed and uncommitted changes, navigate changed files in a collapsible file tree, and inspect staged, unstaged, or conflicted file patches.
  • Branch management: Browse local and remote branches, preview another branch's history without checking it out, switch branches, and create a new branch from a commit.
  • Staging and commits: Stage or unstage individual files, directories, or all changes, review staged diffs, and commit with a custom or AI-drafted message.
  • Pre-commit cleanup: Apply local rules for files such as potential secrets, build artifacts, and caches, then use AI to review remaining files. You choose which suggestions to apply.
  • Remote sync and AI merge: Fetch from remotes, preview ahead/behind counts, fast-forward pull, push (including first push with upstream setup), and start an AI-assisted merge when branches diverge, with diff review before finishing or aborting.
  • Per-host model preferences: Choose the AI model and supported thinking or speed controls per host; preferences are saved in Paseo device settings.

Data access and permissions

  • Local commands and filesystem: Runs git subprocesses directly (without a shell) on the daemon host, reads repository history and file contents, and watches the working tree and .git metadata for changes.
  • Repository writes: Modifies the repository only when you trigger an action, including staging or unstaging files, committing, creating or switching branches, fetching, pulling, pushing to configured Git remotes, appending selected patterns to .gitignore, and writing resolved conflict files plus a temporary better-git-merge.json state file inside .git during an active merge.
  • Data sent to agent providers: When you invoke an AI action, the plugin creates a temporary background agent in an empty temporary directory and sends relevant repository data to the selected provider:
    • Commit message drafting sends staged file paths and the staged diff (truncated to 65,000 characters). If nothing is staged, it stages all changes first.
    • When files remain after the local cleanup rules, the AI review sends up to 4,000 characters of .gitignore, paths already flagged by those rules, and summaries of the remaining changes. Those summaries can include paths, line counts, and up to 220 characters of preview text for new files.
    • Merge conflict resolution sends base, ours, theirs, and working text for conflicted text files within size limits.
  • Network access: Remote Git operations communicate with your configured Git remotes using the daemon host's existing Git credentials. AI actions use your configured Paseo agent providers. The plugin does not send telemetry or contact third-party services of its own.

Limitations

  • Branch switching is only allowed in a clean main checkout; it is disabled in linked worktrees or when uncommitted changes exist.
  • Pull performs fast-forward updates on a clean working tree; diverged branches require the merge flow.
  • Commit history loads 100 commits per page up to a 500-commit sliding window; large diffs and file previews are truncated for display.
  • AI merge resolution skips binary files, permission mismatches, and files exceeding size limits (12 KB per blob or 36 KB working file, up to 30 files and 65,000 prompt characters); remaining conflicts must be resolved manually.
  • The panel interface, status messages, and AI-generated commit messages and cleanup summaries are currently in Simplified Chinese.