Skip to content

About

Local Git workbench for Codex desktop and Antigravity 2.0. Review diffs, stage changes, and manage commits, branches, and worktrees. · 面向 Codex 桌面端和 Antigravity 2.0 的本地 Git 工作台,支持查看差异、暂存更改,以及管理提交、分支和工作树。

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Git Workbench for Codex & Antigravity

English · 简体中文

A local Git workbench for Codex desktop and Antigravity 2.0. Review diffs, stage changes, and manage commits, branches, and worktrees.

Quick start · Features · Changelog · Report an issue · Contribute

Docs, translations, compatibility reports, and code PRs are welcome. Small fixes can go straight to a PR. For larger changes, open an issue so we can agree on the scope first.

Codex desktop demo with projects on the left, a chat in the center, and Git Workbench docked on the right

Git Workbench beside a Codex chat. The projects, conversation, and Git data shown are fictional.

Quick start

You'll need Codex desktop (with local MCP Apps support) or Antigravity 2.0, Git 2.35 or later, and Node.js 22+ (Node.js 24+ recommended). Make sure git and node are on your PATH. The plugin has no npm dependencies.

Auto-detect install (Codex & Antigravity)

Run one command to automatically detect your local Codex / Antigravity installation and install the matching plugin(s):

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/KissFeng/git-workbench/main/install.sh | sh

Windows (PowerShell):

irm https://raw.githubusercontent.com/KissFeng/git-workbench/main/install.ps1 | iex

Pass --codex, --antigravity, --all, or --ref <tag> to override auto-detection (for example curl -fsSL .../install.sh | sh -s -- --antigravity).

Manual install

Codex desktop (from GitHub v0.9.0):

codex plugin marketplace add KissFeng/git-workbench --ref v0.9.0
codex plugin add codex-git-workbench@kissfeng-git-tools

Antigravity 2.0 (from a local clone):

npm run install:antigravity
  • In Codex, open Git Workbench from the panel picker. When Codex provides a chat with a Git working directory, the workbench selects that checkout.
  • In Antigravity 2.0, open Git Workbench from the right auxiliary pane (manage it in Customizations → antigravity-git-workbench). The workbench automatically tracks the active conversation's workspace and follows the host light/dark theme.

You can look up saved projects and worktrees or open another checkout from the repository picker.

On macOS and Windows, use the native folder picker to open a checkout and the file menu to open a file or its containing folder. You can also enter the checkout’s absolute path in the repository picker.

Installation troubleshooting

  • Git Workbench is missing. Run codex plugin list --marketplace kissfeng-git-tools to check that the plugin is installed, then fully quit and reopen Codex. Use a Codex desktop version with local MCP Apps support.
  • Codex cannot find Node.js or Git. Run node --version and git --version. If either command is missing or the plugin still fails to start, make sure the folder containing the executable is on the PATH available to the desktop app, then reopen Codex.
  • The old version still appears. The install command pins a Git tag. To switch versions, use the desired tag in the marketplace command and run the plugin install command again. If Codex reports that the marketplace is already configured, run codex plugin marketplace remove kissfeng-git-tools first. Fully quit and reopen Codex after installing.

The desktop development environment is macOS. CI runs Node.js and Git tests on macOS and Linux. Desktop compatibility reports for Windows and Linux are welcome. Include your OS, Codex or Antigravity version, plugin tag, and steps to reproduce.

Features

Workflow What you can do
Repositories Find saved Codex projects and linked worktrees, choose a folder on macOS or Windows, initialize a repository, or clone with optional submodules. Enter an absolute path when the folder picker is unavailable.
Review and stage changes Browse changes as a list or tree. View source, unified or split diffs, and image snapshots. Stage or unstage files, groups, hunks, or selected lines. Discard tracked edits or remove untracked files after confirmation. Ignore, rename, or delete files.
Commit Commit staged or all changes, amend, create an empty commit, or undo an unpublished commit. Commit options include all-file amend, restoring the commit template, signing, sign-off, and skipping hooks.
Explore history Filter the commit graph by branch, tag, or other ref. Expand commits to see their files, locate HEAD, compare refs or the working copy, and review incoming and outgoing changes from their common base. Follow file history and inspect line attribution.
Branches and remotes Switch local or tracked remote branches, check out detached revisions, manage branches, tags, and remotes, and fetch, pull, push, publish, or sync. Sync defaults to fast-forward only, with options for rebase sync and pushing reachable annotated tags. Force pushes use a lease tied to the selected remote tip.
Conflicts, stashes, and worktrees Compare base, ours, theirs, and working copy versions of a conflict. Edit and stage eligible results or select a version. Continue or abort a merge, rebase, or cherry-pick. Create, inspect, apply, pop, or drop stashes. Create or remove worktrees and move pending changes between them.

Using the panel

  • Layout. Repositories, Changes, and Graph share one panel. Collapse sections or drag either divider to resize its neighboring sections. On narrow panels, Back returns from the preview to the same row and scroll position.
  • Actions. Hover over a row for shortcuts, or open its context menu with a right-click or Shift+F10. On macOS and Windows, the file menu can open a file or its containing folder. The primary action follows the checkout state, with controls for commits, sync, and conflicts. Press Cmd/Ctrl+Enter in the commit message field to start the commit flow.
  • Language. Use the selector in the Source Control header to switch between Simplified Chinese and English. The panel starts in Simplified Chinese and remembers your selection. Repository names, paths, and Git content keep their original text.

Wide layout

Git Workbench showing staged files, the commit graph, and a split diff

Wide layout with a split diff, using sample repository data.

Narrow side panel

Narrow Git Workbench panel in dark mode with repositories, changes, and the commit graph

Narrow side panel in dark mode, using sample repository data.

Git uses your local hooks, credentials, signing, and remotes. When a write requires confirmation, the panel shows the target first. If a sync fails during the pull, it stops before pushing.

Use whole-file actions for binary files, symbolic links, renames, and permission changes. File and image previews have size limits. Commit message generation, GitHub sign-in, and pull request management are separate integrations.

Development

Register a local checkout as a marketplace from the repository root, then install the plugin.

codex plugin marketplace add "$PWD"
codex plugin add codex-git-workbench@kissfeng-git-tools

Run npm test with Node.js 24 or later. The suite uses temporary local repositories and bare remotes to test staging, commits, conflicts, remotes, history, path handling, Codex project discovery, and the packaged MCP resource. CI runs on macOS and Linux.

The JavaScript panel follows Codex's light and dark themes and talks to a local MCP service over stdio. File, history, and Git mutation tools are available only to the panel. Git commands run in the selected checkout, and linked worktrees share a write queue keyed by their common Git directory.

License and credits

Licensed under MIT. The plugin is based on Source Control for Codex v0.5.1 and preserves its license and Git history. Its own marketplace and plugin identifiers let it coexist with the upstream plugin.

Git workflows draw on the VS Code Git extension. See the third-party notices for the adapted Code - OSS graph logic.

About

Local Git workbench for Codex desktop and Antigravity 2.0. Review diffs, stage changes, and manage commits, branches, and worktrees. · 面向 Codex 桌面端和 Antigravity 2.0 的本地 Git 工作台,支持查看差异、暂存更改,以及管理提交、分支和工作树。

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages