---
title: "Git For Context"
url: https://daily.dev/posts/git-for-context-sfgc4dn2z
source_url: https://dolthub.com/blog/2026-06-15-git-for-context
type: article
source: "DoltHub Blog"
published: 2026-06-15T21:15:34.245Z
updated: 2026-06-18T02:16:26.357Z
tags: ["ai-agents", "opencode", "version-control"]
reading_time: 10
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Git For Context

**[DoltHub Blog](https://daily.dev/sources/dolthub-blog)** · 10 min read · 1 upvotes · 0 comments

## Summary

DoltHub built a fork of OpenCode (the popular open source coding agent) that uses Dolt — a version-controlled SQL database — to store and version agent context. The fork adds Git-like commands (/commit, /branch, /checkout, /diff-stat, /diff-context, /reset, /log) directly inside the coding agent, enabling developers to track how LLM context evolves across sessions, compare context across branches, and preserve agent history. The post walks through setup using Dolt as a MySQL-compatible server, demonstrates diff output showing context growth in terms of messages and tokens, and argues that version-controlled context is valuable both as a developer tool for Open Code contributors and as a future user-facing feature for context preservation and multi-agent workflows.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dolthub.com/blog/2026-06-15-git-for-context>

## Similar posts on daily.dev

- [Git For Context Deep Dive](https://daily.dev/posts/git-for-context-deep-dive-orjfmhzpv) · DoltHub Blog · 1 upvotes · 0 comments
- [Dolt \+ TeamCity: Data Commits Now Trigger Builds](https://daily.dev/posts/dolt-teamcity-data-commits-now-trigger-builds-vpadwuh9u) · DoltHub Blog · 0 upvotes · 0 comments
- [What People Are Saying: Better Stack Edition](https://daily.dev/posts/what-people-are-saying-better-stack-edition-e20vhxeem) · DoltHub Blog · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#opencode](https://daily.dev/tags/opencode), [#version-control](https://daily.dev/tags/version-control)

[View this post on daily.dev](https://daily.dev/posts/git-for-context-sfgc4dn2z)
