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.

10m read timeFrom dolthub.com
Post cover image
Table of contents
Context #Open Code #Why Version Control Context? #Why Talk When You Can Show? #Conclusion #
98 Impressions