Download beta

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

ContextGitSample data · click a run
ctx/frontendOpenAI Codex
>_ 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

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.

  • 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.md block 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.

contextgit log --graphrate-limiter-design
  • main
  • redis-bucket
  • in-memory (abandoned)
  • merge commit
Select any commit. Its context is rebuilt by walking parents. A merge commit carries a summary, not the whole branch.
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

  1. 1Find the common ancestor.
  2. 2Collect source commits since the ancestor.
  3. 3Extract decisions, facts, dead ends and open questions.
  4. 4Detect conflicts against the target branch.
  5. 5Write a compact summary and show a preview.
  6. 6On approval, create a merge commit with two parents.

Prompts are versioned text files. Output is structured JSON, validated before it reaches the preview.

Merge redis-bucket into main

ancestor 1d6c9a0 · 2 source commits

decisions

  • Token bucket in Redis, one Lua call per request.
  • Refill rate comes from the key's plan, read once a minute.

facts

  • Clock skew across regions is tolerated up to 50 ms.
  • The Lua script is atomic per key.

dead ends

  • Sliding window log: memory grows with traffic.

open

  • Fail open or fail closed when Redis is unreachable?
1 conflict Logging policy

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.