Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Dolt

$ dolt Official Med Risk
DoltHub · Database & Data · Apache-2.0 · macos / linux / windows

dolt combines a MySQL-compatible SQL engine with Git-style branches, commits, diffs, and remotes (dolt sql, dolt diff, dolt branch, dolt commit, dolt push). Native -r json / -r csv query formatting and reversible commit history make it uniquely safe for agent data workflows.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install dolt
CLI vs MCP Decision CLI Preferred vs MCP

Prefer dolt CLI over generic SQL MCP servers: agents get both dolt sql -r json and Git-like dolt diff/dolt branch/dolt reset primitives.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

First-class -r json / -r csv output on dolt sql -q plus Git-familiar non-interactive subcommands (status, diff, log, branch).

  • dolt sql -r json -q ... outputs clean JSON rows
  • Non-interactive subcommands mirror Git semantics
Trust & Safety 22 / 25

Built-in branching, dolt diff, and commit rollback mitigate SQL mutation mistakes, though dolt push --force and reset --hard remain destructive.

  • Every mutation can be isolated on a branch and diffed before merge
Setup & Portability 14 / 15

Single static Go binary available via Homebrew and GitHub releases on macOS, Linux, and Windows.

  • Zero-dependency Go binary
Utility & Efficiency 14 / 15

Combines an embedded MySQL SQL engine with Git-style data versioning, eliminating separate dump/diff scripts.

  • Unified SQL query + cell-level version control
Maintenance & Lineage 9 / 10

Official DoltHub tool (dolthub/dolt) under Apache-2.0 with active release cadence.

  • First-party DoltHub repository
Docs & Verifiability 8 / 10

Thorough CLI reference at docs.dolthub.com and predictable --help across subcommands.

  • Official CLI reference at docs.dolthub.com

Security, Auth & Guardrails

Auth Modes
No Auth Config File Env API Key
Credential Storage

Local repos need no auth; DoltHub remote credentials are stored in ~/.dolt/creds/ via dolt login or DOLT_REMOTE_PASSWORD.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source database CLI; free for local and self-hosted remotes (DoltHub cloud plans vary).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Dolt Agent Rules
- Always pass `-r json` or `-r csv` to `dolt sql -q` so tabular ASCII padding doesn't waste tokens.
- Create a branch (`dolt checkout -b ...`) before running `UPDATE`/`DELETE` SQL mutations.
- Never run `dolt push --force` or `dolt reset --hard` without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Run a SQL query and output JSON
dolt sql -r json -q "SELECT * FROM users LIMIT 20;"

Executes a read-only SQL query against the local Dolt repo and formats rows as JSON.

Inspect uncommitted row-level table diffs
dolt diff

Shows cell-level additions, modifications, and deletions compared to HEAD.

Controlled Writes & Previews

Stage and commit table changes on a feature branch
dolt checkout -b agent-update && dolt add . && dolt commit -m "Apply verified data update"

Isolates local database edits onto a dedicated branch with a reversible commit.

Strengths for Agents

  • + dolt sql -r json -q returns compact JSON query results directly.
  • + Git-like branches and dolt diff provide a strong safety net for agent data edits.
  • + Single static binary with no external daemon required for local queries.

Caveats & Pitfalls

  • ! dolt sql without -q opens an interactive SQL shell that blocks headless callers.
  • ! dolt login uses browser OAuth unless remote auth env vars or local remotes are configured.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI