A task-driven Git desktop client written in Rust — with AI-assisted conflict resolution, multi-pane workflow views, and safe-by-default UX patterns.
Git Control is a local-first Rust desktop application that makes everyday Git operations task-driven and safer than raw command-line workflows. It wraps libgit2 in a clean egui/eframe GUI, provides guided flows for staging, committing, branching, syncing, and recovering, and adds an AI conflict-resolution studio backed by OpenAI or an offline heuristic engine.
git git-client git-gui rust egui eframe desktop-app libgit2 ai conflict-resolution openai branch-management developer-tools local-first commit-workflow reflog history-viewer command-palette
- Repository discovery rail with branch and health chips (
staged,unstaged,conflicts,ahead/behind) - Multi-pane desktop UX:
Changes(quick actions, file filter, per-file stage/unstage, guided commit flow)History Graph(recent commit timeline with visual commit nodes)Branch Lab(create + checkout, switch branches)Sync(ahead/behind, real fetch/pull/push actions, command output panel)Conflict Studio(AI provider + strategy picker, suggestion apply/stage)Recovery Center(reflog-backed reset flow with arm/confirm)
- AI conflict agents:
Local Heuristicprovider (offline)OpenAIprovider (remote, asynchronous request in UI)Keep OursKeep TheirsSmart Blend(line-level dedupe merge)
- Command palette and shortcuts:
Cmd/Ctrl+Kopen command paletteCmd/Ctrl+Rrefresh repositoriesCmd/Ctrl+Entercommit
- Safe UX touches:
- explicit status footer
- risk indicator in inspector
- two-step reset in recovery
- conflict marker guard before applying edited AI output
- Export
OPENAI_API_KEYbefore launching, or paste it into the Conflict Studio settings panel. - Default model is
gpt-4.1-mini; you can change model and base URL in-app. - Open Conflict Studio, select
OpenAI, pick a strategy, then clickGenerate AI Suggestion.
cargo runcargo check
cargo testsrc/main.rs: app boot and native window optionssrc/app.rs: UX/state/workflow screenssrc/git_service.rs: libgit2-backed repository read/write operationssrc/ai_agent.rs: local AI conflict-resolution agent and parser tests
- This MVP is local-first and does not require cloud APIs.
- Remote auth-heavy actions (
pull/push/fetch) are intentionally presented as guided commands in UI rather than opaque background operations. - Git Control never auto-initializes repositories: it only works with existing
.gitmetadata and resolves parent repos when you select a subfolder.