Artifacts: Git for Agents
A Git-compatible versioned filesystem built agent-first, running on Cloudflare infrastructure.
Artifacts provides a distributed, versioned filesystem for agents — not as an adaptation of existing git hosting, but as a ground-up implementation designed for the scale and patterns of agentic workflows. Tens of millions of repositories, created programmatically, with fork/diff/merge semantics available to any piece of logic that needs them.
Architecture
The system runs on Cloudflare Durable Objects with a custom Git server implementation written in Zig, compiled to WebAssembly (~100KB). Storage is layered:
- Durable Objects + SQLite — file content, chunked at 2MB per row
- R2 — snapshots for larger objects and history
- KV — authentication token tracking
Crucially, it speaks native Git protocol (v1 and v2) — shallow clones, incremental fetches, git-notes for agent metadata. Any standard Git client can authenticate via HTTPS with a generated token and treat it like any remote.
Access surfaces
env.AGENT_REPOS.create(name) creates a repo. Then treat it like any git remote.What it's designed for
- Per-session persistence — automatically persist filesystem state and history per agent session
- Forking — share sessions, enable time-travel debugging, branch from any known state
- Scale — tens of millions of repos without performance degradation; idle repos don't impose overhead
- Non-traditional versioning — per-customer config rollback, agent state management, anything needing fork/diff/revert on arbitrary data
Pricing (beta)
- Operations — $0.15 / 1,000 ops (first 10k/month free)
- Storage — $0.50 / GB-month (first 1GB free)