Beta · 0.1.0Local-first terminal + Git workbench
Run your AI agents.Keep the work.
ContextGit is a local-first desktop workbench for terminal AI agents and Git. Give every run its own workspace, review the diff, checkpoint progress, and recover the decisions that mattered.
Unsigned beta for Windows, macOS, and Linux. No account required. Open source under Apache-2.0.
- Local-first
- Apache-2.0
- Bring your agent
- No account
- Only your model calls leave the machine
Interactive demo · sample data · click a run
>_ OpenAI Codex directory: ~/Projects/portal › write the e2e for the cancelled tier • Edited test/subscription.e2e-spec.ts (+41 -0) • Ran npm run test:e2e └ PASS cancelled tier gets 403 96% context left · working (esc to interrupt)
- Claude Code
- Codex
- OpenCode
- Gemini CLI
- Aider
- Ollama
- Freebuff
- Cline
- Pi
- Kilo Code
- Command Code
- Shell
- Claude Code
- Codex
- OpenCode
- Gemini CLI
- Aider
- Ollama
- Freebuff
- Cline
- Pi
- Kilo Code
- Command Code
- Shell
02How it works
From agent run to recoverable work.
Keep the terminal workflow you already know. ContextGit adds the missing layer around it: isolated runs, visible changes, and Git-backed checkpoints.
$ contextgit fleet ctx/frontend codex +56 −1 working ctx/api-contract claude +56 −4 merged ctx/tests gemini +37 −2 blocked > write the e2e for the cancelled tier • Edited test/subscription.e2e-spec.ts (+41 -0) • Ran npm run test:e2e └ PASS
* f10c7a6 Merge redis-bucket main * 5d2f8e1 Add audit logging main |\ | * 4c07a1e Cross-region clock skew redis-bucket | * 9e41b7d Redis token bucket redis-bucket * | 1d6c9a0 Compare storage options main * e3a9d04 Dead end: fails on failover in-memory
Code — A terminal board: one live shell and one git branch per agent run.
Run
Launch an installed terminal agent in its own workspace.
Review
See the terminal output, changed files, branch, and diff together.
Recover
Checkpoint, branch, merge, or roll back without losing the original work.
03Agents
Use the agents you already have.
Each run gets its own worktree and branch. ContextGit shows what changed and flags overlap before anything merges.
- backendctx/api-contract7 files+3merged into main
- frontendctx/frontend12 files+4working
- testsctx/tests4 files+2blockedoverlaps ctx/frontend on src/types/api.ts
- docsctx/docs2 files+1working
- reviewctx/review0 files—idlewaiting on ctx/frontend
- Isolated worktreesEvery run edits its own checkout. Agents never overwrite each other's files.
- Claims and scopesEach run claims the paths it owns. Overlaps are flagged, and a managed
AGENTS.mdblock tells every agent who owns what. - A merge queueBranches merge one at a time, re-checked against the moved target, so a conflict stops the queue instead of breaking main.
- Code and context togetherMerging a run lands its diff on the git branch and its reasoning on the context branch, in one step.
- Bring your own setupUse your installed CLI and model provider. ContextGit does not ask you to switch agents or create another account.
04Recovery
Useful work should never disappear into a chat scroll.
Checkpoints give agent work a concrete history. Branch from a useful moment, compare approaches, keep a dead end for reference, and return to a known-good state.
- main
- redis-bucket
- in-memory (abandoned)
- merge commit
- Branch from any message
- Fork at the exact message where the conversation went somewhere new.
- Compare mode
- Send one prompt to two branches and read the answers side by side.
- Cherry-pick
- Bring a single commit from one branch onto another.
- Tag a commit
- Label a known-good state and return to it in one click.
- Staged turns
- Nothing lands on the branch until you press Commit; a pending diff shows what will land.
- Export as plain prompt
- Take any branch's context into any other tool.
05Review before merge
You stay in control of what lands.
ContextGit shows the proposed changes and context before a merge. Conflicts are surfaced for you to decide; the original branch stays intact.
The algorithm
- 1Find the common ancestor.
- 2Collect source commits since the ancestor.
- 3Extract decisions, facts, dead ends and open questions.
- 4Detect conflicts against the target branch.
- 5Write a compact summary and show a preview.
- 6On approval, create a merge commit with two parents.
Prompts are versioned text files. Output is structured JSON, validated before it reaches the preview.
06Trust
Simple to understand. Local by default.
The beta needs no ContextGit account. Your history is stored locally, and the app works with the Git and terminal setup you already use.
No account
Start locally without a ContextGit sign-in.
Your provider
Use the model keys and agent accounts you already chose.
Honest support
Terminal support, usage reporting, and transcript capture are labeled separately.
07Questions
Before you try it.
What does ContextGit do?
It gives terminal-agent work a visible, recoverable home: each run has its own workspace, changes are reviewable as Git diffs, and useful states can be checkpointed, branched, merged, or rolled back.
Does it replace my editor or agent?
No. ContextGit launches the terminal agents you already use and works alongside the editor you already have. The beta focuses on terminal sessions and Git context.
Where does my data go?
Commits live in a local SQLite file. The only network traffic is the calls you make to your chosen model provider.
Which agents does it run?
It can launch installed shell and terminal agents, including Claude Code, Codex, OpenCode, Gemini CLI, Aider, Ollama, Cline, Pi, Kilo Code, Command Code, and a plain shell. Terminal support, usage reporting, and transcript capture are separate capabilities.
Do I need an account?
No. The local app needs no account and no sign-in. Accounts only arrive with the cloud tiers, when they ship.
Does it work with my editor?
ContextGit launches the terminal agents you already use. Bring your own editor alongside it — every run is a real git worktree on disk.
Is it free?
The local app is free: unlimited projects, runs and commits. Paid tiers (cloud sync, security audit, team) are coming, and prices are not set yet. See Pricing.
Is transcript capture supported?
Capture is verified per agent. OpenCode is the first fully verified integration; other agents remain usable as terminals until their capture path is tested.
Is it production-ready?
Early build. Expect rough edges. It is open source under Apache-2.0 and built in the open — read the code and open an issue when something breaks.
Start with a local beta.
Run an agent, inspect the diff, and keep the checkpoint. Download the unsigned beta for Windows, macOS, or Linux.
Verify the SHA-256 checksum before installing. Expect rough edges and tell us what broke.